X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fstaging%2Fwigyori.git;a=blobdiff_plain;f=target%2Flinux%2Fath79%2Fdts%2Fqca956x.dtsi;h=81453717477f5985dff912c50c720a0d46b40957;hp=1b8733a5851d8c9ec83e78b4fad8fb175ae0a195;hb=7d1b742b4d18636b26b09142b7265215bf4eff32;hpb=b8562f168b2bb2defc87e94db6ff98fe8471dc71 diff --git a/target/linux/ath79/dts/qca956x.dtsi b/target/linux/ath79/dts/qca956x.dtsi index 1b8733a585..8145371747 100644 --- a/target/linux/ath79/dts/qca956x.dtsi +++ b/target/linux/ath79/dts/qca956x.dtsi @@ -114,7 +114,7 @@ #reset-cells = <1>; interrupt-parent = <&cpuintc>; - intc3: interrupt-controller@3 { + intc3: interrupt-controller { compatible = "qca,ar9340-intc"; interrupt-parent = <&cpuintc>; @@ -222,6 +222,11 @@ #address-cells = <1>; #size-cells = <0>; }; + + gmac: gmac@18070000 { + compatible = "qca,qca9560-gmac"; + reg = <0x18070000 0x64>; + }; }; usb_phy0: usb-phy { @@ -253,26 +258,49 @@ }; ð0 { - compatible = "qca,qca9560-eth", "syscon"; + compatible = "qca,qca9560-eth", "syscon", "simple-mfd"; pll-data = <0x03000000 0x00000101 0x00001919>; pll-reg = <0 0x48 0>; pll-handle = <&pll>; - phy-mode = "sgmii"; - resets = <&rst 9>; reset-names = "mac"; }; &mdio1 { + status = "okay"; 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,qca9560-eth", "syscon"; + compatible = "qca,qca9560-eth", "syscon", "simple-mfd"; phy-mode = "gmii"; @@ -280,4 +308,9 @@ reset-names = "mac"; status = "disabled"; + + fixed-link { + speed = <1000>; + full-duplex; + }; };