1 #include <dt-bindings/interrupt-controller/arm-gic.h>
3 #include "skeleton.dtsi"
4 #include "rk3036-clocks.dtsi"
5 #include "rk3036-pinctrl.dtsi"
8 compatible = "rockchip,rk3036";
9 rockchip,sram = <&sram>;
10 interrupt-parent = <&gic>;
28 compatible = "arm,cortex-a7";
33 compatible = "arm,cortex-a7";
38 gic: interrupt-controller@10139000 {
39 compatible = "arm,cortex-a15-gic";
41 #interrupt-cells = <3>;
43 reg = <0x10139000 0x1000>,
48 compatible = "arm,cortex-a7-pmu";
49 interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>,
50 <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
53 cpu_axi_bus: cpu_axi_bus {
54 compatible = "rockchip,cpu_axi_bus";
65 reg = <0x1012a000 0x20>;
66 rockchip,priority = <3 2>;
69 reg = <0x1012c000 0x20>;
72 reg = <0x1012d000 0x20>;
75 reg = <0x1012e000 0x20>;
78 reg = <0x1012e080 0x20>;
81 reg = <0x1012f000 0x20>;
82 rockchip,priority = <3 3>;
92 reg = <0x10128000 0x40>;
93 rockchip,read-latency = <0x80>;
99 compatible = "mmio-sram";
100 reg = <0x10080000 0x2000>;
105 compatible = "arm,armv7-timer";
106 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
107 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
108 clock-frequency = <24000000>;
111 watchdog: wdt@2004c000 {
112 compatible = "rockchip,watch dog";
113 reg = <0x2004c000 0x100>;
114 clocks = <&clk_gates7 15>;
115 clock-names = "pclk_wdt";
116 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
118 rockchip,timeout = <60>;
119 rockchip,atboot = <1>;
120 rockchip,debug = <0>;
125 #address-cells = <1>;
127 compatible = "arm,amba-bus";
128 interrupt-parent = <&gic>;
131 pdma: pdma@20078000 {
132 compatible = "arm,pl330", "arm,primecell";
133 reg = <0x20078000 0x4000>;
134 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
135 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
140 reset: reset@20000110{
141 compatible = "rockchip,reset";
142 reg = <0x20000110 0x24>;
143 rockchip,reset-flag = <ROCKCHIP_RESET_HIWORD_MASK>;
147 nandc: nandc@10500000 {
148 compatible = "rockchip,rk-nandc";
149 reg = <0x10500000 0x4000>;
150 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
151 //pinctrl-names = "default";
152 //pinctrl-0 = <&nandc_ale &nandc_cle &nandc_wrn &nandc_rdn &nandc_rdy &nandc_cs0 &nandc_data>;
154 clocks = <&clk_nandc>, <&clk_gates5 9>, <&clk_gates10 4>;
155 clock-names = "clk_nandc", "g_clk_nandc", "hclk_nandc";
158 nandc0reg: nandc0@10500000 {
159 compatible = "rockchip,rk-nandc";
160 reg = <0x10500000 0x4000>;
164 compatible = "rockchip,rockchip-spi";
165 reg = <0x20074000 0x1000>;
166 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
167 #address-cells = <1>;
169 pinctrl-names = "default";
170 pinctrl-0 = <&spi0_txd &spi0_rxd &spi0_clk &spi0_cs0 &spi0_cs1>;
171 rockchip,spi-src-clk = <0>;
173 clocks =<&clk_spi0>, <&clk_gates2 9>;
174 clock-names = "spi","pclk_spi0";
175 dmas = <&pdma 8>, <&pdma 9>;
177 dma-names = "tx", "rx";
181 uart0: serial@20060000 {
182 compatible = "rockchip,serial";
183 reg = <0x20060000 0x100>;
184 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
185 clock-frequency = <24000000>;
186 clocks = <&clk_uart0>, <&clk_gates8 0>;
187 clock-names = "sclk_uart", "pclk_uart";
190 dmas = <&pdma 2>, <&pdma 3>;
192 pinctrl-names = "default";
193 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
197 uart1: serial@20064000 {
198 compatible = "rockchip,serial";
199 reg = <0x20064000 0x100>;
200 interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
201 clock-frequency = <24000000>;
202 clocks = <&clk_uart1>, <&clk_gates8 1>;
203 clock-names = "sclk_uart", "pclk_uart";
206 dmas = <&pdma 4>, <&pdma 5>;
208 pinctrl-names = "default";
209 pinctrl-0 = <&uart1_xfer>;
213 uart2: serial@20068000 {
214 compatible = "rockchip,serial";
215 reg = <0x20068000 0x100>;
216 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
217 clock-frequency = <24000000>;
218 clocks = <&clk_uart2>, <&clk_gates8 2>;
219 clock-names = "sclk_uart", "pclk_uart";
222 dmas = <&pdma 6>, <&pdma 7>;
224 pinctrl-names = "default";
225 pinctrl-0 = <&uart2_xfer>;
230 compatible = "rockchip,fiq-debugger";
231 rockchip,serial-id = <2>;
232 rockchip,signal-irq = <106>;
233 rockchip,wake-irq = <0>;
238 compatible = "rockchip,clocks-init";
239 rockchip,clocks-init-parent =
240 <&clk_core &clk_apll>, <&aclk_cpu_pre &clk_gpll>,
241 <&aclk_peri_pre &clk_gpll>, <&clk_uart_pll &clk_gpll>,
242 <&clk_i2s_pll &clk_gpll>, <&clk_spdif_pll &clk_gpll>,
243 <&aclk_vcodec_pre &clk_gpll>, <&clk_hevc_core &clk_gpll>,
244 <&aclk_vio_pre &clk_gpll>, <&clk_mac_pll &clk_apll>;
245 rockchip,clocks-init-rate =
246 <&clk_core 1000000000>, <&clk_gpll 594000000>,
247 <&aclk_cpu_pre 150000000>, <&hclk_cpu_pre 75000000>,
248 <&pclk_cpu_pre 75000000>, <&aclk_peri_pre 150000000>,
249 <&hclk_peri_pre 75000000>, <&pclk_peri_pre 75000000>,
250 <&clk_gpu_pre 300000000>, <&aclk_vio_pre 300000000>,
251 <&hclk_vio_pre 150000000>, <&aclk_vcodec_pre 300000000>,
252 <&clk_hevc_core 200000000>, <&clk_mac_pll_div 50000000>,
253 <&clk_mac_ref_div 50000000>;
254 /* rockchip,clocks-uboot-has-init =
259 compatible = "rockchip,clocks-enable";
262 <&clk_gates0 0>, <&clk_gates0 7>,
265 <&clk_gates0 3>, <&clk_gates0 4>,
269 <&clk_gates1 0>, <&clk_gates1 1>,
270 <&clk_gates2 4>, <&clk_gates2 5>,
273 <&clk_gates2 0>, <&hclk_peri_pre>,
274 <&pclk_peri_pre>, <&clk_gates2 1>,
277 <&clk_gates4 12>,/*aclk_intmem*/
278 <&clk_gates4 10>,/*aclk_strc_sys*/
281 <&clk_gates5 6>,/*hclk_rom*/
284 <&clk_gates5 4>,/*pclk_grf*/
285 <&clk_gates5 7>,/*pclk_ddrupctl*/
286 <&clk_gates5 14>,/*pclk_acodec*/
287 <&clk_gates3 8>,/*pclk_hdmi*/
290 <&clk_gates4 3>,/*aclk_peri_axi_matrix*/
291 <&clk_gates5 1>,/*aclk_dmac2*/
292 <&clk_gates9 15>,/*aclk_peri_niu*/
293 <&clk_gates4 2>,/*aclk_cpu_peri*/
296 <&clk_gates4 0>,/*hclk_peri_matrix*/
297 <&clk_gates9 13>,/*hclk_usb_peri*/
298 <&clk_gates9 14>,/*hclk_peri_arbi*/
301 <&clk_gates4 1>,/*pclk_peri_axi_matrix*/
304 <&clk_gates6 12>,/*hclk_vio_bus*/
305 <&clk_gates9 5>,/*hclk_lcdc*/
308 <&clk_gates6 13>,/*aclk_vio*/
309 <&clk_gates9 6>,/*aclk_lcdc*/
314 <&clk_gates8 2>,/*pclk_uart2*/
319 <&clk_gates1 3>;/*clk_jtag*/
323 compatible = "rockchip,rk30-i2c";
324 reg = <0x20072000 0x1000>;
325 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
326 #address-cells = <1>;
328 pinctrl-names = "default", "gpio";
329 pinctrl-0 = <&i2c0_sda &i2c0_scl>;
330 pinctrl-1 = <&i2c0_gpio>;
331 gpios = <&gpio0 GPIO_A1 GPIO_ACTIVE_LOW>, <&gpio0 GPIO_A0 GPIO_ACTIVE_LOW>;
332 clocks = <&clk_gates8 4>;
333 rockchip,check-idle = <1>;
338 compatible = "rockchip,rk30-i2c";
339 reg = <0x20056000 0x1000>;
340 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
341 #address-cells = <1>;
343 pinctrl-names = "default", "gpio";
344 pinctrl-0 = <&i2c1_sda &i2c1_scl>;
345 pinctrl-1 = <&i2c1_gpio>;
346 gpios = <&gpio0 GPIO_A3 GPIO_ACTIVE_LOW>, <&gpio0 GPIO_A2 GPIO_ACTIVE_LOW>;
347 clocks = <&clk_gates8 5>;
348 rockchip,check-idle = <1>;
353 compatible = "rockchip,rk30-i2c";
354 reg = <0x2005a000 0x1000>;
355 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
356 #address-cells = <1>;
358 pinctrl-names = "default", "gpio";
359 pinctrl-0 = <&i2c2_sda &i2c2_scl>;
360 pinctrl-1 = <&i2c2_gpio>;
361 gpios = <&gpio2 GPIO_C4 GPIO_ACTIVE_LOW>, <&gpio2 GPIO_C5 GPIO_ACTIVE_LOW>;
362 clocks = <&clk_gates8 6>;
363 rockchip,check-idle = <1>;
368 compatible = "rockchip-i2s";
369 reg = <0x10220000 0x1000>;
371 clocks = <&clk_i2s>, <&clk_i2s_out>, <&clk_gates7 2>;
372 clock-names = "i2s_clk","i2s_mclk", "i2s_hclk";
373 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
374 dmas = <&pdma 0>, <&pdma 1>;
376 dma-names = "tx", "rx";
377 //pinctrl-names = "default", "sleep";
378 //pinctrl-0 = <&i2s_mclk &i2s_sclk &i2s_lrckrx &i2s_lrcktx &i2s_sdi &i2s_sdo0 &i2s_sdo1 &i2s_sdo2 &i2s_sdo3>;
379 //pinctrl-1 = <&i2s_gpio>;
382 spdif: spdif@10204000 {
383 compatible = "rockchip-spdif";
384 reg = <0x10204000 0x1000>;
385 clocks = <&clk_spdif>;
386 clock-names = "spdif_mclk";
387 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
391 //pinctrl-names = "default";
392 //pinctrl-0 = <&spdif_tx>;
396 compatible = "rockchip,rk-pwm";
397 reg = <0x20050000 0x10>;
399 pinctrl-names = "default";
400 pinctrl-0 = <&pwm0_pin>;
401 clocks = <&clk_gates7 10>;
402 clock-names = "pclk_pwm";
407 compatible = "rockchip,rk-pwm";
408 reg = <0x20050010 0x10>;
410 pinctrl-names = "default";
411 pinctrl-0 = <&pwm1_pin>;
412 clocks = <&clk_gates7 10>;
413 clock-names = "pclk_pwm";
418 compatible = "rockchip,rk-pwm";
419 reg = <0x20050020 0x10>;
421 pinctrl-names = "default";
422 pinctrl-0 = <&pwm2_pin>;
423 clocks = <&clk_gates7 10>;
424 clock-names = "pclk_pwm";
429 compatible = "rockchip,rk-pwm";
430 reg = <0x20050030 0x10>;
432 pinctrl-names = "default";
433 pinctrl-0 = <&pwm3_pin>;
434 clocks = <&clk_gates7 10>;
435 clock-names = "pclk_pwm";
439 emmc: rksdmmc@1021c000 {
440 compatible = "rockchip,rk_mmc", "rockchip,rk3036-sdmmc";
441 reg = <0x1021c000 0x4000>;
442 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
443 #address-cells = <1>;
445 //pinctrl-names = "default",,"suspend";
446 //pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_cd &sd0_wp &sd0_pwr &sd0_bus1 &sd0_bus4>;
447 clocks = <&clk_emmc>, <&clk_gates7 0>;
448 clock-names = "clk_mmc", "hclk_mmc";
450 dma-names = "dw_mci";
452 fifo-depth = <0x100>;
457 sdmmc: rksdmmc@10214000 {
458 compatible = "rockchip,rk_mmc", "rockchip,rk3036-sdmmc";
459 reg = <0x10214000 0x4000>;
460 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
461 #address-cells = <1>;
463 pinctrl-names = "default", "idle";
464 pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_dectn &sdmmc0_bus4>;
465 pinctrl-1 = <&sdmmc0_gpio>;
466 cd-gpios = <&gpio1 GPIO_C1 GPIO_ACTIVE_HIGH>;/*CD GPIO*/
467 clocks = <&clk_sdmmc0>, <&clk_gates5 10>;
468 clock-names = "clk_mmc", "hclk_mmc";
470 dma-names = "dw_mci";
472 fifo-depth = <0x100>;
476 sdio: rksdmmc@10218000 {
477 compatible = "rockchip,rk_mmc", "rockchip,rk3036-sdmmc";
478 reg = <0x10218000 0x4000>;
479 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
480 #address-cells = <1>;
482 pinctrl-names = "default","idle";
483 pinctrl-0 = <&sdio0_clk &sdio0_cmd &sdio0_bus4>;
484 pinctrl-1 = <&sdio0_gpio>;
485 clocks = <&clk_sdio>, <&clk_gates5 11>;
486 clock-names = "clk_mmc", "hclk_mmc";
488 dma-names = "dw_mci";
490 fifo-depth = <0x100>;
494 compatible = "arm,mali400";
495 reg = <0x10091000 0x200>,
500 reg-names = "Mali_L2",
506 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>,
507 <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>,
508 <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>,
509 <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
510 interrupt-names = "Mali_GP_IRQ",
515 dwc_control_usb: dwc-control-usb@20008000 {
516 compatible = "rockchip,rk3036-dwc-control-usb";
517 reg = <0x20008000 0x4>;
518 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
519 interrupt-names = "otg_bvalid";
520 clocks = <&clk_gates9 13>;
521 clock-names = "hclk_usb_peri";
522 rockchip,remote_wakeup;
523 rockchip,usb_irq_wakeup;
524 resets = <&reset RK3036_RST_USBPOR>;
525 reset-names = "usbphy_por";
527 compatible = "rockchip,ctrl";
528 rk_usb,bvalid = <0x14c 8 1>;
529 rk_usb,iddig = <0x14c 11 1>;
530 rk_usb,line = <0x14c 9 2>;
531 rk_usb,softctrl = <0x17c 0 1>;
532 rk_usb,opmode = <0x17c 2 2>;
533 rk_usb,xcvrsel = <0x17c 4 2>;
534 rk_usb,termsel = <0x17c 6 1>;
538 compatible = "rockchip,rk3036_usb20_otg";
539 reg = <0x10180000 0x40000>;
540 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
541 clocks = <&clk_gates1 5>, <&clk_gates5 13>;
542 clock-names = "clk_usbphy0", "hclk_usb0";
543 resets = <&reset RK3036_RST_USBOTG0>, <&reset RK3036_RST_UTMI0>,
544 <&reset RK3036_RST_OTGC0>;
545 reset-names = "otg_ahb", "otg_phy", "otg_controller";
546 /*0 - Normal, 1 - Force Host, 2 - Force Device*/
547 rockchip,usb-mode = <0>;
551 compatible = "rockchip,rk3036_usb20_host";
552 reg = <0x101c0000 0x40000>;
553 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
554 clocks = <&clk_gates1 6>, <&clk_gates7 3>;
555 clock-names = "clk_usbphy1", "hclk_usb1";
556 resets = <&reset RK3036_RST_USBOTG1>, <&reset RK3036_RST_UTMI1>,
557 <&reset RK3036_RST_OTGC1>;
558 reset-names = "host_ahb", "host_phy", "host_controller";
562 compatible = "rockchip,rk-fb";
563 rockchip,disp-mode = <NO_DUAL>;
566 rk_screen: rk_screen{
567 compatible = "rockchip,screen";
570 lcdc: lcdc@10118000 {
571 compatible = "rockchip,rk3036-lcdc";
572 reg = <0x10118000 0x200>;
573 interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
575 clocks = <&clk_gates9 6>, <&dclk_lcdc1>, <&clk_gates9 5>;
576 clock-names = "aclk_lcdc", "dclk_lcdc", "hclk_lcdc";
577 rockchip,iommu-enabled = <0>;
580 hdmi: hdmi@20034000 {
581 compatible = "rockchip,rk3036-hdmi";
582 reg = <0x20034000 0x4000>;
583 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
584 rockchip,hdmi_lcdc_source = <0>;
585 pinctrl-names = "default", "gpio";
586 pinctrl-0 = <&hdmi_cec &hdmi_sda &hdmi_scl &hdmi_hpd>;
587 pinctrl-1 = <&hdmi_gpio>;
588 clocks = <&clk_gates3 8>;
589 clock-names = "pclk_hdmi";
594 compatible = "rockchip,rk3036-tve";
595 reg = <0x10118200 0x100>;
600 compatible = "rockchip,ion";
601 #address-cells = <1>;
604 ion_cma: rockchip,ion-heap@1 { /* CMA HEAP */
605 compatible = "rockchip,ion-reserve";
606 rockchip,ion_heap = <1>;
607 reg = <0x00000000 0x10000000>; /* 256MB */
609 rockchip,ion-heap@3 { /* VMALLOC HEAP */
610 rockchip,ion_heap = <3>;
614 vpu: vpu_service@10108000 {
615 compatible = "vpu_service";
616 reg = <0x10108000 0x800>;
617 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
618 interrupt-names = "irq_dec";
619 clocks = <&aclk_vcodec_pre>, <&clk_gates3 12>;
620 clock-names = "aclk_vcodec", "hclk_vcodec";
621 name = "vpu_service";
625 hevc: hevc_service@1010c000 {
626 compatible = "rockchip,hevc_service";
627 reg = <0x1010c000 0x400>;
628 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
629 interrupt-names = "irq_dec";
630 clocks = <&aclk_vcodec_pre>, <&clk_gates3 12>, <&clk_hevc_core>;
631 clock-names = "aclk_vcodec", "hclk_vcodec", "clk_core";
632 name = "hevc_service";
638 compatible = "iommu,vop_mmu";
639 reg = <0x10118300 0x100>;
640 interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
641 interrupt-names = "vop_mmu";
646 compatible = "iommu,hevc_mmu";
647 reg = <0x1010c440 0x100>,
649 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
650 interrupt-names = "hevc_mmu";
655 compatible = "iommu,vpu_mmu";
656 reg = <0x10108800 0x100>;
657 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
658 interrupt-names = "vpu_mmu";