diff options
Diffstat (limited to 'target/linux/ath79/dts/ar7240.dtsi')
-rw-r--r-- | target/linux/ath79/dts/ar7240.dtsi | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/target/linux/ath79/dts/ar7240.dtsi b/target/linux/ath79/dts/ar7240.dtsi index 6805d1a786..f662b4b445 100644 --- a/target/linux/ath79/dts/ar7240.dtsi +++ b/target/linux/ath79/dts/ar7240.dtsi @@ -33,7 +33,25 @@ }; &mdio0 { + status = "okay"; + + compatible = "qca,ar7240-mdio"; builtin-switch; + + builtin_switch: switch0@1f { + compatible = "qca,ar8216-builtin"; + #address-cells = <1>; + #size-cells = <0>; + + reg = <0x1f>; + + mdio-bus { + swphy4: ethernet-phy@4 { + reg = <4>; + phy-mode = "mii"; + }; + }; + }; }; ð0 { @@ -43,10 +61,8 @@ resets = <&rst 8>, <&rst 9>; reset-names = "phy", "mac"; -}; - -&mdio1 { - builtin-switch; + phy-mode = "mii"; + phy-handle = <&swphy4>; }; ð1 { |