dt-bindings: net: marvell,aquantia: add property to override MDI_CFG
authorDaniel Golle <daniel@makrotopia.org>
Fri, 4 Oct 2024 16:18:05 +0000 (17:18 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 9 Oct 2024 00:16:35 +0000 (17:16 -0700)
Usually the MDI pair order reversal configuration is defined by
bootstrap pin MDI_CFG. Some designs, however, require overriding the MDI
pair order and force either normal or reverse order.

Add property 'marvell,mdi-cfg-order' to allow forcing either normal or
reverse order of the MDI pairs.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://patch.msgid.link/7ccf25d6d7859f1ce9983c81a2051cfdfb0e0a99.1728058550.git.daniel@makrotopia.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/devicetree/bindings/net/marvell,aquantia.yaml

index 9854fab4c4db08e4b668734baa0f1e8579c0507c..f269615126d86cc4e5204446524038dd37d331b8 100644 (file)
@@ -48,6 +48,12 @@ properties:
   firmware-name:
     description: specify the name of PHY firmware to load
 
+  marvell,mdi-cfg-order:
+    $ref: /schemas/types.yaml#/definitions/uint32
+    enum: [0, 1]
+    description:
+      force normal (0) or reverse (1) order of MDI pairs, overriding MDI_CFG bootstrap pin.
+
   nvmem-cells:
     description: phandle to the firmware nvmem cell
     maxItems: 1