]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
dt-bindings: net: ethernet-phy: add property enet-phy-pair-order
authorDamien Dejean <dam.dejean@gmail.com>
Wed, 18 Mar 2026 21:54:58 +0000 (22:54 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 21 Mar 2026 02:12:45 +0000 (19:12 -0700)
Add property enet-phy-pair-order to the device tree bindings to define
the pair order of the PHY. To simplify PCB design some manufacturers
allow to wire the pairs in a reverse order, and change the order in
software.

The property can be set to 0 to force the normal pair order (ABCD), or 1
to force the reverse pair order (DCBA).

Signed-off-by: Damien Dejean <dam.dejean@gmail.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://patch.msgid.link/20260318215502.106528-2-dam.dejean@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/devicetree/bindings/net/ethernet-phy.yaml

index 58634fee9fc4dc98d3030159e5a038938f60a3cc..4a27547f7d7ad710add9734873edd84267e5e76d 100644 (file)
@@ -126,6 +126,12 @@ properties:
       e.g. wrong bootstrap configuration caused by issues in PCB
       layout design.
 
+  enet-phy-pair-order:
+    $ref: /schemas/types.yaml#/definitions/uint32
+    enum: [0, 1]
+    description:
+      For normal (0) or reverse (1) order of the pairs (ABCD -> DCBA).
+
   eee-broken-100tx:
     $ref: /schemas/types.yaml#/definitions/flag
     description: