dt-bindings: net: dp83822: support configuring RMII master/slave mode
authorJérémie Dautheribes <jeremie.dautheribes@bootlin.com>
Thu, 22 Feb 2024 10:31:15 +0000 (11:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Feb 2024 11:38:44 +0000 (11:38 +0000)
Add property ti,rmii-mode to support selecting the RMII operation mode
between:
- master mode (PHY operates from a 25MHz clock reference)
- slave mode (PHY operates from a 50MHz clock reference)

If not set, the operation mode is configured by hardware straps.

Signed-off-by: Jérémie Dautheribes <jeremie.dautheribes@bootlin.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/net/ti,dp83822.yaml

index 8f4350be689c57d351ce882a74ab5f6c7745e6f6..8f23254c0458f7d2562336224810814b7de5d9a8 100644 (file)
@@ -80,6 +80,22 @@ properties:
            10625, 11250, 11875, 12500, 13125, 13750, 14375, 15000]
     default: 10000
 
+  ti,rmii-mode:
+    description: |
+       If present, select the RMII operation mode. Two modes are
+       available:
+         - RMII master, where the PHY operates from a 25MHz clock reference,
+         provided by a crystal or a CMOS-level oscillator
+         - RMII slave, where the PHY operates from a 50MHz clock reference,
+         provided by a CMOS-level oscillator
+       The RMII operation mode can also be configured by its straps.
+       If the strap pin is not set correctly or not set at all, then this can be
+       used to configure it.
+    $ref: /schemas/types.yaml#/definitions/string
+    enum:
+      - master
+      - slave
+
 required:
   - reg