From patchwork Mon Apr 20 18:07:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 1273616 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=pC/QH3Mn; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 495ZRm6wg9z9sSv for ; Tue, 21 Apr 2020 04:07:48 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727927AbgDTSHc (ORCPT ); Mon, 20 Apr 2020 14:07:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726067AbgDTSHa (ORCPT ); Mon, 20 Apr 2020 14:07:30 -0400 Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8217DC061A0C; Mon, 20 Apr 2020 11:07:30 -0700 (PDT) Received: by mail-pg1-x52f.google.com with SMTP id d17so5468839pgo.0; Mon, 20 Apr 2020 11:07:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NjbIZ9kXNtH610iEU0/oYrdkcb6b6Mn+yf22ebIwisQ=; b=pC/QH3MnIqxV8fIjXPl/Q4XSa3qODVsDaUdtGydW5Az5HhFk9jIrxI/8DYwVk9qc8b vKb0X44fx/Um5z0EC2SN4RAJP94VeoQ0YUVLkKdVJ3ajPc4IM5KEggMPRaO1oebzKh9x yIm/vPkmm5dixFINI2AloGtN1uYD5LjYwPgG76xA3TcTQlAGl/ZuS7f+jzFZqRG3ddUw Hxy7XKaDFQM2Y7OoY9uQeSGJI4Z59ZbNIp3TUskRLnTR50qyVsgCXcS9rA4kTtsjU65G +SfZMrOTYULO/CwZvGv9GNyIygvTAROTwIUxm7xmtnz0erhVJvNTavOr+9+8+urtsPbm IeOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=NjbIZ9kXNtH610iEU0/oYrdkcb6b6Mn+yf22ebIwisQ=; b=E6/tIx6C1myJMDe6HFycYaokwlMAtkoCeZ99NR5MM3ykbjwcf/7XFlJNg/o0r4ncHv nHUrngjwd4q/eIBNf6LeAcOuY0MvxUW/Y2vMs7nEmD/tq14zStPkIqcXjfuJAf0VOiDE ZW3Kmxq5YWZFlknFs20xGJvU62eDsCk/xT7EcjcEEIu4cPNJ4dXFVnxuXycC9UHwsGjf BcfKP6KVAq6stPwvee4WBRZX5/+PuRz8ReFp7k2kTUSdzdXTW61+dKUVzNSdJf184E6p aZik4LwYsi+1nfIloP3ogoX5BeNxDEdkla0DrFdZ6jjaawzGSfh7Q5GKmT8jsS8zYBCZ gyzg== X-Gm-Message-State: AGi0PubmAaTu7ch/ZpeOMrGbvqVB/cDO9R9Dc6+gFOynod/l5tXZalFm 4DBXAL+UB94jUSpneMzE0QLTFVhf X-Google-Smtp-Source: APiQypKkoO5Z14ZkGCHBYJTFhJvvyTod6ubuSurjHB94GYvaUi739IFI7INaOKLm/b8Iuy6v327UBQ== X-Received: by 2002:a62:e80e:: with SMTP id c14mr17303729pfi.83.1587406049673; Mon, 20 Apr 2020 11:07:29 -0700 (PDT) Received: from localhost.localdomain (ip68-111-84-250.oc.oc.cox.net. [68.111.84.250]) by smtp.gmail.com with ESMTPSA id e7sm131193pfh.161.2020.04.20.11.07.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Apr 2020 11:07:28 -0700 (PDT) From: Florian Fainelli To: netdev@vger.kernel.org Cc: Florian Fainelli , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Rob Herring , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH net-next v3 1/3] dt-bindings: net: Correct description of 'broken-turn-around' Date: Mon, 20 Apr 2020 11:07:21 -0700 Message-Id: <20200420180723.27936-2-f.fainelli@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20200420180723.27936-1-f.fainelli@gmail.com> References: <20200420180723.27936-1-f.fainelli@gmail.com> MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The turn around bytes (2) are placed between the control phase of the MDIO transaction and the data phase, correct the wording to be more exact. Signed-off-by: Florian Fainelli Reviewed-by: Andrew Lunn --- Documentation/devicetree/bindings/net/ethernet-phy.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/ethernet-phy.yaml b/Documentation/devicetree/bindings/net/ethernet-phy.yaml index 5aa141ccc113..9b1f1147ca36 100644 --- a/Documentation/devicetree/bindings/net/ethernet-phy.yaml +++ b/Documentation/devicetree/bindings/net/ethernet-phy.yaml @@ -81,7 +81,8 @@ properties: $ref: /schemas/types.yaml#definitions/flag description: If set, indicates the PHY device does not correctly release - the turn around line low at the end of a MDIO transaction. + the turn around line low at end of the control phase of the + MDIO transaction. enet-phy-lane-swap: $ref: /schemas/types.yaml#definitions/flag From patchwork Mon Apr 20 18:07:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 1273613 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=pTVuXaPW; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 495ZRW3Rbsz9sSm for ; Tue, 21 Apr 2020 04:07:35 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727947AbgDTSHd (ORCPT ); Mon, 20 Apr 2020 14:07:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727919AbgDTSHc (ORCPT ); Mon, 20 Apr 2020 14:07:32 -0400 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A20CC061A0C; Mon, 20 Apr 2020 11:07:32 -0700 (PDT) Received: by mail-pj1-x1043.google.com with SMTP id ms17so202885pjb.0; Mon, 20 Apr 2020 11:07:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=LKaQfIviMbu22B3fqLVbZ9vEpJhoTUYPWzdq2H9LhsU=; b=pTVuXaPWR9LFcA59WuIiYCYCo1UJcxJmd2iHegPyriYZanukjb9Owzt0b0oon3FB8t i+hCMTsf4yGJtqxDzs5+Lf7aJNsDH0f3HnBG6Q9uckBBSYlG1eXeYQ1S5t811xn3Ol/s HYYTW7XVyCO0iqFBhccMr1NqCIdmG9jSFM57hlz81ylQoIADotycpmgUCEgNfcZBp+8t SaMtOe+M/GlXWfmDbQkxj0oeroaWFiQOiL5O3UqyAqX46gxCX1nUnIELUdcow/w2703I w15JDyF4DDQ+KZ6F1Jlk5yNJk87ruRl6iOp1vXaXY/hlRh6al+la6naBV00kXyGU7RYk e6zA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=LKaQfIviMbu22B3fqLVbZ9vEpJhoTUYPWzdq2H9LhsU=; b=lt9QM2NbK8Qnoc27jqzssNYIuByMWy4hbW1A7tey17mLxNdLsJRAGUhFzZUusU7oyV dX24D1LaNRDorHndhVOf6WOSPXOzhZuCYlhQdi7pnK1W4NQ9TDi+u/LPhAkYtXi4KYe9 FjvTR4u2mkhV6+H7cg+syotgrOW4r7Dj7T49J3KGOpa1OMimVEx+d9hd0/9NbfzUoFEz AL/wP4Y8HwNZLl6bTRzCikopFVF79ZjkDZaDVpVYegpoam/oo5Uyf/Kz3uNyD1FxUgR9 ye+baIYtwPY0Z8lDrErZDRAvkZrLepxMGSlWW7/Mm6nVNmWRWH1jN0VXkEe7qaIiOpjO O0Rg== X-Gm-Message-State: AGi0PuZbIskQKltveddn4a+dDp9sO1X36D2rGHod+5wg2CUDHjdOmSZe tiJQQAA840oUKh71tsAEvAILY3b+ X-Google-Smtp-Source: APiQypIOhxUFH15iPLPaSArM9rdPhEHO484U/yoczwZkNd/bXbgqvEm2xcwnTTxXf8kJ4W6G+jJw7g== X-Received: by 2002:a17:902:fe17:: with SMTP id g23mr15578009plj.68.1587406051230; Mon, 20 Apr 2020 11:07:31 -0700 (PDT) Received: from localhost.localdomain (ip68-111-84-250.oc.oc.cox.net. [68.111.84.250]) by smtp.gmail.com with ESMTPSA id e7sm131193pfh.161.2020.04.20.11.07.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Apr 2020 11:07:30 -0700 (PDT) From: Florian Fainelli To: netdev@vger.kernel.org Cc: Florian Fainelli , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Rob Herring , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH net-next v3 2/3] dt-bindings: net: mdio: Document common properties Date: Mon, 20 Apr 2020 11:07:22 -0700 Message-Id: <20200420180723.27936-3-f.fainelli@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20200420180723.27936-1-f.fainelli@gmail.com> References: <20200420180723.27936-1-f.fainelli@gmail.com> MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Some of the properties pertaining to the broken turn around or resets were only documented in ethernet-phy.yaml while they are applicable across all MDIO devices and not Ethernet PHYs specifically which are a superset. Signed-off-by: Florian Fainelli Reviewed-by: Andrew Lunn --- .../devicetree/bindings/net/mdio.yaml | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/Documentation/devicetree/bindings/net/mdio.yaml b/Documentation/devicetree/bindings/net/mdio.yaml index 50c3397a82bc..9efb7d623f0e 100644 --- a/Documentation/devicetree/bindings/net/mdio.yaml +++ b/Documentation/devicetree/bindings/net/mdio.yaml @@ -50,6 +50,34 @@ patternProperties: description: The ID number for the PHY. + broken-turn-around: + $ref: /schemas/types.yaml#definitions/flag + description: + If set, indicates the MDIO device does not correctly release + the turn around line low at end of the control phase of the + MDIO transaction. + + resets: + maxItems: 1 + + reset-names: + const: phy + + reset-gpios: + maxItems: 1 + description: + The GPIO phandle and specifier for the MDIO reset signal. + + reset-assert-us: + description: + Delay after the reset was asserted in microseconds. If this + property is missing the delay will be skipped. + + reset-deassert-us: + description: + Delay after the reset was deasserted in microseconds. If + this property is missing the delay will be skipped. + required: - reg From patchwork Mon Apr 20 18:07:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 1273614 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=ZM6D/un4; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 495ZRg58Bpz9sSs for ; Tue, 21 Apr 2020 04:07:43 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727839AbgDTSHk (ORCPT ); Mon, 20 Apr 2020 14:07:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727950AbgDTSHd (ORCPT ); Mon, 20 Apr 2020 14:07:33 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC0BEC061A0C; Mon, 20 Apr 2020 11:07:33 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id g6so5439332pgs.9; Mon, 20 Apr 2020 11:07:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hCbMM0D7i6YG6HvspVDq+pAvNtlnjXVbn+ZZ1wJutFE=; b=ZM6D/un48AwAPsz+8hAY1e8kioWexA88QEj+MR4X5XITJLdENUdDkNLOTpAghYLcox BfpbOd/4ftkpYDmvCqIkX25RtUwoUhr6w7WzzETGs+7jjbw1jCbnQ+QQ0Dc6wtjb6Iny w4eDfVUGcNASH9/9ZGv1slXcw6XJVHLJPO/CJgjVgc8hychdHXbbXmHOPN2Y3Brq9KmH XWNUzhZ629fYCkXb04+8dpQBygRCFi31yqXvAmBz4Agmxw4S8RsuWGNOTOOMmKlR56MA 4tHMJAx404rfzh5x5TrWyP5a7bY48R2GKntiSIkpvYmlYpz9GSpSLD5d1N+6y1XK8FYU 3Eag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hCbMM0D7i6YG6HvspVDq+pAvNtlnjXVbn+ZZ1wJutFE=; b=Jq76vYsJ0VaDs8cGI/ygKM6YK30Pbb5t+QdH4GuFodfCHgCO7Qstc3urHGxIbCYZxu mpcEOgPDj/rgx0tZGzoCp+BFHk9AOc+GFVpbw0Gc7o5xq8xNdJlfscAF3eKiGRcFFwLj 8qMQUUUuyo3dvcktH3b/PVSaC8DBbiJ52eX4yG3Zn/FNgE5KM4DHPbpIfc0O2DZFhrlp fHYiexYm7BFBaZi4edjYP1dp3Bw7/n2/M26IE54Q9nXbYFbFmvHvxQlzqSnkS68HlP+s 3blgjAXDp9XNlcVX3BclsikHo2oNKMlcoeX6/N0wjhTCj1A073HIGIzBultBcWcWj7sZ ejbQ== X-Gm-Message-State: AGi0PubG07L1h1VRqccM2FwbE2Or6XCZKXv/LS5twbO8d+zcA85bVgAX 7eIaow95FnFkMyLUTb9zun/B2R0q X-Google-Smtp-Source: APiQypKFEI724jV0xrw4WG7w2t9npeZtaAZdpnvz5LXHZxLB09nUrb6VGcnnzCCOu3ESpGOfktp5wA== X-Received: by 2002:a62:3545:: with SMTP id c66mr15248027pfa.217.1587406052889; Mon, 20 Apr 2020 11:07:32 -0700 (PDT) Received: from localhost.localdomain (ip68-111-84-250.oc.oc.cox.net. [68.111.84.250]) by smtp.gmail.com with ESMTPSA id e7sm131193pfh.161.2020.04.20.11.07.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Apr 2020 11:07:32 -0700 (PDT) From: Florian Fainelli To: netdev@vger.kernel.org Cc: Florian Fainelli , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Rob Herring , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH net-next v3 3/3] dt-bindings: net: mdio: Make descriptions more general Date: Mon, 20 Apr 2020 11:07:23 -0700 Message-Id: <20200420180723.27936-4-f.fainelli@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20200420180723.27936-1-f.fainelli@gmail.com> References: <20200420180723.27936-1-f.fainelli@gmail.com> MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org A number of descriptions assume a PHY device, but since this binding describes a MDIO bus which can have different kinds of MDIO devices attached to it, rephrase some descriptions to be more general in that regard. Reviewed-by: Andrew Lunn Signed-off-by: Florian Fainelli --- Documentation/devicetree/bindings/net/mdio.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/net/mdio.yaml b/Documentation/devicetree/bindings/net/mdio.yaml index 9efb7d623f0e..d83fe5980fb8 100644 --- a/Documentation/devicetree/bindings/net/mdio.yaml +++ b/Documentation/devicetree/bindings/net/mdio.yaml @@ -31,13 +31,13 @@ properties: maxItems: 1 description: The phandle and specifier for the GPIO that controls the RESET - lines of all PHYs on that MDIO bus. + lines of all devices on that MDIO bus. reset-delay-us: description: - RESET pulse width in microseconds. It applies to all PHY devices - and must therefore be appropriately determined based on all PHY - requirements (maximum value of all per-PHY RESET pulse widths). + RESET pulse width in microseconds. It applies to all MDIO devices + and must therefore be appropriately determined based on all devices + requirements (maximum value of all per-device RESET pulse widths). patternProperties: "^ethernet-phy@[0-9a-f]+$": @@ -48,7 +48,7 @@ patternProperties: minimum: 0 maximum: 31 description: - The ID number for the PHY. + The ID number for the device. broken-turn-around: $ref: /schemas/types.yaml#definitions/flag