2 * Copyright (c) 2016 Fuzhou Rockchip Electronics Co., Ltd
4 * This file is dual-licensed: you can use it either under the terms
5 * of the GPL or the X11 license, at your option. Note that this dual
6 * licensing only applies to this file, and not this project as a
9 * a) This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License, or (at your option) any later version.
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
21 * b) Permission is hereby granted, free of charge, to any person
22 * obtaining a copy of this software and associated documentation
23 * files (the "Software"), to deal in the Software without
24 * restriction, including without limitation the rights to use,
25 * copy, modify, merge, publish, distribute, sublicense, and/or
26 * sell copies of the Software, and to permit persons to whom the
27 * Software is furnished to do so, subject to the following
30 * The above copyright notice and this permission notice shall be
31 * included in all copies or substantial portions of the Software.
33 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40 * OTHER DEALINGS IN THE SOFTWARE.
43 #include <dt-bindings/clock/rk3366-cru.h>
44 #include <dt-bindings/gpio/gpio.h>
45 #include <dt-bindings/interrupt-controller/irq.h>
46 #include <dt-bindings/interrupt-controller/arm-gic.h>
47 #include <dt-bindings/pinctrl/rockchip.h>
48 #include <dt-bindings/display/rk_fb.h>
49 #include <dt-bindings/power/rk3366-power.h>
50 #include <dt-bindings/soc/rockchip_boot-mode.h>
53 compatible = "rockchip,rk3366";
54 interrupt-parent = <&gic>;
73 #address-cells = <0x2>;
78 compatible = "arm,cortex-a53","arm,armv8";
80 enable-method = "psci";
85 compatible = "arm,cortex-a53","arm,armv8";
87 enable-method = "psci";
92 compatible = "arm,cortex-a53","arm,armv8";
94 enable-method = "psci";
99 compatible = "arm,cortex-a53","arm,armv8";
101 enable-method = "psci";
106 compatible = "arm,psci-1.0";
111 compatible = "arm,armv8-timer";
112 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
113 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
114 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
115 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
119 compatible = "fixed-clock";
121 clock-frequency = <24000000>;
122 clock-output-names = "xin24m";
125 gic: interrupt-controller@ffb71000 {
126 compatible = "arm,gic-400";
127 interrupt-controller;
128 #interrupt-cells = <3>;
129 #address-cells = <0>;
131 reg = <0x0 0xffb71000 0x0 0x1000>,
132 <0x0 0xffb72000 0x0 0x1000>,
133 <0x0 0xffb74000 0x0 0x2000>,
134 <0x0 0xffb76000 0x0 0x2000>;
135 interrupts = <GIC_PPI 9
136 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
139 nandc0: nandc@ff0c0000 {
140 compatible = "rockchip,rk-nandc";
141 reg = <0x0 0xff0c0000 0x0 0x4000>;
142 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
144 clocks = <&cru SCLK_NANDC0>, <&cru HCLK_NANDC0>;
145 clock-names = "clk_nandc", "hclk_nandc";
149 saradc: saradc@ff100000 {
150 compatible = "rockchip,saradc";
151 reg = <0x0 0xff100000 0x0 0x100>;
152 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
153 #io-channel-cells = <1>;
154 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
155 clock-names = "saradc", "apb_pclk";
160 compatible = "rockchip,rk3368-spi", "rockchip,rk3066-spi";
161 reg = <0x0 0xff110000 0x0 0x1000>;
162 clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
163 clock-names = "spiclk", "apb_pclk";
164 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
165 pinctrl-names = "default";
166 pinctrl-0 = <&spi0_clk &spi0_tx &spi0_rx &spi0_cs0>;
167 #address-cells = <1>;
173 compatible = "rockchip,rk3368-spi", "rockchip,rk3066-spi";
174 reg = <0x0 0xff120000 0x0 0x1000>;
175 clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>;
176 clock-names = "spiclk", "apb_pclk";
177 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
178 pinctrl-names = "default";
179 pinctrl-0 = <&spi1_clk &spi1_tx &spi1_rx &spi1_cs0>;
180 #address-cells = <1>;
185 sdmmc: rksdmmc@ff400000 {
186 compatible = "rockchip,rk3366-dw-mshc","rockchip,rk3288-dw-mshc";
187 clock-freq-min-max = <400000 150000000>;
188 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>,
189 <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
190 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
191 fifo-depth = <0x100>;
192 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
193 reg = <0x0 0xff400000 0x0 0x4000>;
197 sdio: rksdmmc@ff410000 {
198 compatible = "rockchip,rk3366-dw-mshc","rockchip,rk3288-dw-mshc";
199 clock-freq-min-max = <400000 150000000>;
200 clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO0>,
201 <&cru SCLK_SDIO0_DRV>, <&cru SCLK_SDIO0_SAMPLE>;
202 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
203 fifo-depth = <0x100>;
204 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
205 reg = <0x0 0xff410000 0x0 0x4000>;
209 emmc: rksdmmc@ff420000 {
210 compatible = "rockchip,rk3366-dw-mshc","rockchip,rk3288-dw-mshc";
211 clock-freq-min-max = <400000 150000000>;
212 clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>,
213 <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>;
214 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
215 fifo-depth = <0x100>;
216 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
217 reg = <0x0 0xff420000 0x0 0x4000>;
222 compatible = "rockchip,rk3366-gmac";
223 reg = <0x0 0xff440000 0x0 0x10000>;
224 rockchip,grf = <&grf>;
225 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
226 interrupt-names = "macirq";
227 clocks = <&cru SCLK_MAC>, <&cru SCLK_MAC_RX>,
228 <&cru SCLK_MAC_RX>, <&cru SCLK_MACREF>,
229 <&cru SCLK_MACREF_OUT>, <&cru ACLK_GMAC>,
231 clock-names = "stmmaceth", "mac_clk_rx",
232 "mac_clk_tx", "clk_mac_ref",
233 "clk_mac_refout", "aclk_mac",
235 resets = <&cru SRST_MAC>;
236 reset-names = "stmmaceth";
241 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
242 reg = <0x0 0xff728000 0x0 0x1000>;
243 clocks = <&cru PCLK_I2C0>;
245 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
246 pinctrl-names = "default";
247 pinctrl-0 = <&i2c0_xfer>;
248 #address-cells = <1>;
254 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
255 reg = <0x0 0xff140000 0x0 0x1000>;
256 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
257 #address-cells = <1>;
260 clocks = <&cru PCLK_I2C2>;
261 pinctrl-names = "default";
262 pinctrl-0 = <&i2c2_xfer>;
267 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
268 reg = <0x0 0xff150000 0x0 0x1000>;
269 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
270 #address-cells = <1>;
273 clocks = <&cru PCLK_I2C3>;
274 pinctrl-names = "default";
275 pinctrl-0 = <&i2c3_xfer>;
280 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
281 reg = <0x0 0xff160000 0x0 0x1000>;
282 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
283 #address-cells = <1>;
286 clocks = <&cru PCLK_I2C4>;
287 pinctrl-names = "default";
288 pinctrl-0 = <&i2c4_xfer>;
293 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
294 reg = <0x0 0xff170000 0x0 0x1000>;
295 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
296 #address-cells = <1>;
299 clocks = <&cru PCLK_I2C5>;
300 pinctrl-names = "default";
301 pinctrl-0 = <&i2c5_xfer>;
305 uart0: serial@ff180000 {
306 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
307 reg = <0x0 0xff180000 0x0 0x100>;
308 clock-frequency = <24000000>;
309 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
310 clock-names = "baudclk", "apb_pclk";
311 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
314 pinctrl-names = "default";
315 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
319 uart3: serial@ff1b0000 {
320 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
321 reg = <0x0 0xff1b0000 0x0 0x100>;
322 clock-frequency = <24000000>;
323 clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
324 clock-names = "baudclk", "apb_pclk";
325 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
328 pinctrl-names = "default";
329 pinctrl-0 = <&uart3_xfer &uart3_cts &uart3_rts>;
333 usb_otg: usb@ff4c0000 {
334 compatible = "rockchip,rk3368-usb", "rockchip,rk3066-usb",
336 reg = <0x0 0xff4c0000 0x0 0x40000>;
337 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
338 clocks = <&cru HCLK_OTG>;
341 g-np-tx-fifo-size = <16>;
342 g-rx-fifo-size = <275>;
343 g-tx-fifo-size = <256 128 128 64 64 32>;
349 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
350 reg = <0x0 0xff660000 0x0 0x1000>;
351 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
352 #address-cells = <1>;
355 clocks = <&cru PCLK_I2C1>;
356 pinctrl-names = "default";
357 pinctrl-0 = <&i2c1_xfer>;
362 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
363 reg = <0x0 0xff680000 0x0 0x10>;
365 pinctrl-names = "default";
366 pinctrl-0 = <&pwm0_pin>;
367 clocks = <&cru PCLK_RKPWM>;
373 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
374 reg = <0x0 0xff680010 0x0 0x10>;
376 pinctrl-names = "default";
377 pinctrl-0 = <&pwm1_pin>;
378 clocks = <&cru PCLK_RKPWM>;
384 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
385 reg = <0x0 0xff680020 0x0 0x10>;
387 clocks = <&cru PCLK_RKPWM>;
393 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
394 reg = <0x0 0xff680030 0x0 0x10>;
396 pinctrl-names = "default";
397 pinctrl-0 = <&pwm3_t2_pin>;
398 clocks = <&cru PCLK_RKPWM>;
403 uart2: serial@ff690000 {
404 compatible = "rockchip,rk3366-uart", "snps,dw-apb-uart";
405 reg = <0x0 0xff690000 0x0 0x100>;
406 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
407 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
408 clock-names = "baudclk", "apb_pclk";
411 pinctrl-names = "default";
412 pinctrl-0 = <&uart2_t1_xfer>;
416 pmu: power-management@ff730000 {
417 compatible = "rockchip,rk3366-pmu", "syscon", "simple-mfd";
418 reg = <0x0 0xff730000 0x0 0x1000>;
420 power: power-controller {
422 compatible = "rockchip,rk3366-power-controller";
423 #power-domain-cells = <1>;
424 #address-cells = <1>;
428 * Note: Although SCLK_* are the working clocks
429 * of device without including on the NOC, needed for
432 * The clocks on the which NOC:
433 * ACLK_IEP/ACLK_VOP0 are on ACLK_VIO0_NIU.
434 * ACLK_RGA/ACLK_VOP1 are on ACLK_RGA_NIU.
435 * ACLK_ISP is on ACLK_ISP_NIU.
436 * ACLK_HDCP is on ACLK_HDCP_NIU.
437 * The others (HCLK_*,PLCK_*) are on HCLK_VIO_NIU.
439 * Which clock are device clocks:
441 * *_IEP IEP:Image Enhancement Processor
442 * *_ISP ISP:Image Signal Processing
443 * *_VOP* VOP:Visual Output Processor
450 reg = <RK3366_PD_VIO>;
451 clocks = <&cru ACLK_IEP>,
455 <&cru ACLK_VOP_FULL>,
456 <&cru ACLK_VOP_LITE>,
458 <&cru DCLK_VOP_FULL>,
459 <&cru DCLK_VOP_LITE>,
463 <&cru HCLK_VOP_FULL>,
464 <&cru HCLK_VOP_LITE>,
465 <&cru HCLK_VIO_HDCPMMU>,
466 <&cru PCLK_HDMI_CTRL>,
468 <&cru PCLK_MIPI_DSI0>,
469 <&cru SCLK_VOP_FULL_PWM>,
473 <&cru SCLK_HDMI_CEC>,
474 <&cru SCLK_HDMI_HDCP>;
478 * Note: ACLK_VCODEC/HCLK_VCODEC are VCODEC
479 * (video endecoder & decoder) clocks that on the
480 * ACLK_VCODEC_NIU and HCLK_VCODEC_NIU (NOC).
483 reg = <RK3366_PD_VPU>;
484 clocks = <&cru ACLK_VIDEO>,
489 * Note: ACLK_RKVDEC/HCLK_RKVDEC are RKVDEC
490 * (video decoder) clocks that on the
491 * ACLK_RKVDEC_NIU and HCLK_RKVDEC_NIU (NOC).
494 reg = <RK3366_PD_RKVDEC>;
495 clocks = <&cru ACLK_RKVDEC>,
500 reg = <RK3366_PD_VIDEO>;
501 clocks = <&cru ACLK_VIDEO>,
505 <&cru SCLK_HEVC_CABAC>,
506 <&cru SCLK_HEVC_CORE>;
510 * Note: ACLK_GPU is the GPU clock,
511 * and on the ACLK_GPU_NIU (NOC).
514 reg = <RK3366_PD_GPU>;
515 clocks = <&cru ACLK_GPU>;
520 pmugrf: syscon@ff738000 {
521 compatible = "rockchip,rk3366-pmugrf", "syscon", "simple-mfd";
522 reg = <0x0 0xff738000 0x0 0x1000>;
525 compatible = "syscon-reboot-mode";
527 mode-normal = <BOOT_NORMAL>;
528 mode-recovery = <BOOT_RECOVERY>;
529 mode-fastboot = <BOOT_FASTBOOT>;
530 mode-loader = <BOOT_LOADER>;
535 compatible = "arm,amba-bus";
536 #address-cells = <2>;
540 dmac_peri: dma-controller@ff250000 {
541 compatible = "arm,pl330", "arm,primecell";
542 reg = <0x0 0xff250000 0x0 0x4000>;
543 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
544 <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
546 clocks = <&cru ACLK_DMAC_PERI>;
547 clock-names = "apb_pclk";
550 dmac_bus: dma-controller@ff600000 {
551 compatible = "arm,pl330", "arm,primecell";
552 reg = <0x0 0xff600000 0x0 0x4000>;
553 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
554 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
556 clocks = <&cru ACLK_DMAC_BUS>;
557 clock-names = "apb_pclk";
561 cru: clock-controller@ff760000 {
562 compatible = "rockchip,rk3366-cru";
563 reg = <0x0 0xff760000 0x0 0x1000>;
564 rockchip,grf = <&grf>;
568 <&cru PLL_CPLL>, <&cru PLL_GPLL>,
569 <&cru PLL_NPLL>, <&cru PLL_MPLL>,
570 <&cru PLL_WPLL>, <&cru PLL_BPLL>,
571 <&cru ACLK_VOP_FULL>, <&cru ACLK_VOP_LITE>,
572 <&cru HCLK_VOP_LITE>,<&cru HCLK_VOP_LITE>;
573 assigned-clock-rates =
574 <750000000>, <576000000>,
575 <594000000>, <594000000>,
576 <480000000>, <520000000>,
577 <375000000>, <288000000>,
578 <100000000>, <100000000>;
581 grf: syscon@ff770000 {
582 compatible = "rockchip,rk3366-grf", "syscon";
583 reg = <0x0 0xff770000 0x0 0x1000>;
586 i2s_2ch: i2s-2ch@ff890000 {
587 compatible = "rockchip,rk3366-i2s", "rockchip,rk3066-i2s";
588 reg = <0x0 0xff890000 0x0 0x1000>;
589 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
590 dmas = <&dmac_bus 6>, <&dmac_bus 7>;
591 dma-names = "tx", "rx";
592 clock-names = "i2s_hclk", "i2s_clk";
593 clocks = <&cru HCLK_I2S_2CH>, <&cru SCLK_I2S_2CH>;
597 i2s_8ch: i2s-8ch@ff898000 {
598 compatible = "rockchip,rk3366-i2s", "rockchip,rk3066-i2s";
599 reg = <0x0 0xff898000 0x0 0x1000>;
600 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
601 dmas = <&dmac_bus 0>, <&dmac_bus 1>;
602 dma-names = "tx", "rx";
603 clock-names = "i2s_hclk", "i2s_clk";
604 clocks = <&cru HCLK_I2S_8CH>, <&cru SCLK_I2S_8CH>;
605 pinctrl-names = "default";
606 pinctrl-0 = <&i2s_8ch_bus>;
611 compatible = "rockchip,rk-fb";
612 rockchip,disp-mode = <DUAL>;
617 compatible = "rockchip,screen";
621 vop_lite: vop@ff8f0000 {
622 compatible = "rockchip,rk3366-lcdc-lite";
623 rockchip,grf = <&grf>;
624 rockchip,pwr18 = <0>;
625 rockchip,iommu-enabled = <1>;
626 reg = <0x0 0xff8f0000 0x0 0x1000>;
627 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
628 clocks = <&cru ACLK_VOP_LITE>, <&cru DCLK_VOP_LITE>, <&cru HCLK_VOP_LITE>;
629 clock-names = "aclk_lcdc", "dclk_lcdc", "hclk_lcdc";
630 resets = <&cru SRST_VOP1_AXI>, <&cru SRST_VOP1_DCLK>, <&cru SRST_VOP1_AHB>;
631 reset-names = "axi", "ahb", "dclk";
637 compatible = "rockchip,vopl_mmu";
638 reg = <0x0 0xff8f0f00 0x0 0x100>;
639 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
640 interrupt-names = "vopl_mmu";
645 compatible = "rockchip,rga2";
647 reg = <0x0 0xff920000 0x0 0x1000>;
648 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
649 clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru SCLK_RGA>;
650 clock-names = "aclk_rga", "hclk_rga", "clk_rga";
654 vop_big: vop@ff930000 {
655 compatible = "rockchip,rk3366-lcdc-big";
656 rockchip,grf = <&grf>;
657 rockchip,prop = <PRMRY>;
658 rockchip,pwr18 = <0>;
659 rockchip,iommu-enabled = <1>;
660 reg = <0x0 0xff930000 0x0 0x23f0>;
661 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
662 clocks = <&cru ACLK_VOP_FULL>, <&cru DCLK_VOP_FULL>, <&cru HCLK_VOP_FULL>;
663 clock-names = "aclk_lcdc", "dclk_lcdc", "hclk_lcdc";
664 resets = <&cru SRST_VOP0_AXI>, <&cru SRST_VOP0_DCLK>, <&cru SRST_VOP0_AHB>;
665 reset-names = "axi", "ahb", "dclk";
671 compatible = "rockchip,vopb_mmu";
672 reg = <0x0 0xff932400 0x0 0x100>;
673 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
674 interrupt-names = "vop_mmu";
678 dsihost0: mipi@ff960000 {
679 compatible = "rockchip,rk3368-dsi";
681 reg = <0x0 0xff960000 0x0 0x4000>, <0x0 0xff968000 0x0 0x4000>;
682 reg-names = "mipi_dsi_host" ,"mipi_dsi_phy";
683 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
684 clocks = <&cru SCLK_MIPIDSI_24M>, <&cru PCLK_DPHYTX>, <&cru PCLK_MIPI_DSI0>;
685 clock-names = "clk_mipi_24m", "pclk_mipi_dsi", "pclk_mipi_dsi_host";
689 lvds: lvds@ff968000 {
690 compatible = "rockchip,rk3366-lvds";
691 rockchip,grf = <&grf>;
692 reg = <0x0 0xff968000 0x0 0x4000>, <0x0 0xff9600a0 0x0 0x20>;
693 reg-names = "mipi_lvds_phy", "mipi_lvds_ctl";
694 clocks = <&cru PCLK_DPHYTX>, <&cru PCLK_MIPI_DSI0>;
695 clock-names = "pclk_lvds", "pclk_lvds_ctl";
699 hdmi: hdmi@ff980000 {
700 compatible = "rockchip,rk3366-hdmi";
701 reg = <0x0 0xff980000 0x0 0x20000>;
702 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>,
703 <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
704 clocks = <&cru PCLK_HDMI_CTRL>,
705 <&cru SCLK_HDMI_HDCP>,
706 <&cru SCLK_HDMI_CEC>,
708 clock-names = "pclk_hdmi",
712 resets = <&cru SRST_HDMI>;
713 reset-names = "hdmi";
714 pinctrl-names = "default", "gpio";
715 pinctrl-0 = <&hdmii2c_xfer &hdmi_cec>;
716 pinctrl-1 = <&i2c5_gpio>;
721 compatible = "rockchip,rk3366-pinctrl";
722 rockchip,grf = <&grf>;
723 rockchip,pmu = <&pmugrf>;
724 #address-cells = <0x2>;
728 gpio0: gpio0@ff750000 {
729 compatible = "rockchip,gpio-bank";
730 reg = <0x0 0xff750000 0x0 0x100>;
731 clocks = <&cru PCLK_GPIO0>;
732 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
737 interrupt-controller;
738 #interrupt-cells = <0x2>;
741 gpio1: gpio1@ff780000 {
742 compatible = "rockchip,gpio-bank";
743 reg = <0x0 0xff758000 0x0 0x100>;
744 clocks = <&cru PCLK_GPIO1>;
745 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
750 interrupt-controller;
751 #interrupt-cells = <0x2>;
754 gpio2: gpio2@ff790000 {
755 compatible = "rockchip,gpio-bank";
756 reg = <0x0 0xff790000 0x0 0x100>;
757 clocks = <&cru PCLK_GPIO2>;
758 interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
763 interrupt-controller;
764 #interrupt-cells = <0x2>;
767 gpio3: gpio3@ff7a0000 {
768 compatible = "rockchip,gpio-bank";
769 reg = <0x0 0xff7a0000 0x0 0x100>;
770 clocks = <&cru PCLK_GPIO3>;
771 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
776 interrupt-controller;
777 #interrupt-cells = <0x2>;
780 gpio4: gpio4@ff7b0000 {
781 compatible = "rockchip,gpio-bank";
782 reg = <0x0 0xff7b0000 0x0 0x100>;
783 clocks = <&cru PCLK_GPIO4>;
784 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
789 interrupt-controller;
790 #interrupt-cells = <0x2>;
793 gpio5: gpio5@ff7c0000 {
794 compatible = "rockchip,gpio-bank";
795 reg = <0x0 0xff7c0000 0x0 0x100>;
796 clocks = <&cru PCLK_GPIO5>;
797 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
802 interrupt-controller;
803 #interrupt-cells = <0x2>;
806 pcfg_pull_up: pcfg-pull-up {
810 pcfg_pull_down: pcfg-pull-down {
814 pcfg_pull_none: pcfg-pull-none {
818 pcfg_pull_none_12ma: pcfg-pull-none-12ma {
820 drive-strength = <12>;
826 <3 4 RK_FUNC_2 &pcfg_pull_none>;
831 <2 26 RK_FUNC_2 &pcfg_pull_up>;
836 <2 27 RK_FUNC_2 &pcfg_pull_up>;
839 emmc_bus1: emmc-bus1 {
841 <2 18 RK_FUNC_2 &pcfg_pull_up>;
844 emmc_bus4: emmc-bus4 {
846 <2 18 RK_FUNC_2 &pcfg_pull_up>,
847 <2 19 RK_FUNC_2 &pcfg_pull_up>,
848 <2 20 RK_FUNC_2 &pcfg_pull_up>,
849 <2 21 RK_FUNC_2 &pcfg_pull_up>;
852 emmc_bus8: emmc-bus8 {
854 <2 18 RK_FUNC_2 &pcfg_pull_up>,
855 <2 19 RK_FUNC_2 &pcfg_pull_up>,
856 <2 20 RK_FUNC_2 &pcfg_pull_up>,
857 <2 21 RK_FUNC_2 &pcfg_pull_up>,
858 <2 22 RK_FUNC_2 &pcfg_pull_up>,
859 <2 23 RK_FUNC_2 &pcfg_pull_up>,
860 <2 24 RK_FUNC_2 &pcfg_pull_up>,
861 <2 25 RK_FUNC_2 &pcfg_pull_up>;
867 rockchip,pins = <0 9 RK_FUNC_1 &pcfg_pull_up>;
870 sdmmc_bus1: sdmmc-bus1 {
871 rockchip,pins = <5 0 RK_FUNC_1 &pcfg_pull_up>;
874 sdmmc_bus4: sdmmc-bus4 {
875 rockchip,pins = <5 0 RK_FUNC_1 &pcfg_pull_up>,
876 <5 1 RK_FUNC_1 &pcfg_pull_up>,
877 <5 2 RK_FUNC_1 &pcfg_pull_up>,
878 <5 3 RK_FUNC_1 &pcfg_pull_up>;
881 sdmmc_clk: sdmmc-clk {
882 rockchip,pins = <5 4 RK_FUNC_1 &pcfg_pull_none>;
885 sdmmc_cmd: sdmmc-cmd {
886 rockchip,pins = <5 5 RK_FUNC_1 &pcfg_pull_up>;
891 sdio_bus1: sdio-bus1 {
892 rockchip,pins = <3 12 RK_FUNC_1 &pcfg_pull_up>;
895 sdio_bus4: sdio-bus4 {
896 rockchip,pins = <3 12 RK_FUNC_1 &pcfg_pull_up>,
897 <3 13 RK_FUNC_1 &pcfg_pull_up>,
898 <3 14 RK_FUNC_1 &pcfg_pull_up>,
899 <3 15 RK_FUNC_1 &pcfg_pull_up>;
903 rockchip,pins = <3 16 RK_FUNC_1 &pcfg_pull_up>;
907 rockchip,pins = <3 17 RK_FUNC_1 &pcfg_pull_none>;
911 rockchip,pins = <3 18 RK_FUNC_1 &pcfg_pull_up>;
915 rockchip,pins = <3 19 RK_FUNC_1 &pcfg_pull_up>;
919 rockchip,pins = <3 20 RK_FUNC_1 &pcfg_pull_up>;
923 rockchip,pins = <3 21 RK_FUNC_1 &pcfg_pull_up>;
928 hdmii2c_xfer: hdmii2c-xfer {
930 <5 13 RK_FUNC_2 &pcfg_pull_none>,
931 <5 14 RK_FUNC_2 &pcfg_pull_none>;
938 <5 12 RK_FUNC_1 &pcfg_pull_none>;
943 i2c0_xfer: i2c0-xfer {
945 <0 3 RK_FUNC_1 &pcfg_pull_none>,
946 <0 4 RK_FUNC_1 &pcfg_pull_none>;
951 i2c1_xfer: i2c1-xfer {
953 <4 25 RK_FUNC_1 &pcfg_pull_none>,
954 <4 26 RK_FUNC_1 &pcfg_pull_none>;
959 i2c2_xfer: i2c2-xfer {
961 <5 15 RK_FUNC_2 &pcfg_pull_none>,
962 <5 16 RK_FUNC_2 &pcfg_pull_none>;
967 i2c3_xfer: i2c3-xfer {
969 <2 16 RK_FUNC_2 &pcfg_pull_none>,
970 <2 17 RK_FUNC_2 &pcfg_pull_none>;
975 i2c4_xfer: i2c4-xfer {
977 <5 8 RK_FUNC_1 &pcfg_pull_none>,
978 <5 9 RK_FUNC_1 &pcfg_pull_none>;
983 i2c5_xfer: i2c5-xfer {
985 <5 13 RK_FUNC_1 &pcfg_pull_none>,
986 <5 14 RK_FUNC_1 &pcfg_pull_none>;
988 i2c5_gpio: i2c5-gpio {
990 <5 13 RK_FUNC_GPIO &pcfg_pull_none>,
991 <5 14 RK_FUNC_GPIO &pcfg_pull_none>;
996 i2s_8ch_bus: i2s-8ch-bus {
998 <4 16 RK_FUNC_1 &pcfg_pull_none>,
999 <4 17 RK_FUNC_1 &pcfg_pull_none>,
1000 <4 18 RK_FUNC_1 &pcfg_pull_none>,
1001 <4 19 RK_FUNC_1 &pcfg_pull_none>,
1002 <4 20 RK_FUNC_1 &pcfg_pull_none>,
1003 <4 21 RK_FUNC_1 &pcfg_pull_none>,
1004 <4 22 RK_FUNC_1 &pcfg_pull_none>,
1005 <4 23 RK_FUNC_1 &pcfg_pull_none>,
1006 <4 24 RK_FUNC_1 &pcfg_pull_none>;
1011 spi0_clk: spi0-clk {
1013 <2 29 RK_FUNC_2 &pcfg_pull_up>;
1015 spi0_cs0: spi0-cs0 {
1017 <2 24 RK_FUNC_3 &pcfg_pull_up>;
1019 spi0_cs1: spi0-cs1 {
1021 <2 25 RK_FUNC_3 &pcfg_pull_up>;
1025 <2 23 RK_FUNC_3 &pcfg_pull_up>;
1029 <2 22 RK_FUNC_3 &pcfg_pull_up>;
1034 spi1_clk: spi1-clk {
1036 <2 4 RK_FUNC_3 &pcfg_pull_up>;
1038 spi1_cs0: spi1-cs0 {
1040 <2 5 RK_FUNC_3 &pcfg_pull_up>;
1044 <2 6 RK_FUNC_3 &pcfg_pull_up>;
1048 <2 7 RK_FUNC_3 &pcfg_pull_up>;
1053 uart0_xfer: uart0-xfer {
1055 <3 8 RK_FUNC_1 &pcfg_pull_up>,
1056 <3 9 RK_FUNC_1 &pcfg_pull_none>;
1059 uart0_cts: uart0-cts {
1061 <3 10 RK_FUNC_1 &pcfg_pull_none>;
1064 uart0_rts: uart0-rts {
1066 <3 11 RK_FUNC_1 &pcfg_pull_none>;
1071 uart2_t0_xfer: uart2_t0-xfer {
1073 <0 22 RK_FUNC_1 &pcfg_pull_up>,
1074 <0 21 RK_FUNC_1 &pcfg_pull_none>;
1076 /* no rts / cts for uart2 */
1080 uart2_t1_xfer: uart2_t1-xfer {
1082 <5 0 RK_FUNC_2 &pcfg_pull_up>,
1083 <5 1 RK_FUNC_2 &pcfg_pull_none>;
1085 /* no rts / cts for uart2 */
1089 uart2_t2_xfer: uart2_t2-xfer {
1091 <5 14 RK_FUNC_3 &pcfg_pull_up>,
1092 <5 13 RK_FUNC_3 &pcfg_pull_none>;
1094 /* no rts / cts for uart2 */
1098 uart3_xfer: uart3-xfer {
1100 <5 15 RK_FUNC_1 &pcfg_pull_up>,
1101 <5 16 RK_FUNC_1 &pcfg_pull_none>;
1104 uart3_cts: uart3-cts {
1106 <5 17 RK_FUNC_1 &pcfg_pull_none>;
1109 uart3_rts: uart3-rts {
1111 <5 18 RK_FUNC_1 &pcfg_pull_none>;
1116 pwm0_pin: pwm0-pin {
1118 <0 8 RK_FUNC_1 &pcfg_pull_none>;
1123 pwm1_pin: pwm1-pin {
1125 <1 6 RK_FUNC_2 &pcfg_pull_none>;
1130 pwm2_t0_pin: pwm2_t0-pin {
1132 <2 15 RK_FUNC_3 &pcfg_pull_none>;
1137 pwm2_t1_pin: pwm2_t1-pin {
1139 <5 17 RK_FUNC_2 &pcfg_pull_none>;
1144 pwm3_t0_pin: pwm3_t0-pin {
1146 <1 0 RK_FUNC_2 &pcfg_pull_none>;
1151 pwm3_t1_pin: pwm3_t1-pin {
1153 <0 21 RK_FUNC_2 &pcfg_pull_none>;
1158 pwm3_t2_pin: pwm3_t2-pin {
1160 <5 18 RK_FUNC_2 &pcfg_pull_none>;
1165 lcdc_lcdc: lcdc-lcdc {
1167 <0 24 RK_FUNC_2 &pcfg_pull_none>, /* HSYNC */
1168 <0 25 RK_FUNC_2 &pcfg_pull_none>, /* VSYNC */
1169 <0 26 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D10 */
1170 <0 27 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D11 */
1171 <0 28 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D12 */
1172 <0 29 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D13 */
1173 <0 30 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D14 */
1174 <0 31 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D15 */
1175 <1 0 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D16 */
1176 <1 1 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D17 */
1177 <1 2 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D18 */
1178 <1 3 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D19 */
1179 <1 4 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D20 */
1180 <1 5 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D21 */
1181 <1 6 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D22 */
1182 <1 7 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D23 */
1183 <1 8 RK_FUNC_1 &pcfg_pull_none>, /* DEN */
1184 <1 9 RK_FUNC_1 &pcfg_pull_none>; /* DCLK */
1187 lcdc_gpio: lcdc-gpio {
1189 <0 24 RK_FUNC_GPIO &pcfg_pull_none>, /* HSYNC */
1190 <0 25 RK_FUNC_GPIO &pcfg_pull_none>, /* VSYNC */
1191 <0 26 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D10 */
1192 <0 27 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D11 */
1193 <0 28 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D12 */
1194 <0 29 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D13 */
1195 <0 30 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D14 */
1196 <0 31 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D15 */
1197 <1 0 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D16 */
1198 <1 1 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D17 */
1199 <1 2 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D18 */
1200 <1 3 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D19 */
1201 <1 4 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D20 */
1202 <1 5 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D21 */
1203 <1 6 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D22 */
1204 <1 7 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D23 */
1205 <1 8 RK_FUNC_GPIO &pcfg_pull_none>, /* DEN */
1206 <1 9 RK_FUNC_GPIO &pcfg_pull_none>; /* DCLK */
1211 rgmii_pins: rgmii-pins {
1214 <2 7 RK_FUNC_1 &pcfg_pull_none>,
1216 <2 6 RK_FUNC_1 &pcfg_pull_none>,
1218 <2 5 RK_FUNC_1 &pcfg_pull_none>,
1220 <2 4 RK_FUNC_1 &pcfg_pull_none>,
1222 <2 3 RK_FUNC_1 &pcfg_pull_none>,
1224 <2 2 RK_FUNC_1 &pcfg_pull_none>,
1226 <2 1 RK_FUNC_1 &pcfg_pull_none>,
1228 <2 0 RK_FUNC_1 &pcfg_pull_none>,
1230 /* <2 15 RK_FUNC_1 &pcfg_pull_none>, */
1232 <2 14 RK_FUNC_1 &pcfg_pull_none>,
1234 <2 13 RK_FUNC_1 &pcfg_pull_none>,
1236 <2 12 RK_FUNC_1 &pcfg_pull_none>,
1238 <2 11 RK_FUNC_1 &pcfg_pull_none>,
1240 /* <2 10 RK_FUNC_1 &pcfg_pull_none>, */
1242 <2 9 RK_FUNC_1 &pcfg_pull_none>,
1244 <2 8 RK_FUNC_1 &pcfg_pull_none>;
1247 rmii_pins: rmii-pins {
1250 <2 3 RK_FUNC_1 &pcfg_pull_none>,
1252 <2 2 RK_FUNC_1 &pcfg_pull_none>,
1254 <2 1 RK_FUNC_1 &pcfg_pull_none>,
1256 <2 0 RK_FUNC_1 &pcfg_pull_none>,
1258 /* <2 15 RK_FUNC_1 &pcfg_pull_none>, */
1260 <2 14 RK_FUNC_1 &pcfg_pull_none>,
1262 <2 13 RK_FUNC_1 &pcfg_pull_none>,
1264 <2 12 RK_FUNC_1 &pcfg_pull_none>,
1266 <2 11 RK_FUNC_1 &pcfg_pull_none>,
1268 /* <2 10 RK_FUNC_1 &pcfg_pull_none>, */
1270 <2 9 RK_FUNC_1 &pcfg_pull_none>,
1272 <2 8 RK_FUNC_1 &pcfg_pull_none>;
1277 eth_phy_pwr: eth-phy-pwr {
1279 <0 24 RK_FUNC_GPIO &pcfg_pull_none>;