dt-bindings: net: document ptp_ref clk in dwmac
authorAlexandre Torgue <alexandre.torgue@foss.st.com>
Thu, 15 Apr 2021 10:10:32 +0000 (12:10 +0200)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Thu, 10 Jun 2021 12:11:24 +0000 (14:11 +0200)
ptp_ref clk has been added in DT but not documented which makes yaml
validation failed:

ethernet@5800a000: clocks: [[6, 105], [6, 103], [6, 104], [6, 123],
[6, 169], [6, 112]] is too long
ethernet@5800a000: clock-names: ['stmmaceth', 'mac-clk-tx', 'mac-clk-rx',
'eth-ck', 'ptp_ref', 'ethstp'] is too long

Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
Documentation/devicetree/bindings/net/stm32-dwmac.yaml

index 27eb6066793f2a075997df83a37bb68b31706e2b..a1c490f3af02d64da305151facbb4d2c8c398872 100644 (file)
@@ -46,17 +46,18 @@ properties:
 
   clocks:
     minItems: 3
-    maxItems: 5
+    maxItems: 6
     items:
       - description: GMAC main clock
       - description: MAC TX clock
       - description: MAC RX clock
       - description: For MPU family, used for power mode
       - description: For MPU family, used for PHY without quartz
+      - description: PTP clock
 
   clock-names:
     minItems: 3
-    maxItems: 5
+    maxItems: 6
     contains:
       enum:
         - stmmaceth
@@ -64,6 +65,7 @@ properties:
         - mac-clk-rx
         - ethstp
         - eth-ck
+        - ptp_ref
 
   st,syscon:
     $ref: "/schemas/types.yaml#/definitions/phandle-array"