OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
1 | #include <dt-bindings/interrupt-controller/mips-gic.h> |
1 | #include <dt-bindings/interrupt-controller/mips-gic.h> |
|
2 | #include <dt-bindings/clock/mt7621-clk.h> |
- | ||
3 | |
2 | |
|
4 | / { |
3 | / { |
|
5 | #address-cells = <1>; |
4 | #address-cells = <1>; |
|
6 | #size-cells = <1>; |
5 | #size-cells = <1>; |
|
7 | compatible = "mediatek,mt7621-soc"; |
6 | compatible = "mediatek,mt7621-soc"; |
|
8 | |
7 | |
|
9 | cpus { |
8 | cpus { |
|
10 | #address-cells = <1>; |
- | ||
11 | #size-cells = <0>; |
- | ||
12 | |
- | ||
13 | cpu@0 { |
9 | cpu@0 { |
|
14 | device_type = "cpu"; |
- | ||
15 | compatible = "mips,mips1004Kc"; |
10 | compatible = "mips,mips1004Kc"; |
|
16 | reg = <0>; |
- | ||
17 | }; |
11 | }; |
|
18 | |
12 | |
|
19 | cpu@1 { |
13 | cpu@1 { |
|
20 | device_type = "cpu"; |
- | ||
21 | compatible = "mips,mips1004Kc"; |
14 | compatible = "mips,mips1004Kc"; |
|
22 | reg = <1>; |
- | ||
23 | }; |
15 | }; |
|
24 | }; |
16 | }; |
|
25 | |
17 | |
|
26 | cpuintc: cpuintc { |
18 | cpuintc: cpuintc@0 { |
|
27 | #address-cells = <0>; |
19 | #address-cells = <0>; |
|
28 | #interrupt-cells = <1>; |
20 | #interrupt-cells = <1>; |
|
29 | interrupt-controller; |
21 | interrupt-controller; |
|
30 | compatible = "mti,cpu-interrupt-controller"; |
22 | compatible = "mti,cpu-interrupt-controller"; |
|
31 | }; |
23 | }; |
|
32 | |
24 | |
|
33 | aliases { |
25 | aliases { |
|
34 | serial0 = &uartlite; |
26 | serial0 = &uartlite; |
|
35 | }; |
27 | }; |
|
36 | |
28 | |
|
- | 29 | cpuclock: cpuclock@0 { |
||
37 | pll: pll { |
30 | #clock-cells = <0>; |
|
38 | compatible = "mediatek,mt7621-pll", "syscon"; |
31 | compatible = "fixed-clock"; |
|
39 | |
32 | |
|
40 | #clock-cells = <1>; |
33 | /* FIXME: there should be way to detect this */ |
|
41 | clock-output-names = "cpu", "bus"; |
34 | clock-frequency = <880000000>; |
|
42 | }; |
35 | }; |
|
43 | |
36 | |
|
44 | sysclock: sysclock { |
37 | sysclock: sysclock@0 { |
|
45 | #clock-cells = <0>; |
38 | #clock-cells = <0>; |
|
46 | compatible = "fixed-clock"; |
39 | compatible = "fixed-clock"; |
|
47 | |
40 | |
|
48 | /* FIXME: there should be way to detect this */ |
41 | /* FIXME: there should be way to detect this */ |
|
49 | clock-frequency = <50000000>; |
42 | clock-frequency = <50000000>; |
|
50 | }; |
43 | }; |
|
51 | |
44 | |
|
52 | |
45 | |
|
53 | |
46 | |
|
54 | palmbus: palmbus@1E000000 { |
47 | palmbus: palmbus@1E000000 { |
|
55 | compatible = "palmbus"; |
48 | compatible = "palmbus"; |
|
56 | reg = <0x1E000000 0x100000>; |
49 | reg = <0x1E000000 0x100000>; |
|
57 | ranges = <0x0 0x1E000000 0x0FFFFF>; |
50 | ranges = <0x0 0x1E000000 0x0FFFFF>; |
|
58 | |
51 | |
|
59 | #address-cells = <1>; |
52 | #address-cells = <1>; |
|
60 | #size-cells = <1>; |
53 | #size-cells = <1>; |
|
61 | |
54 | |
|
62 | sysc: sysc@0 { |
55 | sysc: sysc@0 { |
|
63 | compatible = "mtk,mt7621-sysc"; |
56 | compatible = "mtk,mt7621-sysc"; |
|
64 | reg = <0x0 0x100>; |
57 | reg = <0x0 0x100>; |
|
65 | }; |
58 | }; |
|
66 | |
59 | |
|
67 | wdt: wdt@100 { |
60 | wdt: wdt@100 { |
|
68 | compatible = "mediatek,mt7621-wdt"; |
61 | compatible = "mediatek,mt7621-wdt"; |
|
69 | reg = <0x100 0x100>; |
62 | reg = <0x100 0x100>; |
|
70 | }; |
63 | }; |
|
71 | |
64 | |
|
72 | gpio@600 { |
65 | gpio@600 { |
|
73 | #address-cells = <1>; |
66 | #address-cells = <1>; |
|
74 | #size-cells = <0>; |
67 | #size-cells = <0>; |
|
75 | |
68 | |
|
76 | compatible = "mtk,mt7621-gpio"; |
69 | compatible = "mtk,mt7621-gpio"; |
|
77 | reg = <0x600 0x100>; |
70 | reg = <0x600 0x100>; |
|
78 | |
71 | |
|
79 | gpio0: bank@0 { |
72 | gpio0: bank@0 { |
|
80 | reg = <0>; |
73 | reg = <0>; |
|
81 | compatible = "mtk,mt7621-gpio-bank"; |
74 | compatible = "mtk,mt7621-gpio-bank"; |
|
82 | gpio-controller; |
75 | gpio-controller; |
|
83 | #gpio-cells = <2>; |
76 | #gpio-cells = <2>; |
|
84 | }; |
77 | }; |
|
85 | |
78 | |
|
86 | gpio1: bank@1 { |
79 | gpio1: bank@1 { |
|
87 | reg = <1>; |
80 | reg = <1>; |
|
88 | compatible = "mtk,mt7621-gpio-bank"; |
81 | compatible = "mtk,mt7621-gpio-bank"; |
|
89 | gpio-controller; |
82 | gpio-controller; |
|
90 | #gpio-cells = <2>; |
83 | #gpio-cells = <2>; |
|
91 | }; |
84 | }; |
|
92 | |
85 | |
|
93 | gpio2: bank@2 { |
86 | gpio2: bank@2 { |
|
94 | reg = <2>; |
87 | reg = <2>; |
|
95 | compatible = "mtk,mt7621-gpio-bank"; |
88 | compatible = "mtk,mt7621-gpio-bank"; |
|
96 | gpio-controller; |
89 | gpio-controller; |
|
97 | #gpio-cells = <2>; |
90 | #gpio-cells = <2>; |
|
98 | }; |
91 | }; |
|
99 | }; |
92 | }; |
|
100 | |
93 | |
|
101 | i2c: i2c@900 { |
94 | i2c: i2c@900 { |
|
102 | compatible = "mediatek,mt7621-i2c"; |
95 | compatible = "mediatek,mt7621-i2c"; |
|
103 | reg = <0x900 0x100>; |
96 | reg = <0x900 0x100>; |
|
104 | |
97 | |
|
105 | clocks = <&sysclock>; |
98 | clocks = <&sysclock>; |
|
106 | |
99 | |
|
107 | resets = <&rstctrl 16>; |
100 | resets = <&rstctrl 16>; |
|
108 | reset-names = "i2c"; |
101 | reset-names = "i2c"; |
|
109 | |
102 | |
|
110 | #address-cells = <1>; |
103 | #address-cells = <1>; |
|
111 | #size-cells = <0>; |
104 | #size-cells = <0>; |
|
112 | |
105 | |
|
113 | status = "disabled"; |
106 | status = "disabled"; |
|
114 | |
107 | |
|
115 | pinctrl-names = "default"; |
108 | pinctrl-names = "default"; |
|
116 | pinctrl-0 = <&i2c_pins>; |
109 | pinctrl-0 = <&i2c_pins>; |
|
117 | }; |
110 | }; |
|
118 | |
111 | |
|
119 | i2s: i2s@a00 { |
112 | i2s: i2s@a00 { |
|
120 | compatible = "mediatek,mt7621-i2s"; |
113 | compatible = "mediatek,mt7621-i2s"; |
|
121 | reg = <0xa00 0x100>; |
114 | reg = <0xa00 0x100>; |
|
122 | |
115 | |
|
123 | clocks = <&sysclock>; |
116 | clocks = <&sysclock>; |
|
124 | |
117 | |
|
125 | resets = <&rstctrl 17>; |
118 | resets = <&rstctrl 17>; |
|
126 | reset-names = "i2s"; |
119 | reset-names = "i2s"; |
|
127 | |
120 | |
|
128 | interrupt-parent = <&gic>; |
121 | interrupt-parent = <&gic>; |
|
129 | interrupts = <GIC_SHARED 16 IRQ_TYPE_LEVEL_HIGH>; |
122 | interrupts = <GIC_SHARED 16 IRQ_TYPE_LEVEL_HIGH>; |
|
130 | |
123 | |
|
131 | txdma-req = <2>; |
124 | txdma-req = <2>; |
|
132 | rxdma-req = <3>; |
125 | rxdma-req = <3>; |
|
133 | |
126 | |
|
134 | dmas = <&gdma 4>, |
127 | dmas = <&gdma 4>, |
|
135 | <&gdma 6>; |
128 | <&gdma 6>; |
|
136 | dma-names = "tx", "rx"; |
129 | dma-names = "tx", "rx"; |
|
137 | |
130 | |
|
138 | status = "disabled"; |
131 | status = "disabled"; |
|
139 | }; |
132 | }; |
|
140 | |
133 | |
|
141 | systick: systick@500 { |
134 | systick: systick@d00 { |
|
142 | compatible = "ralink,mt7621-systick", "ralink,cevt-systick"; |
135 | compatible = "ralink,mt7621-systick", "ralink,cevt-systick"; |
|
143 | reg = <0x500 0x10>; |
136 | reg = <0xd00 0x10>; |
|
144 | |
137 | |
|
145 | resets = <&rstctrl 28>; |
138 | resets = <&rstctrl 28>; |
|
146 | reset-names = "intc"; |
139 | reset-names = "intc"; |
|
147 | |
140 | |
|
148 | interrupt-parent = <&gic>; |
141 | interrupt-parent = <&gic>; |
|
149 | interrupts = <GIC_SHARED 5 IRQ_TYPE_LEVEL_HIGH>; |
142 | interrupts = <GIC_SHARED 5 IRQ_TYPE_LEVEL_HIGH>; |
|
150 | }; |
143 | }; |
|
151 | |
144 | |
|
152 | memc: memc@5000 { |
145 | memc: memc@5000 { |
|
153 | compatible = "mtk,mt7621-memc"; |
146 | compatible = "mtk,mt7621-memc"; |
|
154 | reg = <0x5000 0x1000>; |
147 | reg = <0x300 0x100>; |
|
155 | }; |
148 | }; |
|
156 | |
149 | |
|
157 | cpc: cpc@1fbf0000 { |
150 | cpc: cpc@1fbf0000 { |
|
158 | compatible = "mtk,mt7621-cpc"; |
151 | compatible = "mtk,mt7621-cpc"; |
|
159 | reg = <0x1fbf0000 0x8000>; |
152 | reg = <0x1fbf0000 0x8000>; |
|
160 | }; |
153 | }; |
|
161 | |
154 | |
|
162 | mc: mc@1fbf8000 { |
155 | mc: mc@1fbf8000 { |
|
163 | compatible = "mtk,mt7621-mc"; |
156 | compatible = "mtk,mt7621-mc"; |
|
164 | reg = <0x1fbf8000 0x8000>; |
157 | reg = <0x1fbf8000 0x8000>; |
|
165 | }; |
158 | }; |
|
166 | |
159 | |
|
167 | uartlite: uartlite@c00 { |
160 | uartlite: uartlite@c00 { |
|
168 | compatible = "ns16550a"; |
161 | compatible = "ns16550a"; |
|
169 | reg = <0xc00 0x100>; |
162 | reg = <0xc00 0x100>; |
|
- | 163 | |
||
170 | |
164 | clocks = <&sysclock>; |
|
171 | clock-frequency = <50000000>; |
165 | clock-frequency = <50000000>; |
|
172 | |
166 | |
|
173 | interrupt-parent = <&gic>; |
167 | interrupt-parent = <&gic>; |
|
174 | interrupts = <GIC_SHARED 26 IRQ_TYPE_LEVEL_HIGH>; |
168 | interrupts = <GIC_SHARED 26 IRQ_TYPE_LEVEL_HIGH>; |
|
175 | |
169 | |
|
176 | reg-shift = <2>; |
170 | reg-shift = <2>; |
|
177 | reg-io-width = <4>; |
171 | reg-io-width = <4>; |
|
178 | no-loopback-test; |
172 | no-loopback-test; |
|
179 | }; |
173 | }; |
|
180 | |
- | ||
181 | uartlite2: uartlite2@d00 { |
- | ||
182 | compatible = "ns16550a"; |
- | ||
183 | reg = <0xd00 0x100>; |
- | ||
184 | |
- | ||
185 | clock-frequency = <50000000>; |
- | ||
186 | |
- | ||
187 | interrupt-parent = <&gic>; |
- | ||
188 | interrupts = <GIC_SHARED 27 IRQ_TYPE_LEVEL_HIGH>; |
- | ||
189 | |
- | ||
190 | reg-shift = <2>; |
- | ||
191 | reg-io-width = <4>; |
- | ||
192 | |
- | ||
193 | pinctrl-names = "default"; |
- | ||
194 | pinctrl-0 = <&uart2_pins>; |
- | ||
195 | |
- | ||
196 | status = "disabled"; |
- | ||
197 | }; |
- | ||
198 | |
- | ||
199 | uartlite3: uartlite3@e00 { |
- | ||
200 | compatible = "ns16550a"; |
- | ||
201 | reg = <0xe00 0x100>; |
- | ||
202 | |
- | ||
203 | clock-frequency = <50000000>; |
- | ||
204 | |
- | ||
205 | interrupt-parent = <&gic>; |
- | ||
206 | interrupts = <GIC_SHARED 28 IRQ_TYPE_LEVEL_HIGH>; |
- | ||
207 | |
- | ||
208 | reg-shift = <2>; |
- | ||
209 | reg-io-width = <4>; |
- | ||
210 | |
- | ||
211 | pinctrl-names = "default"; |
- | ||
212 | pinctrl-0 = <&uart3_pins>; |
- | ||
213 | |
- | ||
214 | status = "disabled"; |
- | ||
215 | }; |
- | ||
216 | |
174 | |
|
217 | spi0: spi@b00 { |
175 | spi0: spi@b00 { |
|
218 | status = "disabled"; |
176 | status = "disabled"; |
|
219 | |
177 | |
|
220 | compatible = "ralink,mt7621-spi"; |
178 | compatible = "ralink,mt7621-spi"; |
|
221 | reg = <0xb00 0x100>; |
179 | reg = <0xb00 0x100>; |
|
222 | |
180 | |
|
223 | clocks = <&pll MT7621_CLK_BUS>; |
181 | clocks = <&sysclock>; |
|
224 | |
182 | |
|
225 | resets = <&rstctrl 18>; |
183 | resets = <&rstctrl 18>; |
|
226 | reset-names = "spi"; |
184 | reset-names = "spi"; |
|
227 | |
185 | |
|
228 | #address-cells = <1>; |
186 | #address-cells = <1>; |
|
229 | #size-cells = <0>; |
187 | #size-cells = <0>; |
|
230 | |
188 | |
|
231 | pinctrl-names = "default"; |
189 | pinctrl-names = "default"; |
|
232 | pinctrl-0 = <&spi_pins>; |
190 | pinctrl-0 = <&spi_pins>; |
|
233 | }; |
191 | }; |
|
234 | |
192 | |
|
235 | gdma: gdma@2800 { |
193 | gdma: gdma@2800 { |
|
236 | compatible = "ralink,rt3883-gdma"; |
194 | compatible = "ralink,rt3883-gdma"; |
|
237 | reg = <0x2800 0x800>; |
195 | reg = <0x2800 0x800>; |
|
238 | |
196 | |
|
239 | resets = <&rstctrl 14>; |
197 | resets = <&rstctrl 14>; |
|
240 | reset-names = "dma"; |
198 | reset-names = "dma"; |
|
241 | |
199 | |
|
242 | interrupt-parent = <&gic>; |
200 | interrupt-parent = <&gic>; |
|
243 | interrupts = <0 13 4>; |
201 | interrupts = <0 13 4>; |
|
244 | |
202 | |
|
245 | #dma-cells = <1>; |
203 | #dma-cells = <1>; |
|
246 | #dma-channels = <16>; |
204 | #dma-channels = <16>; |
|
247 | #dma-requests = <16>; |
205 | #dma-requests = <16>; |
|
248 | |
206 | |
|
249 | status = "disabled"; |
207 | status = "disabled"; |
|
250 | }; |
208 | }; |
|
251 | |
209 | |
|
252 | hsdma: hsdma@7000 { |
210 | hsdma: hsdma@7000 { |
|
253 | compatible = "mediatek,mt7621-hsdma"; |
211 | compatible = "mediatek,mt7621-hsdma"; |
|
254 | reg = <0x7000 0x1000>; |
212 | reg = <0x7000 0x1000>; |
|
255 | |
213 | |
|
256 | resets = <&rstctrl 5>; |
214 | resets = <&rstctrl 5>; |
|
257 | reset-names = "hsdma"; |
215 | reset-names = "hsdma"; |
|
258 | |
216 | |
|
259 | interrupt-parent = <&gic>; |
217 | interrupt-parent = <&gic>; |
|
260 | interrupts = <0 11 4>; |
218 | interrupts = <0 11 4>; |
|
261 | |
219 | |
|
262 | #dma-cells = <1>; |
220 | #dma-cells = <1>; |
|
263 | #dma-channels = <1>; |
221 | #dma-channels = <1>; |
|
264 | #dma-requests = <1>; |
222 | #dma-requests = <1>; |
|
265 | |
223 | |
|
266 | status = "disabled"; |
224 | status = "disabled"; |
|
267 | }; |
225 | }; |
|
268 | }; |
226 | }; |
|
269 | |
227 | |
|
270 | pinctrl: pinctrl { |
228 | pinctrl: pinctrl { |
|
271 | compatible = "ralink,rt2880-pinmux"; |
229 | compatible = "ralink,rt2880-pinmux"; |
|
272 | pinctrl-names = "default"; |
230 | pinctrl-names = "default"; |
|
273 | pinctrl-0 = <&state_default>; |
231 | pinctrl-0 = <&state_default>; |
|
274 | |
232 | |
|
275 | state_default: pinctrl0 { |
233 | state_default: pinctrl0 { |
|
276 | }; |
234 | }; |
|
277 | |
235 | |
|
278 | i2c_pins: i2c_pins { |
236 | i2c_pins: i2c { |
|
279 | i2c_pins { |
237 | i2c { |
|
280 | ralink,group = "i2c"; |
238 | ralink,group = "i2c"; |
|
281 | ralink,function = "i2c"; |
239 | ralink,function = "i2c"; |
|
282 | }; |
240 | }; |
|
283 | }; |
241 | }; |
|
284 | |
242 | |
|
285 | spi_pins: spi_pins { |
243 | spi_pins: spi { |
|
286 | spi_pins { |
244 | spi { |
|
287 | ralink,group = "spi"; |
245 | ralink,group = "spi"; |
|
288 | ralink,function = "spi"; |
246 | ralink,function = "spi"; |
|
289 | }; |
247 | }; |
|
290 | }; |
248 | }; |
|
291 | |
249 | |
|
292 | uart1_pins: uart1 { |
250 | uart1_pins: uart1 { |
|
293 | uart1 { |
251 | uart1 { |
|
294 | ralink,group = "uart1"; |
252 | ralink,group = "uart1"; |
|
295 | ralink,function = "uart1"; |
253 | ralink,function = "uart1"; |
|
296 | }; |
254 | }; |
|
297 | }; |
255 | }; |
|
298 | |
256 | |
|
299 | uart2_pins: uart2 { |
257 | uart2_pins: uart2 { |
|
300 | uart2 { |
258 | uart2 { |
|
301 | ralink,group = "uart2"; |
259 | ralink,group = "uart2"; |
|
302 | ralink,function = "uart2"; |
260 | ralink,function = "uart2"; |
|
303 | }; |
261 | }; |
|
304 | }; |
262 | }; |
|
305 | |
263 | |
|
306 | uart3_pins: uart3 { |
264 | uart3_pins: uart3 { |
|
307 | uart3 { |
265 | uart3 { |
|
308 | ralink,group = "uart3"; |
266 | ralink,group = "uart3"; |
|
309 | ralink,function = "uart3"; |
267 | ralink,function = "uart3"; |
|
310 | }; |
268 | }; |
|
311 | }; |
269 | }; |
|
312 | |
270 | |
|
313 | rgmii1_pins: rgmii1 { |
271 | rgmii1_pins: rgmii1 { |
|
314 | rgmii1 { |
272 | rgmii1 { |
|
315 | ralink,group = "rgmii1"; |
273 | ralink,group = "rgmii1"; |
|
316 | ralink,function = "rgmii1"; |
274 | ralink,function = "rgmii1"; |
|
317 | }; |
275 | }; |
|
318 | }; |
276 | }; |
|
319 | |
277 | |
|
320 | rgmii2_pins: rgmii2 { |
278 | rgmii2_pins: rgmii2 { |
|
321 | rgmii2 { |
279 | rgmii2 { |
|
322 | ralink,group = "rgmii2"; |
280 | ralink,group = "rgmii2"; |
|
323 | ralink,function = "rgmii2"; |
281 | ralink,function = "rgmii2"; |
|
324 | }; |
282 | }; |
|
325 | }; |
283 | }; |
|
326 | |
284 | |
|
327 | mdio_pins: mdio { |
285 | mdio_pins: mdio { |
|
328 | mdio { |
286 | mdio { |
|
329 | ralink,group = "mdio"; |
287 | ralink,group = "mdio"; |
|
330 | ralink,function = "mdio"; |
288 | ralink,function = "mdio"; |
|
331 | }; |
289 | }; |
|
332 | }; |
290 | }; |
|
333 | |
291 | |
|
334 | pcie_pins: pcie { |
292 | pcie_pins: pcie { |
|
335 | pcie { |
293 | pcie { |
|
336 | ralink,group = "pcie"; |
294 | ralink,group = "pcie"; |
|
337 | ralink,function = "pcie rst"; |
295 | ralink,function = "pcie rst"; |
|
338 | }; |
296 | }; |
|
339 | }; |
297 | }; |
|
340 | |
298 | |
|
341 | nand_pins: nand { |
299 | nand_pins: nand { |
|
342 | spi-nand { |
300 | spi-nand { |
|
343 | ralink,group = "spi"; |
301 | ralink,group = "spi"; |
|
344 | ralink,function = "nand1"; |
302 | ralink,function = "nand1"; |
|
345 | }; |
303 | }; |
|
346 | |
304 | |
|
347 | sdhci-nand { |
305 | sdhci-nand { |
|
348 | ralink,group = "sdhci"; |
306 | ralink,group = "sdhci"; |
|
349 | ralink,function = "nand2"; |
307 | ralink,function = "nand2"; |
|
350 | }; |
308 | }; |
|
351 | }; |
309 | }; |
|
352 | |
310 | |
|
353 | sdhci_pins: sdhci { |
311 | sdhci_pins: sdhci { |
|
354 | sdhci { |
312 | sdhci { |
|
355 | ralink,group = "sdhci"; |
313 | ralink,group = "sdhci"; |
|
356 | ralink,function = "sdhci"; |
314 | ralink,function = "sdhci"; |
|
357 | }; |
315 | }; |
|
358 | }; |
316 | }; |
|
359 | }; |
317 | }; |
|
360 | |
318 | |
|
361 | rstctrl: rstctrl { |
319 | rstctrl: rstctrl { |
|
362 | compatible = "ralink,rt2880-reset"; |
320 | compatible = "ralink,rt2880-reset"; |
|
363 | #reset-cells = <1>; |
321 | #reset-cells = <1>; |
|
364 | }; |
322 | }; |
|
365 | |
323 | |
|
366 | clkctrl: clkctrl { |
324 | clkctrl: clkctrl { |
|
367 | compatible = "ralink,rt2880-clock"; |
325 | compatible = "ralink,rt2880-clock"; |
|
368 | #clock-cells = <1>; |
326 | #clock-cells = <1>; |
|
369 | }; |
327 | }; |
|
370 | |
328 | |
|
371 | sdhci: sdhci@1E130000 { |
329 | sdhci: sdhci@1E130000 { |
|
372 | status = "disabled"; |
330 | status = "disabled"; |
|
373 | |
331 | |
|
374 | compatible = "ralink,mt7620-sdhci"; |
332 | compatible = "ralink,mt7620-sdhci"; |
|
375 | reg = <0x1E130000 0x4000>; |
333 | reg = <0x1E130000 0x4000>; |
|
376 | |
334 | |
|
377 | interrupt-parent = <&gic>; |
335 | interrupt-parent = <&gic>; |
|
378 | interrupts = <GIC_SHARED 20 IRQ_TYPE_LEVEL_HIGH>; |
336 | interrupts = <GIC_SHARED 20 IRQ_TYPE_LEVEL_HIGH>; |
|
379 | |
- | ||
380 | pinctrl-names = "default"; |
- | ||
381 | pinctrl-0 = <&sdhci_pins>; |
- | ||
382 | }; |
337 | }; |
|
383 | |
338 | |
|
384 | xhci: xhci@1E1C0000 { |
339 | xhci: xhci@1E1C0000 { |
|
385 | #address-cells = <1>; |
- | ||
386 | #size-cells = <0>; |
- | ||
387 | status = "okay"; |
340 | status = "okay"; |
|
388 | |
341 | |
|
389 | compatible = "mediatek,mt8173-xhci"; |
342 | compatible = "mediatek,mt8173-xhci"; |
|
390 | reg = <0x1e1c0000 0x1000 |
343 | reg = <0x1e1c0000 0x1000 |
|
391 | 0x1e1d0700 0x0100>; |
344 | 0x1e1d0700 0x0100>; |
|
392 | reg-names = "mac", "ippc"; |
345 | reg-names = "mac", "ippc"; |
|
393 | |
346 | |
|
394 | clocks = <&sysclock>; |
347 | clocks = <&sysclock>; |
|
395 | clock-names = "sys_ck"; |
348 | clock-names = "sys_ck"; |
|
396 | |
349 | |
|
397 | interrupt-parent = <&gic>; |
350 | interrupt-parent = <&gic>; |
|
398 | interrupts = <GIC_SHARED 22 IRQ_TYPE_LEVEL_HIGH>; |
351 | interrupts = <GIC_SHARED 22 IRQ_TYPE_LEVEL_HIGH>; |
|
399 | |
- | ||
400 | /* |
- | ||
401 | * Port 1 of both hubs is one usb slot and referenced here. |
- | ||
402 | * The binding doesn't allow to address individual hubs. |
- | ||
403 | * hub 1 - port 1 is ehci and ohci, hub 2 - port 1 is xhci. |
- | ||
404 | */ |
- | ||
405 | xhci_ehci_port1: port@1 { |
- | ||
406 | reg = <1>; |
- | ||
407 | #trigger-source-cells = <0>; |
- | ||
408 | }; |
- | ||
409 | |
- | ||
410 | /* |
- | ||
411 | * Only the second usb hub has a second port. That port serves |
- | ||
412 | * ehci and ohci. |
- | ||
413 | */ |
- | ||
414 | ehci_port2: port@2 { |
- | ||
415 | reg = <2>; |
- | ||
416 | #trigger-source-cells = <0>; |
- | ||
417 | }; |
- | ||
418 | }; |
352 | }; |
|
419 | |
353 | |
|
420 | gic: interrupt-controller@1fbc0000 { |
354 | gic: interrupt-controller@1fbc0000 { |
|
421 | compatible = "mti,gic"; |
355 | compatible = "mti,gic"; |
|
422 | reg = <0x1fbc0000 0x2000>; |
356 | reg = <0x1fbc0000 0x2000>; |
|
423 | |
357 | |
|
424 | interrupt-controller; |
358 | interrupt-controller; |
|
425 | #interrupt-cells = <3>; |
359 | #interrupt-cells = <3>; |
|
426 | |
360 | |
|
427 | mti,reserved-cpu-vectors = <7>; |
361 | mti,reserved-cpu-vectors = <7>; |
|
428 | |
362 | |
|
429 | timer { |
363 | timer { |
|
430 | compatible = "mti,gic-timer"; |
364 | compatible = "mti,gic-timer"; |
|
431 | interrupts = <GIC_LOCAL 1 IRQ_TYPE_NONE>; |
365 | interrupts = <GIC_LOCAL 1 IRQ_TYPE_NONE>; |
|
432 | clocks = <&pll MT7621_CLK_CPU>; |
366 | clocks = <&cpuclock>; |
|
433 | }; |
367 | }; |
|
434 | }; |
368 | }; |
|
435 | |
369 | |
|
436 | nand: nand@1e003000 { |
370 | nand: nand@1e003000 { |
|
437 | status = "disabled"; |
371 | status = "disabled"; |
|
438 | |
372 | |
|
439 | compatible = "mtk,mt7621-nand"; |
373 | compatible = "mtk,mt7621-nand"; |
|
440 | bank-width = <2>; |
374 | bank-width = <2>; |
|
441 | reg = <0x1e003000 0x800 |
375 | reg = <0x1e003000 0x800 |
|
442 | 0x1e003800 0x800>; |
376 | 0x1e003800 0x800>; |
|
- | 377 | #address-cells = <1>; |
||
- | 378 | #size-cells = <1>; |
||
- | 379 | }; |
||
- | 380 | |
||
- | 381 | hnat: hnat@1e100000 { |
||
- | 382 | compatible = "mediatek,mt7623-hnat"; |
||
- | 383 | reg = <0x1e100000 0x10000>; |
||
- | 384 | mtketh-ppd = "eth0"; |
||
- | 385 | mtketh-lan = "eth0"; |
||
- | 386 | mtketh-wan = "eth0"; |
||
- | 387 | resets = <&rstctrl 0>; |
||
- | 388 | reset-names = "mtketh"; |
||
443 | }; |
389 | }; |
|
444 | |
390 | |
|
445 | ethernet: ethernet@1e100000 { |
391 | ethernet: ethernet@1e100000 { |
|
446 | compatible = "mediatek,mt7621-eth"; |
392 | compatible = "mediatek,mt7621-eth"; |
|
447 | reg = <0x1e100000 0x10000>; |
393 | reg = <0x1e100000 0x10000>; |
|
448 | |
394 | |
|
449 | #address-cells = <1>; |
395 | #address-cells = <1>; |
|
450 | #size-cells = <1>; |
396 | #size-cells = <0>; |
|
451 | |
397 | |
|
452 | resets = <&rstctrl 6 &rstctrl 23>; |
398 | resets = <&rstctrl 6 &rstctrl 23>; |
|
453 | reset-names = "fe", "eth"; |
399 | reset-names = "fe", "eth"; |
|
454 | |
400 | |
|
455 | interrupt-parent = <&gic>; |
401 | interrupt-parent = <&gic>; |
|
456 | interrupts = <GIC_SHARED 3 IRQ_TYPE_LEVEL_HIGH>; |
402 | interrupts = <GIC_SHARED 3 IRQ_TYPE_LEVEL_HIGH>; |
|
457 | |
403 | |
|
458 | mediatek,switch = <&gsw>; |
404 | mediatek,switch = <&gsw>; |
|
459 | |
405 | |
|
460 | mdio-bus { |
406 | mdio-bus { |
|
461 | #address-cells = <1>; |
407 | #address-cells = <1>; |
|
462 | #size-cells = <0>; |
408 | #size-cells = <0>; |
|
463 | |
409 | |
|
464 | phy1f: ethernet-phy@1f { |
410 | phy1f: ethernet-phy@1f { |
|
465 | reg = <0x1f>; |
411 | reg = <0x1f>; |
|
466 | phy-mode = "rgmii"; |
412 | phy-mode = "rgmii"; |
|
467 | }; |
413 | }; |
|
468 | }; |
414 | }; |
|
469 | |
- | ||
470 | hnat: hnat@0 { |
- | ||
471 | compatible = "mediatek,mt7623-hnat"; |
- | ||
472 | reg = <0 0x10000>; |
- | ||
473 | mtketh-ppd = "eth0"; |
- | ||
474 | mtketh-lan = "eth0"; |
- | ||
475 | mtketh-wan = "eth0"; |
- | ||
476 | resets = <&rstctrl 0>; |
- | ||
477 | reset-names = "mtketh"; |
- | ||
478 | }; |
- | ||
479 | }; |
415 | }; |
|
480 | |
416 | |
|
481 | gsw: gsw@1e110000 { |
417 | gsw: gsw@1e110000 { |
|
482 | compatible = "mediatek,mt7621-gsw"; |
418 | compatible = "mediatek,mt7621-gsw"; |
|
483 | reg = <0x1e110000 0x8000>; |
419 | reg = <0x1e110000 0x8000>; |
|
484 | interrupt-parent = <&gic>; |
420 | interrupt-parent = <&gic>; |
|
485 | interrupts = <GIC_SHARED 23 IRQ_TYPE_LEVEL_HIGH>; |
421 | interrupts = <GIC_SHARED 23 IRQ_TYPE_LEVEL_HIGH>; |
|
486 | }; |
422 | }; |
|
487 | |
423 | |
|
488 | pcie: pcie@1e140000 { |
424 | pcie: pcie@1e140000 { |
|
489 | compatible = "mediatek,mt7621-pci"; |
425 | compatible = "mediatek,mt7621-pci"; |
|
490 | reg = <0x1e140000 0x100 |
426 | reg = <0x1e140000 0x100 |
|
491 | 0x1e142000 0x100>; |
427 | 0x1e142000 0x100>; |
|
492 | |
428 | |
|
493 | #address-cells = <3>; |
429 | #address-cells = <3>; |
|
494 | #size-cells = <2>; |
430 | #size-cells = <2>; |
|
495 | |
431 | |
|
496 | pinctrl-names = "default"; |
432 | pinctrl-names = "default"; |
|
497 | pinctrl-0 = <&pcie_pins>; |
433 | pinctrl-0 = <&pcie_pins>; |
|
498 | |
434 | |
|
499 | device_type = "pci"; |
435 | device_type = "pci"; |
|
500 | |
436 | |
|
501 | bus-range = <0 255>; |
437 | bus-range = <0 255>; |
|
502 | ranges = < |
438 | ranges = < |
|
503 | 0x02000000 0 0x00000000 0x60000000 0 0x10000000 /* pci memory */ |
439 | 0x02000000 0 0x00000000 0x60000000 0 0x10000000 /* pci memory */ |
|
504 | 0x01000000 0 0x00000000 0x1e160000 0 0x00010000 /* io space */ |
440 | 0x01000000 0 0x00000000 0x1e160000 0 0x00010000 /* io space */ |
|
505 | >; |
441 | >; |
|
506 | |
442 | |
|
507 | interrupt-parent = <&gic>; |
443 | interrupt-parent = <&gic>; |
|
508 | interrupts = <GIC_SHARED 4 IRQ_TYPE_LEVEL_HIGH |
444 | interrupts = <GIC_SHARED 4 IRQ_TYPE_LEVEL_HIGH |
|
509 | GIC_SHARED 24 IRQ_TYPE_LEVEL_HIGH |
445 | GIC_SHARED 24 IRQ_TYPE_LEVEL_HIGH |
|
510 | GIC_SHARED 25 IRQ_TYPE_LEVEL_HIGH>; |
446 | GIC_SHARED 25 IRQ_TYPE_LEVEL_HIGH>; |
|
511 | |
447 | |
|
512 | status = "disabled"; |
448 | status = "disabled"; |
|
513 | |
449 | |
|
514 | resets = <&rstctrl 24 &rstctrl 25 &rstctrl 26>; |
450 | resets = <&rstctrl 24 &rstctrl 25 &rstctrl 26>; |
|
515 | reset-names = "pcie0", "pcie1", "pcie2"; |
451 | reset-names = "pcie0", "pcie1", "pcie2"; |
|
516 | clocks = <&clkctrl 24 &clkctrl 25 &clkctrl 26>; |
452 | clocks = <&clkctrl 24 &clkctrl 25 &clkctrl 26>; |
|
517 | clock-names = "pcie0", "pcie1", "pcie2"; |
453 | clock-names = "pcie0", "pcie1", "pcie2"; |
|
518 | |
454 | |
|
519 | pcie0: pcie@0,0 { |
455 | pcie0 { |
|
520 | reg = <0x0000 0 0 0 0>; |
456 | reg = <0x0000 0 0 0 0>; |
|
521 | |
457 | |
|
522 | #address-cells = <3>; |
458 | #address-cells = <3>; |
|
523 | #size-cells = <2>; |
459 | #size-cells = <2>; |
|
524 | |
460 | |
|
525 | ranges; |
461 | device_type = "pci"; |
|
526 | }; |
462 | }; |
|
527 | |
463 | |
|
528 | pcie1: pcie@1,0 { |
464 | pcie1 { |
|
529 | reg = <0x0800 0 0 0 0>; |
465 | reg = <0x0800 0 0 0 0>; |
|
530 | |
466 | |
|
531 | #address-cells = <3>; |
467 | #address-cells = <3>; |
|
532 | #size-cells = <2>; |
468 | #size-cells = <2>; |
|
533 | |
469 | |
|
534 | ranges; |
470 | device_type = "pci"; |
|
535 | }; |
471 | }; |
|
536 | |
472 | |
|
537 | pcie2: pcie@2,0 { |
473 | pcie2 { |
|
538 | reg = <0x1000 0 0 0 0>; |
474 | reg = <0x1000 0 0 0 0>; |
|
539 | |
475 | |
|
540 | #address-cells = <3>; |
476 | #address-cells = <3>; |
|
541 | #size-cells = <2>; |
477 | #size-cells = <2>; |
|
542 | |
478 | |
|
543 | ranges; |
479 | device_type = "pci"; |
|
544 | }; |
480 | }; |
|
545 | }; |
481 | }; |
|
546 | }; |
482 | }; |
|
547 | |
483 | |