2 * SPDX-License-Identifier: GPL-2.0+
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/interrupt-controller/irq.h>
7 #include <dt-bindings/interrupt-controller/arm-gic.h>
8 #include <dt-bindings/pinctrl/rockchip.h>
9 #include <dt-bindings/clock/rk3288-cru.h>
10 #include <dt-bindings/power-domain/rk3288.h>
11 #include <dt-bindings/thermal/thermal.h>
12 #include <dt-bindings/video/rk3288.h>
13 #include "skeleton.dtsi"
16 compatible = "rockchip,rk3288";
18 interrupt-parent = <&gic>;
56 enable-method = "rockchip,rk3066-smp";
57 rockchip,pmu = <&pmu>;
61 compatible = "arm,cortex-a12";
79 #cooling-cells = <2>; /* min followed by max */
80 clock-latency = <40000>;
81 clocks = <&cru ARMCLK>;
82 resets = <&cru SRST_CORE0>;
86 compatible = "arm,cortex-a12";
88 resets = <&cru SRST_CORE1>;
92 compatible = "arm,cortex-a12";
94 resets = <&cru SRST_CORE2>;
98 compatible = "arm,cortex-a12";
100 resets = <&cru SRST_CORE3>;
105 compatible = "arm,amba-bus";
106 #address-cells = <1>;
110 dmac_peri: dma-controller@ff250000 {
111 compatible = "arm,pl330", "arm,primecell";
113 reg = <0xff250000 0x4000>;
114 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
115 <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
117 clocks = <&cru ACLK_DMAC2>;
118 clock-names = "apb_pclk";
121 dmac_bus_ns: dma-controller@ff600000 {
122 compatible = "arm,pl330", "arm,primecell";
124 reg = <0xff600000 0x4000>;
125 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
126 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
128 clocks = <&cru ACLK_DMAC1>;
129 clock-names = "apb_pclk";
133 dmac_bus_s: dma-controller@ffb20000 {
134 compatible = "arm,pl330", "arm,primecell";
136 reg = <0xffb20000 0x4000>;
137 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
138 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
140 clocks = <&cru ACLK_DMAC1>;
141 clock-names = "apb_pclk";
146 compatible = "fixed-clock";
147 clock-frequency = <24000000>;
148 clock-output-names = "xin24m";
153 arm,use-physical-timer;
154 compatible = "arm,armv7-timer";
155 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
156 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
157 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
158 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
159 clock-frequency = <24000000>;
164 compatible = "rockchip,display-subsystem";
165 ports = <&vopl_out>, <&vopb_out>;
168 sdmmc: dwmmc@ff0c0000 {
169 compatible = "rockchip,rk3288-dw-mshc";
170 clock-freq-min-max = <400000 150000000>;
171 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>,
172 <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
173 clock-names = "biu", "ciu", "ciu_drv", "ciu_sample";
174 fifo-depth = <0x100>;
175 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
176 reg = <0xff0c0000 0x4000>;
180 sdio0: dwmmc@ff0d0000 {
181 compatible = "rockchip,rk3288-dw-mshc";
182 clock-freq-min-max = <400000 150000000>;
183 clocks = <&cru HCLK_SDIO0>, <&cru SCLK_SDIO0>,
184 <&cru SCLK_SDIO0_DRV>, <&cru SCLK_SDIO0_SAMPLE>;
185 clock-names = "biu", "ciu", "ciu_drv", "ciu_sample";
186 fifo-depth = <0x100>;
187 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
188 reg = <0xff0d0000 0x4000>;
192 sdio1: dwmmc@ff0e0000 {
193 compatible = "rockchip,rk3288-dw-mshc";
194 clock-freq-min-max = <400000 150000000>;
195 clocks = <&cru HCLK_SDIO1>, <&cru SCLK_SDIO1>,
196 <&cru SCLK_SDIO1_DRV>, <&cru SCLK_SDIO1_SAMPLE>;
197 clock-names = "biu", "ciu", "ciu_drv", "ciu_sample";
198 fifo-depth = <0x100>;
199 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
200 reg = <0xff0e0000 0x4000>;
204 emmc: dwmmc@ff0f0000 {
205 compatible = "rockchip,rk3288-dw-mshc";
206 clock-freq-min-max = <400000 150000000>;
207 clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>,
208 <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>;
209 clock-names = "biu", "ciu", "ciu_drv", "ciu_sample";
210 fifo-depth = <0x100>;
211 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
212 reg = <0xff0f0000 0x4000>;
216 saradc: saradc@ff100000 {
217 compatible = "rockchip,saradc";
218 reg = <0xff100000 0x100>;
219 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
220 #io-channel-cells = <1>;
221 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
222 clock-names = "saradc", "apb_pclk";
227 compatible = "rockchip,rk3288-spi", "rockchip,rk3066-spi";
228 clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
229 clock-names = "spiclk", "apb_pclk";
230 dmas = <&dmac_peri 11>, <&dmac_peri 12>;
231 dma-names = "tx", "rx";
232 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
233 pinctrl-names = "default";
234 pinctrl-0 = <&spi0_clk &spi0_tx &spi0_rx &spi0_cs0>;
235 reg = <0xff110000 0x1000>;
236 #address-cells = <1>;
242 compatible = "rockchip,rk3288-spi", "rockchip,rk3066-spi";
243 clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>;
244 clock-names = "spiclk", "apb_pclk";
245 dmas = <&dmac_peri 13>, <&dmac_peri 14>;
246 dma-names = "tx", "rx";
247 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
248 pinctrl-names = "default";
249 pinctrl-0 = <&spi1_clk &spi1_tx &spi1_rx &spi1_cs0>;
250 reg = <0xff120000 0x1000>;
251 #address-cells = <1>;
257 compatible = "rockchip,rk3288-spi", "rockchip,rk3066-spi";
258 clocks = <&cru SCLK_SPI2>, <&cru PCLK_SPI2>;
259 clock-names = "spiclk", "apb_pclk";
260 dmas = <&dmac_peri 15>, <&dmac_peri 16>;
261 dma-names = "tx", "rx";
262 interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
263 pinctrl-names = "default";
264 pinctrl-0 = <&spi2_clk &spi2_tx &spi2_rx &spi2_cs0>;
265 reg = <0xff130000 0x1000>;
266 #address-cells = <1>;
272 compatible = "rockchip,rk3288-i2c";
273 reg = <0xff140000 0x1000>;
274 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
275 #address-cells = <1>;
278 clocks = <&cru PCLK_I2C1>;
279 pinctrl-names = "default";
280 pinctrl-0 = <&i2c1_xfer>;
285 compatible = "rockchip,rk3288-i2c";
286 reg = <0xff150000 0x1000>;
287 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
288 #address-cells = <1>;
291 clocks = <&cru PCLK_I2C3>;
292 pinctrl-names = "default";
293 pinctrl-0 = <&i2c3_xfer>;
298 compatible = "rockchip,rk3288-i2c";
299 reg = <0xff160000 0x1000>;
300 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
301 #address-cells = <1>;
304 clocks = <&cru PCLK_I2C4>;
305 pinctrl-names = "default";
306 pinctrl-0 = <&i2c4_xfer>;
311 compatible = "rockchip,rk3288-i2c";
312 reg = <0xff170000 0x1000>;
313 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
314 #address-cells = <1>;
317 clocks = <&cru PCLK_I2C5>;
318 pinctrl-names = "default";
319 pinctrl-0 = <&i2c5_xfer>;
322 uart0: serial@ff180000 {
323 compatible = "rockchip,rk3288-uart", "snps,dw-apb-uart";
324 reg = <0xff180000 0x100>;
325 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
328 clock-frequency = <24000000>;
329 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
330 clock-names = "baudclk", "apb_pclk";
331 pinctrl-names = "default";
332 pinctrl-0 = <&uart0_xfer>;
336 uart1: serial@ff190000 {
337 compatible = "rockchip,rk3288-uart", "snps,dw-apb-uart";
338 reg = <0xff190000 0x100>;
339 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
342 clock-frequency = <24000000>;
343 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
344 clock-names = "baudclk", "apb_pclk";
345 pinctrl-names = "default";
346 pinctrl-0 = <&uart1_xfer>;
350 uart2: serial@ff690000 {
351 compatible = "rockchip,rk3288-uart", "snps,dw-apb-uart";
352 reg = <0xff690000 0x100>;
353 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
356 clock-frequency = <24000000>;
357 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
358 clock-names = "baudclk", "apb_pclk";
359 pinctrl-names = "default";
360 pinctrl-0 = <&uart2_xfer>;
363 uart3: serial@ff1b0000 {
364 compatible = "rockchip,rk3288-uart", "snps,dw-apb-uart";
365 reg = <0xff1b0000 0x100>;
366 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
369 clock-frequency = <24000000>;
370 clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
371 clock-names = "baudclk", "apb_pclk";
372 pinctrl-names = "default";
373 pinctrl-0 = <&uart3_xfer>;
377 uart4: serial@ff1c0000 {
378 compatible = "rockchip,rk3288-uart", "snps,dw-apb-uart";
379 reg = <0xff1c0000 0x100>;
380 interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
383 clock-frequency = <24000000>;
384 clocks = <&cru SCLK_UART4>, <&cru PCLK_UART4>;
385 clock-names = "baudclk", "apb_pclk";
386 pinctrl-names = "default";
387 pinctrl-0 = <&uart4_xfer>;
390 thermal: thermal-zones {
391 #include "rk3288-thermal.dtsi"
394 tsadc: tsadc@ff280000 {
395 compatible = "rockchip,rk3288-tsadc";
396 reg = <0xff280000 0x100>;
397 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
398 clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>;
399 clock-names = "tsadc", "apb_pclk";
400 resets = <&cru SRST_TSADC>;
401 reset-names = "tsadc-apb";
402 pinctrl-names = "otp_out";
403 pinctrl-0 = <&otp_out>;
404 #thermal-sensor-cells = <1>;
405 hw-shut-temp = <125000>;
409 gmac: ethernet@ff290000 {
410 compatible = "rockchip,rk3288-gmac";
411 reg = <0xff290000 0x10000>;
412 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
413 interrupt-names = "macirq";
414 rockchip,grf = <&grf>;
415 clocks = <&cru SCLK_MAC>,
416 <&cru SCLK_MAC_RX>, <&cru SCLK_MAC_TX>,
417 <&cru SCLK_MACREF>, <&cru SCLK_MACREF_OUT>,
418 <&cru ACLK_GMAC>, <&cru PCLK_GMAC>;
419 clock-names = "stmmaceth",
420 "mac_clk_rx", "mac_clk_tx",
421 "clk_mac_ref", "clk_mac_refout",
422 "aclk_mac", "pclk_mac";
425 usb_host0_ehci: usb@ff500000 {
426 compatible = "generic-ehci";
427 reg = <0xff500000 0x100>;
428 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
429 clocks = <&cru HCLK_USBHOST0>;
430 clock-names = "usbhost";
436 /* NOTE: ohci@ff520000 doesn't actually work on hardware */
438 usb_host1: usb@ff540000 {
439 compatible = "rockchip,rk3288-usb", "rockchip,rk3066-usb",
441 reg = <0xff540000 0x40000>;
442 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
443 clocks = <&cru HCLK_USBHOST1>;
446 phy-names = "usb2-phy";
450 usb_otg: usb@ff580000 {
451 compatible = "rockchip,rk3288-usb", "rockchip,rk3066-usb",
453 reg = <0xff580000 0x40000>;
454 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
455 clocks = <&cru HCLK_OTG0>;
458 phy-names = "usb2-phy";
462 usb_hsic: usb@ff5c0000 {
463 compatible = "generic-ehci";
464 reg = <0xff5c0000 0x100>;
465 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
466 clocks = <&cru HCLK_HSIC>;
467 clock-names = "usbhost";
473 compatible = "rockchip,rk3288-dmc", "syscon";
474 rockchip,cru = <&cru>;
475 rockchip,grf = <&grf>;
476 rockchip,pmu = <&pmu>;
477 rockchip,sgrf = <&sgrf>;
478 rockchip,noc = <&noc>;
479 reg = <0xff610000 0x3fc
483 rockchip,sram = <&ddr_sram>;
484 clocks = <&cru PCLK_DDRUPCTL0>, <&cru PCLK_PUBL0>,
485 <&cru PCLK_DDRUPCTL1>, <&cru PCLK_PUBL1>,
487 clock-names = "pclk_ddrupctl0", "pclk_publ0",
488 "pclk_ddrupctl1", "pclk_publ1",
493 compatible = "rockchip,rk3288-i2c";
494 reg = <0xff650000 0x1000>;
495 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
496 #address-cells = <1>;
499 clocks = <&cru PCLK_I2C0>;
500 pinctrl-names = "default";
501 pinctrl-0 = <&i2c0_xfer>;
506 compatible = "rockchip,rk3288-i2c";
507 reg = <0xff660000 0x1000>;
508 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
509 #address-cells = <1>;
512 clocks = <&cru PCLK_I2C2>;
513 pinctrl-names = "default";
514 pinctrl-0 = <&i2c2_xfer>;
519 compatible = "rockchip,rk3288-pwm";
520 reg = <0xff680000 0x10>;
522 pinctrl-names = "default";
523 pinctrl-0 = <&pwm0_pin>;
524 clocks = <&cru PCLK_PWM>;
526 rockchip,grf = <&grf>;
531 compatible = "rockchip,rk3288-pwm";
532 reg = <0xff680010 0x10>;
534 pinctrl-names = "default";
535 pinctrl-0 = <&pwm1_pin>;
536 clocks = <&cru PCLK_PWM>;
538 rockchip,grf = <&grf>;
543 compatible = "rockchip,rk3288-pwm";
544 reg = <0xff680020 0x10>;
546 pinctrl-names = "default";
547 pinctrl-0 = <&pwm2_pin>;
548 clocks = <&cru PCLK_PWM>;
550 rockchip,grf = <&grf>;
555 compatible = "rockchip,rk3288-pwm";
556 reg = <0xff680030 0x10>;
558 pinctrl-names = "default";
559 pinctrl-0 = <&pwm3_pin>;
560 clocks = <&cru PCLK_PWM>;
562 rockchip,grf = <&grf>;
566 bus_intmem@ff700000 {
567 compatible = "mmio-sram";
568 reg = <0xff700000 0x18000>;
569 #address-cells = <1>;
571 ranges = <0 0xff700000 0x18000>;
573 compatible = "rockchip,rk3066-smp-sram";
576 ddr_sram: ddr-sram@1000 {
577 compatible = "rockchip,rk3288-ddr-sram";
578 reg = <0x1000 0x4000>;
583 compatible = "rockchip,rk3288-pmu-sram", "mmio-sram";
584 reg = <0xff720000 0x1000>;
587 pmu: power-management@ff730000 {
589 compatible = "rockchip,rk3288-pmu", "syscon";
590 reg = <0xff730000 0x100>;
593 sgrf: syscon@ff740000 {
595 compatible = "rockchip,rk3288-sgrf", "syscon";
596 reg = <0xff740000 0x1000>;
599 cru: clock-controller@ff760000 {
600 compatible = "rockchip,rk3288-cru";
601 reg = <0xff760000 0x1000>;
602 rockchip,grf = <&grf>;
606 assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>,
607 <&cru PLL_GPLL>, <&cru PLL_CPLL>,
608 <&cru PLL_NPLL>, <&cru ACLK_CPU>,
609 <&cru HCLK_CPU>, <&cru PCLK_CPU>,
610 <&cru ACLK_PERI>, <&cru HCLK_PERI>,
612 assigned-clock-rates = <0>, <0>,
613 <594000000>, <400000000>,
614 <500000000>, <300000000>,
615 <150000000>, <75000000>,
616 <300000000>, <150000000>,
618 assigned-clock-parents = <&cru PLL_NPLL>, <&cru PLL_GPLL>;
621 grf: syscon@ff770000 {
623 compatible = "rockchip,rk3288-grf", "syscon";
624 reg = <0xff770000 0x1000>;
627 wdt: watchdog@ff800000 {
628 compatible = "rockchip,rk3288-wdt", "snps,dw-wdt";
629 reg = <0xff800000 0x100>;
630 clocks = <&cru PCLK_WDT>;
631 interrupts = <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>;
635 spdif: sound@ff88b0000 {
636 compatible = "rockchip,rk3288-spdif", "rockchip,rk3066-spdif";
637 reg = <0xff8b0000 0x10000>;
638 #sound-dai-cells = <0>;
639 clock-names = "hclk", "mclk";
640 clocks = <&cru HCLK_SPDIF8CH>, <&cru SCLK_SPDIF8CH>;
641 dmas = <&dmac_bus_s 3>;
643 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
644 pinctrl-names = "default";
645 pinctrl-0 = <&spdif_tx>;
646 rockchip,grf = <&grf>;
651 compatible = "rockchip,rk3288-i2s", "rockchip,rk3066-i2s";
652 reg = <0xff890000 0x10000>;
653 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
654 #address-cells = <1>;
656 dmas = <&dmac_bus_s 0>, <&dmac_bus_s 1>;
657 dma-names = "tx", "rx";
658 clock-names = "i2s_hclk", "i2s_clk";
659 clocks = <&cru HCLK_I2S0>, <&cru SCLK_I2S0>;
660 pinctrl-names = "default";
661 pinctrl-0 = <&i2s0_bus>;
666 compatible = "rockchip,rk3288-vop";
667 reg = <0xff930000 0x19c>;
668 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
669 clocks = <&cru ACLK_VOP0>, <&cru DCLK_VOP0>, <&cru HCLK_VOP0>;
670 clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
671 resets = <&cru SRST_LCDC0_AXI>, <&cru SRST_LCDC0_AHB>, <&cru SRST_LCDC0_DCLK>;
672 reset-names = "axi", "ahb", "dclk";
673 iommus = <&vopb_mmu>;
674 power-domains = <&power RK3288_PD_VIO>;
677 #address-cells = <1>;
679 vopb_out_edp: endpoint@0 {
681 remote-endpoint = <&edp_in_vopb>;
683 vopb_out_hdmi: endpoint@1 {
685 remote-endpoint = <&hdmi_in_vopb>;
687 vopb_out_lvds: endpoint@2 {
689 remote-endpoint = <&lvds_in_vopb>;
694 vopb_mmu: iommu@ff930300 {
695 compatible = "rockchip,iommu";
696 reg = <0xff930300 0x100>;
697 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
698 interrupt-names = "vopb_mmu";
699 power-domains = <&power RK3288_PD_VIO>;
705 compatible = "rockchip,rk3288-vop";
706 reg = <0xff940000 0x19c>;
707 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
708 clocks = <&cru ACLK_VOP1>, <&cru DCLK_VOP1>, <&cru HCLK_VOP1>;
709 clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
710 resets = <&cru SRST_LCDC1_AXI>, <&cru SRST_LCDC1_AHB>, <&cru SRST_LCDC1_DCLK>;
711 reset-names = "axi", "ahb", "dclk";
712 iommus = <&vopl_mmu>;
713 power-domains = <&power RK3288_PD_VIO>;
717 #address-cells = <1>;
719 vopl_out_edp: endpoint@0 {
721 remote-endpoint = <&edp_in_vopl>;
723 vopl_out_hdmi: endpoint@1 {
725 remote-endpoint = <&hdmi_in_vopl>;
727 vopl_out_lvds: endpoint@2 {
729 remote-endpoint = <&lvds_in_vopl>;
734 vopl_mmu: iommu@ff940300 {
735 compatible = "rockchip,iommu";
736 reg = <0xff940300 0x100>;
737 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
738 interrupt-names = "vopl_mmu";
739 power-domains = <&power RK3288_PD_VIO>;
745 compatible = "rockchip,rk3288-edp";
746 reg = <0xff970000 0x4000>;
747 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
748 clocks = <&cru SCLK_EDP>, <&cru SCLK_EDP_24M>, <&cru PCLK_EDP_CTRL>;
749 rockchip,grf = <&grf>;
750 clock-names = "clk_edp", "clk_edp_24m", "pclk_edp";
753 power-domains = <&power RK3288_PD_VIO>;
757 #address-cells = <1>;
759 edp_in_vopb: endpoint@0 {
761 remote-endpoint = <&vopb_out_edp>;
763 edp_in_vopl: endpoint@1 {
765 remote-endpoint = <&vopl_out_edp>;
771 hdmi: hdmi@ff980000 {
772 compatible = "rockchip,rk3288-dw-hdmi";
773 reg = <0xff980000 0x20000>;
775 ddc-i2c-bus = <&i2c5>;
776 rockchip,grf = <&grf>;
777 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
778 clocks = <&cru PCLK_HDMI_CTRL>, <&cru SCLK_HDMI_HDCP>;
779 clock-names = "iahb", "isfr";
783 #address-cells = <1>;
785 hdmi_in_vopb: endpoint@0 {
787 remote-endpoint = <&vopb_out_hdmi>;
789 hdmi_in_vopl: endpoint@1 {
791 remote-endpoint = <&vopl_out_hdmi>;
797 lvds: lvds@ff96c000 {
798 compatible = "rockchip,rk3288-lvds";
799 reg = <0xff96c000 0x4000>;
800 clocks = <&cru PCLK_LVDS_PHY>;
801 clock-names = "pclk_lvds";
802 pinctrl-names = "default";
803 pinctrl-0 = <&lcdc0_ctl>;
804 rockchip,grf = <&grf>;
807 #address-cells = <1>;
811 #address-cells = <1>;
813 lvds_in_vopb: endpoint@0 {
815 remote-endpoint = <&vopb_out_lvds>;
817 lvds_in_vopl: endpoint@1 {
819 remote-endpoint = <&vopl_out_lvds>;
825 hdmi_audio: hdmi_audio {
826 compatible = "rockchip,rk3288-hdmi-audio";
827 i2s-controller = <&i2s>;
831 vpu: video-codec@ff9a0000 {
832 compatible = "rockchip,rk3288-vpu";
833 reg = <0xff9a0000 0x800>;
834 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
835 <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
836 interrupt-names = "vepu", "vdpu";
837 clocks = <&cru ACLK_VCODEC>, <&cru HCLK_VCODEC>;
838 clock-names = "aclk_vcodec", "hclk_vcodec";
839 power-domains = <&power RK3288_PD_VIDEO>;
843 vpu_mmu: iommu@ff9a0800 {
844 compatible = "rockchip,iommu";
845 reg = <0xff9a0800 0x100>;
846 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
847 interrupt-names = "vpu_mmu";
848 power-domains = <&power RK3288_PD_VIDEO>;
853 compatible = "arm,malit764",
857 reg = <0xffa30000 0x10000>;
858 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
859 <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>,
860 <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
861 interrupt-names = "JOB", "MMU", "GPU";
862 clocks = <&cru ACLK_GPU>;
863 clock-names = "aclk_gpu";
870 /* 500000 1200000 - See crosbug.com/p/33857 */
873 power-domains = <&power RK3288_PD_GPU>;
877 noc: syscon@ffac0000 {
879 compatible = "rockchip,rk3288-noc", "syscon";
880 reg = <0xffac0000 0x2000>;
883 efuse: efuse@ffb40000 {
884 compatible = "rockchip,rk3288-efuse";
885 reg = <0xffb40000 0x10000>;
889 gic: interrupt-controller@ffc01000 {
890 compatible = "arm,gic-400";
891 interrupt-controller;
892 #interrupt-cells = <3>;
893 #address-cells = <0>;
895 reg = <0xffc01000 0x1000>,
899 interrupts = <GIC_PPI 9 0xf04>;
903 compatible = "rockchip,rk3288-cpuidle";
907 compatible = "rockchip,rk3288-usb-phy";
908 rockchip,grf = <&grf>;
909 #address-cells = <1>;
916 clocks = <&cru SCLK_OTGPHY0>;
917 clock-names = "phyclk";
923 clocks = <&cru SCLK_OTGPHY1>;
924 clock-names = "phyclk";
930 clocks = <&cru SCLK_OTGPHY2>;
931 clock-names = "phyclk";
936 compatible = "rockchip,rk3288-pinctrl";
937 rockchip,grf = <&grf>;
938 rockchip,pmu = <&pmu>;
939 #address-cells = <1>;
943 gpio0: gpio0@ff750000 {
944 compatible = "rockchip,gpio-bank";
945 reg = <0xff750000 0x100>;
946 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
947 clocks = <&cru PCLK_GPIO0>;
952 interrupt-controller;
953 #interrupt-cells = <2>;
956 gpio1: gpio1@ff780000 {
957 compatible = "rockchip,gpio-bank";
958 reg = <0xff780000 0x100>;
959 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
960 clocks = <&cru PCLK_GPIO1>;
965 interrupt-controller;
966 #interrupt-cells = <2>;
969 gpio2: gpio2@ff790000 {
970 compatible = "rockchip,gpio-bank";
971 reg = <0xff790000 0x100>;
972 interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
973 clocks = <&cru PCLK_GPIO2>;
978 interrupt-controller;
979 #interrupt-cells = <2>;
982 gpio3: gpio3@ff7a0000 {
983 compatible = "rockchip,gpio-bank";
984 reg = <0xff7a0000 0x100>;
985 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
986 clocks = <&cru PCLK_GPIO3>;
991 interrupt-controller;
992 #interrupt-cells = <2>;
995 gpio4: gpio4@ff7b0000 {
996 compatible = "rockchip,gpio-bank";
997 reg = <0xff7b0000 0x100>;
998 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
999 clocks = <&cru PCLK_GPIO4>;
1004 interrupt-controller;
1005 #interrupt-cells = <2>;
1008 gpio5: gpio5@ff7c0000 {
1009 compatible = "rockchip,gpio-bank";
1010 reg = <0xff7c0000 0x100>;
1011 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
1012 clocks = <&cru PCLK_GPIO5>;
1017 interrupt-controller;
1018 #interrupt-cells = <2>;
1021 gpio6: gpio6@ff7d0000 {
1022 compatible = "rockchip,gpio-bank";
1023 reg = <0xff7d0000 0x100>;
1024 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
1025 clocks = <&cru PCLK_GPIO6>;
1030 interrupt-controller;
1031 #interrupt-cells = <2>;
1034 gpio7: gpio7@ff7e0000 {
1035 compatible = "rockchip,gpio-bank";
1036 reg = <0xff7e0000 0x100>;
1037 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
1038 clocks = <&cru PCLK_GPIO7>;
1043 interrupt-controller;
1044 #interrupt-cells = <2>;
1047 gpio8: gpio8@ff7f0000 {
1048 compatible = "rockchip,gpio-bank";
1049 reg = <0xff7f0000 0x100>;
1050 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
1051 clocks = <&cru PCLK_GPIO8>;
1056 interrupt-controller;
1057 #interrupt-cells = <2>;
1060 pcfg_pull_up: pcfg-pull-up {
1064 pcfg_pull_down: pcfg-pull-down {
1068 pcfg_pull_none: pcfg-pull-none {
1072 pcfg_pull_none_12ma: pcfg-pull-none-12ma {
1074 drive-strength = <12>;
1078 global_pwroff: global-pwroff {
1079 rockchip,pins = <0 0 RK_FUNC_1 &pcfg_pull_none>;
1082 ddrio_pwroff: ddrio-pwroff {
1083 rockchip,pins = <0 1 RK_FUNC_1 &pcfg_pull_none>;
1086 ddr0_retention: ddr0-retention {
1087 rockchip,pins = <0 2 RK_FUNC_1 &pcfg_pull_up>;
1090 ddr1_retention: ddr1-retention {
1091 rockchip,pins = <0 3 RK_FUNC_1 &pcfg_pull_up>;
1096 i2c0_xfer: i2c0-xfer {
1097 rockchip,pins = <0 15 RK_FUNC_1 &pcfg_pull_none>,
1098 <0 16 RK_FUNC_1 &pcfg_pull_none>;
1103 i2c1_xfer: i2c1-xfer {
1104 rockchip,pins = <8 4 RK_FUNC_1 &pcfg_pull_none>,
1105 <8 5 RK_FUNC_1 &pcfg_pull_none>;
1110 i2c2_xfer: i2c2-xfer {
1111 rockchip,pins = <6 9 RK_FUNC_1 &pcfg_pull_none>,
1112 <6 10 RK_FUNC_1 &pcfg_pull_none>;
1117 i2c3_xfer: i2c3-xfer {
1118 rockchip,pins = <2 16 RK_FUNC_1 &pcfg_pull_none>,
1119 <2 17 RK_FUNC_1 &pcfg_pull_none>;
1124 i2c4_xfer: i2c4-xfer {
1125 rockchip,pins = <7 17 RK_FUNC_1 &pcfg_pull_none>,
1126 <7 18 RK_FUNC_1 &pcfg_pull_none>;
1131 i2c5_xfer: i2c5-xfer {
1132 rockchip,pins = <7 19 RK_FUNC_1 &pcfg_pull_none>,
1133 <7 20 RK_FUNC_1 &pcfg_pull_none>;
1138 i2s0_bus: i2s0-bus {
1139 rockchip,pins = <6 0 RK_FUNC_1 &pcfg_pull_none>,
1140 <6 1 RK_FUNC_1 &pcfg_pull_none>,
1141 <6 2 RK_FUNC_1 &pcfg_pull_none>,
1142 <6 3 RK_FUNC_1 &pcfg_pull_none>,
1143 <6 4 RK_FUNC_1 &pcfg_pull_none>,
1144 <6 8 RK_FUNC_1 &pcfg_pull_none>;
1149 lcdc0_ctl: lcdc0-ctl {
1150 rockchip,pins = <1 24 RK_FUNC_1 &pcfg_pull_none>,
1151 <1 25 RK_FUNC_1 &pcfg_pull_none>,
1152 <1 26 RK_FUNC_1 &pcfg_pull_none>,
1153 <1 27 RK_FUNC_1 &pcfg_pull_none>;
1158 sdmmc_clk: sdmmc-clk {
1159 rockchip,pins = <6 20 RK_FUNC_1 &pcfg_pull_none>;
1162 sdmmc_cmd: sdmmc-cmd {
1163 rockchip,pins = <6 21 RK_FUNC_1 &pcfg_pull_up>;
1166 sdmmc_cd: sdmcc-cd {
1167 rockchip,pins = <6 22 RK_FUNC_1 &pcfg_pull_up>;
1170 sdmmc_bus1: sdmmc-bus1 {
1171 rockchip,pins = <6 16 RK_FUNC_1 &pcfg_pull_up>;
1174 sdmmc_bus4: sdmmc-bus4 {
1175 rockchip,pins = <6 16 RK_FUNC_1 &pcfg_pull_up>,
1176 <6 17 RK_FUNC_1 &pcfg_pull_up>,
1177 <6 18 RK_FUNC_1 &pcfg_pull_up>,
1178 <6 19 RK_FUNC_1 &pcfg_pull_up>;
1183 sdio0_bus1: sdio0-bus1 {
1184 rockchip,pins = <4 20 RK_FUNC_1 &pcfg_pull_up>;
1187 sdio0_bus4: sdio0-bus4 {
1188 rockchip,pins = <4 20 RK_FUNC_1 &pcfg_pull_up>,
1189 <4 21 RK_FUNC_1 &pcfg_pull_up>,
1190 <4 22 RK_FUNC_1 &pcfg_pull_up>,
1191 <4 23 RK_FUNC_1 &pcfg_pull_up>;
1194 sdio0_cmd: sdio0-cmd {
1195 rockchip,pins = <4 24 RK_FUNC_1 &pcfg_pull_up>;
1198 sdio0_clk: sdio0-clk {
1199 rockchip,pins = <4 25 RK_FUNC_1 &pcfg_pull_none>;
1202 sdio0_cd: sdio0-cd {
1203 rockchip,pins = <4 26 RK_FUNC_1 &pcfg_pull_up>;
1206 sdio0_wp: sdio0-wp {
1207 rockchip,pins = <4 27 RK_FUNC_1 &pcfg_pull_up>;
1210 sdio0_pwr: sdio0-pwr {
1211 rockchip,pins = <4 28 RK_FUNC_1 &pcfg_pull_up>;
1214 sdio0_bkpwr: sdio0-bkpwr {
1215 rockchip,pins = <4 29 RK_FUNC_1 &pcfg_pull_up>;
1218 sdio0_int: sdio0-int {
1219 rockchip,pins = <4 30 RK_FUNC_1 &pcfg_pull_up>;
1224 sdio1_bus1: sdio1-bus1 {
1225 rockchip,pins = <3 24 RK_FUNC_4 &pcfg_pull_up>;
1228 sdio1_bus4: sdio1-bus4 {
1229 rockchip,pins = <3 24 RK_FUNC_4 &pcfg_pull_up>,
1230 <3 25 RK_FUNC_4 &pcfg_pull_up>,
1231 <3 26 RK_FUNC_4 &pcfg_pull_up>,
1232 <3 27 RK_FUNC_4 &pcfg_pull_up>;
1235 sdio1_cd: sdio1-cd {
1236 rockchip,pins = <3 28 RK_FUNC_4 &pcfg_pull_up>;
1239 sdio1_wp: sdio1-wp {
1240 rockchip,pins = <3 29 RK_FUNC_4 &pcfg_pull_up>;
1243 sdio1_bkpwr: sdio1-bkpwr {
1244 rockchip,pins = <3 30 RK_FUNC_4 &pcfg_pull_up>;
1247 sdio1_int: sdio1-int {
1248 rockchip,pins = <3 31 RK_FUNC_4 &pcfg_pull_up>;
1251 sdio1_cmd: sdio1-cmd {
1252 rockchip,pins = <4 6 RK_FUNC_4 &pcfg_pull_up>;
1255 sdio1_clk: sdio1-clk {
1256 rockchip,pins = <4 7 RK_FUNC_4 &pcfg_pull_none>;
1259 sdio1_pwr: sdio1-pwr {
1260 rockchip,pins = <4 9 RK_FUNC_4 &pcfg_pull_up>;
1265 emmc_clk: emmc-clk {
1266 rockchip,pins = <3 18 RK_FUNC_2 &pcfg_pull_none>;
1269 emmc_cmd: emmc-cmd {
1270 rockchip,pins = <3 16 RK_FUNC_2 &pcfg_pull_up>;
1273 emmc_pwr: emmc-pwr {
1274 rockchip,pins = <3 9 RK_FUNC_2 &pcfg_pull_up>;
1277 emmc_bus1: emmc-bus1 {
1278 rockchip,pins = <3 0 RK_FUNC_2 &pcfg_pull_up>;
1281 emmc_bus4: emmc-bus4 {
1282 rockchip,pins = <3 0 RK_FUNC_2 &pcfg_pull_up>,
1283 <3 1 RK_FUNC_2 &pcfg_pull_up>,
1284 <3 2 RK_FUNC_2 &pcfg_pull_up>,
1285 <3 3 RK_FUNC_2 &pcfg_pull_up>;
1288 emmc_bus8: emmc-bus8 {
1289 rockchip,pins = <3 0 RK_FUNC_2 &pcfg_pull_up>,
1290 <3 1 RK_FUNC_2 &pcfg_pull_up>,
1291 <3 2 RK_FUNC_2 &pcfg_pull_up>,
1292 <3 3 RK_FUNC_2 &pcfg_pull_up>,
1293 <3 4 RK_FUNC_2 &pcfg_pull_up>,
1294 <3 5 RK_FUNC_2 &pcfg_pull_up>,
1295 <3 6 RK_FUNC_2 &pcfg_pull_up>,
1296 <3 7 RK_FUNC_2 &pcfg_pull_up>;
1301 spi0_clk: spi0-clk {
1302 rockchip,pins = <5 12 RK_FUNC_1 &pcfg_pull_up>;
1304 spi0_cs0: spi0-cs0 {
1305 rockchip,pins = <5 13 RK_FUNC_1 &pcfg_pull_up>;
1308 rockchip,pins = <5 14 RK_FUNC_1 &pcfg_pull_up>;
1311 rockchip,pins = <5 15 RK_FUNC_1 &pcfg_pull_up>;
1313 spi0_cs1: spi0-cs1 {
1314 rockchip,pins = <5 16 RK_FUNC_1 &pcfg_pull_up>;
1318 spi1_clk: spi1-clk {
1319 rockchip,pins = <7 12 RK_FUNC_2 &pcfg_pull_up>;
1321 spi1_cs0: spi1-cs0 {
1322 rockchip,pins = <7 13 RK_FUNC_2 &pcfg_pull_up>;
1325 rockchip,pins = <7 14 RK_FUNC_2 &pcfg_pull_up>;
1328 rockchip,pins = <7 15 RK_FUNC_2 &pcfg_pull_up>;
1333 spi2_cs1: spi2-cs1 {
1334 rockchip,pins = <8 3 RK_FUNC_1 &pcfg_pull_up>;
1336 spi2_clk: spi2-clk {
1337 rockchip,pins = <8 6 RK_FUNC_1 &pcfg_pull_up>;
1339 spi2_cs0: spi2-cs0 {
1340 rockchip,pins = <8 7 RK_FUNC_1 &pcfg_pull_up>;
1343 rockchip,pins = <8 8 RK_FUNC_1 &pcfg_pull_up>;
1346 rockchip,pins = <8 9 RK_FUNC_1 &pcfg_pull_up>;
1351 uart0_xfer: uart0-xfer {
1352 rockchip,pins = <4 16 RK_FUNC_1 &pcfg_pull_up>,
1353 <4 17 RK_FUNC_1 &pcfg_pull_none>;
1356 uart0_cts: uart0-cts {
1357 rockchip,pins = <4 18 RK_FUNC_1 &pcfg_pull_none>;
1360 uart0_rts: uart0-rts {
1361 rockchip,pins = <4 19 RK_FUNC_1 &pcfg_pull_none>;
1366 uart1_xfer: uart1-xfer {
1367 rockchip,pins = <5 8 RK_FUNC_1 &pcfg_pull_up>,
1368 <5 9 RK_FUNC_1 &pcfg_pull_none>;
1371 uart1_cts: uart1-cts {
1372 rockchip,pins = <5 10 RK_FUNC_1 &pcfg_pull_none>;
1375 uart1_rts: uart1-rts {
1376 rockchip,pins = <5 11 RK_FUNC_1 &pcfg_pull_none>;
1381 uart2_xfer: uart2-xfer {
1382 rockchip,pins = <7 22 RK_FUNC_1 &pcfg_pull_up>,
1383 <7 23 RK_FUNC_1 &pcfg_pull_none>;
1385 /* no rts / cts for uart2 */
1389 uart3_xfer: uart3-xfer {
1390 rockchip,pins = <7 7 RK_FUNC_1 &pcfg_pull_up>,
1391 <7 8 RK_FUNC_1 &pcfg_pull_none>;
1394 uart3_cts: uart3-cts {
1395 rockchip,pins = <7 9 RK_FUNC_1 &pcfg_pull_none>;
1398 uart3_rts: uart3-rts {
1399 rockchip,pins = <7 10 RK_FUNC_1 &pcfg_pull_none>;
1404 uart4_xfer: uart4-xfer {
1405 rockchip,pins = <5 12 3 &pcfg_pull_up>,
1406 <5 13 3 &pcfg_pull_none>;
1409 uart4_cts: uart4-cts {
1410 rockchip,pins = <5 14 3 &pcfg_pull_none>;
1413 uart4_rts: uart4-rts {
1414 rockchip,pins = <5 15 3 &pcfg_pull_none>;
1420 rockchip,pins = <0 10 RK_FUNC_1 &pcfg_pull_none>;
1425 pwm0_pin: pwm0-pin {
1426 rockchip,pins = <7 0 RK_FUNC_1 &pcfg_pull_none>;
1431 pwm1_pin: pwm1-pin {
1432 rockchip,pins = <7 1 RK_FUNC_1 &pcfg_pull_none>;
1437 pwm2_pin: pwm2-pin {
1438 rockchip,pins = <7 22 RK_FUNC_3 &pcfg_pull_none>;
1443 pwm3_pin: pwm3-pin {
1444 rockchip,pins = <7 23 RK_FUNC_3 &pcfg_pull_none>;
1449 rgmii_pins: rgmii-pins {
1450 rockchip,pins = <3 30 3 &pcfg_pull_none>,
1451 <3 31 3 &pcfg_pull_none>,
1452 <3 26 3 &pcfg_pull_none>,
1453 <3 27 3 &pcfg_pull_none>,
1454 <3 28 3 &pcfg_pull_none_12ma>,
1455 <3 29 3 &pcfg_pull_none_12ma>,
1456 <3 24 3 &pcfg_pull_none_12ma>,
1457 <3 25 3 &pcfg_pull_none_12ma>,
1458 <4 0 3 &pcfg_pull_none>,
1459 <4 5 3 &pcfg_pull_none>,
1460 <4 6 3 &pcfg_pull_none>,
1461 <4 9 3 &pcfg_pull_none_12ma>,
1462 <4 4 3 &pcfg_pull_none_12ma>,
1463 <4 1 3 &pcfg_pull_none>,
1464 <4 3 3 &pcfg_pull_none>;
1467 rmii_pins: rmii-pins {
1468 rockchip,pins = <3 30 3 &pcfg_pull_none>,
1469 <3 31 3 &pcfg_pull_none>,
1470 <3 28 3 &pcfg_pull_none>,
1471 <3 29 3 &pcfg_pull_none>,
1472 <4 0 3 &pcfg_pull_none>,
1473 <4 5 3 &pcfg_pull_none>,
1474 <4 4 3 &pcfg_pull_none>,
1475 <4 1 3 &pcfg_pull_none>,
1476 <4 2 3 &pcfg_pull_none>,
1477 <4 3 3 &pcfg_pull_none>;
1482 spdif_tx: spdif-tx {
1483 rockchip,pins = <RK_GPIO6 11 RK_FUNC_1 &pcfg_pull_none>;
1488 power: power-controller {
1489 compatible = "rockchip,rk3288-power-controller";
1490 #power-domain-cells = <1>;
1491 rockchip,pmu = <&pmu>;
1492 #address-cells = <1>;
1496 reg = <RK3288_PD_GPU>;
1497 clocks = <&cru ACLK_GPU>;
1501 reg = <RK3288_PD_HEVC>;
1502 clocks = <&cru ACLK_HEVC>,
1503 <&cru SCLK_HEVC_CABAC>,
1504 <&cru SCLK_HEVC_CORE>,
1509 reg = <RK3288_PD_VIO>;
1510 clocks = <&cru ACLK_IEP>,
1524 <&cru PCLK_EDP_CTRL>,
1525 <&cru PCLK_HDMI_CTRL>,
1526 <&cru PCLK_LVDS_PHY>,
1527 <&cru PCLK_MIPI_CSI>,
1528 <&cru PCLK_MIPI_DSI0>,
1529 <&cru PCLK_MIPI_DSI1>,
1530 <&cru SCLK_EDP_24M>,
1532 <&cru SCLK_HDMI_CEC>,
1533 <&cru SCLK_HDMI_HDCP>,
1534 <&cru SCLK_ISP_JPE>,
1540 reg = <RK3288_PD_VIDEO>;
1541 clocks = <&cru ACLK_VCODEC>,