preinit: move cmdline failsafe= handling ot the generic code
[openwrt.git] / target / linux / ramips / patches-3.8 / 0106-MIPS-add-RT5350-dtsi-file.patch
1 From 1238d973f3828a65ccf9aead437b4e04925b100e Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Thu, 21 Mar 2013 17:47:24 +0100
4 Subject: [PATCH 106/121] MIPS: add RT5350 dtsi file
5
6 Add a dtsi file for RT5350 Soc. This SoC is almost the same as RT3050 but has
7 OHCI/EHCI in favour of the Synopsis DWC2 core.
8
9 Signed-off-by: John Crispin <blogic@openwrt.org>
10 ---
11  arch/mips/ralink/dts/rt5350.dtsi |  181 ++++++++++++++++++++++++++++++++++++++
12  1 file changed, 181 insertions(+)
13  create mode 100644 arch/mips/ralink/dts/rt5350.dtsi
14
15 --- /dev/null
16 +++ b/arch/mips/ralink/dts/rt5350.dtsi
17 @@ -0,0 +1,181 @@
18 +/ {
19 +       #address-cells = <1>;
20 +       #size-cells = <1>;
21 +       compatible = "ralink,rt5350-soc";
22 +
23 +       cpus {
24 +               cpu@0 {
25 +                       compatible = "mips,mips24KEc";
26 +               };
27 +       };
28 +
29 +       chosen {
30 +               bootargs = "console=ttyS0,57600 init=/init";
31 +       };
32 +
33 +       cpuintc: cpuintc@0 {
34 +               #address-cells = <0>;
35 +               #interrupt-cells = <1>;
36 +               interrupt-controller;
37 +               compatible = "mti,cpu-interrupt-controller";
38 +       };
39 +
40 +       palmbus@10000000 {
41 +               compatible = "palmbus";
42 +               reg = <0x10000000 0x200000>;
43 +               ranges = <0x0 0x10000000 0x1FFFFF>;
44 +
45 +               #address-cells = <1>;
46 +               #size-cells = <1>;
47 +
48 +               sysc@0 {
49 +                       compatible = "ralink,rt5350-sysc", "ralink,rt3050-sysc";
50 +                       reg = <0x0 0x100>;
51 +               };
52 +
53 +               timer@100 {
54 +                       compatible = "ralink,rt5350-timer", "ralink,rt2880-timer";
55 +                       reg = <0x100 0x20>;
56 +
57 +                       interrupt-parent = <&intc>;
58 +                       interrupts = <1>;
59 +
60 +                       status = "disabled";
61 +               };
62 +
63 +               watchdog@120 {
64 +                       compatible = "ralink,rt5350-wdt", "ralink,rt2880-wdt";
65 +                       reg = <0x120 0x10>;
66 +               };
67 +
68 +               intc: intc@200 {
69 +                       compatible = "ralink,rt5350-intc", "ralink,rt2880-intc";
70 +                       reg = <0x200 0x100>;
71 +
72 +                       interrupt-controller;
73 +                       #interrupt-cells = <1>;
74 +
75 +                       interrupt-parent = <&cpuintc>;
76 +                       interrupts = <2>;
77 +               };
78 +
79 +               memc@300 {
80 +                       compatible = "ralink,rt5350-memc", "ralink,rt3050-memc";
81 +                       reg = <0x300 0x100>;
82 +               };
83 +
84 +               gpio0: gpio@600 {
85 +                       compatible = "ralink,rt5350-gpio", "ralink,rt2880-gpio";
86 +                       reg = <0x600 0x34>;
87 +
88 +                       gpio-controller;
89 +                       #gpio-cells = <2>;
90 +
91 +                       ralink,num-gpios = <24>;
92 +                       ralink,register-map = [ 00 04 08 0c
93 +                                               20 24 28 2c
94 +                                               30 34 ];
95 +
96 +                       status = "disabled";
97 +               };
98 +
99 +               gpio1: gpio@638 {
100 +                       compatible = "ralink,rt5350-gpio", "ralink,rt2880-gpio";
101 +                       reg = <0x638 0x24>;
102 +
103 +                       gpio-controller;
104 +                       #gpio-cells = <2>;
105 +
106 +                       ralink,num-gpios = <16>;
107 +                       ralink,register-map = [ 00 04 08 0c
108 +                                               10 14 18 1c
109 +                                               20 24 ];
110 +
111 +                       status = "disabled";
112 +               };
113 +
114 +               gpio2: gpio@660 {
115 +                       compatible = "ralink,rt5350-gpio", "ralink,rt2880-gpio";
116 +                       reg = <0x660 0x24>;
117 +
118 +                       gpio-controller;
119 +                       #gpio-cells = <2>;
120 +
121 +                       ralink,num-gpios = <12>;
122 +                       ralink,register-map = [ 00 04 08 0c
123 +                                               10 14 18 1c
124 +                                               20 24 ];
125 +
126 +                       status = "disabled";
127 +               };
128 +
129 +               spi@b00 {
130 +                       compatible = "ralink,rt5350-spi", "ralink,rt2880-spi";
131 +                       reg = <0xb00 0x100>;
132 +                       #address-cells = <1>;
133 +                       #size-cells = <1>;
134 +
135 +                       status = "disabled";
136 +               };
137 +
138 +               uartlite@c00 {
139 +                       compatible = "ralink,rt5350-uart", "ralink,rt2880-uart", "ns16550a";
140 +                       reg = <0xc00 0x100>;
141 +
142 +                       interrupt-parent = <&intc>;
143 +                       interrupts = <12>;
144 +
145 +                       reg-shift = <2>;
146 +               };
147 +       };
148 +
149 +       ethernet@10100000 {
150 +               compatible = "ralink,rt5350-eth", "ralink,rt3050-eth";
151 +               reg = <0x10100000 10000>;
152 +
153 +               interrupt-parent = <&cpuintc>;
154 +               interrupts = <5>;
155 +
156 +               status = "disabled";
157 +       };
158 +
159 +       esw@10110000 {
160 +               compatible = "ralink,rt5350-esw", "ralink,rt3050-esw";
161 +               reg = <0x10110000 8000>;
162 +
163 +               interrupt-parent = <&intc>;
164 +               interrupts = <17>;
165 +
166 +               status = "disabled";
167 +       };
168 +
169 +       wmac@10180000 {
170 +               compatible = "ralink,rt5350-wmac", "ralink,rt2880-wmac";
171 +               reg = <0x10180000 40000>;
172 +
173 +               interrupt-parent = <&cpuintc>;
174 +               interrupts = <6>;
175 +
176 +               status = "disabled";
177 +       };
178 +
179 +       ehci@101c0000 {
180 +               compatible = "ralink,rt5350-ehci", "ehci-platform";
181 +               reg = <0x101c0000 0x1000>;
182 +
183 +               interrupt-parent = <&intc>;
184 +               interrupts = <18>;
185 +
186 +               status = "disabled";
187 +       };
188 +
189 +       ohci@101c1000 {
190 +               compatible = "ralink,rt5350-ohci", "ohci-platform";
191 +               reg = <0x101c1000 0x1000>;
192 +
193 +               interrupt-parent = <&intc>;
194 +               interrupts = <18>;
195 +
196 +               status = "disabled";
197 +       };
198 +};