Debian Codegraph @

scripts/dtc/include-prefixes/arm64/rockchip/rk3368.dtsi

raw
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3 * Copyright (c) 2015 Heiko Stuebner <[email protected]>
4 */
5
6 #include <dt-bindings/clock/rk3368-cru.h>
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
9 #include <dt-bindings/interrupt-controller/arm-gic.h>
10 #include <dt-bindings/pinctrl/rockchip.h>
11 #include <dt-bindings/power/rk3368-power.h>
12 #include <dt-bindings/soc/rockchip,boot-mode.h>
13 #include <dt-bindings/thermal/thermal.h>
14
15 / {
16 compatible = "rockchip,rk3368";
17 interrupt-parent = <&gic>;
18 #address-cells = <2>;
19 #size-cells = <2>;
20
21 aliases {
22 gpio0 = &gpio0;
23 gpio1 = &gpio1;
24 gpio2 = &gpio2;
25 gpio3 = &gpio3;
26 i2c0 = &i2c0;
27 i2c1 = &i2c1;
28 i2c2 = &i2c2;
29 i2c3 = &i2c3;
30 i2c4 = &i2c4;
31 i2c5 = &i2c5;
32 serial0 = &uart0;
33 serial1 = &uart1;
34 serial2 = &uart2;
35 serial3 = &uart3;
36 serial4 = &uart4;
37 spi0 = &spi0;
38 spi1 = &spi1;
39 spi2 = &spi2;
40 };
41
42 cpus {
43 #address-cells = <0x2>;
44 #size-cells = <0x0>;
45
46 cpu-map {
47 cluster0 {
48 core0 {
49 cpu = <&cpu_b0>;
50 };
51 core1 {
52 cpu = <&cpu_b1>;
53 };
54 core2 {
55 cpu = <&cpu_b2>;
56 };
57 core3 {
58 cpu = <&cpu_b3>;
59 };
60 };
61
62 cluster1 {
63 core0 {
64 cpu = <&cpu_l0>;
65 };
66 core1 {
67 cpu = <&cpu_l1>;
68 };
69 core2 {
70 cpu = <&cpu_l2>;
71 };
72 core3 {
73 cpu = <&cpu_l3>;
74 };
75 };
76 };
77
78 cpu_l0: cpu@0 {
79 device_type = "cpu";
80 compatible = "arm,cortex-a53";
81 reg = <0x0 0x0>;
82 enable-method = "psci";
83 #cooling-cells = <2>; /* min followed by max */
84 };
85
86 cpu_l1: cpu@1 {
87 device_type = "cpu";
88 compatible = "arm,cortex-a53";
89 reg = <0x0 0x1>;
90 enable-method = "psci";
91 #cooling-cells = <2>; /* min followed by max */
92 };
93
94 cpu_l2: cpu@2 {
95 device_type = "cpu";
96 compatible = "arm,cortex-a53";
97 reg = <0x0 0x2>;
98 enable-method = "psci";
99 #cooling-cells = <2>; /* min followed by max */
100 };
101
102 cpu_l3: cpu@3 {
103 device_type = "cpu";
104 compatible = "arm,cortex-a53";
105 reg = <0x0 0x3>;
106 enable-method = "psci";
107 #cooling-cells = <2>; /* min followed by max */
108 };
109
110 cpu_b0: cpu@100 {
111 device_type = "cpu";
112 compatible = "arm,cortex-a53";
113 reg = <0x0 0x100>;
114 enable-method = "psci";
115 #cooling-cells = <2>; /* min followed by max */
116 };
117
118 cpu_b1: cpu@101 {
119 device_type = "cpu";
120 compatible = "arm,cortex-a53";
121 reg = <0x0 0x101>;
122 enable-method = "psci";
123 #cooling-cells = <2>; /* min followed by max */
124 };
125
126 cpu_b2: cpu@102 {
127 device_type = "cpu";
128 compatible = "arm,cortex-a53";
129 reg = <0x0 0x102>;
130 enable-method = "psci";
131 #cooling-cells = <2>; /* min followed by max */
132 };
133
134 cpu_b3: cpu@103 {
135 device_type = "cpu";
136 compatible = "arm,cortex-a53";
137 reg = <0x0 0x103>;
138 enable-method = "psci";
139 #cooling-cells = <2>; /* min followed by max */
140 };
141 };
142
143 display_subsystem: display-subsystem {
144 compatible = "rockchip,display-subsystem";
145 ports = <&vop_out>;
146 status = "disabled";
147 };
148
149 arm-pmu {
150 compatible = "arm,cortex-a53-pmu";
151 interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>,
152 <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>,
153 <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>,
154 <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>,
155 <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>,
156 <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>,
157 <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
158 <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>;
159 interrupt-affinity = <&cpu_l0>, <&cpu_l1>, <&cpu_l2>,
160 <&cpu_l3>, <&cpu_b0>, <&cpu_b1>,
161 <&cpu_b2>, <&cpu_b3>;
162 };
163
164 psci {
165 compatible = "arm,psci-0.2";
166 method = "smc";
167 };
168
169 timer {
170 compatible = "arm,armv8-timer";
171 interrupts = <GIC_PPI 13
172 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>,
173 <GIC_PPI 14
174 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>,
175 <GIC_PPI 11
176 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>,
177 <GIC_PPI 10
178 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
179 };
180
181 xin24m: oscillator {
182 compatible = "fixed-clock";
183 clock-frequency = <24000000>;
184 clock-output-names = "xin24m";
185 #clock-cells = <0>;
186 };
187
188 sdmmc: mmc@ff0c0000 {
189 compatible = "rockchip,rk3368-dw-mshc", "rockchip,rk3288-dw-mshc";
190 reg = <0x0 0xff0c0000 0x0 0x4000>;
191 max-frequency = <150000000>;
192 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>,
193 <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
194 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
195 fifo-depth = <0x100>;
196 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
197 resets = <&cru SRST_MMC0>;
198 reset-names = "reset";
199 status = "disabled";
200 };
201
202 sdio0: mmc@ff0d0000 {
203 compatible = "rockchip,rk3368-dw-mshc", "rockchip,rk3288-dw-mshc";
204 reg = <0x0 0xff0d0000 0x0 0x4000>;
205 max-frequency = <150000000>;
206 clocks = <&cru HCLK_SDIO0>, <&cru SCLK_SDIO0>,
207 <&cru SCLK_SDIO0_DRV>, <&cru SCLK_SDIO0_SAMPLE>;
208 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
209 fifo-depth = <0x100>;
210 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
211 resets = <&cru SRST_SDIO0>;
212 reset-names = "reset";
213 status = "disabled";
214 };
215
216 emmc: mmc@ff0f0000 {
217 compatible = "rockchip,rk3368-dw-mshc", "rockchip,rk3288-dw-mshc";
218 reg = <0x0 0xff0f0000 0x0 0x4000>;
219 max-frequency = <150000000>;
220 clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>,
221 <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>;
222 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
223 fifo-depth = <0x100>;
224 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
225 resets = <&cru SRST_EMMC>;
226 reset-names = "reset";
227 status = "disabled";
228 };
229
230 saradc: saradc@ff100000 {
231 compatible = "rockchip,saradc";
232 reg = <0x0 0xff100000 0x0 0x100>;
233 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
234 #io-channel-cells = <1>;
235 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
236 clock-names = "saradc", "apb_pclk";
237 resets = <&cru SRST_SARADC>;
238 reset-names = "saradc-apb";
239 status = "disabled";
240 };
241
242 spi0: spi@ff110000 {
243 compatible = "rockchip,rk3368-spi", "rockchip,rk3066-spi";
244 reg = <0x0 0xff110000 0x0 0x1000>;
245 clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
246 clock-names = "spiclk", "apb_pclk";
247 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
248 pinctrl-names = "default";
249 pinctrl-0 = <&spi0_clk &spi0_tx &spi0_rx &spi0_cs0>;
250 #address-cells = <1>;
251 #size-cells = <0>;
252 status = "disabled";
253 };
254
255 spi1: spi@ff120000 {
256 compatible = "rockchip,rk3368-spi", "rockchip,rk3066-spi";
257 reg = <0x0 0xff120000 0x0 0x1000>;
258 clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>;
259 clock-names = "spiclk", "apb_pclk";
260 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
261 pinctrl-names = "default";
262 pinctrl-0 = <&spi1_clk &spi1_tx &spi1_rx &spi1_cs0>;
263 #address-cells = <1>;
264 #size-cells = <0>;
265 status = "disabled";
266 };
267
268 spi2: spi@ff130000 {
269 compatible = "rockchip,rk3368-spi", "rockchip,rk3066-spi";
270 reg = <0x0 0xff130000 0x0 0x1000>;
271 clocks = <&cru SCLK_SPI2>, <&cru PCLK_SPI2>;
272 clock-names = "spiclk", "apb_pclk";
273 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
274 pinctrl-names = "default";
275 pinctrl-0 = <&spi2_clk &spi2_tx &spi2_rx &spi2_cs0>;
276 #address-cells = <1>;
277 #size-cells = <0>;
278 status = "disabled";
279 };
280
281 i2c2: i2c@ff140000 {
282 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
283 reg = <0x0 0xff140000 0x0 0x1000>;
284 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
285 #address-cells = <1>;
286 #size-cells = <0>;
287 clock-names = "i2c";
288 clocks = <&cru PCLK_I2C2>;
289 pinctrl-names = "default";
290 pinctrl-0 = <&i2c2_xfer>;
291 status = "disabled";
292 };
293
294 i2c3: i2c@ff150000 {
295 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
296 reg = <0x0 0xff150000 0x0 0x1000>;
297 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
298 #address-cells = <1>;
299 #size-cells = <0>;
300 clock-names = "i2c";
301 clocks = <&cru PCLK_I2C3>;
302 pinctrl-names = "default";
303 pinctrl-0 = <&i2c3_xfer>;
304 status = "disabled";
305 };
306
307 i2c4: i2c@ff160000 {
308 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
309 reg = <0x0 0xff160000 0x0 0x1000>;
310 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
311 #address-cells = <1>;
312 #size-cells = <0>;
313 clock-names = "i2c";
314 clocks = <&cru PCLK_I2C4>;
315 pinctrl-names = "default";
316 pinctrl-0 = <&i2c4_xfer>;
317 status = "disabled";
318 };
319
320 i2c5: i2c@ff170000 {
321 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
322 reg = <0x0 0xff170000 0x0 0x1000>;
323 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
324 #address-cells = <1>;
325 #size-cells = <0>;
326 clock-names = "i2c";
327 clocks = <&cru PCLK_I2C5>;
328 pinctrl-names = "default";
329 pinctrl-0 = <&i2c5_xfer>;
330 status = "disabled";
331 };
332
333 uart0: serial@ff180000 {
334 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
335 reg = <0x0 0xff180000 0x0 0x100>;
336 clock-frequency = <24000000>;
337 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
338 clock-names = "baudclk", "apb_pclk";
339 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
340 reg-shift = <2>;
341 reg-io-width = <4>;
342 status = "disabled";
343 };
344
345 uart1: serial@ff190000 {
346 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
347 reg = <0x0 0xff190000 0x0 0x100>;
348 clock-frequency = <24000000>;
349 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
350 clock-names = "baudclk", "apb_pclk";
351 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
352 reg-shift = <2>;
353 reg-io-width = <4>;
354 status = "disabled";
355 };
356
357 uart3: serial@ff1b0000 {
358 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
359 reg = <0x0 0xff1b0000 0x0 0x100>;
360 clock-frequency = <24000000>;
361 clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
362 clock-names = "baudclk", "apb_pclk";
363 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
364 reg-shift = <2>;
365 reg-io-width = <4>;
366 status = "disabled";
367 };
368
369 uart4: serial@ff1c0000 {
370 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
371 reg = <0x0 0xff1c0000 0x0 0x100>;
372 clock-frequency = <24000000>;
373 clocks = <&cru SCLK_UART4>, <&cru PCLK_UART4>;
374 clock-names = "baudclk", "apb_pclk";
375 interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
376 reg-shift = <2>;
377 reg-io-width = <4>;
378 status = "disabled";
379 };
380
381 dmac_peri: dma-controller@ff250000 {
382 compatible = "arm,pl330", "arm,primecell";
383 reg = <0x0 0xff250000 0x0 0x4000>;
384 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
385 <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
386 #dma-cells = <1>;
387 arm,pl330-broken-no-flushp;
388 arm,pl330-periph-burst;
389 clocks = <&cru ACLK_DMAC_PERI>;
390 clock-names = "apb_pclk";
391 };
392
393 thermal-zones {
394 cpu_thermal: cpu-thermal {
395 polling-delay-passive = <100>; /* milliseconds */
396 polling-delay = <5000>; /* milliseconds */
397
398 thermal-sensors = <&tsadc 0>;
399
400 trips {
401 cpu_alert0: cpu_alert0 {
402 temperature = <75000>; /* millicelsius */
403 hysteresis = <2000>; /* millicelsius */
404 type = "passive";
405 };
406 cpu_alert1: cpu_alert1 {
407 temperature = <80000>; /* millicelsius */
408 hysteresis = <2000>; /* millicelsius */
409 type = "passive";
410 };
411 cpu_crit: cpu_crit {
412 temperature = <95000>; /* millicelsius */
413 hysteresis = <2000>; /* millicelsius */
414 type = "critical";
415 };
416 };
417
418 cooling-maps {
419 map0 {
420 trip = <&cpu_alert0>;
421 cooling-device =
422 <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
423 <&cpu_b1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
424 <&cpu_b2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
425 <&cpu_b3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
426 };
427 map1 {
428 trip = <&cpu_alert1>;
429 cooling-device =
430 <&cpu_l0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
431 <&cpu_l1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
432 <&cpu_l2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
433 <&cpu_l3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
434 };
435 };
436 };
437
438 gpu_thermal: gpu-thermal {
439 polling-delay-passive = <100>; /* milliseconds */
440 polling-delay = <5000>; /* milliseconds */
441
442 thermal-sensors = <&tsadc 1>;
443
444 trips {
445 gpu_alert0: gpu_alert0 {
446 temperature = <80000>; /* millicelsius */
447 hysteresis = <2000>; /* millicelsius */
448 type = "passive";
449 };
450 gpu_crit: gpu_crit {
451 temperature = <115000>; /* millicelsius */
452 hysteresis = <2000>; /* millicelsius */
453 type = "critical";
454 };
455 };
456
457 cooling-maps {
458 map0 {
459 trip = <&gpu_alert0>;
460 cooling-device =
461 <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
462 <&cpu_b1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
463 <&cpu_b2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
464 <&cpu_b3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
465 };
466 };
467 };
468 };
469
470 tsadc: tsadc@ff280000 {
471 compatible = "rockchip,rk3368-tsadc";
472 reg = <0x0 0xff280000 0x0 0x100>;
473 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
474 clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>;
475 clock-names = "tsadc", "apb_pclk";
476 resets = <&cru SRST_TSADC>;
477 reset-names = "tsadc-apb";
478 pinctrl-names = "init", "default", "sleep";
479 pinctrl-0 = <&otp_pin>;
480 pinctrl-1 = <&otp_out>;
481 pinctrl-2 = <&otp_pin>;
482 #thermal-sensor-cells = <1>;
483 rockchip,hw-tshut-temp = <95000>;
484 status = "disabled";
485 };
486
487 gmac: ethernet@ff290000 {
488 compatible = "rockchip,rk3368-gmac";
489 reg = <0x0 0xff290000 0x0 0x10000>;
490 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
491 interrupt-names = "macirq";
492 rockchip,grf = <&grf>;
493 clocks = <&cru SCLK_MAC>,
494 <&cru SCLK_MAC_RX>, <&cru SCLK_MAC_TX>,
495 <&cru SCLK_MACREF>, <&cru SCLK_MACREF_OUT>,
496 <&cru ACLK_GMAC>, <&cru PCLK_GMAC>;
497 clock-names = "stmmaceth",
498 "mac_clk_rx", "mac_clk_tx",
499 "clk_mac_ref", "clk_mac_refout",
500 "aclk_mac", "pclk_mac";
501 resets = <&cru SRST_MAC>;
502 reset-names = "stmmaceth";
503 status = "disabled";
504
505 mdio: mdio {
506 compatible = "snps,dwmac-mdio";
507 #address-cells = <1>;
508 #size-cells = <0>;
509 };
510 };
511
512 usb_host0_ehci: usb@ff500000 {
513 compatible = "generic-ehci";
514 reg = <0x0 0xff500000 0x0 0x100>;
515 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
516 clocks = <&cru HCLK_HOST0>;
517 status = "disabled";
518 };
519
520 usb_otg: usb@ff580000 {
521 compatible = "rockchip,rk3368-usb", "rockchip,rk3066-usb",
522 "snps,dwc2";
523 reg = <0x0 0xff580000 0x0 0x40000>;
524 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
525 clocks = <&cru HCLK_OTG0>;
526 clock-names = "otg";
527 dr_mode = "otg";
528 g-np-tx-fifo-size = <16>;
529 g-rx-fifo-size = <275>;
530 g-tx-fifo-size = <256 128 128 64 64 32>;
531 status = "disabled";
532 };
533
534 dmac_bus: dma-controller@ff600000 {
535 compatible = "arm,pl330", "arm,primecell";
536 reg = <0x0 0xff600000 0x0 0x4000>;
537 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
538 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
539 #dma-cells = <1>;
540 arm,pl330-broken-no-flushp;
541 arm,pl330-periph-burst;
542 clocks = <&cru ACLK_DMAC_BUS>;
543 clock-names = "apb_pclk";
544 };
545
546 i2c0: i2c@ff650000 {
547 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
548 reg = <0x0 0xff650000 0x0 0x1000>;
549 clocks = <&cru PCLK_I2C0>;
550 clock-names = "i2c";
551 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
552 pinctrl-names = "default";
553 pinctrl-0 = <&i2c0_xfer>;
554 #address-cells = <1>;
555 #size-cells = <0>;
556 status = "disabled";
557 };
558
559 i2c1: i2c@ff660000 {
560 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
561 reg = <0x0 0xff660000 0x0 0x1000>;
562 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
563 #address-cells = <1>;
564 #size-cells = <0>;
565 clock-names = "i2c";
566 clocks = <&cru PCLK_I2C1>;
567 pinctrl-names = "default";
568 pinctrl-0 = <&i2c1_xfer>;
569 status = "disabled";
570 };
571
572 pwm0: pwm@ff680000 {
573 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
574 reg = <0x0 0xff680000 0x0 0x10>;
575 #pwm-cells = <3>;
576 pinctrl-names = "default";
577 pinctrl-0 = <&pwm0_pin>;
578 clocks = <&cru PCLK_PWM1>;
579 status = "disabled";
580 };
581
582 pwm1: pwm@ff680010 {
583 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
584 reg = <0x0 0xff680010 0x0 0x10>;
585 #pwm-cells = <3>;
586 pinctrl-names = "default";
587 pinctrl-0 = <&pwm1_pin>;
588 clocks = <&cru PCLK_PWM1>;
589 status = "disabled";
590 };
591
592 pwm2: pwm@ff680020 {
593 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
594 reg = <0x0 0xff680020 0x0 0x10>;
595 #pwm-cells = <3>;
596 clocks = <&cru PCLK_PWM1>;
597 status = "disabled";
598 };
599
600 pwm3: pwm@ff680030 {
601 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
602 reg = <0x0 0xff680030 0x0 0x10>;
603 #pwm-cells = <3>;
604 pinctrl-names = "default";
605 pinctrl-0 = <&pwm3_pin>;
606 clocks = <&cru PCLK_PWM1>;
607 status = "disabled";
608 };
609
610 uart2: serial@ff690000 {
611 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
612 reg = <0x0 0xff690000 0x0 0x100>;
613 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
614 clock-names = "baudclk", "apb_pclk";
615 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
616 pinctrl-names = "default";
617 pinctrl-0 = <&uart2_xfer>;
618 reg-shift = <2>;
619 reg-io-width = <4>;
620 status = "disabled";
621 };
622
623 mbox: mbox@ff6b0000 {
624 compatible = "rockchip,rk3368-mailbox";
625 reg = <0x0 0xff6b0000 0x0 0x1000>;
626 interrupts = <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
627 <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
628 <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>,
629 <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>;
630 clocks = <&cru PCLK_MAILBOX>;
631 clock-names = "pclk_mailbox";
632 #mbox-cells = <1>;
633 status = "disabled";
634 };
635
636 pmu: power-management@ff730000 {
637 compatible = "rockchip,rk3368-pmu", "syscon", "simple-mfd";
638 reg = <0x0 0xff730000 0x0 0x1000>;
639
640 power: power-controller {
641 compatible = "rockchip,rk3368-power-controller";
642 #power-domain-cells = <1>;
643 #address-cells = <1>;
644 #size-cells = <0>;
645
646 /*
647 * Note: Although SCLK_* are the working clocks
648 * of device without including on the NOC, needed for
649 * synchronous reset.
650 *
651 * The clocks on the which NOC:
652 * ACLK_IEP/ACLK_VIP/ACLK_VOP0 are on ACLK_VIO0_NIU.
653 * ACLK_ISP/ACLK_VOP1 are on ACLK_VIO1_NIU.
654 * ACLK_RGA is on ACLK_RGA_NIU.
655 * The others (HCLK_*,PLCK_*) are on HCLK_VIO_NIU.
656 *
657 * Which clock are device clocks:
658 * clocks devices
659 * *_IEP IEP:Image Enhancement Processor
660 * *_ISP ISP:Image Signal Processing
661 * *_VIP VIP:Video Input Processor
662 * *_VOP* VOP:Visual Output Processor
663 * *_RGA RGA
664 * *_EDP* EDP
665 * *_DPHY* LVDS
666 * *_HDMI HDMI
667 * *_MIPI_* MIPI
668 */
669 power-domain@RK3368_PD_VIO {
670 reg = <RK3368_PD_VIO>;
671 clocks = <&cru ACLK_IEP>,
672 <&cru ACLK_ISP>,
673 <&cru ACLK_VIP>,
674 <&cru ACLK_RGA>,
675 <&cru ACLK_VOP>,
676 <&cru ACLK_VOP_IEP>,
677 <&cru DCLK_VOP>,
678 <&cru HCLK_IEP>,
679 <&cru HCLK_ISP>,
680 <&cru HCLK_RGA>,
681 <&cru HCLK_VIP>,
682 <&cru HCLK_VOP>,
683 <&cru HCLK_VIO_HDCPMMU>,
684 <&cru PCLK_EDP_CTRL>,
685 <&cru PCLK_HDMI_CTRL>,
686 <&cru PCLK_HDCP>,
687 <&cru PCLK_ISP>,
688 <&cru PCLK_VIP>,
689 <&cru PCLK_DPHYRX>,
690 <&cru PCLK_DPHYTX0>,
691 <&cru PCLK_MIPI_CSI>,
692 <&cru PCLK_MIPI_DSI0>,
693 <&cru SCLK_VOP0_PWM>,
694 <&cru SCLK_EDP_24M>,
695 <&cru SCLK_EDP>,
696 <&cru SCLK_HDCP>,
697 <&cru SCLK_ISP>,
698 <&cru SCLK_RGA>,
699 <&cru SCLK_HDMI_CEC>,
700 <&cru SCLK_HDMI_HDCP>;
701 pm_qos = <&qos_iep>,
702 <&qos_isp_r0>,
703 <&qos_isp_r1>,
704 <&qos_isp_w0>,
705 <&qos_isp_w1>,
706 <&qos_vip>,
707 <&qos_vop>,
708 <&qos_rga_r>,
709 <&qos_rga_w>;
710 #power-domain-cells = <0>;
711 };
712
713 /*
714 * Note: ACLK_VCODEC/HCLK_VCODEC are VCODEC
715 * (video endecoder & decoder) clocks that on the
716 * ACLK_VCODEC_NIU and HCLK_VCODEC_NIU (NOC).
717 */
718 power-domain@RK3368_PD_VIDEO {
719 reg = <RK3368_PD_VIDEO>;
720 clocks = <&cru ACLK_VIDEO>,
721 <&cru HCLK_VIDEO>,
722 <&cru SCLK_HEVC_CABAC>,
723 <&cru SCLK_HEVC_CORE>;
724 pm_qos = <&qos_hevc_r>,
725 <&qos_vpu_r>,
726 <&qos_vpu_w>;
727 #power-domain-cells = <0>;
728 };
729
730 /*
731 * Note: ACLK_GPU is the GPU clock,
732 * and on the ACLK_GPU_NIU (NOC).
733 */
734 power-domain@RK3368_PD_GPU_1 {
735 reg = <RK3368_PD_GPU_1>;
736 clocks = <&cru ACLK_GPU_CFG>,
737 <&cru ACLK_GPU_MEM>,
738 <&cru SCLK_GPU_CORE>;
739 pm_qos = <&qos_gpu>;
740 #power-domain-cells = <0>;
741 };
742 };
743 };
744
745 pmugrf: syscon@ff738000 {
746 compatible = "rockchip,rk3368-pmugrf", "syscon", "simple-mfd";
747 reg = <0x0 0xff738000 0x0 0x1000>;
748
749 pmu_io_domains: io-domains {
750 compatible = "rockchip,rk3368-pmu-io-voltage-domain";
751 status = "disabled";
752 };
753
754 reboot-mode {
755 compatible = "syscon-reboot-mode";
756 offset = <0x200>;
757 mode-normal = <BOOT_NORMAL>;
758 mode-recovery = <BOOT_RECOVERY>;
759 mode-bootloader = <BOOT_FASTBOOT>;
760 mode-loader = <BOOT_BL_DOWNLOAD>;
761 };
762 };
763
764 cru: clock-controller@ff760000 {
765 compatible = "rockchip,rk3368-cru";
766 reg = <0x0 0xff760000 0x0 0x1000>;
767 clocks = <&xin24m>;
768 clock-names = "xin24m";
769 rockchip,grf = <&grf>;
770 #clock-cells = <1>;
771 #reset-cells = <1>;
772 };
773
774 grf: syscon@ff770000 {
775 compatible = "rockchip,rk3368-grf", "syscon", "simple-mfd";
776 reg = <0x0 0xff770000 0x0 0x1000>;
777
778 io_domains: io-domains {
779 compatible = "rockchip,rk3368-io-voltage-domain";
780 status = "disabled";
781 };
782 };
783
784 wdt: watchdog@ff800000 {
785 compatible = "rockchip,rk3368-wdt", "snps,dw-wdt";
786 reg = <0x0 0xff800000 0x0 0x100>;
787 clocks = <&cru PCLK_WDT>;
788 interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
789 status = "disabled";
790 };
791
792 timer0: timer@ff810000 {
793 compatible = "rockchip,rk3368-timer", "rockchip,rk3288-timer";
794 reg = <0x0 0xff810000 0x0 0x20>;
795 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
796 clocks = <&cru PCLK_TIMER0>, <&cru SCLK_TIMER00>;
797 clock-names = "pclk", "timer";
798 };
799
800 spdif: spdif@ff880000 {
801 compatible = "rockchip,rk3368-spdif";
802 reg = <0x0 0xff880000 0x0 0x1000>;
803 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
804 clocks = <&cru SCLK_SPDIF_8CH>, <&cru HCLK_SPDIF>;
805 clock-names = "mclk", "hclk";
806 dmas = <&dmac_bus 3>;
807 dma-names = "tx";
808 pinctrl-names = "default";
809 pinctrl-0 = <&spdif_tx>;
810 #sound-dai-cells = <0>;
811 status = "disabled";
812 };
813
814 i2s_2ch: i2s-2ch@ff890000 {
815 compatible = "rockchip,rk3368-i2s", "rockchip,rk3066-i2s";
816 reg = <0x0 0xff890000 0x0 0x1000>;
817 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
818 clock-names = "i2s_clk", "i2s_hclk";
819 clocks = <&cru SCLK_I2S_2CH>, <&cru HCLK_I2S_2CH>;
820 dmas = <&dmac_bus 6>, <&dmac_bus 7>;
821 dma-names = "tx", "rx";
822 #sound-dai-cells = <0>;
823 status = "disabled";
824 };
825
826 i2s_8ch: i2s-8ch@ff898000 {
827 compatible = "rockchip,rk3368-i2s", "rockchip,rk3066-i2s";
828 reg = <0x0 0xff898000 0x0 0x1000>;
829 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
830 clock-names = "i2s_clk", "i2s_hclk";
831 clocks = <&cru SCLK_I2S_8CH>, <&cru HCLK_I2S_8CH>;
832 dmas = <&dmac_bus 0>, <&dmac_bus 1>;
833 dma-names = "tx", "rx";
834 pinctrl-names = "default";
835 pinctrl-0 = <&i2s_8ch_bus>;
836 #sound-dai-cells = <0>;
837 status = "disabled";
838 };
839
840 iep_mmu: iommu@ff900800 {
841 compatible = "rockchip,iommu";
842 reg = <0x0 0xff900800 0x0 0x100>;
843 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
844 clocks = <&cru ACLK_IEP>, <&cru HCLK_IEP>;
845 clock-names = "aclk", "iface";
846 power-domains = <&power RK3368_PD_VIO>;
847 #iommu-cells = <0>;
848 status = "disabled";
849 };
850
851 isp_mmu: iommu@ff914000 {
852 compatible = "rockchip,iommu";
853 reg = <0x0 0xff914000 0x0 0x100>,
854 <0x0 0xff915000 0x0 0x100>;
855 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
856 clocks = <&cru ACLK_ISP>, <&cru HCLK_ISP>;
857 clock-names = "aclk", "iface";
858 #iommu-cells = <0>;
859 power-domains = <&power RK3368_PD_VIO>;
860 rockchip,disable-mmu-reset;
861 status = "disabled";
862 };
863
864 vop: vop@ff930000 {
865 compatible = "rockchip,rk3368-vop";
866 reg = <0x0 0xff930000 0x0 0x2fc>, <0x0 0xff931000 0x0 0x400>;
867 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
868 assigned-clocks = <&cru ACLK_VOP>, <&cru HCLK_VOP>;
869 assigned-clock-rates = <400000000>, <200000000>;
870 clocks = <&cru ACLK_VOP>, <&cru DCLK_VOP>, <&cru HCLK_VOP>;
871 clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
872 iommus = <&vop_mmu>;
873 power-domains = <&power RK3368_PD_VIO>;
874 resets = <&cru SRST_LCDC0_AXI>, <&cru SRST_LCDC0_AHB>, <&cru SRST_LCDC0_DCLK>;
875 reset-names = "axi", "ahb", "dclk";
876 status = "disabled";
877
878 vop_out: port {
879 #address-cells = <1>;
880 #size-cells = <0>;
881
882 vop_out_dsi: endpoint@0 {
883 reg = <0>;
884 remote-endpoint = <&dsi_in_vop>;
885 };
886
887 vop_out_hdmi: endpoint@1 {
888 reg = <1>;
889 remote-endpoint = <&hdmi_in_vop>;
890 };
891 };
892 };
893
894 vop_mmu: iommu@ff930300 {
895 compatible = "rockchip,iommu";
896 reg = <0x0 0xff930300 0x0 0x100>;
897 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
898 clocks = <&cru ACLK_VOP>, <&cru HCLK_VOP>;
899 clock-names = "aclk", "iface";
900 power-domains = <&power RK3368_PD_VIO>;
901 #iommu-cells = <0>;
902 status = "disabled";
903 };
904
905 mipi_dsi: dsi@ff960000 {
906 compatible = "rockchip,rk3368-mipi-dsi", "snps,dw-mipi-dsi";
907 reg = <0x0 0xff960000 0x0 0x4000>;
908 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
909 clocks = <&cru PCLK_MIPI_DSI0>;
910 clock-names = "pclk";
911 phys = <&dphy>;
912 phy-names = "dphy";
913 power-domains = <&power RK3368_PD_VIO>;
914 resets = <&cru SRST_MIPIDSI0>;
915 reset-names = "apb";
916 rockchip,grf = <&grf>;
917 status = "disabled";
918
919 ports {
920 #address-cells = <1>;
921 #size-cells = <0>;
922
923 mipi_in: port@0 {
924 reg = <0>;
925
926 dsi_in_vop: endpoint {
927 remote-endpoint = <&vop_out_dsi>;
928 };
929 };
930
931 mipi_out: port@1 {
932 reg = <1>;
933 };
934
935 };
936 };
937
938 dphy: phy@ff968000 {
939 compatible = "rockchip,rk3368-dsi-dphy";
940 reg = <0x0 0xff968000 0x0 0x4000>;
941 clocks = <&cru SCLK_MIPIDSI_24M>, <&cru PCLK_DPHYTX0>;
942 clock-names = "ref", "pclk";
943 #phy-cells = <0>;
944 resets = <&cru SRST_MIPIDPHYTX>;
945 reset-names = "apb";
946 status = "disabled";
947 };
948
949 hdmi: hdmi@ff980000 {
950 compatible = "rockchip,rk3368-dw-hdmi";
951 reg = <0x0 0xff980000 0x0 0x20000>;
952 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
953 clocks = <&cru PCLK_HDMI_CTRL>, <&cru SCLK_HDMI_HDCP>, <&cru SCLK_HDMI_CEC>;
954 clock-names = "iahb", "isfr", "cec";
955 pinctrl-names = "default";
956 pinctrl-0 = <&hdmi_i2c_xfer>;
957 power-domains = <&power RK3368_PD_VIO>;
958 reg-io-width = <4>;
959 rockchip,grf = <&grf>;
960 status = "disabled";
961
962 ports {
963 #address-cells = <1>;
964 #size-cells = <0>;
965
966 hdmi_in: port@0 {
967 reg = <0>;
968
969 hdmi_in_vop: endpoint {
970 remote-endpoint = <&vop_out_hdmi>;
971 };
972 };
973
974 hdmi_out: port@1 {
975 reg = <1>;
976 };
977 };
978 };
979
980 hevc_mmu: iommu@ff9a0440 {
981 compatible = "rockchip,iommu";
982 reg = <0x0 0xff9a0440 0x0 0x40>,
983 <0x0 0xff9a0480 0x0 0x40>;
984 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
985 clocks = <&cru ACLK_VIDEO>, <&cru HCLK_VIDEO>;
986 clock-names = "aclk", "iface";
987 #iommu-cells = <0>;
988 status = "disabled";
989 };
990
991 vpu_mmu: iommu@ff9a0800 {
992 compatible = "rockchip,iommu";
993 reg = <0x0 0xff9a0800 0x0 0x100>;
994 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
995 <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
996 clocks = <&cru ACLK_VIDEO>, <&cru HCLK_VIDEO>;
997 clock-names = "aclk", "iface";
998 #iommu-cells = <0>;
999 status = "disabled";
1000 };
1001
1002 qos_iep: qos@ffad0000 {
1003 compatible = "rockchip,rk3368-qos", "syscon";
1004 reg = <0x0 0xffad0000 0x0 0x20>;
1005 };
1006
1007 qos_isp_r0: qos@ffad0080 {
1008 compatible = "rockchip,rk3368-qos", "syscon";
1009 reg = <0x0 0xffad0080 0x0 0x20>;
1010 };
1011
1012 qos_isp_r1: qos@ffad0100 {
1013 compatible = "rockchip,rk3368-qos", "syscon";
1014 reg = <0x0 0xffad0100 0x0 0x20>;
1015 };
1016
1017 qos_isp_w0: qos@ffad0180 {
1018 compatible = "rockchip,rk3368-qos", "syscon";
1019 reg = <0x0 0xffad0180 0x0 0x20>;
1020 };
1021
1022 qos_isp_w1: qos@ffad0200 {
1023 compatible = "rockchip,rk3368-qos", "syscon";
1024 reg = <0x0 0xffad0200 0x0 0x20>;
1025 };
1026
1027 qos_vip: qos@ffad0280 {
1028 compatible = "rockchip,rk3368-qos", "syscon";
1029 reg = <0x0 0xffad0280 0x0 0x20>;
1030 };
1031
1032 qos_vop: qos@ffad0300 {
1033 compatible = "rockchip,rk3368-qos", "syscon";
1034 reg = <0x0 0xffad0300 0x0 0x20>;
1035 };
1036
1037 qos_rga_r: qos@ffad0380 {
1038 compatible = "rockchip,rk3368-qos", "syscon";
1039 reg = <0x0 0xffad0380 0x0 0x20>;
1040 };
1041
1042 qos_rga_w: qos@ffad0400 {
1043 compatible = "rockchip,rk3368-qos", "syscon";
1044 reg = <0x0 0xffad0400 0x0 0x20>;
1045 };
1046
1047 qos_hevc_r: qos@ffae0000 {
1048 compatible = "rockchip,rk3368-qos", "syscon";
1049 reg = <0x0 0xffae0000 0x0 0x20>;
1050 };
1051
1052 qos_vpu_r: qos@ffae0100 {
1053 compatible = "rockchip,rk3368-qos", "syscon";
1054 reg = <0x0 0xffae0100 0x0 0x20>;
1055 };
1056
1057 qos_vpu_w: qos@ffae0180 {
1058 compatible = "rockchip,rk3368-qos", "syscon";
1059 reg = <0x0 0xffae0180 0x0 0x20>;
1060 };
1061
1062 qos_gpu: qos@ffaf0000 {
1063 compatible = "rockchip,rk3368-qos", "syscon";
1064 reg = <0x0 0xffaf0000 0x0 0x20>;
1065 };
1066
1067 efuse256: efuse@ffb00000 {
1068 compatible = "rockchip,rk3368-efuse";
1069 reg = <0x0 0xffb00000 0x0 0x20>;
1070 #address-cells = <1>;
1071 #size-cells = <1>;
1072 clocks = <&cru PCLK_EFUSE256>;
1073 clock-names = "pclk_efuse";
1074
1075 cpu_leakage: cpu-leakage@17 {
1076 reg = <0x17 0x1>;
1077 };
1078 temp_adjust: temp-adjust@1f {
1079 reg = <0x1f 0x1>;
1080 };
1081 };
1082
1083 gic: interrupt-controller@ffb71000 {
1084 compatible = "arm,gic-400";
1085 interrupt-controller;
1086 #interrupt-cells = <3>;
1087 #address-cells = <0>;
1088
1089 reg = <0x0 0xffb71000 0x0 0x1000>,
1090 <0x0 0xffb72000 0x0 0x2000>,
1091 <0x0 0xffb74000 0x0 0x2000>,
1092 <0x0 0xffb76000 0x0 0x2000>;
1093 interrupts = <GIC_PPI 9
1094 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
1095 };
1096
1097 pinctrl: pinctrl {
1098 compatible = "rockchip,rk3368-pinctrl";
1099 rockchip,grf = <&grf>;
1100 rockchip,pmu = <&pmugrf>;
1101 #address-cells = <0x2>;
1102 #size-cells = <0x2>;
1103 ranges;
1104
1105 gpio0: gpio@ff750000 {
1106 compatible = "rockchip,gpio-bank";
1107 reg = <0x0 0xff750000 0x0 0x100>;
1108 clocks = <&cru PCLK_GPIO0>;
1109 interrupts = <GIC_SPI 0x51 IRQ_TYPE_LEVEL_HIGH>;
1110
1111 gpio-controller;
1112 #gpio-cells = <0x2>;
1113
1114 interrupt-controller;
1115 #interrupt-cells = <0x2>;
1116 };
1117
1118 gpio1: gpio@ff780000 {
1119 compatible = "rockchip,gpio-bank";
1120 reg = <0x0 0xff780000 0x0 0x100>;
1121 clocks = <&cru PCLK_GPIO1>;
1122 interrupts = <GIC_SPI 0x52 IRQ_TYPE_LEVEL_HIGH>;
1123
1124 gpio-controller;
1125 #gpio-cells = <0x2>;
1126
1127 interrupt-controller;
1128 #interrupt-cells = <0x2>;
1129 };
1130
1131 gpio2: gpio@ff790000 {
1132 compatible = "rockchip,gpio-bank";
1133 reg = <0x0 0xff790000 0x0 0x100>;
1134 clocks = <&cru PCLK_GPIO2>;
1135 interrupts = <GIC_SPI 0x53 IRQ_TYPE_LEVEL_HIGH>;
1136
1137 gpio-controller;
1138 #gpio-cells = <0x2>;
1139
1140 interrupt-controller;
1141 #interrupt-cells = <0x2>;
1142 };
1143
1144 gpio3: gpio@ff7a0000 {
1145 compatible = "rockchip,gpio-bank";
1146 reg = <0x0 0xff7a0000 0x0 0x100>;
1147 clocks = <&cru PCLK_GPIO3>;
1148 interrupts = <GIC_SPI 0x54 IRQ_TYPE_LEVEL_HIGH>;
1149
1150 gpio-controller;
1151 #gpio-cells = <0x2>;
1152
1153 interrupt-controller;
1154 #interrupt-cells = <0x2>;
1155 };
1156
1157 pcfg_pull_up: pcfg-pull-up {
1158 bias-pull-up;
1159 };
1160
1161 pcfg_pull_down: pcfg-pull-down {
1162 bias-pull-down;
1163 };
1164
1165 pcfg_pull_none: pcfg-pull-none {
1166 bias-disable;
1167 };
1168
1169 pcfg_pull_none_12ma: pcfg-pull-none-12ma {
1170 bias-disable;
1171 drive-strength = <12>;
1172 };
1173
1174 emmc {
1175 emmc_clk: emmc-clk {
1176 rockchip,pins = <2 RK_PA4 2 &pcfg_pull_none>;
1177 };
1178
1179 emmc_cmd: emmc-cmd {
1180 rockchip,pins = <1 RK_PD2 2 &pcfg_pull_up>;
1181 };
1182
1183 emmc_pwr: emmc-pwr {
1184 rockchip,pins = <1 RK_PD3 2 &pcfg_pull_up>;
1185 };
1186
1187 emmc_bus1: emmc-bus1 {
1188 rockchip,pins = <1 RK_PC2 2 &pcfg_pull_up>;
1189 };
1190
1191 emmc_bus4: emmc-bus4 {
1192 rockchip,pins = <1 RK_PC2 2 &pcfg_pull_up>,
1193 <1 RK_PC3 2 &pcfg_pull_up>,
1194 <1 RK_PC4 2 &pcfg_pull_up>,
1195 <1 RK_PC5 2 &pcfg_pull_up>;
1196 };
1197
1198 emmc_bus8: emmc-bus8 {
1199 rockchip,pins = <1 RK_PC2 2 &pcfg_pull_up>,
1200 <1 RK_PC3 2 &pcfg_pull_up>,
1201 <1 RK_PC4 2 &pcfg_pull_up>,
1202 <1 RK_PC5 2 &pcfg_pull_up>,
1203 <1 RK_PC6 2 &pcfg_pull_up>,
1204 <1 RK_PC7 2 &pcfg_pull_up>,
1205 <1 RK_PD0 2 &pcfg_pull_up>,
1206 <1 RK_PD1 2 &pcfg_pull_up>;
1207 };
1208 };
1209
1210 gmac {
1211 rgmii_pins: rgmii-pins {
1212 rockchip,pins = <3 RK_PC6 1 &pcfg_pull_none>,
1213 <3 RK_PD0 1 &pcfg_pull_none>,
1214 <3 RK_PC3 1 &pcfg_pull_none>,
1215 <3 RK_PB0 1 &pcfg_pull_none_12ma>,
1216 <3 RK_PB1 1 &pcfg_pull_none_12ma>,
1217 <3 RK_PB2 1 &pcfg_pull_none_12ma>,
1218 <3 RK_PB6 1 &pcfg_pull_none_12ma>,
1219 <3 RK_PD4 1 &pcfg_pull_none_12ma>,
1220 <3 RK_PB5 1 &pcfg_pull_none_12ma>,
1221 <3 RK_PB7 1 &pcfg_pull_none>,
1222 <3 RK_PC0 1 &pcfg_pull_none>,
1223 <3 RK_PC1 1 &pcfg_pull_none>,
1224 <3 RK_PC2 1 &pcfg_pull_none>,
1225 <3 RK_PD1 1 &pcfg_pull_none>,
1226 <3 RK_PC4 1 &pcfg_pull_none>;
1227 };
1228
1229 rmii_pins: rmii-pins {
1230 rockchip,pins = <3 RK_PC6 1 &pcfg_pull_none>,
1231 <3 RK_PD0 1 &pcfg_pull_none>,
1232 <3 RK_PC3 1 &pcfg_pull_none>,
1233 <3 RK_PB0 1 &pcfg_pull_none_12ma>,
1234 <3 RK_PB1 1 &pcfg_pull_none_12ma>,
1235 <3 RK_PB5 1 &pcfg_pull_none_12ma>,
1236 <3 RK_PB7 1 &pcfg_pull_none>,
1237 <3 RK_PC0 1 &pcfg_pull_none>,
1238 <3 RK_PC4 1 &pcfg_pull_none>,
1239 <3 RK_PC5 1 &pcfg_pull_none>;
1240 };
1241 };
1242
1243 hdmi {
1244 hdmi_i2c_xfer: hdmi-i2c-xfer {
1245 rockchip,pins = <3 RK_PD2 1 &pcfg_pull_none>,
1246 <3 RK_PD3 1 &pcfg_pull_none>;
1247 };
1248 };
1249
1250 i2c0 {
1251 i2c0_xfer: i2c0-xfer {
1252 rockchip,pins = <0 RK_PA6 1 &pcfg_pull_none>,
1253 <0 RK_PA7 1 &pcfg_pull_none>;
1254 };
1255 };
1256
1257 i2c1 {
1258 i2c1_xfer: i2c1-xfer {
1259 rockchip,pins = <2 RK_PC5 1 &pcfg_pull_none>,
1260 <2 RK_PC6 1 &pcfg_pull_none>;
1261 };
1262 };
1263
1264 i2c2 {
1265 i2c2_xfer: i2c2-xfer {
1266 rockchip,pins = <0 RK_PB1 2 &pcfg_pull_none>,
1267 <3 RK_PD7 2 &pcfg_pull_none>;
1268 };
1269 };
1270
1271 i2c3 {
1272 i2c3_xfer: i2c3-xfer {
1273 rockchip,pins = <1 RK_PC0 1 &pcfg_pull_none>,
1274 <1 RK_PC1 1 &pcfg_pull_none>;
1275 };
1276 };
1277
1278 i2c4 {
1279 i2c4_xfer: i2c4-xfer {
1280 rockchip,pins = <3 RK_PD0 2 &pcfg_pull_none>,
1281 <3 RK_PD1 2 &pcfg_pull_none>;
1282 };
1283 };
1284
1285 i2c5 {
1286 i2c5_xfer: i2c5-xfer {
1287 rockchip,pins = <3 RK_PD2 2 &pcfg_pull_none>,
1288 <3 RK_PD3 2 &pcfg_pull_none>;
1289 };
1290 };
1291
1292 i2s {
1293 i2s_8ch_bus: i2s-8ch-bus {
1294 rockchip,pins = <2 RK_PB4 1 &pcfg_pull_none>,
1295 <2 RK_PB5 1 &pcfg_pull_none>,
1296 <2 RK_PB6 1 &pcfg_pull_none>,
1297 <2 RK_PB7 1 &pcfg_pull_none>,
1298 <2 RK_PC0 1 &pcfg_pull_none>,
1299 <2 RK_PC1 1 &pcfg_pull_none>,
1300 <2 RK_PC2 1 &pcfg_pull_none>,
1301 <2 RK_PC3 1 &pcfg_pull_none>,
1302 <2 RK_PC4 1 &pcfg_pull_none>;
1303 };
1304 };
1305
1306 pwm0 {
1307 pwm0_pin: pwm0-pin {
1308 rockchip,pins = <3 RK_PB0 2 &pcfg_pull_none>;
1309 };
1310 };
1311
1312 pwm1 {
1313 pwm1_pin: pwm1-pin {
1314 rockchip,pins = <0 RK_PB0 2 &pcfg_pull_none>;
1315 };
1316 };
1317
1318 pwm3 {
1319 pwm3_pin: pwm3-pin {
1320 rockchip,pins = <3 RK_PD5 3 &pcfg_pull_none>;
1321 };
1322 };
1323
1324 sdio0 {
1325 sdio0_bus1: sdio0-bus1 {
1326 rockchip,pins = <2 RK_PD4 1 &pcfg_pull_up>;
1327 };
1328
1329 sdio0_bus4: sdio0-bus4 {
1330 rockchip,pins = <2 RK_PD4 1 &pcfg_pull_up>,
1331 <2 RK_PD5 1 &pcfg_pull_up>,
1332 <2 RK_PD6 1 &pcfg_pull_up>,
1333 <2 RK_PD7 1 &pcfg_pull_up>;
1334 };
1335
1336 sdio0_cmd: sdio0-cmd {
1337 rockchip,pins = <3 RK_PA0 1 &pcfg_pull_up>;
1338 };
1339
1340 sdio0_clk: sdio0-clk {
1341 rockchip,pins = <3 RK_PA1 1 &pcfg_pull_none>;
1342 };
1343
1344 sdio0_cd: sdio0-cd {
1345 rockchip,pins = <3 RK_PA2 1 &pcfg_pull_up>;
1346 };
1347
1348 sdio0_wp: sdio0-wp {
1349 rockchip,pins = <3 RK_PA3 1 &pcfg_pull_up>;
1350 };
1351
1352 sdio0_pwr: sdio0-pwr {
1353 rockchip,pins = <3 RK_PA4 1 &pcfg_pull_up>;
1354 };
1355
1356 sdio0_bkpwr: sdio0-bkpwr {
1357 rockchip,pins = <3 RK_PA5 1 &pcfg_pull_up>;
1358 };
1359
1360 sdio0_int: sdio0-int {
1361 rockchip,pins = <3 RK_PA6 1 &pcfg_pull_up>;
1362 };
1363 };
1364
1365 sdmmc {
1366 sdmmc_clk: sdmmc-clk {
1367 rockchip,pins = <2 RK_PB1 1 &pcfg_pull_none>;
1368 };
1369
1370 sdmmc_cmd: sdmmc-cmd {
1371 rockchip,pins = <2 RK_PB2 1 &pcfg_pull_up>;
1372 };
1373
1374 sdmmc_cd: sdmmc-cd {
1375 rockchip,pins = <2 RK_PB3 1 &pcfg_pull_up>;
1376 };
1377
1378 sdmmc_bus1: sdmmc-bus1 {
1379 rockchip,pins = <2 RK_PA5 1 &pcfg_pull_up>;
1380 };
1381
1382 sdmmc_bus4: sdmmc-bus4 {
1383 rockchip,pins = <2 RK_PA5 1 &pcfg_pull_up>,
1384 <2 RK_PA6 1 &pcfg_pull_up>,
1385 <2 RK_PA7 1 &pcfg_pull_up>,
1386 <2 RK_PB0 1 &pcfg_pull_up>;
1387 };
1388 };
1389
1390 spdif {
1391 spdif_tx: spdif-tx {
1392 rockchip,pins = <2 RK_PC7 1 &pcfg_pull_none>;
1393 };
1394 };
1395
1396 spi0 {
1397 spi0_clk: spi0-clk {
1398 rockchip,pins = <1 RK_PD5 2 &pcfg_pull_up>;
1399 };
1400 spi0_cs0: spi0-cs0 {
1401 rockchip,pins = <1 RK_PD0 3 &pcfg_pull_up>;
1402 };
1403 spi0_cs1: spi0-cs1 {
1404 rockchip,pins = <1 RK_PD1 3 &pcfg_pull_up>;
1405 };
1406 spi0_tx: spi0-tx {
1407 rockchip,pins = <1 RK_PC7 3 &pcfg_pull_up>;
1408 };
1409 spi0_rx: spi0-rx {
1410 rockchip,pins = <1 RK_PC6 3 &pcfg_pull_up>;
1411 };
1412 };
1413
1414 spi1 {
1415 spi1_clk: spi1-clk {
1416 rockchip,pins = <1 RK_PB6 2 &pcfg_pull_up>;
1417 };
1418 spi1_cs0: spi1-cs0 {
1419 rockchip,pins = <1 RK_PB7 2 &pcfg_pull_up>;
1420 };
1421 spi1_cs1: spi1-cs1 {
1422 rockchip,pins = <3 RK_PD4 2 &pcfg_pull_up>;
1423 };
1424 spi1_rx: spi1-rx {
1425 rockchip,pins = <1 RK_PC0 2 &pcfg_pull_up>;
1426 };
1427 spi1_tx: spi1-tx {
1428 rockchip,pins = <1 RK_PC1 2 &pcfg_pull_up>;
1429 };
1430 };
1431
1432 spi2 {
1433 spi2_clk: spi2-clk {
1434 rockchip,pins = <0 RK_PB4 2 &pcfg_pull_up>;
1435 };
1436 spi2_cs0: spi2-cs0 {
1437 rockchip,pins = <0 RK_PB5 2 &pcfg_pull_up>;
1438 };
1439 spi2_rx: spi2-rx {
1440 rockchip,pins = <0 RK_PB2 2 &pcfg_pull_up>;
1441 };
1442 spi2_tx: spi2-tx {
1443 rockchip,pins = <0 RK_PB3 2 &pcfg_pull_up>;
1444 };
1445 };
1446
1447 tsadc {
1448 otp_pin: otp-pin {
1449 rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
1450 };
1451
1452 otp_out: otp-out {
1453 rockchip,pins = <0 RK_PA3 1 &pcfg_pull_none>;
1454 };
1455 };
1456
1457 uart0 {
1458 uart0_xfer: uart0-xfer {
1459 rockchip,pins = <2 RK_PD0 1 &pcfg_pull_up>,
1460 <2 RK_PD1 1 &pcfg_pull_none>;
1461 };
1462
1463 uart0_cts: uart0-cts {
1464 rockchip,pins = <2 RK_PD2 1 &pcfg_pull_none>;
1465 };
1466
1467 uart0_rts: uart0-rts {
1468 rockchip,pins = <2 RK_PD3 1 &pcfg_pull_none>;
1469 };
1470 };
1471
1472 uart1 {
1473 uart1_xfer: uart1-xfer {
1474 rockchip,pins = <0 RK_PC4 3 &pcfg_pull_up>,
1475 <0 RK_PC5 3 &pcfg_pull_none>;
1476 };
1477
1478 uart1_cts: uart1-cts {
1479 rockchip,pins = <0 RK_PC6 3 &pcfg_pull_none>;
1480 };
1481
1482 uart1_rts: uart1-rts {
1483 rockchip,pins = <0 RK_PC7 3 &pcfg_pull_none>;
1484 };
1485 };
1486
1487 uart2 {
1488 uart2_xfer: uart2-xfer {
1489 rockchip,pins = <2 RK_PA6 2 &pcfg_pull_up>,
1490 <2 RK_PA5 2 &pcfg_pull_none>;
1491 };
1492 /* no rts / cts for uart2 */
1493 };
1494
1495 uart3 {
1496 uart3_xfer: uart3-xfer {
1497 rockchip,pins = <3 RK_PD5 2 &pcfg_pull_up>,
1498 <3 RK_PD6 3 &pcfg_pull_none>;
1499 };
1500
1501 uart3_cts: uart3-cts {
1502 rockchip,pins = <3 RK_PC0 2 &pcfg_pull_none>;
1503 };
1504
1505 uart3_rts: uart3-rts {
1506 rockchip,pins = <3 RK_PC1 2 &pcfg_pull_none>;
1507 };
1508 };
1509
1510 uart4 {
1511 uart4_xfer: uart4-xfer {
1512 rockchip,pins = <0 RK_PD3 3 &pcfg_pull_up>,
1513 <0 RK_PD2 3 &pcfg_pull_none>;
1514 };
1515
1516 uart4_cts: uart4-cts {
1517 rockchip,pins = <0 RK_PD0 3 &pcfg_pull_none>;
1518 };
1519
1520 uart4_rts: uart4-rts {
1521 rockchip,pins = <0 RK_PD1 3 &pcfg_pull_none>;
1522 };
1523 };
1524 };
1525 };