Commit 6c92308f authored by nbd's avatar nbd
Browse files

ralink: add ethernet fe and esw reset control bit


Signed-off-by: default avatarmichael lee <igvtee@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44042 3c298f89-4303-0410-b956-a3cf2f4a3e73
parent 4e3b504d
...@@ -401,6 +401,9 @@ ...@@ -401,6 +401,9 @@
compatible = "ralink,mt7620a-gsw"; compatible = "ralink,mt7620a-gsw";
reg = <0x10110000 8000>; reg = <0x10110000 8000>;
resets = <&rstctrl 23>;
reset-names = "esw";
interrupt-parent = <&intc>; interrupt-parent = <&intc>;
interrupts = <17>; interrupts = <17>;
}; };
......
...@@ -255,6 +255,9 @@ ...@@ -255,6 +255,9 @@
compatible = "ralink,mt7620a-gsw"; compatible = "ralink,mt7620a-gsw";
reg = <0x10110000 8000>; reg = <0x10110000 8000>;
resets = <&rstctrl 23>;
reset-names = "esw";
interrupt-parent = <&intc>; interrupt-parent = <&intc>;
interrupts = <17>; interrupts = <17>;
ralink,port4 = "gmac"; ralink,port4 = "gmac";
......
...@@ -254,6 +254,9 @@ ...@@ -254,6 +254,9 @@
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
resets = <&rstctrl 6 &rstctrl 23>;
reset-names = "fe", "eth";
interrupt-parent = <&gic>; interrupt-parent = <&gic>;
interrupts = <3>; interrupts = <3>;
......
...@@ -197,12 +197,18 @@ ...@@ -197,12 +197,18 @@
interrupt-parent = <&cpuintc>; interrupt-parent = <&cpuintc>;
interrupts = <5>; interrupts = <5>;
resets = <&rstctrl 21 &rstctrl 23>;
reset-names = "fe", "esw";
}; };
esw@10110000 { esw@10110000 {
compatible = "ralink,rt3050-esw"; compatible = "ralink,rt3050-esw";
reg = <0x10110000 8000>; reg = <0x10110000 8000>;
resets = <&rstctrl 23>;
reset-names = "esw";
interrupt-parent = <&intc>; interrupt-parent = <&intc>;
interrupts = <17>; interrupts = <17>;
}; };
......
...@@ -149,6 +149,11 @@ ...@@ -149,6 +149,11 @@
}; };
}; };
rstctrl: rstctrl {
compatible = "ralink,rt2880-reset";
#reset-cells = <1>;
};
ethernet@400000 { ethernet@400000 {
compatible = "ralink,rt2880-eth"; compatible = "ralink,rt2880-eth";
reg = <0x00400000 10000>; reg = <0x00400000 10000>;
...@@ -156,6 +161,9 @@ ...@@ -156,6 +161,9 @@
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
resets = <&rstctrl 18>;
reset-names = "fe";
interrupt-parent = <&cpuintc>; interrupt-parent = <&cpuintc>;
interrupts = <5>; interrupts = <5>;
......
...@@ -214,6 +214,9 @@ ...@@ -214,6 +214,9 @@
compatible = "ralink,rt3050-eth"; compatible = "ralink,rt3050-eth";
reg = <0x10100000 10000>; reg = <0x10100000 10000>;
resets = <&rstctrl 21>;
reset-names = "fe";
interrupt-parent = <&cpuintc>; interrupt-parent = <&cpuintc>;
interrupts = <5>; interrupts = <5>;
}; };
...@@ -222,6 +225,9 @@ ...@@ -222,6 +225,9 @@
compatible = "ralink,rt3050-esw"; compatible = "ralink,rt3050-esw";
reg = <0x10110000 8000>; reg = <0x10110000 8000>;
resets = <&rstctrl 23>;
reset-names = "esw";
interrupt-parent = <&intc>; interrupt-parent = <&intc>;
interrupts = <17>; interrupts = <17>;
}; };
......
...@@ -204,6 +204,9 @@ ...@@ -204,6 +204,9 @@
compatible = "ralink,rt3352-eth", "ralink,rt3050-eth"; compatible = "ralink,rt3352-eth", "ralink,rt3050-eth";
reg = <0x10100000 10000>; reg = <0x10100000 10000>;
resets = <&rstctrl 21>;
reset-names = "fe";
interrupt-parent = <&cpuintc>; interrupt-parent = <&cpuintc>;
interrupts = <5>; interrupts = <5>;
}; };
...@@ -212,6 +215,9 @@ ...@@ -212,6 +215,9 @@
compatible = "ralink,rt3352-esw", "ralink,rt3050-esw"; compatible = "ralink,rt3352-esw", "ralink,rt3050-esw";
reg = <0x10110000 8000>; reg = <0x10110000 8000>;
resets = <&rstctrl 23>;
reset-names = "esw";
interrupt-parent = <&intc>; interrupt-parent = <&intc>;
interrupts = <17>; interrupts = <17>;
}; };
......
...@@ -223,6 +223,9 @@ ...@@ -223,6 +223,9 @@
compatible = "ralink,rt3883-eth"; compatible = "ralink,rt3883-eth";
reg = <0x10100000 10000>; reg = <0x10100000 10000>;
resets = <&rstctrl 21>;
reset-names = "fe";
interrupt-parent = <&cpuintc>; interrupt-parent = <&cpuintc>;
interrupts = <5>; interrupts = <5>;
......
...@@ -254,6 +254,9 @@ ...@@ -254,6 +254,9 @@
compatible = "ralink,rt5350-eth"; compatible = "ralink,rt5350-eth";
reg = <0x10100000 10000>; reg = <0x10100000 10000>;
resets = <&rstctrl 21 &rstctrl 23>;
reset-names = "fe", "esw";
interrupt-parent = <&cpuintc>; interrupt-parent = <&cpuintc>;
interrupts = <5>; interrupts = <5>;
}; };
...@@ -262,6 +265,9 @@ ...@@ -262,6 +265,9 @@
compatible = "ralink,rt3050-esw"; compatible = "ralink,rt3050-esw";
reg = <0x10110000 8000>; reg = <0x10110000 8000>;
resets = <&rstctrl 23>;
reset-names = "esw";
interrupt-parent = <&intc>; interrupt-parent = <&intc>;
interrupts = <17>; interrupts = <17>;
}; };
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment