Commit | Line | Data |
---|---|---|
9848ebeb JC |
1 | /* |
2 | * This file is dual-licensed: you can use it either under the terms | |
3 | * of the GPL or the X11 license, at your option. Note that this dual | |
4 | * licensing only applies to this file, and not this project as a | |
5 | * whole. | |
6 | * | |
7 | * a) This file is free software; you can redistribute it and/or | |
8 | * modify it under the terms of the GNU General Public License as | |
9 | * published by the Free Software Foundation; either version 2 of the | |
10 | * License, or (at your option) any later version. | |
11 | * | |
12 | * This file is distributed in the hope that it will be useful, | |
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | * GNU General Public License for more details. | |
16 | * | |
17 | * Or, alternatively, | |
18 | * | |
19 | * b) Permission is hereby granted, free of charge, to any person | |
20 | * obtaining a copy of this software and associated documentation | |
21 | * files (the "Software"), to deal in the Software without | |
22 | * restriction, including without limitation the rights to use, | |
23 | * copy, modify, merge, publish, distribute, sublicense, and/or | |
24 | * sell copies of the Software, and to permit persons to whom the | |
25 | * Software is furnished to do so, subject to the following | |
26 | * conditions: | |
27 | * | |
28 | * The above copyright notice and this permission notice shall be | |
29 | * included in all copies or substantial portions of the Software. | |
30 | * | |
31 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
32 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | |
33 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | |
34 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | |
35 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | |
36 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | |
37 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | |
38 | * OTHER DEALINGS IN THE SOFTWARE. | |
39 | */ | |
40 | ||
41 | #include <dt-bindings/gpio/gpio.h> | |
42 | #include <dt-bindings/interrupt-controller/irq.h> | |
43 | #include <dt-bindings/interrupt-controller/arm-gic.h> | |
44 | #include <dt-bindings/pinctrl/rockchip.h> | |
45 | #include <dt-bindings/clock/rk3228-cru.h> | |
7796031e | 46 | #include <dt-bindings/thermal/thermal.h> |
9848ebeb JC |
47 | |
48 | / { | |
0193273d JMC |
49 | #address-cells = <1>; |
50 | #size-cells = <1>; | |
51 | ||
9848ebeb JC |
52 | interrupt-parent = <&gic>; |
53 | ||
54 | aliases { | |
55 | serial0 = &uart0; | |
56 | serial1 = &uart1; | |
57 | serial2 = &uart2; | |
58 | }; | |
59 | ||
60 | cpus { | |
61 | #address-cells = <1>; | |
62 | #size-cells = <0>; | |
63 | ||
64 | cpu0: cpu@f00 { | |
65 | device_type = "cpu"; | |
66 | compatible = "arm,cortex-a7"; | |
67 | reg = <0xf00>; | |
68 | resets = <&cru SRST_CORE0>; | |
9f12da43 | 69 | operating-points-v2 = <&cpu0_opp_table>; |
7796031e | 70 | #cooling-cells = <2>; /* min followed by max */ |
9848ebeb JC |
71 | clock-latency = <40000>; |
72 | clocks = <&cru ARMCLK>; | |
73 | }; | |
74 | ||
75 | cpu1: cpu@f01 { | |
76 | device_type = "cpu"; | |
77 | compatible = "arm,cortex-a7"; | |
78 | reg = <0xf01>; | |
79 | resets = <&cru SRST_CORE1>; | |
9f12da43 | 80 | operating-points-v2 = <&cpu0_opp_table>; |
9848ebeb JC |
81 | }; |
82 | ||
83 | cpu2: cpu@f02 { | |
84 | device_type = "cpu"; | |
85 | compatible = "arm,cortex-a7"; | |
86 | reg = <0xf02>; | |
87 | resets = <&cru SRST_CORE2>; | |
9f12da43 | 88 | operating-points-v2 = <&cpu0_opp_table>; |
9848ebeb JC |
89 | }; |
90 | ||
91 | cpu3: cpu@f03 { | |
92 | device_type = "cpu"; | |
93 | compatible = "arm,cortex-a7"; | |
94 | reg = <0xf03>; | |
95 | resets = <&cru SRST_CORE3>; | |
9f12da43 FX |
96 | operating-points-v2 = <&cpu0_opp_table>; |
97 | }; | |
98 | }; | |
99 | ||
100 | cpu0_opp_table: opp_table0 { | |
101 | compatible = "operating-points-v2"; | |
102 | opp-shared; | |
103 | ||
104 | opp-408000000 { | |
105 | opp-hz = /bits/ 64 <408000000>; | |
106 | opp-microvolt = <950000>; | |
107 | clock-latency-ns = <40000>; | |
108 | opp-suspend; | |
109 | }; | |
110 | opp-600000000 { | |
111 | opp-hz = /bits/ 64 <600000000>; | |
112 | opp-microvolt = <975000>; | |
113 | }; | |
114 | opp-816000000 { | |
115 | opp-hz = /bits/ 64 <816000000>; | |
116 | opp-microvolt = <1000000>; | |
117 | }; | |
118 | opp-1008000000 { | |
119 | opp-hz = /bits/ 64 <1008000000>; | |
120 | opp-microvolt = <1175000>; | |
121 | }; | |
122 | opp-1200000000 { | |
123 | opp-hz = /bits/ 64 <1200000000>; | |
124 | opp-microvolt = <1275000>; | |
9848ebeb JC |
125 | }; |
126 | }; | |
127 | ||
128 | amba { | |
2ef7d5f3 | 129 | compatible = "simple-bus"; |
9848ebeb JC |
130 | #address-cells = <1>; |
131 | #size-cells = <1>; | |
132 | ranges; | |
133 | ||
134 | pdma: pdma@110f0000 { | |
135 | compatible = "arm,pl330", "arm,primecell"; | |
136 | reg = <0x110f0000 0x4000>; | |
137 | interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>, | |
138 | <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>; | |
139 | #dma-cells = <1>; | |
140 | clocks = <&cru ACLK_DMAC>; | |
141 | clock-names = "apb_pclk"; | |
142 | }; | |
143 | }; | |
144 | ||
145 | arm-pmu { | |
146 | compatible = "arm,cortex-a7-pmu"; | |
147 | interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>, | |
148 | <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>, | |
149 | <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>, | |
150 | <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; | |
151 | interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>; | |
152 | }; | |
153 | ||
154 | timer { | |
155 | compatible = "arm,armv7-timer"; | |
156 | arm,cpu-registers-not-fw-configured; | |
157 | interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, | |
158 | <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, | |
159 | <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, | |
160 | <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; | |
161 | clock-frequency = <24000000>; | |
162 | }; | |
163 | ||
164 | xin24m: oscillator { | |
165 | compatible = "fixed-clock"; | |
166 | clock-frequency = <24000000>; | |
167 | clock-output-names = "xin24m"; | |
168 | #clock-cells = <0>; | |
169 | }; | |
170 | ||
ccada248 XZ |
171 | i2s1: i2s1@100b0000 { |
172 | compatible = "rockchip,rk3228-i2s", "rockchip,rk3066-i2s"; | |
173 | reg = <0x100b0000 0x4000>; | |
174 | interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>; | |
175 | #address-cells = <1>; | |
176 | #size-cells = <0>; | |
177 | clock-names = "i2s_clk", "i2s_hclk"; | |
178 | clocks = <&cru SCLK_I2S1>, <&cru HCLK_I2S1_8CH>; | |
179 | dmas = <&pdma 14>, <&pdma 15>; | |
180 | dma-names = "tx", "rx"; | |
181 | pinctrl-names = "default"; | |
182 | pinctrl-0 = <&i2s1_bus>; | |
183 | status = "disabled"; | |
184 | }; | |
185 | ||
186 | i2s0: i2s0@100c0000 { | |
187 | compatible = "rockchip,rk3228-i2s", "rockchip,rk3066-i2s"; | |
188 | reg = <0x100c0000 0x4000>; | |
189 | interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>; | |
190 | #address-cells = <1>; | |
191 | #size-cells = <0>; | |
192 | clock-names = "i2s_clk", "i2s_hclk"; | |
193 | clocks = <&cru SCLK_I2S0>, <&cru HCLK_I2S0_8CH>; | |
194 | dmas = <&pdma 11>, <&pdma 12>; | |
195 | dma-names = "tx", "rx"; | |
196 | status = "disabled"; | |
197 | }; | |
198 | ||
4b456d20 SZ |
199 | spdif: spdif@100d0000 { |
200 | compatible = "rockchip,rk3228-spdif"; | |
201 | reg = <0x100d0000 0x1000>; | |
202 | interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>; | |
203 | clocks = <&cru SCLK_SPDIF>, <&cru HCLK_SPDIF_8CH>; | |
204 | clock-names = "mclk", "hclk"; | |
205 | dmas = <&pdma 10>; | |
206 | dma-names = "tx"; | |
207 | pinctrl-names = "default"; | |
208 | pinctrl-0 = <&spdif_tx>; | |
209 | status = "disabled"; | |
210 | }; | |
211 | ||
ccada248 XZ |
212 | i2s2: i2s2@100e0000 { |
213 | compatible = "rockchip,rk3228-i2s", "rockchip,rk3066-i2s"; | |
214 | reg = <0x100e0000 0x4000>; | |
215 | interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>; | |
216 | #address-cells = <1>; | |
217 | #size-cells = <0>; | |
218 | clock-names = "i2s_clk", "i2s_hclk"; | |
219 | clocks = <&cru SCLK_I2S2>, <&cru HCLK_I2S2_2CH>; | |
220 | dmas = <&pdma 0>, <&pdma 1>; | |
221 | dma-names = "tx", "rx"; | |
222 | status = "disabled"; | |
223 | }; | |
224 | ||
9848ebeb | 225 | grf: syscon@11000000 { |
3880af45 | 226 | compatible = "syscon", "simple-mfd"; |
9848ebeb | 227 | reg = <0x11000000 0x1000>; |
3880af45 WW |
228 | #address-cells = <1>; |
229 | #size-cells = <1>; | |
230 | ||
231 | u2phy0: usb2-phy@760 { | |
232 | compatible = "rockchip,rk3228-usb2phy"; | |
233 | reg = <0x0760 0x0c>; | |
234 | clocks = <&cru SCLK_OTGPHY0>; | |
235 | clock-names = "phyclk"; | |
236 | clock-output-names = "usb480m_phy0"; | |
237 | #clock-cells = <0>; | |
238 | status = "disabled"; | |
239 | ||
240 | u2phy0_otg: otg-port { | |
241 | interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>, | |
242 | <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>, | |
243 | <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>; | |
244 | interrupt-names = "otg-bvalid", "otg-id", | |
245 | "linestate"; | |
246 | #phy-cells = <0>; | |
247 | status = "disabled"; | |
248 | }; | |
249 | ||
250 | u2phy0_host: host-port { | |
251 | interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>; | |
252 | interrupt-names = "linestate"; | |
253 | #phy-cells = <0>; | |
254 | status = "disabled"; | |
255 | }; | |
256 | }; | |
257 | ||
258 | u2phy1: usb2-phy@800 { | |
259 | compatible = "rockchip,rk3228-usb2phy"; | |
260 | reg = <0x0800 0x0c>; | |
261 | clocks = <&cru SCLK_OTGPHY1>; | |
262 | clock-names = "phyclk"; | |
263 | clock-output-names = "usb480m_phy1"; | |
264 | #clock-cells = <0>; | |
265 | status = "disabled"; | |
266 | ||
267 | u2phy1_otg: otg-port { | |
268 | interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>; | |
269 | interrupt-names = "linestate"; | |
270 | #phy-cells = <0>; | |
271 | status = "disabled"; | |
272 | }; | |
273 | ||
274 | u2phy1_host: host-port { | |
275 | interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>; | |
276 | interrupt-names = "linestate"; | |
277 | #phy-cells = <0>; | |
278 | status = "disabled"; | |
279 | }; | |
280 | }; | |
9848ebeb JC |
281 | }; |
282 | ||
283 | uart0: serial@11010000 { | |
284 | compatible = "snps,dw-apb-uart"; | |
285 | reg = <0x11010000 0x100>; | |
286 | interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>; | |
287 | clock-frequency = <24000000>; | |
288 | clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>; | |
289 | clock-names = "baudclk", "apb_pclk"; | |
290 | pinctrl-names = "default"; | |
291 | pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>; | |
292 | reg-shift = <2>; | |
293 | reg-io-width = <4>; | |
294 | status = "disabled"; | |
295 | }; | |
296 | ||
297 | uart1: serial@11020000 { | |
298 | compatible = "snps,dw-apb-uart"; | |
299 | reg = <0x11020000 0x100>; | |
300 | interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>; | |
301 | clock-frequency = <24000000>; | |
302 | clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>; | |
303 | clock-names = "baudclk", "apb_pclk"; | |
304 | pinctrl-names = "default"; | |
305 | pinctrl-0 = <&uart1_xfer>; | |
306 | reg-shift = <2>; | |
307 | reg-io-width = <4>; | |
308 | status = "disabled"; | |
309 | }; | |
310 | ||
311 | uart2: serial@11030000 { | |
312 | compatible = "snps,dw-apb-uart"; | |
313 | reg = <0x11030000 0x100>; | |
314 | interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>; | |
315 | clock-frequency = <24000000>; | |
316 | clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>; | |
317 | clock-names = "baudclk", "apb_pclk"; | |
318 | pinctrl-names = "default"; | |
319 | pinctrl-0 = <&uart2_xfer>; | |
320 | reg-shift = <2>; | |
321 | reg-io-width = <4>; | |
322 | status = "disabled"; | |
323 | }; | |
324 | ||
d549df4b YY |
325 | i2c0: i2c@11050000 { |
326 | compatible = "rockchip,rk3228-i2c"; | |
327 | reg = <0x11050000 0x1000>; | |
328 | interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>; | |
329 | #address-cells = <1>; | |
330 | #size-cells = <0>; | |
331 | clock-names = "i2c"; | |
332 | clocks = <&cru PCLK_I2C0>; | |
333 | pinctrl-names = "default"; | |
334 | pinctrl-0 = <&i2c0_xfer>; | |
335 | status = "disabled"; | |
336 | }; | |
337 | ||
338 | i2c1: i2c@11060000 { | |
339 | compatible = "rockchip,rk3228-i2c"; | |
340 | reg = <0x11060000 0x1000>; | |
341 | interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; | |
342 | #address-cells = <1>; | |
343 | #size-cells = <0>; | |
344 | clock-names = "i2c"; | |
345 | clocks = <&cru PCLK_I2C1>; | |
346 | pinctrl-names = "default"; | |
347 | pinctrl-0 = <&i2c1_xfer>; | |
348 | status = "disabled"; | |
349 | }; | |
350 | ||
351 | i2c2: i2c@11070000 { | |
352 | compatible = "rockchip,rk3228-i2c"; | |
353 | reg = <0x11070000 0x1000>; | |
354 | interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>; | |
355 | #address-cells = <1>; | |
356 | #size-cells = <0>; | |
357 | clock-names = "i2c"; | |
358 | clocks = <&cru PCLK_I2C2>; | |
359 | pinctrl-names = "default"; | |
360 | pinctrl-0 = <&i2c2_xfer>; | |
361 | status = "disabled"; | |
362 | }; | |
363 | ||
364 | i2c3: i2c@11080000 { | |
365 | compatible = "rockchip,rk3228-i2c"; | |
366 | reg = <0x11080000 0x1000>; | |
367 | interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>; | |
368 | #address-cells = <1>; | |
369 | #size-cells = <0>; | |
370 | clock-names = "i2c"; | |
371 | clocks = <&cru PCLK_I2C3>; | |
372 | pinctrl-names = "default"; | |
373 | pinctrl-0 = <&i2c3_xfer>; | |
374 | status = "disabled"; | |
375 | }; | |
376 | ||
fa206984 FW |
377 | wdt: watchdog@110a0000 { |
378 | compatible = "snps,dw-wdt"; | |
379 | reg = <0x110a0000 0x100>; | |
380 | interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>; | |
381 | clocks = <&cru PCLK_CPU>; | |
382 | status = "disabled"; | |
383 | }; | |
384 | ||
9848ebeb JC |
385 | pwm0: pwm@110b0000 { |
386 | compatible = "rockchip,rk3288-pwm"; | |
387 | reg = <0x110b0000 0x10>; | |
388 | #pwm-cells = <3>; | |
389 | clocks = <&cru PCLK_PWM>; | |
390 | clock-names = "pwm"; | |
391 | pinctrl-names = "default"; | |
392 | pinctrl-0 = <&pwm0_pin>; | |
393 | status = "disabled"; | |
394 | }; | |
395 | ||
396 | pwm1: pwm@110b0010 { | |
397 | compatible = "rockchip,rk3288-pwm"; | |
398 | reg = <0x110b0010 0x10>; | |
399 | #pwm-cells = <3>; | |
400 | clocks = <&cru PCLK_PWM>; | |
401 | clock-names = "pwm"; | |
402 | pinctrl-names = "default"; | |
403 | pinctrl-0 = <&pwm1_pin>; | |
404 | status = "disabled"; | |
405 | }; | |
406 | ||
407 | pwm2: pwm@110b0020 { | |
408 | compatible = "rockchip,rk3288-pwm"; | |
409 | reg = <0x110b0020 0x10>; | |
410 | #pwm-cells = <3>; | |
411 | clocks = <&cru PCLK_PWM>; | |
412 | clock-names = "pwm"; | |
413 | pinctrl-names = "default"; | |
414 | pinctrl-0 = <&pwm2_pin>; | |
415 | status = "disabled"; | |
416 | }; | |
417 | ||
418 | pwm3: pwm@110b0030 { | |
419 | compatible = "rockchip,rk3288-pwm"; | |
420 | reg = <0x110b0030 0x10>; | |
421 | #pwm-cells = <2>; | |
422 | clocks = <&cru PCLK_PWM>; | |
423 | clock-names = "pwm"; | |
424 | pinctrl-names = "default"; | |
425 | pinctrl-0 = <&pwm3_pin>; | |
426 | status = "disabled"; | |
427 | }; | |
428 | ||
429 | timer: timer@110c0000 { | |
b72af346 | 430 | compatible = "rockchip,rk3228-timer", "rockchip,rk3288-timer"; |
9848ebeb JC |
431 | reg = <0x110c0000 0x20>; |
432 | interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>; | |
433 | clocks = <&xin24m>, <&cru PCLK_TIMER>; | |
434 | clock-names = "timer", "pclk"; | |
435 | }; | |
436 | ||
437 | cru: clock-controller@110e0000 { | |
438 | compatible = "rockchip,rk3228-cru"; | |
439 | reg = <0x110e0000 0x1000>; | |
440 | rockchip,grf = <&grf>; | |
441 | #clock-cells = <1>; | |
442 | #reset-cells = <1>; | |
30ee5814 EZ |
443 | assigned-clocks = |
444 | <&cru PLL_GPLL>, <&cru ARMCLK>, | |
445 | <&cru PLL_CPLL>, <&cru ACLK_PERI>, | |
446 | <&cru HCLK_PERI>, <&cru PCLK_PERI>, | |
447 | <&cru ACLK_CPU>, <&cru HCLK_CPU>, | |
448 | <&cru PCLK_CPU>; | |
449 | assigned-clock-rates = | |
450 | <594000000>, <816000000>, | |
451 | <500000000>, <150000000>, | |
452 | <150000000>, <75000000>, | |
453 | <150000000>, <150000000>, | |
454 | <75000000>; | |
9848ebeb JC |
455 | }; |
456 | ||
7796031e CW |
457 | thermal-zones { |
458 | cpu_thermal: cpu-thermal { | |
459 | polling-delay-passive = <100>; /* milliseconds */ | |
460 | polling-delay = <5000>; /* milliseconds */ | |
461 | ||
462 | thermal-sensors = <&tsadc 0>; | |
463 | ||
464 | trips { | |
465 | cpu_alert0: cpu_alert0 { | |
466 | temperature = <70000>; /* millicelsius */ | |
467 | hysteresis = <2000>; /* millicelsius */ | |
468 | type = "passive"; | |
469 | }; | |
470 | cpu_alert1: cpu_alert1 { | |
471 | temperature = <75000>; /* millicelsius */ | |
472 | hysteresis = <2000>; /* millicelsius */ | |
473 | type = "passive"; | |
474 | }; | |
475 | cpu_crit: cpu_crit { | |
476 | temperature = <90000>; /* millicelsius */ | |
477 | hysteresis = <2000>; /* millicelsius */ | |
478 | type = "critical"; | |
479 | }; | |
480 | }; | |
481 | ||
482 | cooling-maps { | |
483 | map0 { | |
484 | trip = <&cpu_alert0>; | |
485 | cooling-device = | |
486 | <&cpu0 THERMAL_NO_LIMIT 6>; | |
487 | }; | |
488 | map1 { | |
489 | trip = <&cpu_alert1>; | |
490 | cooling-device = | |
491 | <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; | |
492 | }; | |
493 | }; | |
494 | }; | |
495 | }; | |
496 | ||
497 | tsadc: tsadc@11150000 { | |
498 | compatible = "rockchip,rk3228-tsadc"; | |
499 | reg = <0x11150000 0x100>; | |
500 | interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>; | |
501 | clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>; | |
502 | clock-names = "tsadc", "apb_pclk"; | |
2b3f2f37 RH |
503 | assigned-clocks = <&cru SCLK_TSADC>; |
504 | assigned-clock-rates = <32768>; | |
7796031e CW |
505 | resets = <&cru SRST_TSADC>; |
506 | reset-names = "tsadc-apb"; | |
507 | pinctrl-names = "init", "default", "sleep"; | |
508 | pinctrl-0 = <&otp_gpio>; | |
509 | pinctrl-1 = <&otp_out>; | |
510 | pinctrl-2 = <&otp_gpio>; | |
511 | #thermal-sensor-cells = <0>; | |
512 | rockchip,hw-tshut-temp = <95000>; | |
513 | status = "disabled"; | |
514 | }; | |
515 | ||
9848ebeb JC |
516 | emmc: dwmmc@30020000 { |
517 | compatible = "rockchip,rk3288-dw-mshc"; | |
518 | reg = <0x30020000 0x4000>; | |
519 | interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>; | |
520 | clock-frequency = <37500000>; | |
6a8883d6 | 521 | max-frequency = <37500000>; |
9848ebeb JC |
522 | clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>, |
523 | <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>; | |
524 | clock-names = "biu", "ciu", "ciu_drv", "ciu_sample"; | |
525 | bus-width = <8>; | |
526 | default-sample-phase = <158>; | |
527 | num-slots = <1>; | |
528 | fifo-depth = <0x100>; | |
529 | pinctrl-names = "default"; | |
530 | pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>; | |
2d1f1d4c HS |
531 | resets = <&cru SRST_EMMC>; |
532 | reset-names = "reset"; | |
9848ebeb JC |
533 | status = "disabled"; |
534 | }; | |
535 | ||
3880af45 WW |
536 | usb_otg: usb@30040000 { |
537 | compatible = "rockchip,rk3228-usb", "rockchip,rk3066-usb", | |
538 | "snps,dwc2"; | |
539 | reg = <0x30040000 0x40000>; | |
540 | interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>; | |
541 | clocks = <&cru HCLK_OTG>; | |
542 | clock-names = "otg"; | |
543 | dr_mode = "otg"; | |
544 | g-np-tx-fifo-size = <16>; | |
545 | g-rx-fifo-size = <280>; | |
546 | g-tx-fifo-size = <256 128 128 64 32 16>; | |
547 | g-use-dma; | |
548 | phys = <&u2phy0_otg>; | |
549 | phy-names = "usb2-phy"; | |
550 | status = "disabled"; | |
551 | }; | |
552 | ||
553 | usb_host0_ehci: usb@30080000 { | |
554 | compatible = "generic-ehci"; | |
555 | reg = <0x30080000 0x20000>; | |
556 | interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>; | |
557 | clocks = <&cru HCLK_HOST0>, <&u2phy0>; | |
558 | clock-names = "usbhost", "utmi"; | |
559 | phys = <&u2phy0_host>; | |
560 | phy-names = "usb"; | |
561 | status = "disabled"; | |
562 | }; | |
563 | ||
564 | usb_host0_ohci: usb@300a0000 { | |
565 | compatible = "generic-ohci"; | |
566 | reg = <0x300a0000 0x20000>; | |
567 | interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>; | |
568 | clocks = <&cru HCLK_HOST0>, <&u2phy0>; | |
569 | clock-names = "usbhost", "utmi"; | |
570 | phys = <&u2phy0_host>; | |
571 | phy-names = "usb"; | |
572 | status = "disabled"; | |
573 | }; | |
574 | ||
575 | usb_host1_ehci: usb@300c0000 { | |
576 | compatible = "generic-ehci"; | |
577 | reg = <0x300c0000 0x20000>; | |
578 | interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>; | |
579 | clocks = <&cru HCLK_HOST1>, <&u2phy1>; | |
580 | clock-names = "usbhost", "utmi"; | |
581 | phys = <&u2phy1_otg>; | |
582 | phy-names = "usb"; | |
583 | status = "disabled"; | |
584 | }; | |
585 | ||
586 | usb_host1_ohci: usb@300e0000 { | |
587 | compatible = "generic-ohci"; | |
588 | reg = <0x300e0000 0x20000>; | |
589 | interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>; | |
590 | clocks = <&cru HCLK_HOST1>, <&u2phy1>; | |
591 | clock-names = "usbhost", "utmi"; | |
592 | phys = <&u2phy1_otg>; | |
593 | phy-names = "usb"; | |
594 | status = "disabled"; | |
595 | }; | |
596 | ||
597 | usb_host2_ehci: usb@30100000 { | |
598 | compatible = "generic-ehci"; | |
599 | reg = <0x30100000 0x20000>; | |
600 | interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>; | |
601 | clocks = <&cru HCLK_HOST2>, <&u2phy1>; | |
602 | phys = <&u2phy1_host>; | |
603 | phy-names = "usb"; | |
604 | clock-names = "usbhost", "utmi"; | |
605 | status = "disabled"; | |
606 | }; | |
607 | ||
608 | usb_host2_ohci: usb@30120000 { | |
609 | compatible = "generic-ohci"; | |
610 | reg = <0x30120000 0x20000>; | |
611 | interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>; | |
612 | clocks = <&cru HCLK_HOST2>, <&u2phy1>; | |
613 | clock-names = "usbhost", "utmi"; | |
614 | phys = <&u2phy1_host>; | |
615 | phy-names = "usb"; | |
616 | status = "disabled"; | |
617 | }; | |
618 | ||
5d3d7c72 XZ |
619 | gmac: ethernet@30200000 { |
620 | compatible = "rockchip,rk3228-gmac"; | |
621 | reg = <0x30200000 0x10000>; | |
622 | interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>; | |
623 | interrupt-names = "macirq"; | |
624 | clocks = <&cru SCLK_MAC>, <&cru SCLK_MAC_RX>, | |
625 | <&cru SCLK_MAC_TX>, <&cru SCLK_MAC_REF>, | |
626 | <&cru SCLK_MAC_REFOUT>, <&cru ACLK_GMAC>, | |
627 | <&cru PCLK_GMAC>; | |
628 | clock-names = "stmmaceth", "mac_clk_rx", | |
629 | "mac_clk_tx", "clk_mac_ref", | |
630 | "clk_mac_refout", "aclk_mac", | |
631 | "pclk_mac"; | |
632 | resets = <&cru SRST_GMAC>; | |
633 | reset-names = "stmmaceth"; | |
634 | rockchip,grf = <&grf>; | |
635 | status = "disabled"; | |
636 | }; | |
637 | ||
9848ebeb JC |
638 | gic: interrupt-controller@32010000 { |
639 | compatible = "arm,gic-400"; | |
640 | interrupt-controller; | |
641 | #interrupt-cells = <3>; | |
642 | #address-cells = <0>; | |
643 | ||
644 | reg = <0x32011000 0x1000>, | |
387720c9 | 645 | <0x32012000 0x2000>, |
9848ebeb JC |
646 | <0x32014000 0x2000>, |
647 | <0x32016000 0x2000>; | |
648 | interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; | |
649 | }; | |
650 | ||
651 | pinctrl: pinctrl { | |
652 | compatible = "rockchip,rk3228-pinctrl"; | |
653 | rockchip,grf = <&grf>; | |
654 | #address-cells = <1>; | |
655 | #size-cells = <1>; | |
656 | ranges; | |
657 | ||
658 | gpio0: gpio0@11110000 { | |
659 | compatible = "rockchip,gpio-bank"; | |
660 | reg = <0x11110000 0x100>; | |
661 | interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>; | |
662 | clocks = <&cru PCLK_GPIO0>; | |
663 | ||
664 | gpio-controller; | |
665 | #gpio-cells = <2>; | |
666 | ||
667 | interrupt-controller; | |
668 | #interrupt-cells = <2>; | |
669 | }; | |
670 | ||
671 | gpio1: gpio1@11120000 { | |
672 | compatible = "rockchip,gpio-bank"; | |
673 | reg = <0x11120000 0x100>; | |
674 | interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>; | |
675 | clocks = <&cru PCLK_GPIO1>; | |
676 | ||
677 | gpio-controller; | |
678 | #gpio-cells = <2>; | |
679 | ||
680 | interrupt-controller; | |
681 | #interrupt-cells = <2>; | |
682 | }; | |
683 | ||
684 | gpio2: gpio2@11130000 { | |
685 | compatible = "rockchip,gpio-bank"; | |
686 | reg = <0x11130000 0x100>; | |
687 | interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>; | |
688 | clocks = <&cru PCLK_GPIO2>; | |
689 | ||
690 | gpio-controller; | |
691 | #gpio-cells = <2>; | |
692 | ||
693 | interrupt-controller; | |
694 | #interrupt-cells = <2>; | |
695 | }; | |
696 | ||
697 | gpio3: gpio3@11140000 { | |
698 | compatible = "rockchip,gpio-bank"; | |
699 | reg = <0x11140000 0x100>; | |
700 | interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>; | |
701 | clocks = <&cru PCLK_GPIO3>; | |
702 | ||
703 | gpio-controller; | |
704 | #gpio-cells = <2>; | |
705 | ||
706 | interrupt-controller; | |
707 | #interrupt-cells = <2>; | |
708 | }; | |
709 | ||
710 | pcfg_pull_up: pcfg-pull-up { | |
711 | bias-pull-up; | |
712 | }; | |
713 | ||
714 | pcfg_pull_down: pcfg-pull-down { | |
715 | bias-pull-down; | |
716 | }; | |
717 | ||
718 | pcfg_pull_none: pcfg-pull-none { | |
719 | bias-disable; | |
720 | }; | |
721 | ||
5d3d7c72 XZ |
722 | pcfg_pull_none_drv_12ma: pcfg-pull-none-drv-12ma { |
723 | drive-strength = <12>; | |
724 | }; | |
725 | ||
9848ebeb JC |
726 | emmc { |
727 | emmc_clk: emmc-clk { | |
728 | rockchip,pins = <2 7 RK_FUNC_2 &pcfg_pull_none>; | |
729 | }; | |
730 | ||
731 | emmc_cmd: emmc-cmd { | |
732 | rockchip,pins = <1 22 RK_FUNC_2 &pcfg_pull_none>; | |
733 | }; | |
734 | ||
735 | emmc_bus8: emmc-bus8 { | |
736 | rockchip,pins = <1 24 RK_FUNC_2 &pcfg_pull_none>, | |
737 | <1 25 RK_FUNC_2 &pcfg_pull_none>, | |
738 | <1 26 RK_FUNC_2 &pcfg_pull_none>, | |
739 | <1 27 RK_FUNC_2 &pcfg_pull_none>, | |
740 | <1 28 RK_FUNC_2 &pcfg_pull_none>, | |
741 | <1 29 RK_FUNC_2 &pcfg_pull_none>, | |
742 | <1 30 RK_FUNC_2 &pcfg_pull_none>, | |
743 | <1 31 RK_FUNC_2 &pcfg_pull_none>; | |
744 | }; | |
745 | }; | |
746 | ||
5d3d7c72 XZ |
747 | gmac { |
748 | rgmii_pins: rgmii-pins { | |
749 | rockchip,pins = <2 14 RK_FUNC_1 &pcfg_pull_none>, | |
750 | <2 12 RK_FUNC_1 &pcfg_pull_none>, | |
751 | <2 25 RK_FUNC_1 &pcfg_pull_none>, | |
752 | <2 19 RK_FUNC_1 &pcfg_pull_none_drv_12ma>, | |
753 | <2 18 RK_FUNC_1 &pcfg_pull_none_drv_12ma>, | |
754 | <2 22 RK_FUNC_1 &pcfg_pull_none_drv_12ma>, | |
755 | <2 23 RK_FUNC_1 &pcfg_pull_none_drv_12ma>, | |
756 | <2 9 RK_FUNC_1 &pcfg_pull_none_drv_12ma>, | |
757 | <2 13 RK_FUNC_1 &pcfg_pull_none_drv_12ma>, | |
758 | <2 17 RK_FUNC_1 &pcfg_pull_none>, | |
759 | <2 16 RK_FUNC_1 &pcfg_pull_none>, | |
760 | <2 21 RK_FUNC_2 &pcfg_pull_none>, | |
761 | <2 20 RK_FUNC_2 &pcfg_pull_none>, | |
762 | <2 11 RK_FUNC_1 &pcfg_pull_none>, | |
763 | <2 8 RK_FUNC_1 &pcfg_pull_none>; | |
764 | }; | |
765 | ||
766 | rmii_pins: rmii-pins { | |
767 | rockchip,pins = <2 14 RK_FUNC_1 &pcfg_pull_none>, | |
768 | <2 12 RK_FUNC_1 &pcfg_pull_none>, | |
769 | <2 25 RK_FUNC_1 &pcfg_pull_none>, | |
770 | <2 19 RK_FUNC_1 &pcfg_pull_none_drv_12ma>, | |
771 | <2 18 RK_FUNC_1 &pcfg_pull_none_drv_12ma>, | |
772 | <2 13 RK_FUNC_1 &pcfg_pull_none_drv_12ma>, | |
773 | <2 17 RK_FUNC_1 &pcfg_pull_none>, | |
774 | <2 16 RK_FUNC_1 &pcfg_pull_none>, | |
775 | <2 8 RK_FUNC_1 &pcfg_pull_none>, | |
776 | <2 15 RK_FUNC_1 &pcfg_pull_none>; | |
777 | }; | |
778 | ||
779 | phy_pins: phy-pins { | |
780 | rockchip,pins = <2 14 RK_FUNC_2 &pcfg_pull_none>, | |
781 | <2 8 RK_FUNC_2 &pcfg_pull_none>; | |
782 | }; | |
783 | }; | |
784 | ||
d549df4b YY |
785 | i2c0 { |
786 | i2c0_xfer: i2c0-xfer { | |
787 | rockchip,pins = <0 0 RK_FUNC_1 &pcfg_pull_none>, | |
788 | <0 1 RK_FUNC_1 &pcfg_pull_none>; | |
789 | }; | |
790 | }; | |
791 | ||
792 | i2c1 { | |
793 | i2c1_xfer: i2c1-xfer { | |
794 | rockchip,pins = <0 2 RK_FUNC_1 &pcfg_pull_none>, | |
795 | <0 3 RK_FUNC_1 &pcfg_pull_none>; | |
796 | }; | |
797 | }; | |
798 | ||
799 | i2c2 { | |
800 | i2c2_xfer: i2c2-xfer { | |
801 | rockchip,pins = <2 20 RK_FUNC_1 &pcfg_pull_none>, | |
802 | <2 21 RK_FUNC_1 &pcfg_pull_none>; | |
803 | }; | |
804 | }; | |
805 | ||
806 | i2c3 { | |
807 | i2c3_xfer: i2c3-xfer { | |
808 | rockchip,pins = <0 6 RK_FUNC_1 &pcfg_pull_none>, | |
809 | <0 7 RK_FUNC_1 &pcfg_pull_none>; | |
810 | }; | |
811 | }; | |
812 | ||
ccada248 XZ |
813 | i2s1 { |
814 | i2s1_bus: i2s1-bus { | |
815 | rockchip,pins = <0 8 RK_FUNC_1 &pcfg_pull_none>, | |
816 | <0 9 RK_FUNC_1 &pcfg_pull_none>, | |
817 | <0 11 RK_FUNC_1 &pcfg_pull_none>, | |
818 | <0 12 RK_FUNC_1 &pcfg_pull_none>, | |
819 | <0 13 RK_FUNC_1 &pcfg_pull_none>, | |
820 | <0 14 RK_FUNC_1 &pcfg_pull_none>, | |
9d420e9b SZ |
821 | <1 2 RK_FUNC_2 &pcfg_pull_none>, |
822 | <1 4 RK_FUNC_2 &pcfg_pull_none>, | |
823 | <1 5 RK_FUNC_2 &pcfg_pull_none>; | |
ccada248 XZ |
824 | }; |
825 | }; | |
826 | ||
9848ebeb JC |
827 | pwm0 { |
828 | pwm0_pin: pwm0-pin { | |
829 | rockchip,pins = <3 21 RK_FUNC_1 &pcfg_pull_none>; | |
830 | }; | |
831 | }; | |
832 | ||
833 | pwm1 { | |
834 | pwm1_pin: pwm1-pin { | |
835 | rockchip,pins = <0 30 RK_FUNC_2 &pcfg_pull_none>; | |
836 | }; | |
837 | }; | |
838 | ||
839 | pwm2 { | |
840 | pwm2_pin: pwm2-pin { | |
841 | rockchip,pins = <1 12 RK_FUNC_2 &pcfg_pull_none>; | |
842 | }; | |
843 | }; | |
844 | ||
845 | pwm3 { | |
846 | pwm3_pin: pwm3-pin { | |
847 | rockchip,pins = <1 11 RK_FUNC_2 &pcfg_pull_none>; | |
848 | }; | |
849 | }; | |
850 | ||
4b456d20 SZ |
851 | spdif { |
852 | spdif_tx: spdif-tx { | |
853 | rockchip,pins = <3 31 RK_FUNC_2 &pcfg_pull_none>; | |
854 | }; | |
855 | }; | |
856 | ||
7796031e CW |
857 | tsadc { |
858 | otp_gpio: otp-gpio { | |
859 | rockchip,pins = <0 24 RK_FUNC_GPIO &pcfg_pull_none>; | |
860 | }; | |
861 | ||
862 | otp_out: otp-out { | |
863 | rockchip,pins = <0 24 RK_FUNC_2 &pcfg_pull_none>; | |
864 | }; | |
865 | }; | |
866 | ||
9848ebeb JC |
867 | uart0 { |
868 | uart0_xfer: uart0-xfer { | |
869 | rockchip,pins = <2 26 RK_FUNC_1 &pcfg_pull_none>, | |
870 | <2 27 RK_FUNC_1 &pcfg_pull_none>; | |
871 | }; | |
872 | ||
873 | uart0_cts: uart0-cts { | |
874 | rockchip,pins = <2 29 RK_FUNC_1 &pcfg_pull_none>; | |
875 | }; | |
876 | ||
877 | uart0_rts: uart0-rts { | |
878 | rockchip,pins = <0 17 RK_FUNC_1 &pcfg_pull_none>; | |
879 | }; | |
880 | }; | |
881 | ||
882 | uart1 { | |
883 | uart1_xfer: uart1-xfer { | |
884 | rockchip,pins = <1 9 RK_FUNC_1 &pcfg_pull_none>, | |
885 | <1 10 RK_FUNC_1 &pcfg_pull_none>; | |
886 | }; | |
887 | ||
888 | uart1_cts: uart1-cts { | |
889 | rockchip,pins = <1 8 RK_FUNC_1 &pcfg_pull_none>; | |
890 | }; | |
891 | ||
892 | uart1_rts: uart1-rts { | |
893 | rockchip,pins = <1 11 RK_FUNC_1 &pcfg_pull_none>; | |
894 | }; | |
895 | }; | |
896 | ||
897 | uart2 { | |
898 | uart2_xfer: uart2-xfer { | |
02131477 | 899 | rockchip,pins = <1 18 RK_FUNC_2 &pcfg_pull_up>, |
9848ebeb JC |
900 | <1 19 RK_FUNC_2 &pcfg_pull_none>; |
901 | }; | |
902 | ||
738e4511 FW |
903 | uart21_xfer: uart21-xfer { |
904 | rockchip,pins = <1 10 RK_FUNC_2 &pcfg_pull_up>, | |
905 | <1 9 RK_FUNC_2 &pcfg_pull_none>; | |
906 | }; | |
907 | ||
9848ebeb JC |
908 | uart2_cts: uart2-cts { |
909 | rockchip,pins = <0 25 RK_FUNC_1 &pcfg_pull_none>; | |
910 | }; | |
911 | ||
912 | uart2_rts: uart2-rts { | |
913 | rockchip,pins = <0 24 RK_FUNC_1 &pcfg_pull_none>; | |
914 | }; | |
915 | }; | |
916 | }; | |
917 | }; |