1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2015 Heiko Stuebner <heiko@sntech.de>
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/soc/rockchip,boot-mode.h>
12 #include <dt-bindings/thermal/thermal.h>
15 compatible = "rockchip,rk3368";
16 interrupt-parent = <&gic>;
39 #address-cells = <0x2>;
76 compatible = "arm,cortex-a53";
78 enable-method = "psci";
79 #cooling-cells = <2>; /* min followed by max */
84 compatible = "arm,cortex-a53";
86 enable-method = "psci";
87 #cooling-cells = <2>; /* min followed by max */
92 compatible = "arm,cortex-a53";
94 enable-method = "psci";
95 #cooling-cells = <2>; /* min followed by max */
100 compatible = "arm,cortex-a53";
102 enable-method = "psci";
103 #cooling-cells = <2>; /* min followed by max */
108 compatible = "arm,cortex-a53";
110 enable-method = "psci";
111 #cooling-cells = <2>; /* min followed by max */
116 compatible = "arm,cortex-a53";
118 enable-method = "psci";
119 #cooling-cells = <2>; /* min followed by max */
124 compatible = "arm,cortex-a53";
126 enable-method = "psci";
127 #cooling-cells = <2>; /* min followed by max */
132 compatible = "arm,cortex-a53";
134 enable-method = "psci";
135 #cooling-cells = <2>; /* min followed by max */
140 compatible = "simple-bus";
141 #address-cells = <2>;
145 dmac_peri: dma-controller@ff250000 {
146 compatible = "arm,pl330", "arm,primecell";
147 reg = <0x0 0xff250000 0x0 0x4000>;
148 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
149 <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
151 arm,pl330-broken-no-flushp;
152 clocks = <&cru ACLK_DMAC_PERI>;
153 clock-names = "apb_pclk";
156 dmac_bus: dma-controller@ff600000 {
157 compatible = "arm,pl330", "arm,primecell";
158 reg = <0x0 0xff600000 0x0 0x4000>;
159 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
160 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
162 arm,pl330-broken-no-flushp;
163 clocks = <&cru ACLK_DMAC_BUS>;
164 clock-names = "apb_pclk";
169 compatible = "arm,armv8-pmuv3";
170 interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>,
171 <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>,
172 <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>,
173 <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>,
174 <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>,
175 <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>,
176 <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
177 <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>;
178 interrupt-affinity = <&cpu_l0>, <&cpu_l1>, <&cpu_l2>,
179 <&cpu_l3>, <&cpu_b0>, <&cpu_b1>,
180 <&cpu_b2>, <&cpu_b3>;
184 compatible = "arm,psci-0.2";
189 compatible = "arm,armv8-timer";
190 interrupts = <GIC_PPI 13
191 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>,
193 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>,
195 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>,
197 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
201 compatible = "fixed-clock";
202 clock-frequency = <24000000>;
203 clock-output-names = "xin24m";
207 sdmmc: dwmmc@ff0c0000 {
208 compatible = "rockchip,rk3368-dw-mshc", "rockchip,rk3288-dw-mshc";
209 reg = <0x0 0xff0c0000 0x0 0x4000>;
210 max-frequency = <150000000>;
211 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>,
212 <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
213 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
214 fifo-depth = <0x100>;
215 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
216 resets = <&cru SRST_MMC0>;
217 reset-names = "reset";
221 sdio0: dwmmc@ff0d0000 {
222 compatible = "rockchip,rk3368-dw-mshc", "rockchip,rk3288-dw-mshc";
223 reg = <0x0 0xff0d0000 0x0 0x4000>;
224 max-frequency = <150000000>;
225 clocks = <&cru HCLK_SDIO0>, <&cru SCLK_SDIO0>,
226 <&cru SCLK_SDIO0_DRV>, <&cru SCLK_SDIO0_SAMPLE>;
227 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
228 fifo-depth = <0x100>;
229 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
230 resets = <&cru SRST_SDIO0>;
231 reset-names = "reset";
235 emmc: dwmmc@ff0f0000 {
236 compatible = "rockchip,rk3368-dw-mshc", "rockchip,rk3288-dw-mshc";
237 reg = <0x0 0xff0f0000 0x0 0x4000>;
238 max-frequency = <150000000>;
239 clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>,
240 <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>;
241 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
242 fifo-depth = <0x100>;
243 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
244 resets = <&cru SRST_EMMC>;
245 reset-names = "reset";
249 saradc: saradc@ff100000 {
250 compatible = "rockchip,saradc";
251 reg = <0x0 0xff100000 0x0 0x100>;
252 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
253 #io-channel-cells = <1>;
254 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
255 clock-names = "saradc", "apb_pclk";
256 resets = <&cru SRST_SARADC>;
257 reset-names = "saradc-apb";
262 compatible = "rockchip,rk3368-spi", "rockchip,rk3066-spi";
263 reg = <0x0 0xff110000 0x0 0x1000>;
264 clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
265 clock-names = "spiclk", "apb_pclk";
266 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
267 pinctrl-names = "default";
268 pinctrl-0 = <&spi0_clk &spi0_tx &spi0_rx &spi0_cs0>;
269 #address-cells = <1>;
275 compatible = "rockchip,rk3368-spi", "rockchip,rk3066-spi";
276 reg = <0x0 0xff120000 0x0 0x1000>;
277 clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>;
278 clock-names = "spiclk", "apb_pclk";
279 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
280 pinctrl-names = "default";
281 pinctrl-0 = <&spi1_clk &spi1_tx &spi1_rx &spi1_cs0>;
282 #address-cells = <1>;
288 compatible = "rockchip,rk3368-spi", "rockchip,rk3066-spi";
289 reg = <0x0 0xff130000 0x0 0x1000>;
290 clocks = <&cru SCLK_SPI2>, <&cru PCLK_SPI2>;
291 clock-names = "spiclk", "apb_pclk";
292 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
293 pinctrl-names = "default";
294 pinctrl-0 = <&spi2_clk &spi2_tx &spi2_rx &spi2_cs0>;
295 #address-cells = <1>;
301 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
302 reg = <0x0 0xff140000 0x0 0x1000>;
303 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
304 #address-cells = <1>;
307 clocks = <&cru PCLK_I2C2>;
308 pinctrl-names = "default";
309 pinctrl-0 = <&i2c2_xfer>;
314 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
315 reg = <0x0 0xff150000 0x0 0x1000>;
316 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
317 #address-cells = <1>;
320 clocks = <&cru PCLK_I2C3>;
321 pinctrl-names = "default";
322 pinctrl-0 = <&i2c3_xfer>;
327 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
328 reg = <0x0 0xff160000 0x0 0x1000>;
329 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
330 #address-cells = <1>;
333 clocks = <&cru PCLK_I2C4>;
334 pinctrl-names = "default";
335 pinctrl-0 = <&i2c4_xfer>;
340 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
341 reg = <0x0 0xff170000 0x0 0x1000>;
342 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
343 #address-cells = <1>;
346 clocks = <&cru PCLK_I2C5>;
347 pinctrl-names = "default";
348 pinctrl-0 = <&i2c5_xfer>;
352 uart0: serial@ff180000 {
353 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
354 reg = <0x0 0xff180000 0x0 0x100>;
355 clock-frequency = <24000000>;
356 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
357 clock-names = "baudclk", "apb_pclk";
358 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
364 uart1: serial@ff190000 {
365 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
366 reg = <0x0 0xff190000 0x0 0x100>;
367 clock-frequency = <24000000>;
368 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
369 clock-names = "baudclk", "apb_pclk";
370 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
376 uart3: serial@ff1b0000 {
377 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
378 reg = <0x0 0xff1b0000 0x0 0x100>;
379 clock-frequency = <24000000>;
380 clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
381 clock-names = "baudclk", "apb_pclk";
382 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
388 uart4: serial@ff1c0000 {
389 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
390 reg = <0x0 0xff1c0000 0x0 0x100>;
391 clock-frequency = <24000000>;
392 clocks = <&cru SCLK_UART4>, <&cru PCLK_UART4>;
393 clock-names = "baudclk", "apb_pclk";
394 interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
402 polling-delay-passive = <100>; /* milliseconds */
403 polling-delay = <5000>; /* milliseconds */
405 thermal-sensors = <&tsadc 0>;
408 cpu_alert0: cpu_alert0 {
409 temperature = <75000>; /* millicelsius */
410 hysteresis = <2000>; /* millicelsius */
413 cpu_alert1: cpu_alert1 {
414 temperature = <80000>; /* millicelsius */
415 hysteresis = <2000>; /* millicelsius */
419 temperature = <95000>; /* millicelsius */
420 hysteresis = <2000>; /* millicelsius */
427 trip = <&cpu_alert0>;
429 <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
430 <&cpu_b1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
431 <&cpu_b2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
432 <&cpu_b3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
435 trip = <&cpu_alert1>;
437 <&cpu_l0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
438 <&cpu_l1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
439 <&cpu_l2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
440 <&cpu_l3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
446 polling-delay-passive = <100>; /* milliseconds */
447 polling-delay = <5000>; /* milliseconds */
449 thermal-sensors = <&tsadc 1>;
452 gpu_alert0: gpu_alert0 {
453 temperature = <80000>; /* millicelsius */
454 hysteresis = <2000>; /* millicelsius */
458 temperature = <115000>; /* millicelsius */
459 hysteresis = <2000>; /* millicelsius */
466 trip = <&gpu_alert0>;
468 <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
469 <&cpu_b1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
470 <&cpu_b2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
471 <&cpu_b3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
477 tsadc: tsadc@ff280000 {
478 compatible = "rockchip,rk3368-tsadc";
479 reg = <0x0 0xff280000 0x0 0x100>;
480 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
481 clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>;
482 clock-names = "tsadc", "apb_pclk";
483 resets = <&cru SRST_TSADC>;
484 reset-names = "tsadc-apb";
485 pinctrl-names = "init", "default", "sleep";
486 pinctrl-0 = <&otp_gpio>;
487 pinctrl-1 = <&otp_out>;
488 pinctrl-2 = <&otp_gpio>;
489 #thermal-sensor-cells = <1>;
490 rockchip,hw-tshut-temp = <95000>;
494 gmac: ethernet@ff290000 {
495 compatible = "rockchip,rk3368-gmac";
496 reg = <0x0 0xff290000 0x0 0x10000>;
497 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
498 interrupt-names = "macirq";
499 rockchip,grf = <&grf>;
500 clocks = <&cru SCLK_MAC>,
501 <&cru SCLK_MAC_RX>, <&cru SCLK_MAC_TX>,
502 <&cru SCLK_MACREF>, <&cru SCLK_MACREF_OUT>,
503 <&cru ACLK_GMAC>, <&cru PCLK_GMAC>;
504 clock-names = "stmmaceth",
505 "mac_clk_rx", "mac_clk_tx",
506 "clk_mac_ref", "clk_mac_refout",
507 "aclk_mac", "pclk_mac";
511 usb_host0_ehci: usb@ff500000 {
512 compatible = "generic-ehci";
513 reg = <0x0 0xff500000 0x0 0x100>;
514 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
515 clocks = <&cru HCLK_HOST0>;
516 clock-names = "usbhost";
520 usb_otg: usb@ff580000 {
521 compatible = "rockchip,rk3368-usb", "rockchip,rk3066-usb",
523 reg = <0x0 0xff580000 0x0 0x40000>;
524 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
525 clocks = <&cru HCLK_OTG0>;
528 g-np-tx-fifo-size = <16>;
529 g-rx-fifo-size = <275>;
530 g-tx-fifo-size = <256 128 128 64 64 32>;
535 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
536 reg = <0x0 0xff650000 0x0 0x1000>;
537 clocks = <&cru PCLK_I2C0>;
539 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
540 pinctrl-names = "default";
541 pinctrl-0 = <&i2c0_xfer>;
542 #address-cells = <1>;
548 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
549 reg = <0x0 0xff660000 0x0 0x1000>;
550 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
551 #address-cells = <1>;
554 clocks = <&cru PCLK_I2C1>;
555 pinctrl-names = "default";
556 pinctrl-0 = <&i2c1_xfer>;
561 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
562 reg = <0x0 0xff680000 0x0 0x10>;
564 pinctrl-names = "default";
565 pinctrl-0 = <&pwm0_pin>;
566 clocks = <&cru PCLK_PWM1>;
572 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
573 reg = <0x0 0xff680010 0x0 0x10>;
575 pinctrl-names = "default";
576 pinctrl-0 = <&pwm1_pin>;
577 clocks = <&cru PCLK_PWM1>;
583 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
584 reg = <0x0 0xff680020 0x0 0x10>;
586 clocks = <&cru PCLK_PWM1>;
592 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
593 reg = <0x0 0xff680030 0x0 0x10>;
595 pinctrl-names = "default";
596 pinctrl-0 = <&pwm3_pin>;
597 clocks = <&cru PCLK_PWM1>;
602 uart2: serial@ff690000 {
603 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
604 reg = <0x0 0xff690000 0x0 0x100>;
605 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
606 clock-names = "baudclk", "apb_pclk";
607 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
608 pinctrl-names = "default";
609 pinctrl-0 = <&uart2_xfer>;
615 mbox: mbox@ff6b0000 {
616 compatible = "rockchip,rk3368-mailbox";
617 reg = <0x0 0xff6b0000 0x0 0x1000>;
618 interrupts = <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
619 <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
620 <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>,
621 <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>;
622 clocks = <&cru PCLK_MAILBOX>;
623 clock-names = "pclk_mailbox";
628 pmugrf: syscon@ff738000 {
629 compatible = "rockchip,rk3368-pmugrf", "syscon", "simple-mfd";
630 reg = <0x0 0xff738000 0x0 0x1000>;
632 pmu_io_domains: io-domains {
633 compatible = "rockchip,rk3368-pmu-io-voltage-domain";
638 compatible = "syscon-reboot-mode";
640 mode-normal = <BOOT_NORMAL>;
641 mode-recovery = <BOOT_RECOVERY>;
642 mode-bootloader = <BOOT_FASTBOOT>;
643 mode-loader = <BOOT_BL_DOWNLOAD>;
647 cru: clock-controller@ff760000 {
648 compatible = "rockchip,rk3368-cru";
649 reg = <0x0 0xff760000 0x0 0x1000>;
650 rockchip,grf = <&grf>;
655 grf: syscon@ff770000 {
656 compatible = "rockchip,rk3368-grf", "syscon", "simple-mfd";
657 reg = <0x0 0xff770000 0x0 0x1000>;
659 io_domains: io-domains {
660 compatible = "rockchip,rk3368-io-voltage-domain";
665 wdt: watchdog@ff800000 {
666 compatible = "rockchip,rk3368-wdt", "snps,dw-wdt";
667 reg = <0x0 0xff800000 0x0 0x100>;
668 clocks = <&cru PCLK_WDT>;
669 interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
674 compatible = "rockchip,rk3368-timer", "rockchip,rk3288-timer";
675 reg = <0x0 0xff810000 0x0 0x20>;
676 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
679 spdif: spdif@ff880000 {
680 compatible = "rockchip,rk3368-spdif";
681 reg = <0x0 0xff880000 0x0 0x1000>;
682 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
683 clocks = <&cru SCLK_SPDIF_8CH>, <&cru HCLK_SPDIF>;
684 clock-names = "mclk", "hclk";
685 dmas = <&dmac_bus 3>;
687 pinctrl-names = "default";
688 pinctrl-0 = <&spdif_tx>;
692 i2s_2ch: i2s-2ch@ff890000 {
693 compatible = "rockchip,rk3368-i2s", "rockchip,rk3066-i2s";
694 reg = <0x0 0xff890000 0x0 0x1000>;
695 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
696 clock-names = "i2s_clk", "i2s_hclk";
697 clocks = <&cru SCLK_I2S_2CH>, <&cru HCLK_I2S_2CH>;
698 dmas = <&dmac_bus 6>, <&dmac_bus 7>;
699 dma-names = "tx", "rx";
703 i2s_8ch: i2s-8ch@ff898000 {
704 compatible = "rockchip,rk3368-i2s", "rockchip,rk3066-i2s";
705 reg = <0x0 0xff898000 0x0 0x1000>;
706 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
707 clock-names = "i2s_clk", "i2s_hclk";
708 clocks = <&cru SCLK_I2S_8CH>, <&cru HCLK_I2S_8CH>;
709 dmas = <&dmac_bus 0>, <&dmac_bus 1>;
710 dma-names = "tx", "rx";
711 pinctrl-names = "default";
712 pinctrl-0 = <&i2s_8ch_bus>;
716 iep_mmu: iommu@ff900800 {
717 compatible = "rockchip,iommu";
718 reg = <0x0 0xff900800 0x0 0x100>;
719 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
720 interrupt-names = "iep_mmu";
721 clocks = <&cru ACLK_IEP>, <&cru HCLK_IEP>;
722 clock-names = "aclk", "iface";
727 isp_mmu: iommu@ff914000 {
728 compatible = "rockchip,iommu";
729 reg = <0x0 0xff914000 0x0 0x100>,
730 <0x0 0xff915000 0x0 0x100>;
731 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
732 interrupt-names = "isp_mmu";
733 clocks = <&cru ACLK_ISP>, <&cru HCLK_ISP>;
734 clock-names = "aclk", "iface";
736 rockchip,disable-mmu-reset;
740 vop_mmu: iommu@ff930300 {
741 compatible = "rockchip,iommu";
742 reg = <0x0 0xff930300 0x0 0x100>;
743 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
744 interrupt-names = "vop_mmu";
745 clocks = <&cru ACLK_VOP>, <&cru HCLK_VOP>;
746 clock-names = "aclk", "iface";
751 hevc_mmu: iommu@ff9a0440 {
752 compatible = "rockchip,iommu";
753 reg = <0x0 0xff9a0440 0x0 0x40>,
754 <0x0 0xff9a0480 0x0 0x40>;
755 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
756 interrupt-names = "hevc_mmu";
757 clocks = <&cru ACLK_VIDEO>, <&cru HCLK_VIDEO>;
758 clock-names = "aclk", "iface";
763 vpu_mmu: iommu@ff9a0800 {
764 compatible = "rockchip,iommu";
765 reg = <0x0 0xff9a0800 0x0 0x100>;
766 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
767 <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
768 interrupt-names = "vepu_mmu", "vdpu_mmu";
769 clocks = <&cru ACLK_VIDEO>, <&cru HCLK_VIDEO>;
770 clock-names = "aclk", "iface";
775 efuse256: efuse@ffb00000 {
776 compatible = "rockchip,rk3368-efuse";
777 reg = <0x0 0xffb00000 0x0 0x20>;
778 #address-cells = <1>;
780 clocks = <&cru PCLK_EFUSE256>;
781 clock-names = "pclk_efuse";
783 cpu_leakage: cpu-leakage@17 {
786 temp_adjust: temp-adjust@1f {
791 gic: interrupt-controller@ffb71000 {
792 compatible = "arm,gic-400";
793 interrupt-controller;
794 #interrupt-cells = <3>;
795 #address-cells = <0>;
797 reg = <0x0 0xffb71000 0x0 0x1000>,
798 <0x0 0xffb72000 0x0 0x2000>,
799 <0x0 0xffb74000 0x0 0x2000>,
800 <0x0 0xffb76000 0x0 0x2000>;
801 interrupts = <GIC_PPI 9
802 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
806 compatible = "rockchip,rk3368-pinctrl";
807 rockchip,grf = <&grf>;
808 rockchip,pmu = <&pmugrf>;
809 #address-cells = <0x2>;
813 gpio0: gpio0@ff750000 {
814 compatible = "rockchip,gpio-bank";
815 reg = <0x0 0xff750000 0x0 0x100>;
816 clocks = <&cru PCLK_GPIO0>;
817 interrupts = <GIC_SPI 0x51 IRQ_TYPE_LEVEL_HIGH>;
822 interrupt-controller;
823 #interrupt-cells = <0x2>;
826 gpio1: gpio1@ff780000 {
827 compatible = "rockchip,gpio-bank";
828 reg = <0x0 0xff780000 0x0 0x100>;
829 clocks = <&cru PCLK_GPIO1>;
830 interrupts = <GIC_SPI 0x52 IRQ_TYPE_LEVEL_HIGH>;
835 interrupt-controller;
836 #interrupt-cells = <0x2>;
839 gpio2: gpio2@ff790000 {
840 compatible = "rockchip,gpio-bank";
841 reg = <0x0 0xff790000 0x0 0x100>;
842 clocks = <&cru PCLK_GPIO2>;
843 interrupts = <GIC_SPI 0x53 IRQ_TYPE_LEVEL_HIGH>;
848 interrupt-controller;
849 #interrupt-cells = <0x2>;
852 gpio3: gpio3@ff7a0000 {
853 compatible = "rockchip,gpio-bank";
854 reg = <0x0 0xff7a0000 0x0 0x100>;
855 clocks = <&cru PCLK_GPIO3>;
856 interrupts = <GIC_SPI 0x54 IRQ_TYPE_LEVEL_HIGH>;
861 interrupt-controller;
862 #interrupt-cells = <0x2>;
865 pcfg_pull_up: pcfg-pull-up {
869 pcfg_pull_down: pcfg-pull-down {
873 pcfg_pull_none: pcfg-pull-none {
877 pcfg_pull_none_12ma: pcfg-pull-none-12ma {
879 drive-strength = <12>;
884 rockchip,pins = <2 RK_PA4 2 &pcfg_pull_none>;
888 rockchip,pins = <1 RK_PD2 2 &pcfg_pull_up>;
892 rockchip,pins = <1 RK_PD3 2 &pcfg_pull_up>;
895 emmc_bus1: emmc-bus1 {
896 rockchip,pins = <1 RK_PC2 2 &pcfg_pull_up>;
899 emmc_bus4: emmc-bus4 {
900 rockchip,pins = <1 RK_PC2 2 &pcfg_pull_up>,
901 <1 RK_PC3 2 &pcfg_pull_up>,
902 <1 RK_PC4 2 &pcfg_pull_up>,
903 <1 RK_PC5 2 &pcfg_pull_up>;
906 emmc_bus8: emmc-bus8 {
907 rockchip,pins = <1 RK_PC2 2 &pcfg_pull_up>,
908 <1 RK_PC3 2 &pcfg_pull_up>,
909 <1 RK_PC4 2 &pcfg_pull_up>,
910 <1 RK_PC5 2 &pcfg_pull_up>,
911 <1 RK_PC6 2 &pcfg_pull_up>,
912 <1 RK_PC7 2 &pcfg_pull_up>,
913 <1 RK_PD0 2 &pcfg_pull_up>,
914 <1 RK_PD1 2 &pcfg_pull_up>;
919 rgmii_pins: rgmii-pins {
920 rockchip,pins = <3 RK_PC6 1 &pcfg_pull_none>,
921 <3 RK_PD0 1 &pcfg_pull_none>,
922 <3 RK_PC3 1 &pcfg_pull_none>,
923 <3 RK_PB0 1 &pcfg_pull_none_12ma>,
924 <3 RK_PB1 1 &pcfg_pull_none_12ma>,
925 <3 RK_PB2 1 &pcfg_pull_none_12ma>,
926 <3 RK_PB6 1 &pcfg_pull_none_12ma>,
927 <3 RK_PD4 1 &pcfg_pull_none_12ma>,
928 <3 RK_PB5 1 &pcfg_pull_none_12ma>,
929 <3 RK_PB7 1 &pcfg_pull_none>,
930 <3 RK_PC0 1 &pcfg_pull_none>,
931 <3 RK_PC1 1 &pcfg_pull_none>,
932 <3 RK_PC2 1 &pcfg_pull_none>,
933 <3 RK_PD1 1 &pcfg_pull_none>,
934 <3 RK_PC4 1 &pcfg_pull_none>;
937 rmii_pins: rmii-pins {
938 rockchip,pins = <3 RK_PC6 1 &pcfg_pull_none>,
939 <3 RK_PD0 1 &pcfg_pull_none>,
940 <3 RK_PC3 1 &pcfg_pull_none>,
941 <3 RK_PB0 1 &pcfg_pull_none_12ma>,
942 <3 RK_PB1 1 &pcfg_pull_none_12ma>,
943 <3 RK_PB5 1 &pcfg_pull_none_12ma>,
944 <3 RK_PB7 1 &pcfg_pull_none>,
945 <3 RK_PC0 1 &pcfg_pull_none>,
946 <3 RK_PC4 1 &pcfg_pull_none>,
947 <3 RK_PC5 1 &pcfg_pull_none>;
952 i2c0_xfer: i2c0-xfer {
953 rockchip,pins = <0 RK_PA6 1 &pcfg_pull_none>,
954 <0 RK_PA7 1 &pcfg_pull_none>;
959 i2c1_xfer: i2c1-xfer {
960 rockchip,pins = <2 RK_PC5 1 &pcfg_pull_none>,
961 <2 RK_PC6 1 &pcfg_pull_none>;
966 i2c2_xfer: i2c2-xfer {
967 rockchip,pins = <0 RK_PB1 2 &pcfg_pull_none>,
968 <3 RK_PD7 2 &pcfg_pull_none>;
973 i2c3_xfer: i2c3-xfer {
974 rockchip,pins = <1 RK_PC0 1 &pcfg_pull_none>,
975 <1 RK_PC1 1 &pcfg_pull_none>;
980 i2c4_xfer: i2c4-xfer {
981 rockchip,pins = <3 RK_PD0 2 &pcfg_pull_none>,
982 <3 RK_PD1 2 &pcfg_pull_none>;
987 i2c5_xfer: i2c5-xfer {
988 rockchip,pins = <3 RK_PD2 2 &pcfg_pull_none>,
989 <3 RK_PD3 2 &pcfg_pull_none>;
994 i2s_8ch_bus: i2s-8ch-bus {
995 rockchip,pins = <2 RK_PB4 1 &pcfg_pull_none>,
996 <2 RK_PB5 1 &pcfg_pull_none>,
997 <2 RK_PB6 1 &pcfg_pull_none>,
998 <2 RK_PB7 1 &pcfg_pull_none>,
999 <2 RK_PC0 1 &pcfg_pull_none>,
1000 <2 RK_PC1 1 &pcfg_pull_none>,
1001 <2 RK_PC2 1 &pcfg_pull_none>,
1002 <2 RK_PC3 1 &pcfg_pull_none>,
1003 <2 RK_PC4 1 &pcfg_pull_none>;
1008 pwm0_pin: pwm0-pin {
1009 rockchip,pins = <3 RK_PB0 2 &pcfg_pull_none>;
1014 pwm1_pin: pwm1-pin {
1015 rockchip,pins = <0 RK_PB0 2 &pcfg_pull_none>;
1020 pwm3_pin: pwm3-pin {
1021 rockchip,pins = <3 RK_PD5 3 &pcfg_pull_none>;
1026 sdio0_bus1: sdio0-bus1 {
1027 rockchip,pins = <2 RK_PD4 1 &pcfg_pull_up>;
1030 sdio0_bus4: sdio0-bus4 {
1031 rockchip,pins = <2 RK_PD4 1 &pcfg_pull_up>,
1032 <2 RK_PD5 1 &pcfg_pull_up>,
1033 <2 RK_PD6 1 &pcfg_pull_up>,
1034 <2 RK_PD7 1 &pcfg_pull_up>;
1037 sdio0_cmd: sdio0-cmd {
1038 rockchip,pins = <3 RK_PA0 1 &pcfg_pull_up>;
1041 sdio0_clk: sdio0-clk {
1042 rockchip,pins = <3 RK_PA1 1 &pcfg_pull_none>;
1045 sdio0_cd: sdio0-cd {
1046 rockchip,pins = <3 RK_PA2 1 &pcfg_pull_up>;
1049 sdio0_wp: sdio0-wp {
1050 rockchip,pins = <3 RK_PA3 1 &pcfg_pull_up>;
1053 sdio0_pwr: sdio0-pwr {
1054 rockchip,pins = <3 RK_PA4 1 &pcfg_pull_up>;
1057 sdio0_bkpwr: sdio0-bkpwr {
1058 rockchip,pins = <3 RK_PA5 1 &pcfg_pull_up>;
1061 sdio0_int: sdio0-int {
1062 rockchip,pins = <3 RK_PA6 1 &pcfg_pull_up>;
1067 sdmmc_clk: sdmmc-clk {
1068 rockchip,pins = <2 RK_PB1 1 &pcfg_pull_none>;
1071 sdmmc_cmd: sdmmc-cmd {
1072 rockchip,pins = <2 RK_PB2 1 &pcfg_pull_up>;
1075 sdmmc_cd: sdmmc-cd {
1076 rockchip,pins = <2 RK_PB3 1 &pcfg_pull_up>;
1079 sdmmc_bus1: sdmmc-bus1 {
1080 rockchip,pins = <2 RK_PA5 1 &pcfg_pull_up>;
1083 sdmmc_bus4: sdmmc-bus4 {
1084 rockchip,pins = <2 RK_PA5 1 &pcfg_pull_up>,
1085 <2 RK_PA6 1 &pcfg_pull_up>,
1086 <2 RK_PA7 1 &pcfg_pull_up>,
1087 <2 RK_PB0 1 &pcfg_pull_up>;
1092 spdif_tx: spdif-tx {
1093 rockchip,pins = <2 RK_PC7 1 &pcfg_pull_none>;
1098 spi0_clk: spi0-clk {
1099 rockchip,pins = <1 RK_PD5 2 &pcfg_pull_up>;
1101 spi0_cs0: spi0-cs0 {
1102 rockchip,pins = <1 RK_PD0 3 &pcfg_pull_up>;
1104 spi0_cs1: spi0-cs1 {
1105 rockchip,pins = <1 RK_PD1 3 &pcfg_pull_up>;
1108 rockchip,pins = <1 RK_PC7 3 &pcfg_pull_up>;
1111 rockchip,pins = <1 RK_PC6 3 &pcfg_pull_up>;
1116 spi1_clk: spi1-clk {
1117 rockchip,pins = <1 RK_PB6 2 &pcfg_pull_up>;
1119 spi1_cs0: spi1-cs0 {
1120 rockchip,pins = <1 RK_PB7 2 &pcfg_pull_up>;
1122 spi1_cs1: spi1-cs1 {
1123 rockchip,pins = <3 RK_PD4 2 &pcfg_pull_up>;
1126 rockchip,pins = <1 RK_PC0 2 &pcfg_pull_up>;
1129 rockchip,pins = <1 RK_PC1 2 &pcfg_pull_up>;
1134 spi2_clk: spi2-clk {
1135 rockchip,pins = <0 RK_PB4 2 &pcfg_pull_up>;
1137 spi2_cs0: spi2-cs0 {
1138 rockchip,pins = <0 RK_PB5 2 &pcfg_pull_up>;
1141 rockchip,pins = <0 RK_PB2 2 &pcfg_pull_up>;
1144 rockchip,pins = <0 RK_PB3 2 &pcfg_pull_up>;
1149 otp_gpio: otp-gpio {
1150 rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
1154 rockchip,pins = <0 RK_PA3 1 &pcfg_pull_none>;
1159 uart0_xfer: uart0-xfer {
1160 rockchip,pins = <2 RK_PD0 1 &pcfg_pull_up>,
1161 <2 RK_PD1 1 &pcfg_pull_none>;
1164 uart0_cts: uart0-cts {
1165 rockchip,pins = <2 RK_PD2 1 &pcfg_pull_none>;
1168 uart0_rts: uart0-rts {
1169 rockchip,pins = <2 RK_PD3 1 &pcfg_pull_none>;
1174 uart1_xfer: uart1-xfer {
1175 rockchip,pins = <0 RK_PC4 3 &pcfg_pull_up>,
1176 <0 RK_PC5 3 &pcfg_pull_none>;
1179 uart1_cts: uart1-cts {
1180 rockchip,pins = <0 RK_PC6 3 &pcfg_pull_none>;
1183 uart1_rts: uart1-rts {
1184 rockchip,pins = <0 RK_PC7 3 &pcfg_pull_none>;
1189 uart2_xfer: uart2-xfer {
1190 rockchip,pins = <2 RK_PA6 2 &pcfg_pull_up>,
1191 <2 RK_PA5 2 &pcfg_pull_none>;
1193 /* no rts / cts for uart2 */
1197 uart3_xfer: uart3-xfer {
1198 rockchip,pins = <3 RK_PD5 2 &pcfg_pull_up>,
1199 <3 RK_PD6 3 &pcfg_pull_none>;
1202 uart3_cts: uart3-cts {
1203 rockchip,pins = <3 RK_PC0 2 &pcfg_pull_none>;
1206 uart3_rts: uart3-rts {
1207 rockchip,pins = <3 RK_PC1 2 &pcfg_pull_none>;
1212 uart4_xfer: uart4-xfer {
1213 rockchip,pins = <0 RK_PD3 3 &pcfg_pull_up>,
1214 <0 RK_PD2 3 &pcfg_pull_none>;
1217 uart4_cts: uart4-cts {
1218 rockchip,pins = <0 RK_PD0 3 &pcfg_pull_none>;
1221 uart4_rts: uart4-rts {
1222 rockchip,pins = <0 RK_PD1 3 &pcfg_pull_none>;