Browse Source

ralink: add ethernet fe and esw reset control bit

Signed-off-by: michael lee <[email protected]>

SVN-Revision: 44042
Felix Fietkau 11 years ago
parent
commit
69ee1807ed

+ 3 - 0
target/linux/ramips/dts/mt7620a.dtsi

@@ -401,6 +401,9 @@
 		compatible = "ralink,mt7620a-gsw";
 		reg = <0x10110000 8000>;
 
+		resets = <&rstctrl 23>;
+		reset-names = "esw";
+
 		interrupt-parent = <&intc>;
 		interrupts = <17>;
 	};

+ 3 - 0
target/linux/ramips/dts/mt7620n.dtsi

@@ -255,6 +255,9 @@
 		compatible = "ralink,mt7620a-gsw";
 		reg = <0x10110000 8000>;
 
+		resets = <&rstctrl 23>;
+		reset-names = "esw";
+
 		interrupt-parent = <&intc>;
 		interrupts = <17>;
 		ralink,port4 = "gmac";

+ 3 - 0
target/linux/ramips/dts/mt7621.dtsi

@@ -254,6 +254,9 @@
 		#address-cells = <1>;
 		#size-cells = <0>;
 
+		resets = <&rstctrl 6 &rstctrl 23>;
+		reset-names = "fe", "eth";
+
 		interrupt-parent = <&gic>;
 		interrupts = <3>;
 

+ 6 - 0
target/linux/ramips/dts/mt7628an.dtsi

@@ -197,12 +197,18 @@
 
 		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>;
 	};

+ 8 - 0
target/linux/ramips/dts/rt2880.dtsi

@@ -149,6 +149,11 @@
 		};
 	};
 
+	rstctrl: rstctrl {
+		compatible = "ralink,rt2880-reset";
+		#reset-cells = <1>;
+	};
+
 	ethernet@400000 {
 		compatible = "ralink,rt2880-eth";
 		reg = <0x00400000 10000>;
@@ -156,6 +161,9 @@
 		#address-cells = <1>;
 		#size-cells = <0>;
 
+		resets = <&rstctrl 18>;
+		reset-names = "fe";
+
 		interrupt-parent = <&cpuintc>;
 		interrupts = <5>;
 

+ 6 - 0
target/linux/ramips/dts/rt3050.dtsi

@@ -214,6 +214,9 @@
 		compatible = "ralink,rt3050-eth";
 		reg = <0x10100000 10000>;
 
+		resets = <&rstctrl 21>;
+		reset-names = "fe";
+
 		interrupt-parent = <&cpuintc>;
 		interrupts = <5>;
 	};
@@ -222,6 +225,9 @@
 		compatible = "ralink,rt3050-esw";
 		reg = <0x10110000 8000>;
 
+		resets = <&rstctrl 23>;
+		reset-names = "esw";
+
 		interrupt-parent = <&intc>;
 		interrupts = <17>;
 	};

+ 6 - 0
target/linux/ramips/dts/rt3352.dtsi

@@ -204,6 +204,9 @@
 		compatible = "ralink,rt3352-eth", "ralink,rt3050-eth";
 		reg = <0x10100000 10000>;
 
+		resets = <&rstctrl 21>;
+		reset-names = "fe";
+
 		interrupt-parent = <&cpuintc>;
 		interrupts = <5>;
 	};
@@ -212,6 +215,9 @@
 		compatible = "ralink,rt3352-esw", "ralink,rt3050-esw";
 		reg = <0x10110000 8000>;
 
+		resets = <&rstctrl 23>;
+		reset-names = "esw";
+
 		interrupt-parent = <&intc>;
 		interrupts = <17>;
 	};

+ 3 - 0
target/linux/ramips/dts/rt3883.dtsi

@@ -223,6 +223,9 @@
 		compatible = "ralink,rt3883-eth";
 		reg = <0x10100000 10000>;
 
+		resets = <&rstctrl 21>;
+		reset-names = "fe";
+
 		interrupt-parent = <&cpuintc>;
 		interrupts = <5>;
 

+ 6 - 0
target/linux/ramips/dts/rt5350.dtsi

@@ -254,6 +254,9 @@
 		compatible = "ralink,rt5350-eth";
 		reg = <0x10100000 10000>;
 
+		resets = <&rstctrl 21 &rstctrl 23>;
+		reset-names = "fe", "esw";
+
 		interrupt-parent = <&cpuintc>;
 		interrupts = <5>;
 	};
@@ -262,6 +265,9 @@
 		compatible = "ralink,rt3050-esw";
 		reg = <0x10110000 8000>;
 
+		resets = <&rstctrl 23>;
+		reset-names = "esw";
+
 		interrupt-parent = <&intc>;
 		interrupts = <17>;
 	};