]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
dt-bindings: net: ethernet-phy: increase max clock count to two
authorGeorge Moussalem <george.moussalem@outlook.com>
Mon, 8 Jun 2026 05:09:16 +0000 (09:09 +0400)
committerJakub Kicinski <kuba@kernel.org>
Thu, 11 Jun 2026 22:31:18 +0000 (15:31 -0700)
The clocks property has a restriction to maximum one.
Yet, some PHYs may require more than 1 clock such as the IPQ5018 PHY
which requires two clocks for RX and TX. As such, increase maxItems to
two.

Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: George Moussalem <george.moussalem@outlook.com>
Link: https://patch.msgid.link/20260608-ipq5018-gephy-clocks-v4-1-fb2ccd56894b@outlook.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/devicetree/bindings/net/ethernet-phy.yaml

index 21a1a63506f010ffd62ec19e995409dfe394c678..c3ebb3af8b528be8fb74eb08500e7dc057ab903a 100644 (file)
@@ -106,10 +106,13 @@ properties:
       by software.
 
   clocks:
-    maxItems: 1
+    minItems: 1
+    maxItems: 2
     description:
-      External clock connected to the PHY. If not specified it is assumed
-      that the PHY uses a fixed crystal or an internal oscillator.
+      External clock connected to the PHY or RX and TX clocks that the PHY
+      requires to enable explicitly. If not specified it is assumed
+      that the PHY uses a fixed crystal or an internal oscillator or that the
+      RX/TX clocks are hardware enabled by default.
 
   enet-phy-lane-swap:
     $ref: /schemas/types.yaml#/definitions/flag