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>;
54 compatible = "mmio-sram";
55 reg = <0x10080000 0x2000>;
60 compatible = "arm,armv7-timer";
61 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
62 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
63 clock-frequency = <24000000>;
66 watchdog: wdt@2004c000 {
67 compatible = "rockchip,watch dog";
68 reg = <0x2004c000 0x100>;
69 clocks = <&clk_gates7 15>;
70 clock-names = "pclk_wdt";
71 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
73 rockchip,timeout = <60>;
74 rockchip,atboot = <1>;
82 compatible = "arm,amba-bus";
83 interrupt-parent = <&gic>;
87 compatible = "arm,pl330", "arm,primecell";
88 reg = <0x20078000 0x4000>;
89 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
90 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
95 reset: reset@20000110{
96 compatible = "rockchip,reset";
97 reg = <0x20000110 0x24>;
98 rockchip,reset-flag = <ROCKCHIP_RESET_HIWORD_MASK>;
102 nandc: nandc@10500000 {
103 compatible = "rockchip,rk-nandc";
104 reg = <0x10500000 0x4000>;
105 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
107 clocks = <&clk_nandc>, <&clk_gates5 9>;
108 clock-names = "clk_nandc", "hclk_nandc";
112 compatible = "rockchip,rockchip-spi";
113 reg = <0x20074000 0x1000>;
114 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
115 #address-cells = <1>;
117 pinctrl-names = "default";
118 pinctrl-0 = <&spi0_txd &spi0_rxd &spi0_clk &spi0_cs0 &spi0_cs1>;
119 rockchip,spi-src-clk = <0>;
121 clocks =<&clk_spi0>, <&clk_gates7 12>;
122 clock-names = "spi","pclk_spi0";
123 //dmas = <&pdma 8>, <&pdma 9>;
125 //dma-names = "tx", "rx";
129 uart0: serial@20060000 {
130 compatible = "rockchip,serial";
131 reg = <0x20060000 0x100>;
132 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
133 clock-frequency = <24000000>;
134 clocks = <&clk_uart0>, <&clk_gates8 0>;
135 clock-names = "sclk_uart", "pclk_uart";
138 dmas = <&pdma 2>, <&pdma 3>;
140 pinctrl-names = "default";
141 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
145 uart1: serial@20064000 {
146 compatible = "rockchip,serial";
147 reg = <0x20064000 0x100>;
148 interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
149 clock-frequency = <24000000>;
150 clocks = <&clk_uart1>, <&clk_gates8 1>;
151 clock-names = "sclk_uart", "pclk_uart";
154 dmas = <&pdma 4>, <&pdma 5>;
156 pinctrl-names = "default";
157 pinctrl-0 = <&uart1_xfer>;
161 uart2: serial@20068000 {
162 compatible = "rockchip,serial";
163 reg = <0x20068000 0x100>;
164 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
165 clock-frequency = <24000000>;
166 clocks = <&clk_uart2>, <&clk_gates8 2>;
167 clock-names = "sclk_uart", "pclk_uart";
170 dmas = <&pdma 6>, <&pdma 7>;
172 pinctrl-names = "default";
173 pinctrl-0 = <&uart2_xfer>;
178 compatible = "rockchip,fiq-debugger";
179 rockchip,serial-id = <2>;
180 rockchip,signal-irq = <106>;
181 rockchip,wake-irq = <0>;
186 compatible = "rockchip,clocks-init";
187 rockchip,clocks-init-parent =
188 <&clk_core_pre &clk_apll>, <&aclk_cpu_pre &clk_gpll>,
189 <&aclk_peri_pre &clk_gpll>, <&clk_uart_pll &clk_gpll>,
190 <&clk_i2s_pll &clk_gpll>, <&clk_spdif_pll &clk_gpll>,
191 <&aclk_vcodec_pre &clk_gpll>, <&clk_hevc_core &clk_gpll>,
192 <&clk_mac_pll &clk_apll>;
193 rockchip,clocks-init-rate =
194 <&clk_core_pre 816000000>, <&clk_gpll 594000000>,
195 <&aclk_cpu_pre 150000000>, <&hclk_cpu_pre 75000000>,
196 <&pclk_cpu_pre 75000000>, <&aclk_peri_pre 150000000>,
197 <&hclk_peri_pre 75000000>, <&pclk_peri_pre 75000000>,
198 <&clk_gpu_pre 300000000>, <&aclk_vio_pre 300000000>,
199 <&hclk_vio_pre 150000000>, <&aclk_vcodec_pre 300000000>,
200 <&clk_hevc_core 300000000>, <&clk_mac_ref_div 50000000>;
201 /* rockchip,clocks-uboot-has-init =
206 compatible = "rockchip,clocks-enable";
209 <&clk_gates0 0>, <&clk_gates0 7>,
212 <&clk_gates0 3>, <&clk_gates0 4>,
216 <&clk_gates1 0>, <&clk_gates1 1>,
217 <&clk_gates2 4>, <&clk_gates2 5>,
220 <&clk_gates2 0>, <&hclk_peri_pre>,
221 <&pclk_peri_pre>, <&clk_gates2 1>,
224 <&clk_gates4 12>,/*aclk_intmem*/
225 <&clk_gates4 10>,/*aclk_strc_sys*/
228 <&clk_gates5 6>,/*hclk_rom*/
231 <&clk_gates5 4>,/*pclk_grf*/
232 <&clk_gates5 7>,/*pclk_ddrupctl*/
233 <&clk_gates5 14>,/*pclk_acodec*/
234 <&clk_gates3 8>,/*pclk_hdmi*/
237 <&clk_gates4 3>,/*aclk_peri_axi_matrix*/
238 <&clk_gates5 1>,/*aclk_dmac2*/
239 <&clk_gates9 15>,/*aclk_peri_niu*/
240 <&clk_gates4 2>,/*aclk_cpu_peri*/
243 <&clk_gates4 0>,/*hclk_peri_matrix*/
244 <&clk_gates9 13>,/*hclk_usb_peri*/
245 <&clk_gates9 14>,/*hclk_peri_arbi*/
248 <&clk_gates4 1>,/*pclk_peri_axi_matrix*/
251 <&clk_gates6 12>,/*hclk_vio_bus*/
252 <&clk_gates9 5>,/*hclk_lcdc*/
255 <&clk_gates6 13>,/*aclk_vio*/
256 <&clk_gates9 6>,/*aclk_lcdc*/
261 <&clk_gates8 2>,/*pclk_uart2*/
264 <&clk_gates1 3>;/*clk_jtag*/
268 compatible = "rockchip,rk30-i2c";
269 reg = <0x20072000 0x1000>;
270 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
271 #address-cells = <1>;
273 pinctrl-names = "default", "gpio";
274 pinctrl-0 = <&i2c0_sda &i2c0_scl>;
275 pinctrl-1 = <&i2c0_gpio>;
276 gpios = <&gpio0 GPIO_A1 GPIO_ACTIVE_LOW>, <&gpio0 GPIO_A0 GPIO_ACTIVE_LOW>;
277 clocks = <&clk_gates8 4>;
278 rockchip,check-idle = <1>;
283 compatible = "rockchip,rk30-i2c";
284 reg = <0x20056000 0x1000>;
285 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
286 #address-cells = <1>;
288 pinctrl-names = "default", "gpio";
289 pinctrl-0 = <&i2c1_sda &i2c1_scl>;
290 pinctrl-1 = <&i2c1_gpio>;
291 gpios = <&gpio0 GPIO_A3 GPIO_ACTIVE_LOW>, <&gpio0 GPIO_A2 GPIO_ACTIVE_LOW>;
292 clocks = <&clk_gates8 5>;
293 rockchip,check-idle = <1>;
298 compatible = "rockchip,rk30-i2c";
299 reg = <0x2005a000 0x1000>;
300 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
301 #address-cells = <1>;
303 pinctrl-names = "default", "gpio";
304 pinctrl-0 = <&i2c2_sda &i2c2_scl>;
305 pinctrl-1 = <&i2c2_gpio>;
306 gpios = <&gpio2 GPIO_C4 GPIO_ACTIVE_LOW>, <&gpio2 GPIO_C5 GPIO_ACTIVE_LOW>;
307 clocks = <&clk_gates8 6>;
308 rockchip,check-idle = <1>;
313 compatible = "rockchip-i2s";
314 reg = <0x10220000 0x1000>;
316 clocks = <&clk_i2s>, <&clk_i2s_out>, <&clk_gates7 2>;
317 clock-names = "i2s_clk","i2s_mclk", "i2s_hclk";
318 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
319 dmas = <&pdma 0>, <&pdma 1>;
321 dma-names = "tx", "rx";
322 //pinctrl-names = "default", "sleep";
323 //pinctrl-0 = <&i2s_mclk &i2s_sclk &i2s_lrckrx &i2s_lrcktx &i2s_sdi &i2s_sdo0 &i2s_sdo1 &i2s_sdo2 &i2s_sdo3>;
324 //pinctrl-1 = <&i2s_gpio>;
327 spdif: spdif@10204000 {
328 compatible = "rockchip-spdif";
329 reg = <0x10204000 0x1000>;
330 clocks = <&clk_spdif>;
331 clock-names = "spdif_mclk";
332 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
336 //pinctrl-names = "default";
337 //pinctrl-0 = <&spdif_tx>;
341 compatible = "rockchip,rk-pwm";
342 reg = <0x20050000 0x10>;
344 pinctrl-names = "default";
345 pinctrl-0 = <&pwm0_pin>;
346 clocks = <&clk_gates7 10>;
347 clock-names = "pclk_pwm";
352 compatible = "rockchip,rk-pwm";
353 reg = <0x20050010 0x10>;
355 pinctrl-names = "default";
356 pinctrl-0 = <&pwm1_pin>;
357 clocks = <&clk_gates7 10>;
358 clock-names = "pclk_pwm";
363 compatible = "rockchip,rk-pwm";
364 reg = <0x20050020 0x10>;
366 pinctrl-names = "default";
367 pinctrl-0 = <&pwm2_pin>;
368 clocks = <&clk_gates7 10>;
369 clock-names = "pclk_pwm";
374 compatible = "rockchip,rk-pwm";
375 reg = <0x20050030 0x10>;
377 pinctrl-names = "default";
378 pinctrl-0 = <&pwm3_pin>;
379 clocks = <&clk_gates7 10>;
380 clock-names = "pclk_pwm";
384 emmc: rksdmmc@1021c000 {
385 compatible = "rockchip,rk_mmc", "rockchip,rk3036-sdmmc";
386 reg = <0x1021c000 0x4000>;
387 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
388 #address-cells = <1>;
390 //pinctrl-names = "default",,"suspend";
391 //pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_cd &sd0_wp &sd0_pwr &sd0_bus1 &sd0_bus4>;
392 clocks = <&clk_emmc>, <&clk_gates7 0>;
393 clock-names = "clk_mmc", "hclk_mmc";
395 dma-names = "dw_mci";
397 fifo-depth = <0x100>;
402 sdmmc: rksdmmc@10214000 {
403 compatible = "rockchip,rk_mmc", "rockchip,rk3036-sdmmc";
404 reg = <0x10214000 0x4000>;
405 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
406 #address-cells = <1>;
408 pinctrl-names = "default", "idle";
409 pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_dectn &sdmmc0_bus4>;
410 pinctrl-1 = <&sdmmc0_gpio>;
411 cd-gpios = <&gpio1 GPIO_C1 GPIO_ACTIVE_HIGH>;/*CD GPIO*/
412 clocks = <&clk_sdmmc0>, <&clk_gates2 11>;
413 clock-names = "clk_mmc", "hclk_mmc";
415 dma-names = "dw_mci";
417 fifo-depth = <0x100>;
421 sdio: rksdmmc@10218000 {
422 compatible = "rockchip,rk_mmc", "rockchip,rk3036-sdmmc";
423 reg = <0x10218000 0x4000>;
424 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
425 #address-cells = <1>;
427 pinctrl-names = "default","idle";
428 pinctrl-0 = <&sdio0_clk &sdio0_cmd &sdio0_bus4>;
429 pinctrl-1 = <&sdio0_gpio>;
430 clocks = <&clk_sdio>, <&clk_gates5 11>;
431 clock-names = "clk_mmc", "hclk_mmc";
433 dma-names = "dw_mci";
435 fifo-depth = <0x100>;
439 compatible = "arm,mali400";
440 reg = <0x10091000 0x200>,
445 reg-names = "Mali_L2",
451 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>,
452 <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>,
453 <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>,
454 <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
455 interrupt-names = "Mali_GP_IRQ",
460 dwc_control_usb: dwc-control-usb@20008000 {
461 compatible = "rockchip,rk3188-dwc-control-usb";
462 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
463 interrupt-names = "otg_bvalid";
464 //gpios = <&gpio0 GPIO_C0 GPIO_ACTIVE_LOW>, <&gpio3 GPIO_D5 GPIO_ACTIVE_LOW>;
465 clocks = <&clk_gates9 13>;
466 clock-names = "hclk_usb_peri";
467 rockchip,remote_wakeup;
468 rockchip,usb_irq_wakeup;
471 compatible = "rockchip,ctrl";
472 rk_usb,bvalid = <0x14c 8 1>;
473 rk_usb,iddig = <0x14c 11 1>;
474 rk_usb,line = <0x14c 9 2>;
475 rk_usb,softctrl = <0x17c 0 1>;
476 rk_usb,opmode = <0x17c 2 2>;
477 rk_usb,xcvrsel = <0x17c 4 2>;
478 rk_usb,termsel = <0x118 6 1>;
482 compatible = "rockchip,rk3188_usb20_otg";
483 reg = <0x10180000 0x40000>;
484 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
485 clocks = <&clk_gates1 5>, <&clk_gates5 13>;
486 clock-names = "clk_usbphy0", "hclk_usb0";
487 /*0 - Normal, 1 - Force Host, 2 - Force Device*/
488 rockchip,usb-mode = <0>;
492 compatible = "rockchip,rk3188_usb20_host";
493 reg = <0x101c0000 0x40000>;
494 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
495 clocks = <&clk_gates1 6>, <&clk_gates7 3>;
496 clock-names = "clk_usbphy1", "hclk_usb1";
500 compatible = "rockchip,rk-fb";
501 rockchip,disp-mode = <NO_DUAL>;
504 rk_screen: rk_screen{
505 compatible = "rockchip,screen";
508 lcdc: lcdc@10118000 {
509 compatible = "rockchip,rk3036-lcdc";
510 reg = <0x10118000 0x4000>;
511 interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
513 clocks = <&clk_gates9 6>, <&dclk_lcdc1>, <&clk_gates9 5>;
514 clock-names = "aclk_lcdc", "dclk_lcdc", "hclk_lcdc";
515 rockchip,iommu-enabled = <1>;
518 hdmi: hdmi@20034000 {
519 compatible = "rockchip,rk3036-hdmi";
520 reg = <0x20034000 0x4000>;
521 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
522 rockchip,hdmi_lcdc_source = <0>;
523 pinctrl-names = "default", "gpio";
524 pinctrl-0 = <&hdmi_cec &hdmi_sda &hdmi_scl &hdmi_hpd>;
525 pinctrl-1 = <&hdmi_gpio>;
526 clocks = <&clk_gates3 8>;
527 clock-names = "pclk_hdmi";
532 compatible = "rockchip,rk3036-tve";
533 reg = <0x10118200 0x100>;
537 vpu: vpu_service@10108000 {
538 compatible = "vpu_service";
539 reg = <0x10108000 0x800>;
540 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
541 interrupt-names = "irq_enc", "irq_dec";
542 clocks = <&aclk_vcodec_pre>, <&clk_gates3 12>;
543 clock-names = "aclk_vcodec", "hclk_vcodec";
544 name = "vpu_service";
548 hevc: hevc_service@1010c000 {
549 compatible = "rockchip,hevc_service";
550 reg = <0x1010c000 0x800>;
551 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
552 interrupt-names = "irq_dec";
553 clocks = <&aclk_vcodec_pre>, <&clk_gates3 12>, <&clk_hevc_core>;
554 clock-names = "aclk_vcodec", "hclk_vcodec", "clk_core";
555 name = "hevc_service";
561 compatible = "iommu,vop_mmu";
562 reg = <0x10118300 0x100>;
563 interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
564 interrupt-names = "vop_mmu";
569 compatible = "iommu,hevc_mmu";
570 reg = <0x1010c440 0x100>,
572 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
573 interrupt-names = "hevc_mmu";
578 compatible = "iommu,vpu_mmu";
579 reg = <0x10108800 0x100>;
580 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
581 interrupt-names = "vpu_mmu";