netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] dt-bindings: net: ti: k3-am654-cpsw-nuss: Document Serdes PHY
@ 2023-03-06  9:47 Siddharth Vadapalli
  2023-03-07 14:01 ` Rob Herring
  0 siblings, 1 reply; 3+ messages in thread
From: Siddharth Vadapalli @ 2023-03-06  9:47 UTC (permalink / raw)
  To: davem, edumazet, kuba, linux, pabeni, robh+dt,
	krzysztof.kozlowski, krzysztof.kozlowski+dt, nsekhar, rogerq
  Cc: netdev, devicetree, linux-kernel, linux-arm-kernel, srk,
	s-vadapalli

Update bindings to include Serdes PHY as an optional PHY, in addition to
the existing CPSW MAC's PHY. The CPSW MAC's PHY is required while the
Serdes PHY is optional. The Serdes PHY handle has to be provided only
when the Serdes is being configured in a Single-Link protocol. Using the
name "serdes-phy" to represent the Serdes PHY handle, the am65-cpsw-nuss
driver can obtain the Serdes PHY and request the Serdes to be
configured.

Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com>
---

Hello,

This patch corresponds to the Serdes PHY bindings that were missed out in
the series at:
Link: https://lore.kernel.org/r/20230104103432.1126403-1-s-vadapalli@ti.com/
This was pointed out at:
https://lore.kernel.org/r/CAMuHMdW5atq-FuLEL3htuE3t2uO86anLL3zeY7n1RqqMP_rH1g@mail.gmail.com/

 .../bindings/net/ti,k3-am654-cpsw-nuss.yaml   | 21 +++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/net/ti,k3-am654-cpsw-nuss.yaml b/Documentation/devicetree/bindings/net/ti,k3-am654-cpsw-nuss.yaml
index 900063411a20..fab7df437dcc 100644
--- a/Documentation/devicetree/bindings/net/ti,k3-am654-cpsw-nuss.yaml
+++ b/Documentation/devicetree/bindings/net/ti,k3-am654-cpsw-nuss.yaml
@@ -126,8 +126,25 @@ properties:
             description: CPSW port number
 
           phys:
-            maxItems: 1
-            description: phandle on phy-gmii-sel PHY
+            minItems: 1
+            maxItems: 2
+            description:
+              phandle(s) on CPSW MAC's PHY (Required) and the Serdes
+              PHY (Optional). phandle to the Serdes PHY is required
+              when the Serdes has to be configured in Single-Link
+              configuration.
+
+          phy-names:
+            oneOf:
+              - items:
+                  - const: mac-phy
+                  - const: serdes-phy
+              - items:
+                  - const: mac-phy
+            description:
+              Identifiers for the CPSW MAC's PHY and the Serdes PHY.
+              CPSW MAC's PHY is required and therefore "mac-phy" is
+              required, while "serdes-phy" is optional.
 
           label:
             description: label associated with this port
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-03-08  4:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-06  9:47 [PATCH net-next] dt-bindings: net: ti: k3-am654-cpsw-nuss: Document Serdes PHY Siddharth Vadapalli
2023-03-07 14:01 ` Rob Herring
2023-03-08  4:19   ` Siddharth Vadapalli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).