X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=target%2Flinux%2Fath79%2Fdts%2Far934x.dtsi;h=3eed4de7993ba6c41144a403ef7c67e11e852ae6;hb=34b10b468e0999f1739931ae8faf7e8e1002c2e8;hp=75865a718a8c61bd1b015324741f9fb9e9a9ff43;hpb=b346c37588873d0811785efada7aed2e52749500;p=oweals%2Fopenwrt.git diff --git a/target/linux/ath79/dts/ar934x.dtsi b/target/linux/ath79/dts/ar934x.dtsi index 75865a718a..3eed4de799 100644 --- a/target/linux/ath79/dts/ar934x.dtsi +++ b/target/linux/ath79/dts/ar934x.dtsi @@ -191,12 +191,13 @@ }; &mdio0 { + compatible = "qca,ar9340-mdio"; resets = <&rst 22>; reset-names = "mdio"; }; ð0 { - compatible = "qca,ar9340-eth", "syscon"; + compatible = "qca,ar9340-eth", "syscon", "simple-mfd"; pll-data = <0x16000000 0x00000101 0x00001616>; pll-reg = <0x4 0x2c 17>; @@ -207,13 +208,41 @@ }; &mdio1 { + status = "okay"; + + compatible = "qca,ar9340-mdio"; resets = <&rst 23>; reset-names = "mdio"; builtin-switch; + + builtin_switch: switch0@1f { + compatible = "qca,ar8229-builtin"; + + reg = <0x1f>; + resets = <&rst 8>; + reset-names = "switch"; + phy-mode = "gmii"; + phy4-mii-enable; + + mdio-bus { + #address-cells = <1>; + #size-cells = <0>; + + swphy0: ethernet-phy@0 { + reg = <0>; + phy-mode = "mii"; + }; + + swphy4: ethernet-phy@4 { + reg = <4>; + phy-mode = "mii"; + }; + }; + }; }; ð1 { - compatible = "qca,ar9340-eth", "syscon"; + compatible = "qca,ar9340-eth", "syscon", "simple-mfd"; resets = <&rst 13>; reset-names = "mac";