ath79: add QCA956x GMAC config
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca956x.dtsi
index 3c4c04b1695b49b4dc5f5933b704d18c8addb332..81453717477f5985dff912c50c720a0d46b40957 100644 (file)
                                #reset-cells = <1>;
                                interrupt-parent = <&cpuintc>;
 
-                               intc3: interrupt-controller@3 {
+                               intc3: interrupt-controller {
                                        compatible = "qca,ar9340-intc";
 
                                        interrupt-parent = <&cpuintc>;
                        #address-cells = <1>;
                        #size-cells = <0>;
                };
+
+               gmac: gmac@18070000 {
+                       compatible = "qca,qca9560-gmac";
+                       reg = <0x18070000 0x64>;
+               };
        };
 
        usb_phy0: usb-phy {
 
        builtin_switch: switch0@1f {
                compatible = "qca,ar8229-builtin";
-               #address-cells = <1>;
-               #size-cells = <0>;
-
                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";