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>
52 compatible = "rockchip,rk3366";
53 interrupt-parent = <&gic>;
72 #address-cells = <0x2>;
77 compatible = "arm,cortex-a53","arm,armv8";
79 enable-method = "psci";
84 compatible = "arm,cortex-a53","arm,armv8";
86 enable-method = "psci";
91 compatible = "arm,cortex-a53","arm,armv8";
93 enable-method = "psci";
98 compatible = "arm,cortex-a53","arm,armv8";
100 enable-method = "psci";
105 compatible = "arm,psci-1.0";
110 compatible = "arm,armv8-timer";
111 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
112 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
113 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
114 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
118 compatible = "fixed-clock";
120 clock-frequency = <24000000>;
121 clock-output-names = "xin24m";
124 gic: interrupt-controller@ffb71000 {
125 compatible = "arm,gic-400";
126 interrupt-controller;
127 #interrupt-cells = <3>;
128 #address-cells = <0>;
130 reg = <0x0 0xffb71000 0x0 0x1000>,
131 <0x0 0xffb72000 0x0 0x1000>,
132 <0x0 0xffb74000 0x0 0x2000>,
133 <0x0 0xffb76000 0x0 0x2000>;
134 interrupts = <GIC_PPI 9
135 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
138 nandc0: nandc@ff0c0000 {
139 compatible = "rockchip,rk-nandc";
140 reg = <0x0 0xff0c0000 0x0 0x4000>;
141 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
143 clocks = <&cru SCLK_NANDC0>, <&cru HCLK_NANDC0>;
144 clock-names = "clk_nandc", "hclk_nandc";
148 saradc: saradc@ff100000 {
149 compatible = "rockchip,saradc";
150 reg = <0x0 0xff100000 0x0 0x100>;
151 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
152 #io-channel-cells = <1>;
153 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
154 clock-names = "saradc", "apb_pclk";
159 compatible = "rockchip,rk3368-spi", "rockchip,rk3066-spi";
160 reg = <0x0 0xff110000 0x0 0x1000>;
161 clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
162 clock-names = "spiclk", "apb_pclk";
163 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
164 pinctrl-names = "default";
165 pinctrl-0 = <&spi0_clk &spi0_tx &spi0_rx &spi0_cs0>;
166 #address-cells = <1>;
172 compatible = "rockchip,rk3368-spi", "rockchip,rk3066-spi";
173 reg = <0x0 0xff120000 0x0 0x1000>;
174 clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>;
175 clock-names = "spiclk", "apb_pclk";
176 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
177 pinctrl-names = "default";
178 pinctrl-0 = <&spi1_clk &spi1_tx &spi1_rx &spi1_cs0>;
179 #address-cells = <1>;
184 sdmmc: rksdmmc@ff400000 {
185 compatible = "rockchip,rk3366-dw-mshc","rockchip,rk3288-dw-mshc";
186 clock-freq-min-max = <400000 150000000>;
187 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>,
188 <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
189 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
190 fifo-depth = <0x100>;
191 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
192 reg = <0x0 0xff400000 0x0 0x4000>;
196 sdio: rksdmmc@ff410000 {
197 compatible = "rockchip,rk3366-dw-mshc","rockchip,rk3288-dw-mshc";
198 clock-freq-min-max = <400000 150000000>;
199 clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO0>,
200 <&cru SCLK_SDIO0_DRV>, <&cru SCLK_SDIO0_SAMPLE>;
201 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
202 fifo-depth = <0x100>;
203 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
204 reg = <0x0 0xff410000 0x0 0x4000>;
208 emmc: rksdmmc@ff420000 {
209 compatible = "rockchip,rk3366-dw-mshc","rockchip,rk3288-dw-mshc";
210 clock-freq-min-max = <400000 150000000>;
211 clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>,
212 <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>;
213 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
214 fifo-depth = <0x100>;
215 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
216 reg = <0x0 0xff420000 0x0 0x4000>;
221 compatible = "rockchip,rk3366-gmac";
222 reg = <0x0 0xff440000 0x0 0x10000>;
223 rockchip,grf = <&grf>;
224 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
225 interrupt-names = "macirq";
226 clocks = <&cru SCLK_MAC>, <&cru SCLK_MAC_RX>,
227 <&cru SCLK_MAC_RX>, <&cru SCLK_MACREF>,
228 <&cru SCLK_MACREF_OUT>, <&cru ACLK_GMAC>,
230 clock-names = "stmmaceth", "mac_clk_rx",
231 "mac_clk_tx", "clk_mac_ref",
232 "clk_mac_refout", "aclk_mac",
234 resets = <&cru SRST_MAC>;
235 reset-names = "stmmaceth";
240 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
241 reg = <0x0 0xff728000 0x0 0x1000>;
242 clocks = <&cru PCLK_I2C0>;
244 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
245 pinctrl-names = "default";
246 pinctrl-0 = <&i2c0_xfer>;
247 #address-cells = <1>;
253 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
254 reg = <0x0 0xff140000 0x0 0x1000>;
255 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
256 #address-cells = <1>;
259 clocks = <&cru PCLK_I2C2>;
260 pinctrl-names = "default";
261 pinctrl-0 = <&i2c2_xfer>;
266 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
267 reg = <0x0 0xff150000 0x0 0x1000>;
268 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
269 #address-cells = <1>;
272 clocks = <&cru PCLK_I2C3>;
273 pinctrl-names = "default";
274 pinctrl-0 = <&i2c3_xfer>;
279 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
280 reg = <0x0 0xff160000 0x0 0x1000>;
281 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
282 #address-cells = <1>;
285 clocks = <&cru PCLK_I2C4>;
286 pinctrl-names = "default";
287 pinctrl-0 = <&i2c4_xfer>;
292 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
293 reg = <0x0 0xff170000 0x0 0x1000>;
294 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
295 #address-cells = <1>;
298 clocks = <&cru PCLK_I2C5>;
299 pinctrl-names = "default";
300 pinctrl-0 = <&i2c5_xfer>;
304 uart0: serial@ff180000 {
305 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
306 reg = <0x0 0xff180000 0x0 0x100>;
307 clock-frequency = <24000000>;
308 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
309 clock-names = "baudclk", "apb_pclk";
310 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
313 pinctrl-names = "default";
314 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
318 uart3: serial@ff1b0000 {
319 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
320 reg = <0x0 0xff1b0000 0x0 0x100>;
321 clock-frequency = <24000000>;
322 clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
323 clock-names = "baudclk", "apb_pclk";
324 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
327 pinctrl-names = "default";
328 pinctrl-0 = <&uart3_xfer &uart3_cts &uart3_rts>;
332 usb_otg: usb@ff4c0000 {
333 compatible = "rockchip,rk3368-usb", "rockchip,rk3066-usb",
335 reg = <0x0 0xff4c0000 0x0 0x40000>;
336 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
337 clocks = <&cru HCLK_OTG>;
340 g-np-tx-fifo-size = <16>;
341 g-rx-fifo-size = <275>;
342 g-tx-fifo-size = <256 128 128 64 64 32>;
348 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
349 reg = <0x0 0xff660000 0x0 0x1000>;
350 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
351 #address-cells = <1>;
354 clocks = <&cru PCLK_I2C1>;
355 pinctrl-names = "default";
356 pinctrl-0 = <&i2c1_xfer>;
361 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
362 reg = <0x0 0xff680000 0x0 0x10>;
364 pinctrl-names = "default";
365 pinctrl-0 = <&pwm0_pin>;
366 clocks = <&cru PCLK_RKPWM>;
372 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
373 reg = <0x0 0xff680010 0x0 0x10>;
375 pinctrl-names = "default";
376 pinctrl-0 = <&pwm1_pin>;
377 clocks = <&cru PCLK_RKPWM>;
383 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
384 reg = <0x0 0xff680020 0x0 0x10>;
386 clocks = <&cru PCLK_RKPWM>;
392 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
393 reg = <0x0 0xff680030 0x0 0x10>;
395 pinctrl-names = "default";
396 pinctrl-0 = <&pwm3_t2_pin>;
397 clocks = <&cru PCLK_RKPWM>;
402 uart2: serial@ff690000 {
403 compatible = "rockchip,rk3366-uart", "snps,dw-apb-uart";
404 reg = <0x0 0xff690000 0x0 0x100>;
405 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
406 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
407 clock-names = "baudclk", "apb_pclk";
410 pinctrl-names = "default";
411 pinctrl-0 = <&uart2_t1_xfer>;
415 pmu: power-management@ff730000 {
416 compatible = "rockchip,rk3366-pmu", "syscon", "simple-mfd";
417 reg = <0x0 0xff730000 0x0 0x1000>;
419 power: power-controller {
421 compatible = "rockchip,rk3366-power-controller";
422 #power-domain-cells = <1>;
423 #address-cells = <1>;
427 * Note: Although SCLK_* are the working clocks
428 * of device without including on the NOC, needed for
431 * The clocks on the which NOC:
432 * ACLK_IEP/ACLK_VOP0 are on ACLK_VIO0_NIU.
433 * ACLK_RGA/ACLK_VOP1 are on ACLK_RGA_NIU.
434 * ACLK_ISP is on ACLK_ISP_NIU.
435 * ACLK_HDCP is on ACLK_HDCP_NIU.
436 * The others (HCLK_*,PLCK_*) are on HCLK_VIO_NIU.
438 * Which clock are device clocks:
440 * *_IEP IEP:Image Enhancement Processor
441 * *_ISP ISP:Image Signal Processing
442 * *_VOP* VOP:Visual Output Processor
449 reg = <RK3366_PD_VIO>;
450 clocks = <&cru ACLK_IEP>,
454 <&cru ACLK_VOP_FULL>,
455 <&cru ACLK_VOP_LITE>,
457 <&cru DCLK_VOP_FULL>,
458 <&cru DCLK_VOP_LITE>,
462 <&cru HCLK_VOP_FULL>,
463 <&cru HCLK_VOP_LITE>,
464 <&cru HCLK_VIO_HDCPMMU>,
465 <&cru PCLK_HDMI_CTRL>,
467 <&cru PCLK_MIPI_DSI0>,
468 <&cru SCLK_VOP_FULL_PWM>,
472 <&cru SCLK_HDMI_CEC>,
473 <&cru SCLK_HDMI_HDCP>;
477 * Note: ACLK_VCODEC/HCLK_VCODEC are VCODEC
478 * (video endecoder & decoder) clocks that on the
479 * ACLK_VCODEC_NIU and HCLK_VCODEC_NIU (NOC).
482 reg = <RK3366_PD_VPU>;
483 clocks = <&cru ACLK_VIDEO>,
488 * Note: ACLK_RKVDEC/HCLK_RKVDEC are RKVDEC
489 * (video decoder) clocks that on the
490 * ACLK_RKVDEC_NIU and HCLK_RKVDEC_NIU (NOC).
493 reg = <RK3366_PD_RKVDEC>;
494 clocks = <&cru ACLK_RKVDEC>,
499 reg = <RK3366_PD_VIDEO>;
500 clocks = <&cru ACLK_VIDEO>,
504 <&cru SCLK_HEVC_CABAC>,
505 <&cru SCLK_HEVC_CORE>;
509 * Note: ACLK_GPU is the GPU clock,
510 * and on the ACLK_GPU_NIU (NOC).
513 reg = <RK3366_PD_GPU>;
514 clocks = <&cru ACLK_GPU>;
519 pmugrf: syscon@ff738000 {
520 compatible = "rockchip,rk3366-pmugrf", "syscon";
521 reg = <0x0 0xff738000 0x0 0x1000>;
525 compatible = "arm,amba-bus";
526 #address-cells = <2>;
530 dmac_peri: dma-controller@ff250000 {
531 compatible = "arm,pl330", "arm,primecell";
532 reg = <0x0 0xff250000 0x0 0x4000>;
533 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
534 <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
536 clocks = <&cru ACLK_DMAC_PERI>;
537 clock-names = "apb_pclk";
540 dmac_bus: dma-controller@ff600000 {
541 compatible = "arm,pl330", "arm,primecell";
542 reg = <0x0 0xff600000 0x0 0x4000>;
543 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
544 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
546 clocks = <&cru ACLK_DMAC_BUS>;
547 clock-names = "apb_pclk";
551 cru: clock-controller@ff760000 {
552 compatible = "rockchip,rk3366-cru";
553 reg = <0x0 0xff760000 0x0 0x1000>;
554 rockchip,grf = <&grf>;
558 <&cru PLL_CPLL>, <&cru PLL_GPLL>,
559 <&cru PLL_NPLL>, <&cru PLL_MPLL>,
560 <&cru PLL_WPLL>, <&cru PLL_BPLL>,
561 <&cru ACLK_VOP_FULL>, <&cru ACLK_VOP_LITE>,
562 <&cru HCLK_VOP_LITE>,<&cru HCLK_VOP_LITE>;
563 assigned-clock-rates =
564 <750000000>, <576000000>,
565 <594000000>, <594000000>,
566 <480000000>, <520000000>,
567 <375000000>, <288000000>,
568 <100000000>, <100000000>;
571 grf: syscon@ff770000 {
572 compatible = "rockchip,rk3366-grf", "syscon";
573 reg = <0x0 0xff770000 0x0 0x1000>;
576 i2s_2ch: i2s-2ch@ff890000 {
577 compatible = "rockchip,rk3366-i2s", "rockchip,rk3066-i2s";
578 reg = <0x0 0xff890000 0x0 0x1000>;
579 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
580 dmas = <&dmac_bus 6>, <&dmac_bus 7>;
581 dma-names = "tx", "rx";
582 clock-names = "i2s_hclk", "i2s_clk";
583 clocks = <&cru HCLK_I2S_2CH>, <&cru SCLK_I2S_2CH>;
587 i2s_8ch: i2s-8ch@ff898000 {
588 compatible = "rockchip,rk3366-i2s", "rockchip,rk3066-i2s";
589 reg = <0x0 0xff898000 0x0 0x1000>;
590 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
591 dmas = <&dmac_bus 0>, <&dmac_bus 1>;
592 dma-names = "tx", "rx";
593 clock-names = "i2s_hclk", "i2s_clk";
594 clocks = <&cru HCLK_I2S_8CH>, <&cru SCLK_I2S_8CH>;
595 pinctrl-names = "default";
596 pinctrl-0 = <&i2s_8ch_bus>;
601 compatible = "rockchip,rk-fb";
602 rockchip,disp-mode = <DUAL>;
607 compatible = "rockchip,screen";
611 vop_lite: vop@ff8f0000 {
612 compatible = "rockchip,rk3366-lcdc-lite";
613 rockchip,grf = <&grf>;
614 rockchip,pwr18 = <0>;
615 rockchip,iommu-enabled = <1>;
616 reg = <0x0 0xff8f0000 0x0 0x1000>;
617 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
618 clocks = <&cru ACLK_VOP_LITE>, <&cru DCLK_VOP_LITE>, <&cru HCLK_VOP_LITE>;
619 clock-names = "aclk_lcdc", "dclk_lcdc", "hclk_lcdc";
620 resets = <&cru SRST_VOP1_AXI>, <&cru SRST_VOP1_DCLK>, <&cru SRST_VOP1_AHB>;
621 reset-names = "axi", "ahb", "dclk";
627 compatible = "rockchip,vopl_mmu";
628 reg = <0x0 0xff8f0f00 0x0 0x100>;
629 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
630 interrupt-names = "vopl_mmu";
635 compatible = "rockchip,rga2";
637 reg = <0x0 0xff920000 0x0 0x1000>;
638 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
639 clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru SCLK_RGA>;
640 clock-names = "aclk_rga", "hclk_rga", "clk_rga";
644 vop_big: vop@ff930000 {
645 compatible = "rockchip,rk3366-lcdc-big";
646 rockchip,grf = <&grf>;
647 rockchip,prop = <PRMRY>;
648 rockchip,pwr18 = <0>;
649 rockchip,iommu-enabled = <1>;
650 reg = <0x0 0xff930000 0x0 0x23f0>;
651 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
652 clocks = <&cru ACLK_VOP_FULL>, <&cru DCLK_VOP_FULL>, <&cru HCLK_VOP_FULL>;
653 clock-names = "aclk_lcdc", "dclk_lcdc", "hclk_lcdc";
654 resets = <&cru SRST_VOP0_AXI>, <&cru SRST_VOP0_DCLK>, <&cru SRST_VOP0_AHB>;
655 reset-names = "axi", "ahb", "dclk";
661 compatible = "rockchip,vopb_mmu";
662 reg = <0x0 0xff932400 0x0 0x100>;
663 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
664 interrupt-names = "vop_mmu";
668 dsihost0: mipi@ff960000 {
669 compatible = "rockchip,rk3368-dsi";
671 reg = <0x0 0xff960000 0x0 0x4000>, <0x0 0xff968000 0x0 0x4000>;
672 reg-names = "mipi_dsi_host" ,"mipi_dsi_phy";
673 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
674 clocks = <&cru SCLK_MIPIDSI_24M>, <&cru PCLK_DPHYTX>, <&cru PCLK_MIPI_DSI0>;
675 clock-names = "clk_mipi_24m", "pclk_mipi_dsi", "pclk_mipi_dsi_host";
679 lvds: lvds@ff968000 {
680 compatible = "rockchip,rk3366-lvds";
681 rockchip,grf = <&grf>;
682 reg = <0x0 0xff968000 0x0 0x4000>, <0x0 0xff9600a0 0x0 0x20>;
683 reg-names = "mipi_lvds_phy", "mipi_lvds_ctl";
684 clocks = <&cru PCLK_DPHYTX>, <&cru PCLK_MIPI_DSI0>;
685 clock-names = "pclk_lvds", "pclk_lvds_ctl";
689 hdmi: hdmi@ff980000 {
690 compatible = "rockchip,rk3366-hdmi";
691 reg = <0x0 0xff980000 0x0 0x20000>;
692 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>,
693 <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
694 clocks = <&cru PCLK_HDMI_CTRL>,
695 <&cru SCLK_HDMI_HDCP>,
696 <&cru SCLK_HDMI_CEC>,
698 clock-names = "pclk_hdmi",
702 resets = <&cru SRST_HDMI>;
703 reset-names = "hdmi";
704 pinctrl-names = "default", "gpio";
705 pinctrl-0 = <&hdmii2c_xfer &hdmi_cec>;
706 pinctrl-1 = <&i2c5_gpio>;
711 compatible = "rockchip,rk3366-pinctrl";
712 rockchip,grf = <&grf>;
713 rockchip,pmu = <&pmugrf>;
714 #address-cells = <0x2>;
718 gpio0: gpio0@ff750000 {
719 compatible = "rockchip,gpio-bank";
720 reg = <0x0 0xff750000 0x0 0x100>;
721 clocks = <&cru PCLK_GPIO0>;
722 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
727 interrupt-controller;
728 #interrupt-cells = <0x2>;
731 gpio1: gpio1@ff780000 {
732 compatible = "rockchip,gpio-bank";
733 reg = <0x0 0xff758000 0x0 0x100>;
734 clocks = <&cru PCLK_GPIO1>;
735 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
740 interrupt-controller;
741 #interrupt-cells = <0x2>;
744 gpio2: gpio2@ff790000 {
745 compatible = "rockchip,gpio-bank";
746 reg = <0x0 0xff790000 0x0 0x100>;
747 clocks = <&cru PCLK_GPIO2>;
748 interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
753 interrupt-controller;
754 #interrupt-cells = <0x2>;
757 gpio3: gpio3@ff7a0000 {
758 compatible = "rockchip,gpio-bank";
759 reg = <0x0 0xff7a0000 0x0 0x100>;
760 clocks = <&cru PCLK_GPIO3>;
761 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
766 interrupt-controller;
767 #interrupt-cells = <0x2>;
770 gpio4: gpio4@ff7b0000 {
771 compatible = "rockchip,gpio-bank";
772 reg = <0x0 0xff7b0000 0x0 0x100>;
773 clocks = <&cru PCLK_GPIO4>;
774 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
779 interrupt-controller;
780 #interrupt-cells = <0x2>;
783 gpio5: gpio5@ff7c0000 {
784 compatible = "rockchip,gpio-bank";
785 reg = <0x0 0xff7c0000 0x0 0x100>;
786 clocks = <&cru PCLK_GPIO5>;
787 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
792 interrupt-controller;
793 #interrupt-cells = <0x2>;
796 pcfg_pull_up: pcfg-pull-up {
800 pcfg_pull_down: pcfg-pull-down {
804 pcfg_pull_none: pcfg-pull-none {
808 pcfg_pull_none_12ma: pcfg-pull-none-12ma {
810 drive-strength = <12>;
816 <3 4 RK_FUNC_2 &pcfg_pull_none>;
821 <2 26 RK_FUNC_2 &pcfg_pull_up>;
826 <2 27 RK_FUNC_2 &pcfg_pull_up>;
829 emmc_bus1: emmc-bus1 {
831 <2 18 RK_FUNC_2 &pcfg_pull_up>;
834 emmc_bus4: emmc-bus4 {
836 <2 18 RK_FUNC_2 &pcfg_pull_up>,
837 <2 19 RK_FUNC_2 &pcfg_pull_up>,
838 <2 20 RK_FUNC_2 &pcfg_pull_up>,
839 <2 21 RK_FUNC_2 &pcfg_pull_up>;
842 emmc_bus8: emmc-bus8 {
844 <2 18 RK_FUNC_2 &pcfg_pull_up>,
845 <2 19 RK_FUNC_2 &pcfg_pull_up>,
846 <2 20 RK_FUNC_2 &pcfg_pull_up>,
847 <2 21 RK_FUNC_2 &pcfg_pull_up>,
848 <2 22 RK_FUNC_2 &pcfg_pull_up>,
849 <2 23 RK_FUNC_2 &pcfg_pull_up>,
850 <2 24 RK_FUNC_2 &pcfg_pull_up>,
851 <2 25 RK_FUNC_2 &pcfg_pull_up>;
857 rockchip,pins = <0 9 RK_FUNC_1 &pcfg_pull_up>;
860 sdmmc_bus1: sdmmc-bus1 {
861 rockchip,pins = <5 0 RK_FUNC_1 &pcfg_pull_up>;
864 sdmmc_bus4: sdmmc-bus4 {
865 rockchip,pins = <5 0 RK_FUNC_1 &pcfg_pull_up>,
866 <5 1 RK_FUNC_1 &pcfg_pull_up>,
867 <5 2 RK_FUNC_1 &pcfg_pull_up>,
868 <5 3 RK_FUNC_1 &pcfg_pull_up>;
871 sdmmc_clk: sdmmc-clk {
872 rockchip,pins = <5 4 RK_FUNC_1 &pcfg_pull_none>;
875 sdmmc_cmd: sdmmc-cmd {
876 rockchip,pins = <5 5 RK_FUNC_1 &pcfg_pull_up>;
881 sdio_bus1: sdio-bus1 {
882 rockchip,pins = <3 12 RK_FUNC_1 &pcfg_pull_up>;
885 sdio_bus4: sdio-bus4 {
886 rockchip,pins = <3 12 RK_FUNC_1 &pcfg_pull_up>,
887 <3 13 RK_FUNC_1 &pcfg_pull_up>,
888 <3 14 RK_FUNC_1 &pcfg_pull_up>,
889 <3 15 RK_FUNC_1 &pcfg_pull_up>;
893 rockchip,pins = <3 16 RK_FUNC_1 &pcfg_pull_up>;
897 rockchip,pins = <3 17 RK_FUNC_1 &pcfg_pull_none>;
901 rockchip,pins = <3 18 RK_FUNC_1 &pcfg_pull_up>;
905 rockchip,pins = <3 19 RK_FUNC_1 &pcfg_pull_up>;
909 rockchip,pins = <3 20 RK_FUNC_1 &pcfg_pull_up>;
913 rockchip,pins = <3 21 RK_FUNC_1 &pcfg_pull_up>;
918 hdmii2c_xfer: hdmii2c-xfer {
920 <5 13 RK_FUNC_2 &pcfg_pull_none>,
921 <5 14 RK_FUNC_2 &pcfg_pull_none>;
928 <5 12 RK_FUNC_1 &pcfg_pull_none>;
933 i2c0_xfer: i2c0-xfer {
935 <0 3 RK_FUNC_1 &pcfg_pull_none>,
936 <0 4 RK_FUNC_1 &pcfg_pull_none>;
941 i2c1_xfer: i2c1-xfer {
943 <4 25 RK_FUNC_1 &pcfg_pull_none>,
944 <4 26 RK_FUNC_1 &pcfg_pull_none>;
949 i2c2_xfer: i2c2-xfer {
951 <5 15 RK_FUNC_2 &pcfg_pull_none>,
952 <5 16 RK_FUNC_2 &pcfg_pull_none>;
957 i2c3_xfer: i2c3-xfer {
959 <2 16 RK_FUNC_2 &pcfg_pull_none>,
960 <2 17 RK_FUNC_2 &pcfg_pull_none>;
965 i2c4_xfer: i2c4-xfer {
967 <5 8 RK_FUNC_1 &pcfg_pull_none>,
968 <5 9 RK_FUNC_1 &pcfg_pull_none>;
973 i2c5_xfer: i2c5-xfer {
975 <5 13 RK_FUNC_1 &pcfg_pull_none>,
976 <5 14 RK_FUNC_1 &pcfg_pull_none>;
978 i2c5_gpio: i2c5-gpio {
980 <5 13 RK_FUNC_GPIO &pcfg_pull_none>,
981 <5 14 RK_FUNC_GPIO &pcfg_pull_none>;
986 i2s_8ch_bus: i2s-8ch-bus {
988 <4 16 RK_FUNC_1 &pcfg_pull_none>,
989 <4 17 RK_FUNC_1 &pcfg_pull_none>,
990 <4 18 RK_FUNC_1 &pcfg_pull_none>,
991 <4 19 RK_FUNC_1 &pcfg_pull_none>,
992 <4 20 RK_FUNC_1 &pcfg_pull_none>,
993 <4 21 RK_FUNC_1 &pcfg_pull_none>,
994 <4 22 RK_FUNC_1 &pcfg_pull_none>,
995 <4 23 RK_FUNC_1 &pcfg_pull_none>,
996 <4 24 RK_FUNC_1 &pcfg_pull_none>;
1001 spi0_clk: spi0-clk {
1003 <2 29 RK_FUNC_2 &pcfg_pull_up>;
1005 spi0_cs0: spi0-cs0 {
1007 <2 24 RK_FUNC_3 &pcfg_pull_up>;
1009 spi0_cs1: spi0-cs1 {
1011 <2 25 RK_FUNC_3 &pcfg_pull_up>;
1015 <2 23 RK_FUNC_3 &pcfg_pull_up>;
1019 <2 22 RK_FUNC_3 &pcfg_pull_up>;
1024 spi1_clk: spi1-clk {
1026 <2 4 RK_FUNC_3 &pcfg_pull_up>;
1028 spi1_cs0: spi1-cs0 {
1030 <2 5 RK_FUNC_3 &pcfg_pull_up>;
1034 <2 6 RK_FUNC_3 &pcfg_pull_up>;
1038 <2 7 RK_FUNC_3 &pcfg_pull_up>;
1043 uart0_xfer: uart0-xfer {
1045 <3 8 RK_FUNC_1 &pcfg_pull_up>,
1046 <3 9 RK_FUNC_1 &pcfg_pull_none>;
1049 uart0_cts: uart0-cts {
1051 <3 10 RK_FUNC_1 &pcfg_pull_none>;
1054 uart0_rts: uart0-rts {
1056 <3 11 RK_FUNC_1 &pcfg_pull_none>;
1061 uart2_t0_xfer: uart2_t0-xfer {
1063 <0 22 RK_FUNC_1 &pcfg_pull_up>,
1064 <0 21 RK_FUNC_1 &pcfg_pull_none>;
1066 /* no rts / cts for uart2 */
1070 uart2_t1_xfer: uart2_t1-xfer {
1072 <5 0 RK_FUNC_2 &pcfg_pull_up>,
1073 <5 1 RK_FUNC_2 &pcfg_pull_none>;
1075 /* no rts / cts for uart2 */
1079 uart2_t2_xfer: uart2_t2-xfer {
1081 <5 14 RK_FUNC_3 &pcfg_pull_up>,
1082 <5 13 RK_FUNC_3 &pcfg_pull_none>;
1084 /* no rts / cts for uart2 */
1088 uart3_xfer: uart3-xfer {
1090 <5 15 RK_FUNC_1 &pcfg_pull_up>,
1091 <5 16 RK_FUNC_1 &pcfg_pull_none>;
1094 uart3_cts: uart3-cts {
1096 <5 17 RK_FUNC_1 &pcfg_pull_none>;
1099 uart3_rts: uart3-rts {
1101 <5 18 RK_FUNC_1 &pcfg_pull_none>;
1106 pwm0_pin: pwm0-pin {
1108 <0 8 RK_FUNC_1 &pcfg_pull_none>;
1113 pwm1_pin: pwm1-pin {
1115 <1 6 RK_FUNC_2 &pcfg_pull_none>;
1120 pwm2_t0_pin: pwm2_t0-pin {
1122 <2 15 RK_FUNC_3 &pcfg_pull_none>;
1127 pwm2_t1_pin: pwm2_t1-pin {
1129 <5 17 RK_FUNC_2 &pcfg_pull_none>;
1134 pwm3_t0_pin: pwm3_t0-pin {
1136 <1 0 RK_FUNC_2 &pcfg_pull_none>;
1141 pwm3_t1_pin: pwm3_t1-pin {
1143 <0 21 RK_FUNC_2 &pcfg_pull_none>;
1148 pwm3_t2_pin: pwm3_t2-pin {
1150 <5 18 RK_FUNC_2 &pcfg_pull_none>;
1155 lcdc_lcdc: lcdc-lcdc {
1157 <0 24 RK_FUNC_2 &pcfg_pull_none>, /* HSYNC */
1158 <0 25 RK_FUNC_2 &pcfg_pull_none>, /* VSYNC */
1159 <0 26 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D10 */
1160 <0 27 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D11 */
1161 <0 28 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D12 */
1162 <0 29 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D13 */
1163 <0 30 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D14 */
1164 <0 31 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D15 */
1165 <1 0 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D16 */
1166 <1 1 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D17 */
1167 <1 2 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D18 */
1168 <1 3 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D19 */
1169 <1 4 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D20 */
1170 <1 5 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D21 */
1171 <1 6 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D22 */
1172 <1 7 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D23 */
1173 <1 8 RK_FUNC_1 &pcfg_pull_none>, /* DEN */
1174 <1 9 RK_FUNC_1 &pcfg_pull_none>; /* DCLK */
1177 lcdc_gpio: lcdc-gpio {
1179 <0 24 RK_FUNC_GPIO &pcfg_pull_none>, /* HSYNC */
1180 <0 25 RK_FUNC_GPIO &pcfg_pull_none>, /* VSYNC */
1181 <0 26 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D10 */
1182 <0 27 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D11 */
1183 <0 28 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D12 */
1184 <0 29 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D13 */
1185 <0 30 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D14 */
1186 <0 31 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D15 */
1187 <1 0 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D16 */
1188 <1 1 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D17 */
1189 <1 2 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D18 */
1190 <1 3 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D19 */
1191 <1 4 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D20 */
1192 <1 5 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D21 */
1193 <1 6 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D22 */
1194 <1 7 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D23 */
1195 <1 8 RK_FUNC_GPIO &pcfg_pull_none>, /* DEN */
1196 <1 9 RK_FUNC_GPIO &pcfg_pull_none>; /* DCLK */
1201 rgmii_pins: rgmii-pins {
1204 <2 7 RK_FUNC_1 &pcfg_pull_none>,
1206 <2 6 RK_FUNC_1 &pcfg_pull_none>,
1208 <2 5 RK_FUNC_1 &pcfg_pull_none>,
1210 <2 4 RK_FUNC_1 &pcfg_pull_none>,
1212 <2 3 RK_FUNC_1 &pcfg_pull_none>,
1214 <2 2 RK_FUNC_1 &pcfg_pull_none>,
1216 <2 1 RK_FUNC_1 &pcfg_pull_none>,
1218 <2 0 RK_FUNC_1 &pcfg_pull_none>,
1220 /* <2 15 RK_FUNC_1 &pcfg_pull_none>, */
1222 <2 14 RK_FUNC_1 &pcfg_pull_none>,
1224 <2 13 RK_FUNC_1 &pcfg_pull_none>,
1226 <2 12 RK_FUNC_1 &pcfg_pull_none>,
1228 <2 11 RK_FUNC_1 &pcfg_pull_none>,
1230 /* <2 10 RK_FUNC_1 &pcfg_pull_none>, */
1232 <2 9 RK_FUNC_1 &pcfg_pull_none>,
1234 <2 8 RK_FUNC_1 &pcfg_pull_none>;
1237 rmii_pins: rmii-pins {
1240 <2 3 RK_FUNC_1 &pcfg_pull_none>,
1242 <2 2 RK_FUNC_1 &pcfg_pull_none>,
1244 <2 1 RK_FUNC_1 &pcfg_pull_none>,
1246 <2 0 RK_FUNC_1 &pcfg_pull_none>,
1248 /* <2 15 RK_FUNC_1 &pcfg_pull_none>, */
1250 <2 14 RK_FUNC_1 &pcfg_pull_none>,
1252 <2 13 RK_FUNC_1 &pcfg_pull_none>,
1254 <2 12 RK_FUNC_1 &pcfg_pull_none>,
1256 <2 11 RK_FUNC_1 &pcfg_pull_none>,
1258 /* <2 10 RK_FUNC_1 &pcfg_pull_none>, */
1260 <2 9 RK_FUNC_1 &pcfg_pull_none>,
1262 <2 8 RK_FUNC_1 &pcfg_pull_none>;
1267 eth_phy_pwr: eth-phy-pwr {
1269 <0 24 RK_FUNC_GPIO &pcfg_pull_none>;