net: dsa: mv88e6xxx: Fix binding documentation for MDIO busses
Subsystems (4)
Andrew Lunn
maintainerPATCH 1/1 net: dsa: mv88e6xxx: Fix binding documentation for MDIO busses
The MDIO busses are switch proprieties and so should be inside the switch node. Fix the examples in the binding document.
Reported-by 尤晓杰 <[email protected]>
Signed-off-by Andrew Lunn <[email protected]>
Fixes a3c53be55c95 ("net: dsa: mv88e6xxx: Support multiple MDIO busses")
--- .../devicetree/bindings/net/dsa/marvell.txt | 48 +++++++++++----------- 1 file changed, 25 insertions(+), 23 deletions(-)
Documentation/devicetree/bindings/net/dsa/marvell.txt +25 -23
@@ -50,14 +50,15 @@ Example: compatible = "marvell,mv88e6085"; reg = <0>; reset-gpios = <&gpio5 1 GPIO_ACTIVE_LOW>; - }; - mdio { - #address-cells = <1>; - #size-cells = <0>; - switch1phy0: switch1phy0@0 { - reg = <0>; - interrupt-parent = <&switch0>; - interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + switch1phy0: switch1phy0@0 { + reg = <0>; + interrupt-parent = <&switch0>; + interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; + }; }; }; };
@@ -74,23 +75,24 @@ Example: compatible = "marvell,mv88e6390"; reg = <0>; reset-gpios = <&gpio5 1 GPIO_ACTIVE_LOW>; - }; - mdio { - #address-cells = <1>; - #size-cells = <0>; - switch1phy0: switch1phy0@0 { - reg = <0>; - interrupt-parent = <&switch0>; - interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + switch1phy0: switch1phy0@0 { + reg = <0>; + interrupt-parent = <&switch0>; + interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; + }; }; - }; - mdio1 { - compatible = "marvell,mv88e6xxx-mdio-external"; - #address-cells = <1>; - #size-cells = <0>; - switch1phy9: switch1phy0@9 { - reg = <9>; + mdio1 { + compatible = "marvell,mv88e6xxx-mdio-external"; + #address-cells = <1>; + #size-cells = <0>; + switch1phy9: switch1phy0@9 { + reg = <9>; + }; }; }; };
Signature · 1 line
2.16.2
David Miller
maintainerFrom: Andrew Lunn <[email protected]>
Date: Fri, 16 Mar 2018 18:03:46 +0100
Quoted 6 lines
The MDIO busses are switch proprieties and so should be inside the switch node. Fix the examples in the binding document.
Reported-by 尤晓杰 <[email protected]>Signed-off-by Andrew Lunn <[email protected]>Fixes a3c53be55c95 ("net: dsa: mv88e6xxx: Support multiple MDIO busses")
Applied with "properties" spelling fixed.
Thank you.