1 #include <dt-bindings/interrupt-controller/arm-gic.h>
2 #include <dt-bindings/suspend/rockchip-rk3368.h>
3 #include <dt-bindings/pinctrl/rockchip.h>
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/sensor-dev.h>
6 #include <dt-bindings/clock/rk_system_status.h>
8 #include "rk3368-clocks.dtsi"
9 #include <rk3368_dram_default_timing.dtsi>
12 compatible = "rockchip,rk3368";
14 rockchip,sram = <&sram>;
15 interrupt-parent = <&gic>;
42 entry-method = "arm,psci";
43 CPU_SLEEP_0: cpu-sleep-0 {
44 compatible = "arm,idle-state";
45 arm,psci-suspend-param = <0x1010000>;
46 entry-latency-us = <0x3fffffff>;
47 exit-latency-us = <0x40000000>;
48 min-residency-us = <0xffffffff>;
54 compatible = "arm,cortex-a53", "arm,armv8";
56 enable-method = "psci";
57 cpu-idle-states = <&CPU_SLEEP_0>;
61 compatible = "arm,cortex-a53", "arm,armv8";
63 enable-method = "psci";
64 cpu-idle-states = <&CPU_SLEEP_0>;
68 compatible = "arm,cortex-a53", "arm,armv8";
70 enable-method = "psci";
71 cpu-idle-states = <&CPU_SLEEP_0>;
75 compatible = "arm,cortex-a53", "arm,armv8";
77 enable-method = "psci";
78 cpu-idle-states = <&CPU_SLEEP_0>;
82 compatible = "arm,cortex-a53", "arm,armv8";
84 enable-method = "psci";
85 cpu-idle-states = <&CPU_SLEEP_0>;
89 compatible = "arm,cortex-a53", "arm,armv8";
91 enable-method = "psci";
92 cpu-idle-states = <&CPU_SLEEP_0>;
96 compatible = "arm,cortex-a53", "arm,armv8";
98 enable-method = "psci";
99 cpu-idle-states = <&CPU_SLEEP_0>;
103 compatible = "arm,cortex-a53", "arm,armv8";
105 enable-method = "psci";
106 cpu-idle-states = <&CPU_SLEEP_0>;
142 compatible = "arm,psci-0.2";
146 gic: interrupt-controller@ffb70000 {
147 compatible = "arm,cortex-a15-gic";
148 #interrupt-cells = <3>;
149 #address-cells = <0>;
150 interrupt-controller;
151 reg = <0x0 0xffb71000 0 0x1000>,
152 <0x0 0xffb72000 0 0x1000>;
155 ddrpctl: syscon@ff610000 {
156 compatible = "rockchip,rk3368-ddrpctl", "syscon";
157 reg = <0x0 0xff610000 0x0 0x400>;
160 pmu: syscon@ff730000 {
161 compatible = "rockchip,rk3368-pmu", "rockchip,pmu", "syscon";
162 reg = <0x0 0xff730000 0x0 0x1000>;
165 pmugrf: syscon@ff738000 {
166 compatible = "rockchip,rk3368-pmugrf", "rockchip,pmugrf", "syscon";
167 reg = <0x0 0xff738000 0x0 0x1000>;
170 sgrf: syscon@ff740000 {
171 compatible = "rockchip,rk3368-sgrf", "rockchip,sgrf", "syscon";
172 reg = <0x0 0xff740000 0x0 0x1000>;
176 cru: syscon@ff760000 {
177 compatible = "rockchip,rk3368-cru", "rockchip,cru", "syscon";
178 reg = <0x0 0xff760000 0x0 0x1000>;
181 grf: syscon@ff770000 {
182 compatible = "rockchip,rk3368-grf", "rockchip,grf", "syscon";
183 reg = <0x0 0xff770000 0x0 0x1000>;
186 msch: syscon@ffac0000 {
187 compatible = "rockchip,rk3368-msch", "rockchip,msch", "syscon";
188 reg = <0x0 0xffac0000 0x0 0x3000>;
192 compatible = "arm,armv8-pmuv3";
193 interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>,
194 <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>,
195 <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>,
196 <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>,
197 <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>,
198 <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>,
199 <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
200 <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>;
203 cpu_axi_bus: cpu_axi_bus {
204 compatible = "rockchip,cpu_axi_bus";
205 #address-cells = <2>;
210 #address-cells = <2>;
215 reg = <0x0 0xffa80000 0x0 0x20>;
218 reg = <0x0 0xffa80080 0x0 0x20>;
221 reg = <0x0 0xffa80280 0x0 0x20>;
224 reg = <0x0 0xffa90000 0x0 0x20>;
227 reg = <0x0 0xffaa0000 0x0 0x20>;
230 reg = <0x0 0xffaa0080 0x0 0x20>;
233 reg = <0x0 0xffab0000 0x0 0x20>;
234 rockchip,priority = <2 2>;
237 reg = <0x0 0xffad0000 0x0 0x20>;
240 reg = <0x0 0xffad0080 0x0 0x20>;
243 reg = <0x0 0xffad0100 0x0 0x20>;
246 reg = <0x0 0xffad0180 0x0 0x20>;
247 rockchip,priority = <2 2>;
250 reg = <0x0 0xffad0200 0x0 0x20>;
251 rockchip,priority = <2 2>;
254 reg = <0x0 0xffad0280 0x0 0x20>;
257 reg = <0x0 0xffad0300 0x0 0x20>;
258 rockchip,priority = <2 2>;
261 reg = <0x0 0xffad0380 0x0 0x20>;
264 reg = <0x0 0xffad0400 0x0 0x20>;
267 reg = <0x0 0xffae0000 0x0 0x20>;
270 reg = <0x0 0xffae0100 0x0 0x20>;
273 reg = <0x0 0xffae0180 0x0 0x20>;
276 reg = <0x0 0xffaf0000 0x0 0x20>;
281 #address-cells = <2>;
286 reg = <0x0 0xffac0000 0x0 0x3c>;
287 rockchip,read-latency = <0x34>;
293 compatible = "rockchip,rk3368-efuse-256";
294 reg = <0x0 0xffb00000 0x0 0x8>;
298 compatible = "arm,armv8-timer";
299 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>,
300 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>,
301 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>,
302 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
303 clock-frequency = <24000000>;
307 compatible = "rockchip,timer";
308 reg = <0x0 0xff810000 0x0 0x20>;
309 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
310 rockchip,broadcast = <1>;
314 compatible = "rockchip,timer";
315 reg = <0x0 0xff810020 0x0 0x20>;
316 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
317 rockchip,percpu = <0>;
320 sram: sram@ff8c0000 {
321 compatible = "mmio-sram";
322 reg = <0x0 0xff8c0000 0x0 0xf000>; /* 60K (reserved 4K for mailbox)*/
326 watchdog: wdt@ff800000 {
327 compatible = "rockchip,watch dog";
328 reg = <0x0 0xff800000 0x0 0x100>;
329 clocks = <&pclk_alive_pre>;
330 clock-names = "pclk_wdt";
331 interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
333 rockchip,timeout = <60>;
334 rockchip,atboot = <1>;
335 rockchip,debug = <0>;
340 #address-cells = <2>;
342 compatible = "arm,amba-bus";
343 interrupt-parent = <&gic>;
346 pdma0: pdma@ff600000 {
347 compatible = "arm,pl330", "arm,primecell";
348 reg = <0x0 0xff600000 0x0 0x4000>;
349 clocks = <&clk_gates12 11>;
350 clock-names = "apb_pclk";
351 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
352 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
357 pdma1: pdma@ff250000 {
358 compatible = "arm,pl330", "arm,primecell";
359 reg = <0x0 0xff250000 0x0 0x4000>;
360 clocks = <&clk_gates19 3>;
361 clock-names = "apb_pclk";
362 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
363 <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
368 reset: reset@ff760300{
369 compatible = "rockchip,reset";
370 reg = <0x0 0xff760300 0x0 0x38>;
371 rockchip,reset-flag = <ROCKCHIP_RESET_HIWORD_MASK>;
375 nandc0: nandc@ff400000 {
376 compatible = "rockchip,rk-nandc";
377 reg = <0x0 0xff400000 0x0 0x4000>;
378 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
380 clocks = <&clk_nandc0>, <&clk_gates20 9>, <&clk_gates20 11>;
381 clock-names = "clk_nandc", "g_clk_nandc", "hclk_nandc";
384 nandc0reg: nandc0@ff400000 {
385 compatible = "rockchip,rk-nandc";
386 reg = <0x0 0xff400000 0x0 0x4000>;
389 emmc: rksdmmc@ff0f0000 {
390 compatible = "rockchip,rk_mmc", "rockchip,rk3368-sdmmc";
391 reg = <0x0 0xff0f0000 0x0 0x4000>;
392 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
393 #address-cells = <1>;
395 clocks = <&clk_emmc>, <&clk_gates21 2>, <&clk_gates20 10>;
396 clock-names = "clk_mmc", "hclk_mmc", "hpclk_mmc";
397 rockchip,grf = <&grf>;
398 rockchip,cru = <&cru>;
400 fifo-depth = <0x100>;
402 tune_regsbase = <0x418>;
403 cru_regsbase = <0x320>;
404 cru_reset_offset = <3>;
407 sdmmc: rksdmmc@ff0c0000 {
408 compatible = "rockchip,rk_mmc", "rockchip,rk3368-sdmmc";
409 reg = <0x0 0xff0c0000 0x0 0x4000>;
410 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
411 #address-cells = <1>;
413 pinctrl-names = "default", "idle", "udbg";
414 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_dectn &sdmmc_bus4>;
415 pinctrl-1 = <&sdmmc_gpio>;
416 pinctrl-2 = <&uart2_xfer &cpu_jtag &mcu_jtag &sdmmc_dectn>;
417 cd-gpios = <&gpio2 GPIO_B3 GPIO_ACTIVE_HIGH>;/*CD GPIO*/
418 clocks = <&clk_sdmmc0>, <&clk_gates21 0>, <&clk_gates20 10>;
419 clock-names = "clk_mmc", "hclk_mmc", "hpclk_mmc";
420 rockchip,grf = <&grf>;
421 rockchip,cru = <&cru>;
423 fifo-depth = <0x100>;
425 tune_regsbase = <0x400>;
426 cru_regsbase = <0x320>;
427 cru_reset_offset = <0>;
430 sdio: rksdmmc@ff0d0000 {
431 compatible = "rockchip,rk_mmc", "rockchip,rk3368-sdmmc";
432 reg = <0x0 0xff0d0000 0x0 0x4000>;
433 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
434 #address-cells = <1>;
436 pinctrl-names = "default","idle";
437 pinctrl-0 = <&sdio0_clk &sdio0_cmd &sdio0_wrprt &sdio0_pwren &sdio0_bkpwr &sdio0_int &sdio0_bus4>;
438 pinctrl-1 = <&sdio0_gpio>;
439 clocks = <&clk_sdio0>, <&clk_gates21 1>, <&clk_gates20 10>;
440 clock-names = "clk_mmc", "hclk_mmc", "hpclk_mmc";
441 rockchip,grf = <&grf>;
442 rockchip,cru = <&cru>;
444 fifo-depth = <0x100>;
446 tune_regsbase = <0x408>;
447 cru_regsbase = <0x320>;
448 cru_reset_offset = <1>;
452 compatible = "rockchip,rockchip-spi";
453 reg = <0x0 0xff110000 0x0 0x1000>;
454 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
455 #address-cells = <1>;
457 pinctrl-names = "default";
458 pinctrl-0 = <&spi0_clk &spi0_tx &spi0_rx &spi0_cs0 &spi0_cs1>;
459 rockchip,spi-src-clk = <0>;
461 clocks =<&clk_spi0>, <&clk_gates19 4>;
462 clock-names = "spi", "pclk_spi0";
463 //dmas = <&pdma1 11>, <&pdma1 12>;
465 //dma-names = "tx", "rx";
470 compatible = "rockchip,rockchip-spi";
471 reg = <0x0 0xff120000 0x0 0x1000>;
472 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
473 #address-cells = <1>;
475 pinctrl-names = "default";
476 pinctrl-0 = <&spi1_clk &spi1_tx &spi1_rx &spi1_cs0 &spi1_cs1>;
477 rockchip,spi-src-clk = <1>;
479 clocks = <&clk_spi1>, <&clk_gates19 5>;
480 clock-names = "spi", "pclk_spi1";
481 //dmas = <&pdma1 13>, <&pdma1 14>;
483 //dma-names = "tx", "rx";
488 compatible = "rockchip,rockchip-spi";
489 reg = <0x0 0xff130000 0x0 0x1000>;
490 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
491 #address-cells = <1>;
493 pinctrl-names = "default";
494 pinctrl-0 = <&spi2_clk &spi2_tx &spi2_rx &spi2_cs0>;
495 rockchip,spi-src-clk = <2>;
497 clocks = <&clk_spi2>, <&clk_gates19 6>;
498 clock-names = "spi", "pclk_spi2";
499 //dmas = <&pdma1 15>, <&pdma1 16>;
501 //dma-names = "tx", "rx";
505 uart_bt: serial@ff180000 {
506 compatible = "rockchip,serial";
507 reg = <0x0 0xff180000 0x0 0x100>;
508 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
509 clock-frequency = <24000000>;
510 clocks = <&clk_uart0>, <&clk_gates19 7>;
511 clock-names = "sclk_uart", "pclk_uart";
514 //dmas = <&pdma1 1>, <&pdma1 2>;
516 pinctrl-names = "default";
517 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
521 uart_bb: serial@ff190000 {
522 compatible = "rockchip,serial";
523 reg = <0x0 0xff190000 0x0 0x100>;
524 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
525 clock-frequency = <24000000>;
526 clocks = <&clk_uart1>, <&clk_gates19 8>;
527 clock-names = "sclk_uart", "pclk_uart";
530 //dmas = <&pdma1 3>, <&pdma1 4>;
532 pinctrl-names = "default";
533 pinctrl-0 = <&uart1_xfer &uart1_cts &uart1_rts>;
537 uart_dbg: serial@ff690000 {
538 compatible = "rockchip,serial";
539 reg = <0x0 0xff690000 0x0 0x100>;
540 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
541 clock-frequency = <24000000>;
542 clocks = <&clk_uart2>, <&clk_gates13 5>;
543 clock-names = "sclk_uart", "pclk_uart";
546 //dmas = <&pdma0 4>, <&pdma0 5>;
548 //pinctrl-names = "default";
549 //pinctrl-0 = <&uart2_xfer>;
553 uart_gps: serial@ff1b0000 {
554 compatible = "rockchip,serial";
555 reg = <0x0 0xff1b0000 0x0 0x100>;
556 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
557 clock-frequency = <24000000>;
558 clocks = <&clk_uart3>, <&clk_gates19 9>;
559 clock-names = "sclk_uart", "pclk_uart";
560 current-speed = <115200>;
563 //dmas = <&pdma1 7>, <&pdma1 8>;
565 pinctrl-names = "default";
566 pinctrl-0 = <&uart3_xfer &uart3_cts &uart3_rts>;
570 uart_exp: serial@ff1c0000 {
571 compatible = "rockchip,serial";
572 reg = <0x0 0xff1c0000 0x0 0x100>;
573 interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
574 clock-frequency = <24000000>;
575 clocks = <&clk_uart4>, <&clk_gates19 10>;
576 clock-names = "sclk_uart", "pclk_uart";
579 //dmas = <&pdma1 9>, <&pdma1 10>;
581 pinctrl-names = "default";
582 pinctrl-0 = <&uart4_xfer &uart4_cts &uart4_rts>;
587 compatible = "rockchip,fiq-debugger";
588 rockchip,serial-id = <2>;
589 rockchip,signal-irq = <186>;
590 rockchip,wake-irq = <0>;
591 rockchip,irq-mode-enable = <0>; /* If enable uart uses irq instead of fiq */
592 rockchip,baudrate = <115200>; /* Only 115000 and 1500000 */
596 mbox: mbox@ff6b0000 {
597 compatible = "rockchip,rk3368-mailbox";
598 reg = <0x0 0xff6b0000 0x0 0x1000>,
599 <0x0 0xff8cf000 0x0 0x1000>; /* the end 4k of sram */
600 interrupts = <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>,
601 <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
602 <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>,
603 <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>;
604 clocks = <&clk_gates12 1>;
605 clock-names = "pclk_mailbox";
609 mbox_scpi: mbox-scpi {
610 compatible = "rockchip,mbox-scpi";
611 mboxes = <&mbox 0 &mbox 1 &mbox 2>;
616 compatible = "rockchip,rk3368-ddr";
618 rockchip,ddrpctl = <&ddrpctl>;
619 rockchip,grf = <&grf>;
620 rockchip,msch = <&msch>;
621 rockchip,ddr_timing = <&ddr_timing>;
624 rockchip_clocks_init: clocks-init{
625 compatible = "rockchip,clocks-init";
626 rockchip,clocks-init-parent =
627 <&i2s_pll &clk_gpll>, <&spdif_8ch_pll &clk_gpll>,
628 <&i2s_2ch_pll &clk_gpll>, <&usbphy_480m &usbotg_480m_out>,
629 <&clk_uart_pll &clk_gpll>, <&aclk_gpu &clk_cpll>,
630 <&clk_cs &clk_gpll>, <&clk_32k_mux &pvtm_clkout>;
631 rockchip,clocks-init-rate =
632 <&clk_gpll 576000000>, <&clk_core_b 792000000>,
633 <&clk_core_l 600000000>, <&clk_cpll 400000000>,
634 /*<&clk_npll 500000000>,*/ <&aclk_bus 300000000>,
635 <&hclk_bus 150000000>, <&pclk_bus 75000000>,
636 <&clk_crypto 150000000>, <&aclk_peri 300000000>,
637 <&hclk_peri 150000000>, <&pclk_peri 75000000>,
638 <&pclk_alive_pre 100000000>, <&pclk_pmu_pre 100000000>,
639 <&clk_cs 300000000>, <&clkin_trace 300000000>,
640 <&aclk_cci 600000000>, <&clk_mac 125000000>,
641 <&aclk_vio0 400000000>, <&hclk_vio 100000000>,
642 <&aclk_rga_pre 400000000>, <&clk_rga 400000000>,
643 <&clk_isp 400000000>, <&clk_edp 200000000>,
644 <&clk_gpu_core 400000000>, <&aclk_gpu_mem 400000000>,
645 <&aclk_gpu_cfg 400000000>, <&aclk_vepu 400000000>,
646 <&aclk_vdpu 400000000>, <&clk_hevc_core 300000000>,
647 <&clk_hevc_cabac 300000000>;
649 rockchip,clocks-uboot-has-init =
654 rockchip_clocks_enable: clocks-enable {
655 compatible = "rockchip,clocks-enable";
673 <&clk_gates12 12>,/*aclk_strc_sys*/
674 <&clk_gates12 6>,/*aclk_intmem1*/
675 <&clk_gates12 5>,/*aclk_intmem0*/
676 <&clk_gates12 4>,/*aclk_intmem*/
677 <&clk_gates13 9>,/*aclk_gic400*/
678 <&clk_gates12 9>,/*hclk_rom*/
681 <&clk_gates22 12>,/*pclk_timer0*/
682 <&clk_gates22 9>,/*pclk_alive_niu*/
683 <&clk_gates22 8>,/*pclk_grf*/
686 <&clk_gates23 5>,/*pclk_pmugrf*/
687 <&clk_gates23 3>,/*pclk_sgrf*/
688 <&clk_gates23 2>,/*pclk_pmu_noc*/
689 <&clk_gates23 1>,/*pclk_intmem1*/
690 <&clk_gates23 0>,/*pclk_pmu*/
693 <&clk_gates19 2>,/*aclk_peri_axi_matrix*/
694 <&clk_gates20 8>,/*aclk_peri_niu*/
695 <&clk_gates21 4>,/*aclk_peri_mmu*/
696 <&clk_gates19 0>,/*hclk_peri_axi_matrix*/
697 <&clk_gates20 7>,/*hclk_peri_ahb_arbi*/
698 <&clk_gates19 1>,/*pclk_peri_axi_matrix*/
700 <&clk_gates24 0>, /* g_clk_timer0 */
701 <&clk_gates24 1>, /* g_clk_timer1 */
705 <&clk_gates7 0>;/*clk_jtag*/
710 compatible = "rockchip,rk30-i2c";
711 reg = <0x0 0xff650000 0x0 0x1000>;
712 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
713 #address-cells = <1>;
715 pinctrl-names = "default", "gpio", "sleep";
716 pinctrl-0 = <&i2c0_xfer>;
717 pinctrl-1 = <&i2c0_gpio>;
718 pinctrl-2 = <&i2c0_sleep>;
719 gpios = <&gpio0 GPIO_A6 GPIO_ACTIVE_LOW>, <&gpio0 GPIO_A7 GPIO_ACTIVE_LOW>;
720 clocks = <&clk_gates12 2>;
721 rockchip,check-idle = <1>;
727 compatible = "rockchip,rk30-i2c";
728 reg = <0x0 0xff660000 0x0 0x1000>;
729 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
730 #address-cells = <1>;
732 pinctrl-names = "default", "gpio", "sleep";
733 pinctrl-0 = <&i2c1_xfer>;
734 pinctrl-1 = <&i2c1_gpio>;
735 pinctrl-2 = <&i2c1_sleep>;
736 gpios = <&gpio2 GPIO_C5 GPIO_ACTIVE_LOW>, <&gpio2 GPIO_C6 GPIO_ACTIVE_LOW>;
737 clocks = <&clk_gates12 3>;
738 rockchip,check-idle = <1>;
744 compatible = "rockchip,rk30-i2c";
745 reg = <0x0 0xff140000 0x0 0x1000>;
746 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
747 #address-cells = <1>;
749 pinctrl-names = "default", "gpio", "sleep";
750 pinctrl-0 = <&i2c2_xfer>;
751 pinctrl-1 = <&i2c2_gpio>;
752 pinctrl-2 = <&i2c2_sleep>;
753 gpios = <&gpio3 GPIO_D7 GPIO_ACTIVE_LOW>, <&gpio0 GPIO_B1 GPIO_ACTIVE_LOW>;
754 clocks = <&clk_gates19 11>;
755 rockchip,check-idle = <1>;
761 compatible = "rockchip,rk30-i2c";
762 reg = <0x0 0xff150000 0x0 0x1000>;
763 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
764 #address-cells = <1>;
766 pinctrl-names = "default", "gpio", "sleep";
767 pinctrl-0 = <&i2c3_xfer>;
768 pinctrl-1 = <&i2c3_gpio>;
769 pinctrl-2 = <&i2c3_sleep>;
770 gpios = <&gpio1 GPIO_C1 GPIO_ACTIVE_LOW>, <&gpio1 GPIO_C0 GPIO_ACTIVE_LOW>;
771 clocks = <&clk_gates19 12>;
772 rockchip,check-idle = <1>;
778 compatible = "rockchip,rk30-i2c";
779 reg = <0x0 0xff160000 0x0 0x1000>;
780 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
781 #address-cells = <1>;
783 pinctrl-names = "default", "gpio", "sleep";
784 pinctrl-0 = <&i2c4_xfer>;
785 pinctrl-1 = <&i2c4_gpio>;
786 pinctrl-2 = <&i2c4_sleep>;
787 gpios = <&gpio3 GPIO_D0 GPIO_ACTIVE_LOW>, <&gpio3 GPIO_D1 GPIO_ACTIVE_LOW>;
788 clocks = <&clk_gates19 13>;
789 rockchip,check-idle = <1>;
795 compatible = "rockchip,rk30-i2c";
796 reg = <0x0 0xff170000 0x0 0x1000>;
797 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
798 #address-cells = <1>;
800 pinctrl-names = "default", "gpio", "sleep";
801 pinctrl-0 = <&i2c5_xfer>;
802 pinctrl-1 = <&i2c5_gpio>;
803 pinctrl-2 = <&i2c5_sleep>;
804 gpios = <&gpio3 GPIO_D2 GPIO_ACTIVE_LOW>, <&gpio3 GPIO_D3 GPIO_ACTIVE_LOW>;
805 clocks = <&clk_gates19 14>;
806 rockchip,check-idle = <1>;
811 compatible = "rockchip,rk-fb";
812 rockchip,disp-mode = <NO_DUAL>;
816 rk_screen: rk_screen {
817 compatible = "rockchip,screen";
820 dsihost0: mipi@ff960000{
821 compatible = "rockchip,rk3368-dsi";
823 reg = <0x0 0xff960000 0x0 0x4000>, <0x0 0xff968000 0x0 0x4000>;
824 reg-names = "mipi_dsi_host" ,"mipi_dsi_phy";
825 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
826 clocks = <&clk_gates4 14>, <&clk_gates22 10>, <&clk_gates17 3>, <&pd_mipidsi>;
827 clock-names = "clk_mipi_24m", "pclk_mipi_dsi", "pclk_mipi_dsi_host", "pd_mipi_dsi";
831 lvds: lvds@ff968000 {
832 compatible = "rockchip,rk3368-lvds";
833 rockchip,grf = <&grf>;
834 reg = <0x0 0xff968000 0x0 0x4000>, <0x0 0xff9600a0 0x0 0x20>;
835 reg-names = "mipi_lvds_phy", "mipi_lvds_ctl";
836 clocks = <&clk_gates22 10>, <&clk_gates17 3>, <&pd_lvds>;
837 clock-names = "pclk_lvds", "pclk_lvds_ctl", "pd_lvds";
842 compatible = "rockchip,rk32-edp";
843 reg = <0x0 0xff970000 0x0 0x4000>;
844 rockchip,grf = <&grf>;
845 interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
846 clocks = <&clk_edp>, <&clk_edp_24m>, <&clk_gates17 9>;
847 clock-names = "clk_edp", "clk_edp_24m", "pclk_edp";
848 resets = <&reset RK3368_SRST_EDP_24M>, <&reset RK3368_SRST_EDP_P>;
849 reset-names = "edp_24m", "edp_apb";
852 hdmi: hdmi@ff980000 {
853 compatible = "rockchip,rk3368-hdmi";
854 reg = <0x0 0xff980000 0x0 0x20000>;
855 rockchip,grf = <&grf>;
856 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
857 pinctrl-names = "default", "gpio";
858 pinctrl-0 = <&hdmii2c_xfer &hdmi_cec>;
859 pinctrl-1 = <&i2c5_gpio>;
860 clocks = <&clk_gates17 6>, <&clk_gates4 13>, <&clk_gates4 12>;
861 clock-names = "pclk_hdmi", "hdcp_clk_hdmi", "cec_clk_hdmi";
865 hdmi_hdcp2: hdmi_hdcp2@ff978000 {
866 compatible = "rockchip,rk3368-hdmi-hdcp2";
867 reg = <0x0 0xff978000 0x0 0x2000>;
868 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
869 clocks = <&clk_gates17 10>, <&clk_gates17 12>, <&clk_gates17 11>, <&clk_hdcp>;
870 clock-names ="aclk_hdcp2", "hclk_hdcp2_mmu", "pclk_hdcp2", "hdcp2_clk_hdmi";
874 lcdc: lcdc@ff930000 {
875 compatible = "rockchip,rk3368-lcdc";
876 rockchip,grf = <&grf>;
877 rockchip,pmugrf = <&pmugrf>;
878 rockchip,cru = <&cru>;
879 rockchip,prop = <PRMRY>;
880 rockchip,pwr18 = <0>;
881 rockchip,iommu-enabled = <1>;
882 reg = <0x0 0xff930000 0x0 0x10000>;
883 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
884 /*pinctrl-names = "default", "gpio";
885 *pinctrl-0 = <&lcdc_lcdc>;
886 *pinctrl-1 = <&lcdc_gpio>;
889 clocks = <&clk_gates16 5>, <&dclk_vop0>, <&clk_gates16 6>, <&clk_npll>, <&pd_vop>;
890 clock-names = "aclk_lcdc", "dclk_lcdc", "hclk_lcdc", "sclk_pll", "pd_lcdc";
894 compatible = "rockchip,saradc";
895 reg = <0x0 0xff100000 0x0 0x100>;
896 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
897 #io-channel-cells = <1>;
899 rockchip,adc-vref = <1800>;
900 clock-frequency = <1000000>;
901 clocks = <&clk_saradc>, <&clk_gates19 15>;
902 clock-names = "saradc", "pclk_saradc";
907 compatible = "rockchip,rga2";
909 reg = <0x0 0xff920000 0x0 0x1000>;
910 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
911 clocks = <&clk_gates16 1>, <&clk_gates16 0>, <&clk_rga>;
912 clock-names = "hclk_rga", "aclk_rga", "clk_rga";
915 i2s0: i2s0@ff898000 {
916 compatible = "rockchip-i2s";
917 reg = <0x0 0xff898000 0x0 0x1000>;
919 clocks = <&clk_i2s>, <&i2s_out>, <&clk_gates12 7>;
920 clock-names = "i2s_clk", "i2s_mclk", "i2s_hclk";
921 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
922 dmas = <&pdma0 0>, <&pdma0 1>;
924 dma-names = "tx", "rx";
925 pinctrl-names = "default", "sleep";
926 pinctrl-0 = <&i2s_mclk &i2s_sclk &i2s_lrckrx &i2s_lrcktx &i2s_sdi &i2s_sdo0 &i2s_sdo1 &i2s_sdo2 &i2s_sdo3>;
927 pinctrl-1 = <&i2s_gpio>;
930 i2s1: i2s1@ff890000 {
931 compatible = "rockchip-i2s";
932 reg = <0x0 0xff890000 0x0 0x1000>;
934 clocks = <&clk_i2s_2ch>, <&clk_gates12 8>;
935 clock-names = "i2s_clk", "i2s_hclk";
936 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
937 dmas = <&pdma0 6>, <&pdma0 7>;
939 dma-names = "tx", "rx";
942 spdif: spdif@ff880000 {
943 compatible = "rockchip-spdif";
944 reg = <0x0 0xff880000 0x0 0x1000>;
945 clocks = <&clk_spidf_8ch>, <&clk_gates12 10>;
946 clock-names = "spdif_mclk", "spdif_hclk";
947 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
951 pinctrl-names = "default";
952 pinctrl-0 = <&spdif_tx>;
956 compatible = "rockchip,rk-pwm";
957 reg = <0x0 0xff680000 0x0 0x10>;
959 pinctrl-names = "default";
960 pinctrl-0 = <&pwm0_pin>;
961 clocks = <&clk_gates13 6>;
962 clock-names = "pclk_pwm";
967 compatible = "rockchip,rk-pwm";
968 reg = <0x0 0xff680010 0x0 0x10>;
970 pinctrl-names = "default";
971 pinctrl-0 = <&pwm1_pin>;
972 clocks = <&clk_gates13 6>;
973 clock-names = "pclk_pwm";
978 compatible = "rockchip,rk-pwm";
979 reg = <0x0 0xff680020 0x0 0x10>;
981 //pinctrl-names = "default";
982 //pinctrl-0 = <&pwm1_pin>;
983 clocks = <&clk_gates13 6>;
984 clock-names = "pclk_pwm";
989 compatible = "rockchip,rk-pwm";
990 reg = <0x0 0xff680030 0x0 0x10>;
992 pinctrl-names = "default";
993 pinctrl-0 = <&pwm3_pin>;
994 clocks = <&clk_gates13 6>;
995 clock-names = "pclk_pwm";
999 remotectl: pwm@ff680030 {
1000 compatible = "rockchip,remotectl-pwm";
1001 reg = <0x0 0xff680030 0x0 0x50>;
1003 pinctrl-names = "default";
1004 pinctrl-0 = <&pwm3_pin>;
1005 clocks = <&clk_gates13 6>;
1006 clock-names = "pclk_pwm";
1010 remote_pwm_id = <3>;
1011 interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
1012 status = "disabled";
1015 voppwm: pwm@ff9301a0 {
1016 compatible = "rockchip,vop-pwm";
1017 reg = <0x0 0xff9301a0 0x0 0x10>;
1019 pinctrl-names = "default";
1020 pinctrl-0 = <&vop_pwm_pin>;
1021 clocks = <&clk_gates4 2>, <&clk_gates16 5>, <&clk_gates16 6>;
1022 clock-names = "pclk_pwm", "aclk_lcdc", "hclk_lcdc";
1023 status = "disabled";
1027 compatible = "rockchip,rk3368-pvtm";
1028 rockchip,grf = <&grf>;
1029 rockchip,pmugrf = <&pmugrf>;
1030 rockchip,pvtm-clk-out = <1>;
1034 compatible = "rockchip,rk3368-cpufreq";
1035 rockchip,grf = <&grf>;
1041 regulator_name = "vdd_arm";
1042 suspend_volt = <1000>; //mV
1044 clk_core_b_dvfs_table: clk_core_b {
1045 operating-points = <
1054 temp-limit-enable = <1>;
1056 min_temp_limit = <216000>;
1057 normal-temp-limit = <
1058 /*delta-temp delta-freq*/
1064 performance-temp-limit = <
1068 lkg_adjust_volt_en = <1>;
1070 def_table_lkg = <25>;
1071 min_adjust_freq = <216000>;
1072 lkg_adjust_volt_table = <
1073 /*lkg(mA) volt(uV)*/
1076 pvtm_min_temp = <25>;
1078 clk_core_l_dvfs_table: clk_core_l {
1079 operating-points = <
1088 temp-limit-enable = <1>;
1090 min_temp_limit = <216000>;
1091 normal-temp-limit = <
1092 /*delta-temp delta-freq*/
1098 performance-temp-limit = <
1102 lkg_adjust_volt_en = <1>;
1104 def_table_lkg = <25>;
1105 min_adjust_freq = <216000>;
1106 lkg_adjust_volt_table = <
1107 /*lkg(mA) volt(uV)*/
1110 pvtm_min_temp = <25>;
1115 vd_logic: vd_logic {
1116 regulator_name = "vdd_logic";
1117 suspend_volt = <1000>; //mV
1119 clk_ddr_dvfs_table: clk_ddr {
1120 operating-points = <
1127 /* bandwidth freq */
1136 status = "disabled";
1141 clk_gpu_dvfs_table: clk_gpu {
1142 operating-points = <
1162 compatible = "rockchip,ion";
1163 #address-cells = <1>;
1166 ion_cma: rockchip,ion-heap@4 { /* CMA HEAP */
1167 compatible = "rockchip,ion-heap";
1168 rockchip,ion_heap = <4>;
1169 reg = <0x00000000 0x00000000>; /* 0MB */
1171 rockchip,ion-heap@0 { /* VMALLOC HEAP */
1172 compatible = "rockchip,ion-heap";
1173 rockchip,ion_heap = <0>;
1178 compatible = "rockchip,vpu_sub";
1179 iommu_enabled = <1>;
1180 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
1181 <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
1182 interrupt-names = "irq_enc", "irq_dec";
1184 name = "vpu_service";
1187 hevc: hevc_service {
1188 compatible = "rockchip,hevc_sub";
1189 iommu_enabled = <1>;
1190 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
1191 interrupt-names = "irq_dec";
1193 name = "hevc_service";
1196 vpu_combo: vpu_combo@ff9a0000 {
1197 compatible = "rockchip,vpu_combo";
1198 reg = <0x0 0xff9a0000 0x0 0x800>;
1199 rockchip,grf = <&grf>;
1201 rockchip,sub = <&vpu>, <&hevc>;
1202 clocks = <&aclk_vdpu>, <&hclk_vdpu>, <&clk_hevc_core>, <&clk_hevc_cabac>;
1203 clock-names = "aclk_vcodec", "hclk_vcodec", "clk_core", "clk_cabac";
1204 resets = <&reset RK3368_SRST_VIDEO_H>, <&reset RK3368_SRST_VIDEO_A>,
1205 <&reset RK3368_SRST_VIDEO>;
1206 reset-names = "video_h", "video_a", "video";
1208 mode_ctrl = <0x418>;
1214 compatible = "rockchip,iep";
1215 iommu_enabled = <1>;
1216 reg = <0x0 0xff900000 0x0 0x800>;
1217 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
1218 clocks = <&clk_gates16 2>, <&clk_gates16 3>;
1219 clock-names = "aclk_iep", "hclk_iep";
1223 gmac: eth@ff290000 {
1224 compatible = "rockchip,rk3368-gmac";
1225 reg = <0x0 0xff290000 0x0 0x10000>;
1226 rockchip,grf = <&grf>;
1227 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>; /*irq=59*/
1228 interrupt-names = "macirq";
1230 clocks = <&clk_mac>, <&clk_gates7 4>,
1231 <&clk_gates7 5>, <&clk_gates7 6>,
1232 <&clk_gates7 7>, <&clk_gates20 13>,
1234 clock-names = "clk_mac", "mac_clk_rx",
1235 "mac_clk_tx", "clk_mac_ref",
1236 "clk_mac_refout", "aclk_mac",
1240 pinctrl-names = "default";
1241 pinctrl-0 = <&rgmii_pins>;
1242 status = "disabled";
1246 compatible = "arm,rogue-G6110", "arm,rk3368-gpu";
1247 reg = <0x0 0xffa30000 0x0 0x10000>;
1248 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
1249 interrupt-names = "GPU";
1254 compatible = "rockchip,iep_mmu";
1255 reg = <0x0 0xff900800 0x0 0x100>;
1256 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
1257 interrupt-names = "iep_mmu";
1262 compatible = "rockchip,vip_mmu";
1263 reg = <0x0 0xff950800 0x0 0x100>;
1264 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
1265 interrupt-names = "vip_mmu";
1270 compatible = "rockchip,vopb_mmu";
1271 reg = <0x0 0xff930300 0x0 0x100>;
1272 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
1273 interrupt-names = "vop_mmu";
1277 dbgname = "isp_mmu";
1278 compatible = "rockchip,isp_mmu";
1279 reg = <0x0 0xff914000 0x0 0x100>,
1280 <0x0 0xff915000 0x0 0x100>;
1281 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
1282 interrupt-names = "isp_mmu";
1286 dbgname = "hdcp_mmu";
1287 compatible = "rockchip,hdcp_mmu";
1288 reg = <0x0 0xff940000 0x0 0x100>;
1289 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
1290 interrupt-names = "hdcp_mmu";
1295 compatible = "rockchip,hevc_mmu";
1296 reg = <0x0 0xff9a0440 0x0 0x40>, /*need to fix*/
1297 <0x0 0xff9a0480 0x0 0x40>;
1298 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>; /*need to fix*/
1299 interrupt-names = "hevc_mmu";
1304 compatible = "rockchip,vpu_mmu";
1305 reg = <0x0 0xff9a0800 0x0 0x100>; /*need to fix*/
1306 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>, /*need to fix*/
1307 <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
1308 interrupt-names = "vepu_mmu", "vdpu_mmu";
1311 rockchip_suspend: rockchip_suspend {
1312 rockchip,ctrbits = <
1315 | RKPM_SLP_PMU_PLLS_PWRDN
1316 /*| RKPM_SLP_PMU_PMUALIVE_32K
1317 | RKPM_SLP_SFT_PLLS_DEEP
1318 | RKPM_SLP_PMU_DIS_OSC */
1319 | RKPM_SLP_SFT_PD_NBSCUS
1325 compatible = "rockchip,isp";
1326 reg = <0x0 0xff910000 0x0 0x10000>;
1327 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
1328 clocks = <&clk_gates16 0>, <&clk_gates16 14>, <&clk_isp>, <&clk_isp>, <&pclk_isp>, <&clk_vip>, <&clk_vip_pll>, <&clk_gates17 4>, <&clk_gates22 11>, <&pd_isp>, <&clk_gates16 9>;
1329 clock-names = "aclk_isp", "hclk_isp", "clk_isp", "clk_isp_jpe", "pclkin_isp", "clk_cif_out", "clk_cif_pll", "hclk_mipiphy1", "pclk_dphyrx", "pd_isp", "clk_vio0_noc";
1330 pinctrl-names = "default", "isp_dvp8bit2", "isp_dvp10bit", "isp_dvp12bit", "isp_dvp8bit0", "isp_dvp8bit4", "isp_mipi_fl", "isp_mipi_fl_prefl","isp_flash_as_gpio","isp_flash_as_trigger_out";
1331 pinctrl-0 = <&cif_clkout>;
1332 pinctrl-1 = <&cif_clkout &isp_dvp_d2d9>;
1333 pinctrl-2 = <&cif_clkout &isp_dvp_d2d9 &isp_dvp_d0d1>;
1334 pinctrl-3 = <&cif_clkout &isp_dvp_d2d9 &isp_dvp_d0d1 &isp_dvp_d10d11>;
1335 pinctrl-4 = <&cif_clkout &isp_dvp_d0d7>;
1336 pinctrl-5 = <&cif_clkout &isp_dvp_d4d11>;
1337 pinctrl-6 = <&cif_clkout>;
1338 pinctrl-7 = <&cif_clkout &isp_prelight>;
1339 pinctrl-8 = <&isp_flash_trigger_as_gpio>;
1340 pinctrl-9 = <&isp_flash_trigger>;
1341 rockchip,isp,mipiphy = <2>;
1342 rockchip,isp,cifphy = <1>;
1343 rockchip,isp,mipiphy1,reg = <0xff964000 0x4000>;
1344 rockchip,isp,csiphy,reg = <0xff96C000 0x4000>;
1345 rockchip,grf = <&grf>;
1346 rockchip,cru = <&cru>;
1347 rockchip,gpios = <&gpio3 GPIO_C4 GPIO_ACTIVE_HIGH>;
1348 rockchip,isp,iommu_enable = <1>;
1353 compatible = "rockchip,cif";
1354 reg = <0x0 0xff950000 0x0 0x10000>;
1355 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
1356 //clocks = <&pd_isp>,<&clk_gates15 14>,<&clk_gates15 15>,<&pclkin_vip>,<&clk_gates16 0>,<&clk_cif_out>;
1357 clocks = <&clk_gates16 11>,<&clk_gates16 12>,<&pclkin_vip>,<&clk_vip>;
1358 clock-names = "aclk_cif0","hclk_cif0","cif0_in","cif0_out";
1359 pinctrl-names = "cif_pin_all";
1360 pinctrl-0 = <&cif_clkout &isp_dvp_d2d9 &isp_dvp_d10d11>;
1361 rockchip,grf = <&grf>;
1362 rockchip,cru = <&cru>;
1368 #include "rk3368-thermal.dtsi"
1372 tsadc: tsadc@ff280000 {
1373 compatible = "rockchip,rk3368-tsadc";
1374 reg = <0x0 0xff280000 0x0 0x100>;
1375 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
1376 clocks = <&clk_tsadc>, <&clk_gates20 0>;
1377 rockchip,grf = <&grf>;
1378 rockchip,cru = <&cru>;
1379 rockchip,pmu = <&pmu>;
1380 clock-names = "tsadc", "apb_pclk";
1381 clock-frequency = <32000>;
1382 resets = <&reset RK3368_SRST_TSADC_P>;
1383 reset-names = "tsadc-apb";
1384 //pinctrl-names = "default";
1385 //pinctrl-0 = <&tsadc_int>;
1386 #thermal-sensor-cells = <1>;
1387 hw-shut-temp = <120000>;
1388 status = "disabled";
1392 compatible = "rockchip,rk3368-tsp";
1393 reg = <0x0 0xFF8B0000 0x0 0x10000>;
1394 clocks = <&clk_tsp>, <&clk_gates13 10>, <&clk_gates13 7>;
1395 clock-names = "clk_tsp", "hclk_tsp", "clk_hsadc0_tsp";
1396 interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
1397 interrupt-names = "irq_tsp";
1398 // pinctrl-names = "default";
1399 // pinctrl-0 = <&isp_hsadc>;
1403 crypto: crypto@FF8A0000{
1404 compatible = "rockchip,rk3368-crypto";
1405 reg = <0x0 0xFF8A0000 0x0 0x10000>;
1406 interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
1407 interrupt-names = "irq_crypto";
1408 clocks = <&clk_crypto>, <&clk_gates13 4>, <&clk_gates13 3>;
1409 clock-names = "clk_crypto", "sclk_crypto", "mclk_crypto";
1413 dwc_control_usb: dwc-control-usb {
1414 compatible = "rockchip,rk3368-dwc-control-usb";
1415 rockchip,grf = <&grf>;
1416 interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>,
1417 <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
1418 interrupt-names = "otg_id", "otg_bvalid",
1419 "otg_linestate", "host0_linestate";
1420 clocks = <&clk_gates20 6>, <&usbphy_480m>;
1421 clock-names = "hclk_usb_peri", "usbphy_480m";
1422 //resets = <&reset RK3128_RST_USBPOR>;
1423 //reset-names = "usbphy_por";
1425 compatible = "inno,phy";
1426 regbase = &dwc_control_usb;
1427 rk_usb,bvalid = <0x4bc 23 1>;
1428 rk_usb,iddig = <0x4bc 26 1>;
1429 rk_usb,vdmsrcen = <0x718 12 1>;
1430 rk_usb,vdpsrcen = <0x718 11 1>;
1431 rk_usb,rdmpden = <0x718 10 1>;
1432 rk_usb,idpsrcen = <0x718 9 1>;
1433 rk_usb,idmsinken = <0x718 8 1>;
1434 rk_usb,idpsinken = <0x718 7 1>;
1435 rk_usb,dpattach = <0x4b8 31 1>;
1436 rk_usb,cpdet = <0x4b8 30 1>;
1437 rk_usb,dcpattach = <0x4b8 29 1>;
1442 compatible = "rockchip,rk3368-usb-phy";
1443 rockchip,grf = <&grf>;
1444 #address-cells = <1>;
1458 usb0: usb@ff580000 {
1459 compatible = "rockchip,rk3368_usb20_otg";
1460 reg = <0x0 0xff580000 0x0 0x40000>;
1461 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
1462 clocks = <&clk_gates8 1>, <&clk_gates20 1>;
1463 clock-names = "clk_usbphy0", "hclk_otg";
1464 resets = <&reset RK3368_SRST_USBOTG0_H>, <&reset RK3368_SRST_USBOTGPHY0>,
1465 <&reset RK3368_SRST_USBOTGC0>;
1466 reset-names = "otg_ahb", "otg_phy", "otg_controller";
1467 /*0 - Normal, 1 - Force Host, 2 - Force Device*/
1468 rockchip,usb-mode = <0>;
1471 usb_ehci: usb@ff500000 {
1472 compatible = "generic-ehci";
1473 reg = <0x0 0xff500000 0x0 0x20000>;
1474 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
1475 clocks = <&clk_gates8 1>, <&clk_gates20 3>;
1476 clock-names = "clk_usbphy0", "hclk_ehci";
1479 //resets = <&reset RK3288_SOFT_RST_USBHOST0_H>, <&reset RK3288_SOFT_RST_USBHOST0PHY>,
1480 // <&reset RK3288_SOFT_RST_USBHOST0C>, <&reset RK3288_SOFT_RST_USB_HOST0>;
1481 //reset-names = "ehci_ahb", "ehci_phy", "ehci_controller", "ehci";
1484 usb_ohci: usb@ff520000 {
1485 compatible = "generic-ohci";
1486 reg = <0x0 0xff520000 0x0 0x20000>;
1487 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
1488 clocks = <&clk_gates8 1>, <&clk_gates20 3>;
1489 clock-names = "clk_usbphy0", "hclk_ohci";
1492 usb_ehci1: usb@ff5c0000 {
1493 compatible = "rockchip,rk3288_rk_ehci1_host";
1494 reg = <0x0 0xff5c0000 0x0 0x40000>;
1495 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
1497 clocks = <&ehci1phy_480m>, <&clk_gates7 8>,
1498 <&ehci1phy_12m>, <&usbphy_480m>,
1499 <&otgphy1_480m>, <&otgphy2_480m>;
1500 clock-names = "ehci1phy_480m", "hclk_ehci1",
1501 "ehci1phy_12m", "usbphy_480m",
1502 "ehci1_usbphy1", "ehci1_usbphy2";
1503 resets = <&reset RK3368_SRST_EHCI1>, <&reset RK3368_SRST_EHCI1_AUX>,
1504 <&reset RK3368_SRST_EHCI1PHY>;
1505 reset-names = "ehci1_ahb", "ehci1_aux", "ehci1_phy";
1507 status = "disabled";
1511 compatible = "rockchip,rk3368-pinctrl";
1512 rockchip,grf = <&grf>;
1513 rockchip,pmugrf = <&pmugrf>;
1514 #address-cells = <2>;
1518 gpio0: gpio0@ff750000 {
1519 compatible = "rockchip,gpio-bank";
1520 reg = <0x0 0xff750000 0x0 0x100>;
1521 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
1522 clocks = <&clk_gates23 4>;
1527 interrupt-controller;
1528 #interrupt-cells = <2>;
1531 gpio1: gpio1@ff780000 {
1532 compatible = "rockchip,gpio-bank";
1533 reg = <0x0 0xff780000 0x0 0x100>;
1534 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
1535 clocks = <&clk_gates22 1>;
1540 interrupt-controller;
1541 #interrupt-cells = <2>;
1544 gpio2: gpio2@ff790000 {
1545 compatible = "rockchip,gpio-bank";
1546 reg = <0x0 0xff790000 0x0 0x100>;
1547 interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
1548 clocks = <&clk_gates22 2>;
1553 interrupt-controller;
1554 #interrupt-cells = <2>;
1557 gpio3: gpio3@ff7a0000 {
1558 compatible = "rockchip,gpio-bank";
1559 reg = <0x0 0xff7a0000 0x0 0x100>;
1560 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
1561 clocks = <&clk_gates22 3>;
1566 interrupt-controller;
1567 #interrupt-cells = <2>;
1570 pcfg_pull_up: pcfg-pull-up {
1574 pcfg_pull_down: pcfg-pull-down {
1578 pcfg_pull_none: pcfg-pull-none {
1582 pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma {
1583 drive-strength = <8>;
1586 pcfg_pull_none_drv_12ma: pcfg-pull-none-drv-12ma {
1587 drive-strength = <12>;
1590 pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma {
1592 drive-strength = <8>;
1595 pcfg_pull_none_drv_4ma: pcfg-pull-none-drv-4ma {
1596 drive-strength = <4>;
1599 pcfg_pull_up_drv_4ma: pcfg-pull-up-drv-4ma {
1601 drive-strength = <4>;
1604 pcfg_output_high: pcfg-output-high {
1608 pcfg_output_low: pcfg-output-low {
1612 pcfg_input_high: pcfg-input-high {
1618 i2c0_xfer: i2c0-xfer {
1619 rockchip,pins = <0 GPIO_A6 RK_FUNC_1 &pcfg_pull_none>,
1620 <0 GPIO_A7 RK_FUNC_1 &pcfg_pull_none>;
1622 i2c0_gpio: i2c0-gpio {
1623 rockchip,pins = <0 GPIO_A6 RK_FUNC_GPIO &pcfg_pull_none>,
1624 <0 GPIO_A7 RK_FUNC_GPIO &pcfg_pull_none>;
1626 i2c0_sleep: i2c0-sleep {
1627 rockchip,pins = <0 GPIO_A6 RK_FUNC_GPIO &pcfg_input_high>,
1628 <0 GPIO_A7 RK_FUNC_GPIO &pcfg_input_high>;
1633 i2c1_xfer: i2c1-xfer {
1634 rockchip,pins = <2 GPIO_C5 RK_FUNC_1 &pcfg_pull_none>,
1635 <2 GPIO_C6 RK_FUNC_1 &pcfg_pull_none>;
1637 i2c1_gpio: i2c1-gpio {
1638 rockchip,pins = <2 GPIO_C5 RK_FUNC_GPIO &pcfg_pull_none>,
1639 <2 GPIO_C6 RK_FUNC_GPIO &pcfg_pull_none>;
1641 i2c1_sleep: i2c1-sleep {
1642 rockchip,pins = <2 GPIO_C5 RK_FUNC_GPIO &pcfg_input_high>,
1643 <2 GPIO_C6 RK_FUNC_GPIO &pcfg_input_high>;
1648 i2c2_xfer: i2c2-xfer {
1649 rockchip,pins = <3 GPIO_D7 RK_FUNC_2 &pcfg_pull_none>,
1650 <0 GPIO_B1 RK_FUNC_2 &pcfg_pull_none>;
1652 i2c2_gpio: i2c2-gpio {
1653 rockchip,pins = <3 GPIO_D7 RK_FUNC_GPIO &pcfg_pull_none>,
1654 <0 GPIO_B1 RK_FUNC_GPIO &pcfg_pull_none>;
1656 i2c2_sleep: i2c2-sleep {
1657 rockchip,pins = <3 GPIO_D7 RK_FUNC_GPIO &pcfg_input_high>,
1658 <0 GPIO_B1 RK_FUNC_GPIO &pcfg_input_high>;
1663 i2c3_xfer: i2c3-xfer {
1664 rockchip,pins = <1 GPIO_C0 RK_FUNC_1 &pcfg_pull_none>,
1665 <1 GPIO_C1 RK_FUNC_1 &pcfg_pull_none>;
1667 i2c3_gpio: i2c3-gpio {
1668 rockchip,pins = <1 GPIO_C0 RK_FUNC_GPIO &pcfg_pull_none>,
1669 <1 GPIO_C1 RK_FUNC_GPIO &pcfg_pull_none>;
1671 i2c3_sleep: i2c3-sleep {
1672 rockchip,pins = <1 GPIO_C0 RK_FUNC_GPIO &pcfg_input_high>,
1673 <1 GPIO_C1 RK_FUNC_GPIO &pcfg_input_high>;
1678 i2c4_xfer: i2c4-xfer {
1679 rockchip,pins = <3 GPIO_D0 RK_FUNC_2 &pcfg_pull_none>,
1680 <3 GPIO_D1 RK_FUNC_2 &pcfg_pull_none>;
1682 i2c4_gpio: i2c4-gpio {
1683 rockchip,pins = <3 GPIO_D0 RK_FUNC_GPIO &pcfg_pull_none>,
1684 <3 GPIO_D1 RK_FUNC_GPIO &pcfg_pull_none>;
1686 i2c4_sleep: i2c4-sleep {
1687 rockchip,pins = <3 GPIO_D0 RK_FUNC_GPIO &pcfg_input_high>,
1688 <3 GPIO_D1 RK_FUNC_GPIO &pcfg_input_high>;
1693 i2c5_xfer: i2c5-xfer {
1694 rockchip,pins = <3 GPIO_D2 RK_FUNC_2 &pcfg_pull_none>,
1695 <3 GPIO_D3 RK_FUNC_2 &pcfg_pull_none>;
1697 i2c5_gpio: i2c5-gpio {
1698 rockchip,pins = <3 GPIO_D2 RK_FUNC_GPIO &pcfg_pull_none>,
1699 <3 GPIO_D3 RK_FUNC_GPIO &pcfg_pull_none>;
1701 i2c5_sleep: i2c5-sleep {
1702 rockchip,pins = <3 GPIO_D2 RK_FUNC_GPIO &pcfg_input_high>,
1703 <3 GPIO_D3 RK_FUNC_GPIO &pcfg_input_high>;
1708 uart0_xfer: uart0-xfer {
1709 rockchip,pins = <2 GPIO_D0 RK_FUNC_1 &pcfg_pull_up>,
1710 <2 GPIO_D1 RK_FUNC_1 &pcfg_pull_none>;
1713 uart0_cts: uart0-cts {
1714 rockchip,pins = <2 GPIO_D2 RK_FUNC_1 &pcfg_pull_none>;
1717 uart0_rts: uart0-rts {
1718 rockchip,pins = <2 GPIO_D3 RK_FUNC_1 &pcfg_pull_none>;
1721 uart0_rts_gpio: uart0-rts-gpio {
1722 rockchip,pins = <2 GPIO_D3 RK_FUNC_GPIO &pcfg_pull_none>;
1727 uart1_xfer: uart1-xfer {
1728 rockchip,pins = <0 GPIO_C4 RK_FUNC_3 &pcfg_pull_up>,
1729 <0 GPIO_C5 RK_FUNC_3 &pcfg_pull_none>;
1732 uart1_cts: uart1-cts {
1733 rockchip,pins = <0 GPIO_C6 RK_FUNC_3 &pcfg_pull_none>;
1736 uart1_rts: uart1-rts {
1737 rockchip,pins = <0 GPIO_C7 RK_FUNC_3 &pcfg_pull_none>;
1742 uart2_xfer: uart2-xfer {
1743 rockchip,pins = <2 GPIO_A6 RK_FUNC_2 &pcfg_pull_up>,
1744 <2 GPIO_A5 RK_FUNC_2 &pcfg_pull_none>;
1749 uart3_xfer: uart3-xfer {
1750 rockchip,pins = <3 GPIO_D5 RK_FUNC_2 &pcfg_pull_up>,
1751 <3 GPIO_D6 RK_FUNC_2 &pcfg_pull_none>;
1754 uart3_cts: uart3-cts {
1755 rockchip,pins = <3 GPIO_C0 RK_FUNC_2 &pcfg_pull_none>;
1758 uart3_rts: uart3-rts {
1759 rockchip,pins = <3 GPIO_C1 RK_FUNC_2 &pcfg_pull_none>;
1764 uart4_xfer: uart4-xfer {
1765 rockchip,pins = <0 GPIO_D3 RK_FUNC_3 &pcfg_pull_up>,
1766 <0 GPIO_D2 RK_FUNC_3 &pcfg_pull_none>;
1769 uart4_cts: uart4-cts {
1770 rockchip,pins = <0 GPIO_D0 RK_FUNC_3 &pcfg_pull_none>;
1773 uart4_rts: uart4-rts {
1774 rockchip,pins = <0 GPIO_D1 RK_FUNC_3 &pcfg_pull_none>;
1779 spi0_clk: spi0-clk {
1780 rockchip,pins = <1 GPIO_D5 RK_FUNC_2 &pcfg_pull_up>;
1782 spi0_cs0: spi0-cs0 {
1783 rockchip,pins = <1 GPIO_D0 RK_FUNC_3 &pcfg_pull_up>;
1786 rockchip,pins = <1 GPIO_C7 RK_FUNC_3 &pcfg_pull_up>;
1789 rockchip,pins = <1 GPIO_C6 RK_FUNC_3 &pcfg_pull_up>;
1791 spi0_cs1: spi0-cs1 {
1792 rockchip,pins = <1 GPIO_D1 RK_FUNC_3 &pcfg_pull_up>;
1797 spi1_clk: spi1-clk {
1798 rockchip,pins = <1 GPIO_B6 RK_FUNC_2 &pcfg_pull_up>;
1800 spi1_cs0: spi1-cs0 {
1801 rockchip,pins = <1 GPIO_B7 RK_FUNC_2 &pcfg_pull_up>;
1804 rockchip,pins = <1 GPIO_C0 RK_FUNC_2 &pcfg_pull_up>;
1807 rockchip,pins = <1 GPIO_C1 RK_FUNC_2 &pcfg_pull_up>;
1809 spi1_cs1: spi1-cs1 {
1810 rockchip,pins = <3 GPIO_D4 RK_FUNC_2 &pcfg_pull_up>;
1815 spi2_clk: spi2-clk {
1816 rockchip,pins = <0 GPIO_B4 RK_FUNC_2 &pcfg_pull_up>;
1818 spi2_cs0: spi2-cs0 {
1819 rockchip,pins = <0 GPIO_B5 RK_FUNC_2 &pcfg_pull_up>;
1822 rockchip,pins = <0 GPIO_B2 RK_FUNC_2 &pcfg_pull_up>;
1825 rockchip,pins = <0 GPIO_B3 RK_FUNC_2 &pcfg_pull_up>;
1830 i2s_mclk: i2s-mclk {
1831 rockchip,pins = <2 GPIO_C4 RK_FUNC_1 &pcfg_pull_none>;
1835 rockchip,pins = <2 GPIO_B4 RK_FUNC_1 &pcfg_pull_none>;
1838 i2s_lrckrx:i2s-lrckrx {
1839 rockchip,pins = <2 GPIO_B5 RK_FUNC_1 &pcfg_pull_none>;
1842 i2s_lrcktx:i2s-lrcktx {
1843 rockchip,pins = <2 GPIO_B6 RK_FUNC_1 &pcfg_pull_none>;
1847 rockchip,pins = <2 GPIO_B7 RK_FUNC_1 &pcfg_pull_none>;
1851 rockchip,pins = <2 GPIO_C0 RK_FUNC_1 &pcfg_pull_none>;
1855 rockchip,pins = <2 GPIO_C1 RK_FUNC_1 &pcfg_pull_none>;
1859 rockchip,pins = <2 GPIO_C2 RK_FUNC_1 &pcfg_pull_none>;
1863 rockchip,pins = <2 GPIO_C3 RK_FUNC_1 &pcfg_pull_none>;
1866 i2s_gpio: i2s-gpio {
1867 rockchip,pins = <2 GPIO_C4 RK_FUNC_GPIO &pcfg_pull_none>,
1868 <2 GPIO_B4 RK_FUNC_GPIO &pcfg_pull_none>,
1869 <2 GPIO_B5 RK_FUNC_GPIO &pcfg_pull_none>,
1870 <2 GPIO_B6 RK_FUNC_GPIO &pcfg_pull_none>,
1871 <2 GPIO_B7 RK_FUNC_GPIO &pcfg_pull_none>,
1872 <2 GPIO_C0 RK_FUNC_GPIO &pcfg_pull_none>,
1873 <2 GPIO_C1 RK_FUNC_GPIO &pcfg_pull_none>,
1874 <2 GPIO_C2 RK_FUNC_GPIO &pcfg_pull_none>,
1875 <2 GPIO_C3 RK_FUNC_GPIO &pcfg_pull_none>;
1880 spdif_tx: spdif-tx {
1881 rockchip,pins = <2 GPIO_C7 RK_FUNC_1 &pcfg_pull_none>;
1886 sdmmc_clk: sdmmc-clk {
1887 rockchip,pins = <2 GPIO_B1 RK_FUNC_1 &pcfg_pull_none_drv_4ma>;
1890 sdmmc_cmd: sdmmc-cmd {
1891 rockchip,pins = <2 GPIO_B2 RK_FUNC_1 &pcfg_pull_up_drv_4ma>;
1894 sdmmc_dectn: sdmmc-dectn {
1895 rockchip,pins = <2 GPIO_B3 RK_FUNC_1 &pcfg_pull_up_drv_4ma>;
1898 sdmmc_bus1: sdmmc-bus1 {
1899 rockchip,pins = <2 GPIO_A5 RK_FUNC_1 &pcfg_pull_up_drv_4ma>;
1902 sdmmc_bus4: sdmmc-bus4 {
1903 rockchip,pins = <2 GPIO_A5 RK_FUNC_1 &pcfg_pull_up_drv_4ma>,
1904 <2 GPIO_A6 RK_FUNC_1 &pcfg_pull_up_drv_4ma>,
1905 <2 GPIO_A7 RK_FUNC_1 &pcfg_pull_up_drv_4ma>,
1906 <2 GPIO_B0 RK_FUNC_1 &pcfg_pull_up_drv_4ma>;
1909 sdmmc_gpio: sdmmc-gpio {
1910 rockchip,pins = <2 GPIO_B1 RK_FUNC_GPIO &pcfg_pull_up_drv_4ma>,//CLK
1911 <2 GPIO_B2 RK_FUNC_GPIO &pcfg_pull_up_drv_4ma>,//CMD
1912 <2 GPIO_B3 RK_FUNC_GPIO &pcfg_pull_up_drv_4ma>,//DET
1913 <2 GPIO_A5 RK_FUNC_GPIO &pcfg_pull_up_drv_4ma>,//DO
1914 <2 GPIO_A6 RK_FUNC_GPIO &pcfg_pull_up_drv_4ma>,//D1
1915 <2 GPIO_A7 RK_FUNC_GPIO &pcfg_pull_up_drv_4ma>,//D2
1916 <2 GPIO_B0 RK_FUNC_GPIO &pcfg_pull_up_drv_4ma>;//D3
1921 sdio0_bus1: sdio0-bus1 {
1922 rockchip,pins = <2 GPIO_D4 RK_FUNC_1 &pcfg_pull_up_drv_4ma>;
1925 sdio0_bus4: sdio0-bus4 {
1926 rockchip,pins = <2 GPIO_D4 RK_FUNC_1 &pcfg_pull_up_drv_4ma>,
1927 <2 GPIO_D5 RK_FUNC_1 &pcfg_pull_up_drv_4ma>,
1928 <2 GPIO_D6 RK_FUNC_1 &pcfg_pull_up_drv_4ma>,
1929 <2 GPIO_D7 RK_FUNC_1 &pcfg_pull_up_drv_4ma>;
1932 sdio0_cmd: sdio0-cmd {
1933 rockchip,pins = <3 GPIO_A0 RK_FUNC_1 &pcfg_pull_up_drv_4ma>;
1936 sdio0_clk: sdio0-clk {
1937 rockchip,pins = <3 GPIO_A1 RK_FUNC_1 &pcfg_pull_none_drv_4ma>;
1940 sdio0_dectn: sdio0-dectn {
1941 rockchip,pins = <3 GPIO_A2 RK_FUNC_1 &pcfg_pull_up>;
1944 sdio0_wrprt: sdio0-wrprt {
1945 rockchip,pins = <3 GPIO_A3 RK_FUNC_1 &pcfg_pull_up>;
1948 sdio0_pwren: sdio0-pwren {
1949 rockchip,pins = <3 GPIO_A4 RK_FUNC_1 &pcfg_pull_up>;
1952 sdio0_bkpwr: sdio0-bkpwr {
1953 rockchip,pins = <3 GPIO_A5 RK_FUNC_1 &pcfg_pull_up>;
1956 sdio0_int: sdio0-int {
1957 rockchip,pins = <3 GPIO_A6 RK_FUNC_1 &pcfg_pull_up>;
1960 sdio0_gpio: sdio0-gpio {
1961 rockchip,pins = <3 GPIO_A0 RK_FUNC_GPIO &pcfg_pull_up_drv_4ma>,//CMD
1962 <3 GPIO_A1 RK_FUNC_GPIO &pcfg_pull_up_drv_4ma>,//CLK
1963 <3 GPIO_A2 RK_FUNC_GPIO &pcfg_pull_up_drv_4ma>,//DET
1964 <3 GPIO_A3 RK_FUNC_GPIO &pcfg_pull_up_drv_4ma>,//wrprt
1965 <3 GPIO_A4 RK_FUNC_GPIO &pcfg_pull_up_drv_4ma>,//PWREN
1966 <3 GPIO_A5 RK_FUNC_GPIO &pcfg_pull_up_drv_4ma>,//BKPWR
1967 <3 GPIO_A6 RK_FUNC_GPIO &pcfg_pull_up_drv_4ma>,//INTN
1968 <2 GPIO_D4 RK_FUNC_GPIO &pcfg_pull_up_drv_4ma>,//DO
1969 <2 GPIO_D5 RK_FUNC_GPIO &pcfg_pull_up_drv_4ma>,//D1
1970 <2 GPIO_D6 RK_FUNC_GPIO &pcfg_pull_up_drv_4ma>,//D2
1971 <2 GPIO_D7 RK_FUNC_GPIO &pcfg_pull_up_drv_4ma>;//D3
1976 emmc_clk: emmc-clk {
1977 rockchip,pins = <2 GPIO_A4 RK_FUNC_2 &pcfg_pull_none_drv_8ma>;
1980 emmc_cmd: emmc-cmd {
1981 rockchip,pins = <1 GPIO_D2 RK_FUNC_2 &pcfg_pull_up_drv_8ma>;
1984 emmc_pwren: emmc-pwren {
1985 rockchip,pins = <1 GPIO_D3 RK_FUNC_2 &pcfg_pull_none>;
1988 emmc_rstnout: emmc_rstnout {
1989 rockchip,pins = <2 GPIO_A3 RK_FUNC_2 &pcfg_pull_none>;
1992 emmc_bus1: emmc-bus1 {
1993 rockchip,pins = <1 GPIO_C2 RK_FUNC_2 &pcfg_pull_up_drv_8ma>;//DO
1996 emmc_bus4: emmc-bus4 {
1997 rockchip,pins = <1 GPIO_C2 RK_FUNC_2 &pcfg_pull_up_drv_8ma>,//DO
1998 <1 GPIO_C3 RK_FUNC_2 &pcfg_pull_up_drv_8ma>,//D1
1999 <1 GPIO_C4 RK_FUNC_2 &pcfg_pull_up_drv_8ma>,//D2
2000 <1 GPIO_C5 RK_FUNC_2 &pcfg_pull_up_drv_8ma>;//D3
2005 pwm0_pin: pwm0-pin {
2006 rockchip,pins = <3 GPIO_B0 RK_FUNC_2 &pcfg_pull_none>;
2009 vop_pwm_pin:vop-pwm {
2010 rockchip,pins = <3 GPIO_B0 RK_FUNC_3 &pcfg_pull_none>;
2015 pwm1_pin: pwm1-pin {
2016 rockchip,pins = <0 GPIO_B0 RK_FUNC_2 &pcfg_pull_none>;
2021 pwm3_pin: pwm3-pin {
2022 rockchip,pins = <3 GPIO_D6 RK_FUNC_3 &pcfg_pull_none>;
2027 lcdc_lcdc: lcdc-lcdc {
2029 <0 GPIO_B6 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D10
2030 <0 GPIO_B7 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D11
2031 <0 GPIO_C0 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D12
2032 <0 GPIO_C1 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D13
2033 <0 GPIO_C2 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D14
2034 <0 GPIO_C3 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D15
2035 <0 GPIO_C4 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D16
2036 <0 GPIO_C5 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D17
2037 <0 GPIO_C6 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D18
2038 <0 GPIO_C7 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D19
2039 <0 GPIO_D0 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D20
2040 <0 GPIO_D1 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D21
2041 <0 GPIO_D2 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D22
2042 <0 GPIO_D3 RK_FUNC_1 &pcfg_pull_none>,//LCDC_D23
2043 <0 GPIO_D7 RK_FUNC_1 &pcfg_pull_none>,//DCLK
2044 <0 GPIO_D6 RK_FUNC_1 &pcfg_pull_none>,//DEN
2045 <0 GPIO_D4 RK_FUNC_1 &pcfg_pull_none>,//HSYNC
2046 <0 GPIO_D5 RK_FUNC_1 &pcfg_pull_none>;//VSYN
2049 lcdc_gpio: lcdc-gpio {
2051 <0 GPIO_B6 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D10
2052 <0 GPIO_B7 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D11
2053 <0 GPIO_C0 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D12
2054 <0 GPIO_C1 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D13
2055 <0 GPIO_C2 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D14
2056 <0 GPIO_C3 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D15
2057 <0 GPIO_C4 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D16
2058 <0 GPIO_C5 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D17
2059 <0 GPIO_C6 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D18
2060 <0 GPIO_C7 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D19
2061 <0 GPIO_D0 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D20
2062 <0 GPIO_D1 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D21
2063 <0 GPIO_D2 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D22
2064 <0 GPIO_D3 RK_FUNC_GPIO &pcfg_pull_none>,//LCDC_D23
2065 <0 GPIO_D7 RK_FUNC_GPIO &pcfg_pull_none>,//DCLK
2066 <0 GPIO_D6 RK_FUNC_GPIO &pcfg_pull_none>,//DEN
2067 <0 GPIO_D4 RK_FUNC_GPIO &pcfg_pull_none>,//HSYNC
2068 <0 GPIO_D5 RK_FUNC_GPIO &pcfg_pull_none>;//VSYN
2073 cif_clkout: cif-clkout {
2074 rockchip,pins = <1 GPIO_B3 RK_FUNC_1 &pcfg_pull_none>;//cif_clkout
2077 isp_dvp_d2d9: isp-dvp-d2d9 {
2078 rockchip,pins = <1 GPIO_A0 RK_FUNC_1 &pcfg_pull_none>,//cif_data2
2079 <1 GPIO_A1 RK_FUNC_1 &pcfg_pull_none>,//cif_data3
2080 <1 GPIO_A2 RK_FUNC_1 &pcfg_pull_none>,//cif_data4
2081 <1 GPIO_A3 RK_FUNC_1 &pcfg_pull_none>,//cif_data5
2082 <1 GPIO_A4 RK_FUNC_1 &pcfg_pull_none>,//cif_data6
2083 <1 GPIO_A5 RK_FUNC_1 &pcfg_pull_none>,//cif_data7
2084 <1 GPIO_A6 RK_FUNC_1 &pcfg_pull_none>,//cif_data8
2085 <1 GPIO_A7 RK_FUNC_1 &pcfg_pull_none>,//cif_data9
2086 <1 GPIO_B0 RK_FUNC_1 &pcfg_pull_none>,//cif_sync
2087 <1 GPIO_B1 RK_FUNC_1 &pcfg_pull_none>,//cif_href
2088 <1 GPIO_B2 RK_FUNC_1 &pcfg_pull_none>,//cif_clkin
2089 <1 GPIO_B3 RK_FUNC_1 &pcfg_pull_none>;//cif_clkout
2092 isp_dvp_d0d1: isp-dvp-d0d1 {
2093 rockchip,pins = <1 GPIO_B4 RK_FUNC_1 &pcfg_pull_none>,//cif_data0
2094 <1 GPIO_B5 RK_FUNC_1 &pcfg_pull_none>;//cif_data1
2097 isp_dvp_d10d11:isp_d10d11 {
2098 rockchip,pins = <1 GPIO_B6 RK_FUNC_1 &pcfg_pull_none>,//cif_data10
2099 <1 GPIO_B7 RK_FUNC_1 &pcfg_pull_none>;//cif_data11
2102 isp_dvp_d0d7: isp-dvp-d0d7 {
2103 rockchip,pins = <1 GPIO_B4 RK_FUNC_1 &pcfg_pull_none>,//cif_data0
2104 <1 GPIO_B5 RK_FUNC_1 &pcfg_pull_none>,//cif_data1
2105 <1 GPIO_A0 RK_FUNC_1 &pcfg_pull_none>,//cif_data2
2106 <1 GPIO_A1 RK_FUNC_1 &pcfg_pull_none>,//cif_data3
2107 <1 GPIO_A2 RK_FUNC_1 &pcfg_pull_none>,//cif_data4
2108 <1 GPIO_A3 RK_FUNC_1 &pcfg_pull_none>,//cif_data5
2109 <1 GPIO_A4 RK_FUNC_1 &pcfg_pull_none>,//cif_data6
2110 <1 GPIO_A5 RK_FUNC_1 &pcfg_pull_none>;//cif_data7
2113 isp_dvp_d4d11: isp-dvp-d4d11 {
2115 <1 GPIO_A2 RK_FUNC_1 &pcfg_pull_none>,//cif_data4
2116 <1 GPIO_A3 RK_FUNC_1 &pcfg_pull_none>,//cif_data5
2117 <1 GPIO_A4 RK_FUNC_1 &pcfg_pull_none>,//cif_data6
2118 <1 GPIO_A5 RK_FUNC_1 &pcfg_pull_none>,//cif_data7
2119 <1 GPIO_A6 RK_FUNC_1 &pcfg_pull_none>,//cif_data8
2120 <1 GPIO_A7 RK_FUNC_1 &pcfg_pull_none>,//cif_data9
2121 <1 GPIO_B6 RK_FUNC_1 &pcfg_pull_none>,//cif_data10
2122 <1 GPIO_B7 RK_FUNC_1 &pcfg_pull_none>;//cif_data11
2125 isp_shutter: isp-shutter {
2126 rockchip,pins = <3 GPIO_C3 RK_FUNC_2 &pcfg_pull_none>, //SHUTTEREN
2127 <3 GPIO_C6 RK_FUNC_2 &pcfg_pull_none>;//SHUTTERTRIG
2130 isp_flash_trigger: isp-flash-trigger {
2131 rockchip,pins = <3 GPIO_C4 RK_FUNC_2 &pcfg_pull_none>; //ISP_FLASHTRIGOU
2134 isp_prelight: isp-prelight {
2135 rockchip,pins = <3 GPIO_C5 RK_FUNC_2 &pcfg_pull_none>;//ISP_PRELIGHTTRIG
2138 isp_flash_trigger_as_gpio: isp_flash_trigger_as_gpio {
2139 rockchip,pins = <3 GPIO_C4 RK_FUNC_GPIO &pcfg_pull_none>;//ISP_FLASHTRIGOU
2145 rockchip,pins = <3 GPIO_B6 RK_FUNC_2 &pcfg_pull_none>;
2149 rockchip,pins = <3 GPIO_B7 RK_FUNC_2 &pcfg_pull_none>;
2153 gps_rfclk: gps-rfclk {
2154 rockchip,pins = <3 GPIO_C0 RK_FUNC_3 &pcfg_pull_none>;
2159 rgmii_pins: rgmii-pins {
2160 rockchip,pins = <3 GPIO_C6 RK_FUNC_1 &pcfg_pull_none>,//MAC_CLK
2161 <3 GPIO_D0 RK_FUNC_1 &pcfg_pull_none>,//MDIO
2162 <3 GPIO_C3 RK_FUNC_1 &pcfg_pull_none>,//MDC
2163 <3 GPIO_B0 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,//TXD0
2164 <3 GPIO_B1 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,//TXD1
2165 <3 GPIO_B2 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,//TXD2
2166 <3 GPIO_B6 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,//TXD3
2167 <3 GPIO_D4 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,//TXCLK
2168 <3 GPIO_B5 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,//TXEN
2169 <3 GPIO_B7 RK_FUNC_1 &pcfg_pull_none>,//RXD0
2170 <3 GPIO_C0 RK_FUNC_1 &pcfg_pull_none>,//RXD1
2171 <3 GPIO_C1 RK_FUNC_1 &pcfg_pull_none>,//RXD2
2172 <3 GPIO_C2 RK_FUNC_1 &pcfg_pull_none>,//RXD3
2173 <3 GPIO_D1 RK_FUNC_1 &pcfg_pull_none>,//RXCLK
2174 <3 GPIO_C4 RK_FUNC_1 &pcfg_pull_none>;//RXDV
2177 rmii_pins: rmii-pins {
2178 rockchip,pins = <3 GPIO_C6 RK_FUNC_1 &pcfg_pull_none>,//MAC_CLK
2179 <3 GPIO_D0 RK_FUNC_1 &pcfg_pull_none>,//MDIO
2180 <3 GPIO_C3 RK_FUNC_1 &pcfg_pull_none>,//MDC
2181 <3 GPIO_B0 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,//TXD0
2182 <3 GPIO_B1 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,//TXD1
2183 <3 GPIO_B5 RK_FUNC_1 &pcfg_pull_none_drv_12ma>,//TXEN
2184 <3 GPIO_B7 RK_FUNC_1 &pcfg_pull_none>,//RXD0
2185 <3 GPIO_C0 RK_FUNC_1 &pcfg_pull_none>,//RXD1
2186 <3 GPIO_C4 RK_FUNC_1 &pcfg_pull_none>,//RXDV
2187 <3 GPIO_C5 RK_FUNC_1 &pcfg_pull_none>;//RXER
2192 tsadc_int: tsadc-int {
2193 rockchip,pins = <0 GPIO_A3 RK_FUNC_1 &pcfg_pull_none>;
2195 tsadc_gpio: tsadc-gpio {
2196 rockchip,pins = <0 GPIO_A3 RK_FUNC_GPIO &pcfg_pull_none>;
2201 hdmi_cec: hdmi-cec {
2202 rockchip,pins = <3 GPIO_C7 RK_FUNC_1 &pcfg_pull_none>;
2207 hdmii2c_xfer: hdmii2c-xfer {
2208 rockchip,pins = <3 GPIO_D2 RK_FUNC_1 &pcfg_pull_none>,
2209 <3 GPIO_D3 RK_FUNC_1 &pcfg_pull_none>;
2214 cpu_jtag: cpu-jtag {
2215 rockchip,pins = <2 GPIO_A7 RK_FUNC_2 &pcfg_pull_up>,
2216 <2 GPIO_B0 RK_FUNC_2 &pcfg_pull_up>;
2221 mcu_jtag: mcu-jtag {
2222 rockchip,pins = <2 GPIO_B2 RK_FUNC_2 &pcfg_pull_up>,
2223 <2 GPIO_B1 RK_FUNC_2 &pcfg_pull_up>;
2229 compatible = "rockchip,rk3368-reboot";
2230 rockchip,cru = <&cru>;
2231 rockchip,pmugrf = <&pmugrf>;