ralink: add ethernet fe and esw reset control bit
authorFelix Fietkau <nbd@openwrt.org>
Sun, 18 Jan 2015 20:16:44 +0000 (20:16 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 18 Jan 2015 20:16:44 +0000 (20:16 +0000)
Signed-off-by: michael lee <igvtee@gmail.com>
SVN-Revision: 44042

target/linux/ramips/dts/mt7620a.dtsi
target/linux/ramips/dts/mt7620n.dtsi
target/linux/ramips/dts/mt7621.dtsi
target/linux/ramips/dts/mt7628an.dtsi
target/linux/ramips/dts/rt2880.dtsi
target/linux/ramips/dts/rt3050.dtsi
target/linux/ramips/dts/rt3352.dtsi
target/linux/ramips/dts/rt3883.dtsi
target/linux/ramips/dts/rt5350.dtsi

index c9a7573..915707c 100644 (file)
                compatible = "ralink,mt7620a-gsw";
                reg = <0x10110000 8000>;
 
+               resets = <&rstctrl 23>;
+               reset-names = "esw";
+
                interrupt-parent = <&intc>;
                interrupts = <17>;
        };
index 8ce759a..39c92aa 100644 (file)
                compatible = "ralink,mt7620a-gsw";
                reg = <0x10110000 8000>;
 
+               resets = <&rstctrl 23>;
+               reset-names = "esw";
+
                interrupt-parent = <&intc>;
                interrupts = <17>;
                ralink,port4 = "gmac";
index a36c2b7..50cd144 100644 (file)
                #address-cells = <1>;
                #size-cells = <0>;
 
+               resets = <&rstctrl 6 &rstctrl 23>;
+               reset-names = "fe", "eth";
+
                interrupt-parent = <&gic>;
                interrupts = <3>;
 
index bb52c6a..bf786c8 100644 (file)
 
                interrupt-parent = <&cpuintc>;
                interrupts = <5>;
+
+               resets = <&rstctrl 21 &rstctrl 23>;
+               reset-names = "fe", "esw";
        };
 
        esw@10110000 {
                compatible = "ralink,rt3050-esw";
                reg = <0x10110000 8000>;
 
+               resets = <&rstctrl 23>;
+               reset-names = "esw";
+
                interrupt-parent = <&intc>;
                interrupts = <17>;
        };
index 646cb6a..feabe42 100644 (file)
                };
        };
 
+       rstctrl: rstctrl {
+               compatible = "ralink,rt2880-reset";
+               #reset-cells = <1>;
+       };
+
        ethernet@400000 {
                compatible = "ralink,rt2880-eth";
                reg = <0x00400000 10000>;
                #address-cells = <1>;
                #size-cells = <0>;
 
+               resets = <&rstctrl 18>;
+               reset-names = "fe";
+
                interrupt-parent = <&cpuintc>;
                interrupts = <5>;
 
index dfce920..e15a1cf 100644 (file)
                compatible = "ralink,rt3050-eth";
                reg = <0x10100000 10000>;
 
+               resets = <&rstctrl 21>;
+               reset-names = "fe";
+
                interrupt-parent = <&cpuintc>;
                interrupts = <5>;
        };
                compatible = "ralink,rt3050-esw";
                reg = <0x10110000 8000>;
 
+               resets = <&rstctrl 23>;
+               reset-names = "esw";
+
                interrupt-parent = <&intc>;
                interrupts = <17>;
        };
index 47e30a3..7dffddb 100644 (file)
                compatible = "ralink,rt3352-eth", "ralink,rt3050-eth";
                reg = <0x10100000 10000>;
 
+               resets = <&rstctrl 21>;
+               reset-names = "fe";
+
                interrupt-parent = <&cpuintc>;
                interrupts = <5>;
        };
                compatible = "ralink,rt3352-esw", "ralink,rt3050-esw";
                reg = <0x10110000 8000>;
 
+               resets = <&rstctrl 23>;
+               reset-names = "esw";
+
                interrupt-parent = <&intc>;
                interrupts = <17>;
        };
index 72212c1..da9a9b5 100644 (file)
                compatible = "ralink,rt3883-eth";
                reg = <0x10100000 10000>;
 
+               resets = <&rstctrl 21>;
+               reset-names = "fe";
+
                interrupt-parent = <&cpuintc>;
                interrupts = <5>;
 
index 8ba20bb..837e012 100644 (file)
                compatible = "ralink,rt5350-eth";
                reg = <0x10100000 10000>;
 
+               resets = <&rstctrl 21 &rstctrl 23>;
+               reset-names = "fe", "esw";
+
                interrupt-parent = <&cpuintc>;
                interrupts = <5>;
        };
                compatible = "ralink,rt3050-esw";
                reg = <0x10110000 8000>;
 
+               resets = <&rstctrl 23>;
+               reset-names = "esw";
+
                interrupt-parent = <&intc>;
                interrupts = <17>;
        };