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/display/mipi_dsi.h>
50 #include <dt-bindings/power/rk3366-power.h>
51 #include <dt-bindings/soc/rockchip_boot-mode.h>
52 #include <dt-bindings/thermal/thermal.h>
55 compatible = "rockchip,rk3366";
56 interrupt-parent = <&gic>;
75 #address-cells = <0x2>;
80 compatible = "arm,cortex-a53","arm,armv8";
82 enable-method = "psci";
83 clocks = <&cru ARMCLK>;
84 operating-points-v2 = <&cpu0_opp_table>;
85 cpu-idle-states = <&cpu_sleep>;
86 #cooling-cells = <2>; /* min followed by max */
87 dynamic-power-coefficient = <166>;
92 compatible = "arm,cortex-a53","arm,armv8";
94 enable-method = "psci";
95 operating-points-v2 = <&cpu0_opp_table>;
96 cpu-idle-states = <&cpu_sleep>;
101 compatible = "arm,cortex-a53","arm,armv8";
103 enable-method = "psci";
104 operating-points-v2 = <&cpu0_opp_table>;
105 cpu-idle-states = <&cpu_sleep>;
110 compatible = "arm,cortex-a53","arm,armv8";
112 enable-method = "psci";
113 operating-points-v2 = <&cpu0_opp_table>;
114 cpu-idle-states = <&cpu_sleep>;
118 entry-method = "psci";
119 cpu_sleep: cpu-sleep-0 {
120 compatible = "arm,idle-state";
122 arm,psci-suspend-param = <0x0010000>;
123 entry-latency-us = <350>;
124 exit-latency-us = <600>;
125 min-residency-us = <1150>;
130 cpu0_opp_table: opp_table0 {
131 compatible = "operating-points-v2";
135 opp-hz = /bits/ 64 <408000000>;
136 opp-microvolt = <950000>;
137 clock-latency-ns = <40000>;
141 opp-hz = /bits/ 64 <600000000>;
142 opp-microvolt = <950000>;
145 opp-hz = /bits/ 64 <816000000>;
146 opp-microvolt = <1000000>;
149 opp-hz = /bits/ 64 <1008000000>;
150 opp-microvolt = <1075000>;
153 opp-hz = /bits/ 64 <1200000000>;
154 opp-microvolt = <1175000>;
157 opp-hz = /bits/ 64 <1296000000>;
158 opp-microvolt = <1250000>;
163 compatible = "arm,psci-1.0";
168 compatible = "arm,armv8-timer";
169 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
170 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
171 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
172 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
176 compatible = "arm,cortex-a53-pmu";
177 interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>,
178 <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>,
179 <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>,
180 <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>;
181 interrupt-affinity = <&cpu0>,
188 compatible = "fixed-clock";
190 clock-frequency = <24000000>;
191 clock-output-names = "xin24m";
194 gic: interrupt-controller@ffb71000 {
195 compatible = "arm,gic-400";
196 interrupt-controller;
197 #interrupt-cells = <3>;
198 #address-cells = <0>;
200 reg = <0x0 0xffb71000 0x0 0x1000>,
201 <0x0 0xffb72000 0x0 0x1000>,
202 <0x0 0xffb74000 0x0 0x2000>,
203 <0x0 0xffb76000 0x0 0x2000>;
204 interrupts = <GIC_PPI 9
205 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
208 nandc0: nandc@ff0c0000 {
209 compatible = "rockchip,rk-nandc";
210 reg = <0x0 0xff0c0000 0x0 0x4000>;
211 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
213 clocks = <&cru SCLK_NANDC0>, <&cru HCLK_NANDC0>;
214 clock-names = "clk_nandc", "hclk_nandc";
218 saradc: saradc@ff100000 {
219 compatible = "rockchip,saradc";
220 reg = <0x0 0xff100000 0x0 0x100>;
221 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
222 #io-channel-cells = <1>;
223 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
224 clock-names = "saradc", "apb_pclk";
229 compatible = "rockchip,rk3368-spi", "rockchip,rk3066-spi";
230 reg = <0x0 0xff110000 0x0 0x1000>;
231 clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
232 clock-names = "spiclk", "apb_pclk";
233 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
234 pinctrl-names = "default";
235 pinctrl-0 = <&spi0_clk &spi0_tx &spi0_rx &spi0_cs0>;
236 #address-cells = <1>;
242 compatible = "rockchip,rk3368-spi", "rockchip,rk3066-spi";
243 reg = <0x0 0xff120000 0x0 0x1000>;
244 clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>;
245 clock-names = "spiclk", "apb_pclk";
246 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
247 pinctrl-names = "default";
248 pinctrl-0 = <&spi1_clk &spi1_tx &spi1_rx &spi1_cs0>;
249 #address-cells = <1>;
254 scr: rkscr@ff1d0000 {
255 compatible = "rockchip-scr";
256 reg = <0x0 0xff1d0000 0x0 0x10000>;
257 interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
258 #address-cells = <1>;
260 pinctrl-names = "default";
261 pinctrl-0 = <&scr_io &scr_detect &scr_rst &scr_clk>;
262 clocks = <&cru PCLK_SIM>;
263 clock-names = "g_pclk_sim_card";
268 soc_thermal: soc-thermal {
269 polling-delay-passive = <100>; /* milliseconds */
270 polling-delay = <1000>; /* milliseconds */
271 sustainable-power = <1600>; /* milliwatts */
273 thermal-sensors = <&tsadc 0>;
276 threshold: trip-point@0 {
277 temperature = <70000>; /* millicelsius */
278 hysteresis = <2000>; /* millicelsius */
281 target: trip-point@1 {
282 temperature = <85000>; /* millicelsius */
283 hysteresis = <2000>; /* millicelsius */
287 temperature = <95000>; /* millicelsius */
288 hysteresis = <2000>; /* millicelsius */
297 <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
302 <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
307 gpu_thermal: gpu-thermal {
308 polling-delay-passive = <100>; /* milliseconds */
309 polling-delay = <1000>; /* milliseconds */
311 thermal-sensors = <&tsadc 1>;
315 tsadc: tsadc@ff260000 {
316 compatible = "rockchip,rk3366-tsadc";
317 reg = <0x0 0xff260000 0x0 0x100>;
318 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
319 clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>;
320 clock-names = "tsadc", "apb_pclk";
321 resets = <&cru SRST_TSADC>;
322 reset-names = "tsadc-apb";
323 pinctrl-names = "default";
324 pinctrl-0 = <&tsadc_gpio>;
325 #thermal-sensor-cells = <1>;
326 rockchip,hw-tshut-temp = <95000>;
330 sdmmc: rksdmmc@ff400000 {
331 compatible = "rockchip,rk3366-dw-mshc","rockchip,rk3288-dw-mshc";
332 clock-freq-min-max = <400000 150000000>;
333 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>,
334 <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
335 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
336 fifo-depth = <0x100>;
337 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
338 reg = <0x0 0xff400000 0x0 0x4000>;
342 sdio: rksdmmc@ff410000 {
343 compatible = "rockchip,rk3366-dw-mshc","rockchip,rk3288-dw-mshc";
344 clock-freq-min-max = <400000 150000000>;
345 clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO0>,
346 <&cru SCLK_SDIO0_DRV>, <&cru SCLK_SDIO0_SAMPLE>;
347 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
348 fifo-depth = <0x100>;
349 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
350 reg = <0x0 0xff410000 0x0 0x4000>;
354 emmc: rksdmmc@ff420000 {
355 compatible = "rockchip,rk3366-dw-mshc","rockchip,rk3288-dw-mshc";
356 clock-freq-min-max = <400000 150000000>;
357 clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>,
358 <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>;
359 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
360 fifo-depth = <0x100>;
361 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
362 reg = <0x0 0xff420000 0x0 0x4000>;
367 compatible = "rockchip,rk3366-gmac";
368 reg = <0x0 0xff440000 0x0 0x10000>;
369 rockchip,grf = <&grf>;
370 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
371 interrupt-names = "macirq";
372 clocks = <&cru SCLK_MAC>, <&cru SCLK_MAC_RX>,
373 <&cru SCLK_MAC_TX>, <&cru SCLK_MACREF>,
374 <&cru SCLK_MACREF_OUT>, <&cru ACLK_GMAC>,
376 clock-names = "stmmaceth", "mac_clk_rx",
377 "mac_clk_tx", "clk_mac_ref",
378 "clk_mac_refout", "aclk_mac",
380 resets = <&cru SRST_MAC>;
381 reset-names = "stmmaceth";
386 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
387 reg = <0x0 0xff728000 0x0 0x1000>;
388 clocks = <&cru PCLK_I2C0>;
390 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
391 pinctrl-names = "default";
392 pinctrl-0 = <&i2c0_xfer>;
393 #address-cells = <1>;
399 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
400 reg = <0x0 0xff140000 0x0 0x1000>;
401 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
402 #address-cells = <1>;
405 clocks = <&cru PCLK_I2C2>;
406 pinctrl-names = "default";
407 pinctrl-0 = <&i2c2_xfer>;
412 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
413 reg = <0x0 0xff150000 0x0 0x1000>;
414 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
415 #address-cells = <1>;
418 clocks = <&cru PCLK_I2C3>;
419 pinctrl-names = "default";
420 pinctrl-0 = <&i2c3_xfer>;
425 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
426 reg = <0x0 0xff160000 0x0 0x1000>;
427 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
428 #address-cells = <1>;
431 clocks = <&cru PCLK_I2C4>;
432 pinctrl-names = "default";
433 pinctrl-0 = <&i2c4_xfer>;
438 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
439 reg = <0x0 0xff170000 0x0 0x1000>;
440 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
441 #address-cells = <1>;
444 clocks = <&cru PCLK_I2C5>;
445 pinctrl-names = "default";
446 pinctrl-0 = <&i2c5_xfer>;
450 uart0: serial@ff180000 {
451 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
452 reg = <0x0 0xff180000 0x0 0x100>;
453 clock-frequency = <24000000>;
454 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
455 clock-names = "baudclk", "apb_pclk";
456 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
459 pinctrl-names = "default";
460 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
464 uart3: serial@ff1b0000 {
465 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
466 reg = <0x0 0xff1b0000 0x0 0x100>;
467 clock-frequency = <24000000>;
468 clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
469 clock-names = "baudclk", "apb_pclk";
470 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
473 pinctrl-names = "default";
474 pinctrl-0 = <&uart3_xfer &uart3_cts &uart3_rts>;
479 compatible = "rockchip,rk336x-usb-phy";
480 rockchip,grf = <&grf>;
481 #address-cells = <1>;
497 usb_host0_echi: usb@ff480000 {
498 compatible = "generic-ehci";
499 reg = <0x0 0xff480000 0x0 0x20000>;
500 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
501 clocks = <&cru SCLK_OTG_PHY0>, <&cru HCLK_HOST>;
502 clock-names = "sclk_otgphy0", "hclk_host0";
508 usb_host0_ohci: usb@ff4a0000 {
509 compatible = "generic-ohci";
510 reg = <0x0 0xff4a0000 0x0 0x20000>;
511 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
512 clocks = <&cru SCLK_OTG_PHY0>, <&cru HCLK_HOST>;
513 clock-names = "sclk_otgphy0", "hclk_host0";
517 usb_otg: usb@ff4c0000 {
518 compatible = "rockchip,rk3368-usb", "rockchip,rk3066-usb",
520 reg = <0x0 0xff4c0000 0x0 0x40000>;
521 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
522 clocks = <&cru HCLK_OTG>;
525 g-np-tx-fifo-size = <16>;
526 g-rx-fifo-size = <275>;
527 g-tx-fifo-size = <256 128 128 64 64 32>;
533 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
534 reg = <0x0 0xff660000 0x0 0x1000>;
535 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
536 #address-cells = <1>;
539 clocks = <&cru PCLK_I2C1>;
540 pinctrl-names = "default";
541 pinctrl-0 = <&i2c1_xfer>;
546 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
547 reg = <0x0 0xff680000 0x0 0x10>;
549 pinctrl-names = "default";
550 pinctrl-0 = <&pwm0_pin>;
551 clocks = <&cru PCLK_RKPWM>;
557 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
558 reg = <0x0 0xff680010 0x0 0x10>;
560 pinctrl-names = "default";
561 pinctrl-0 = <&pwm1_pin>;
562 clocks = <&cru PCLK_RKPWM>;
568 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
569 reg = <0x0 0xff680020 0x0 0x10>;
571 clocks = <&cru PCLK_RKPWM>;
577 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
578 reg = <0x0 0xff680030 0x0 0x10>;
580 pinctrl-names = "default";
581 pinctrl-0 = <&pwm3_t2_pin>;
582 clocks = <&cru PCLK_RKPWM>;
587 uart2: serial@ff690000 {
588 compatible = "rockchip,rk3366-uart", "snps,dw-apb-uart";
589 reg = <0x0 0xff690000 0x0 0x100>;
590 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
591 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
592 clock-names = "baudclk", "apb_pclk";
595 pinctrl-names = "default";
596 pinctrl-0 = <&uart2_t1_xfer>;
600 pmu: power-management@ff730000 {
601 compatible = "rockchip,rk3366-pmu", "syscon", "simple-mfd";
602 reg = <0x0 0xff730000 0x0 0x1000>;
604 power: power-controller {
606 compatible = "rockchip,rk3366-power-controller";
607 #power-domain-cells = <1>;
608 #address-cells = <1>;
612 * Note: Although SCLK_* are the working clocks
613 * of device without including on the NOC, needed for
616 * The clocks on the which NOC:
617 * ACLK_IEP/ACLK_VOP0 are on ACLK_VIO0_NIU.
618 * ACLK_RGA/ACLK_VOP1 are on ACLK_RGA_NIU.
619 * ACLK_ISP is on ACLK_ISP_NIU.
620 * ACLK_HDCP is on ACLK_HDCP_NIU.
621 * The others (HCLK_*,PLCK_*) are on HCLK_VIO_NIU.
623 * Which clock are device clocks:
625 * *_IEP IEP:Image Enhancement Processor
626 * *_ISP ISP:Image Signal Processing
627 * *_VOP* VOP:Visual Output Processor
634 reg = <RK3366_PD_VIO>;
635 clocks = <&cru ACLK_IEP>,
639 <&cru ACLK_VOP_FULL>,
640 <&cru ACLK_VOP_LITE>,
642 <&cru DCLK_VOP_FULL>,
643 <&cru DCLK_VOP_LITE>,
647 <&cru HCLK_VOP_FULL>,
648 <&cru HCLK_VOP_LITE>,
649 <&cru HCLK_VIO_HDCPMMU>,
650 <&cru PCLK_HDMI_CTRL>,
652 <&cru PCLK_MIPI_DSI0>,
653 <&cru SCLK_VOP_FULL_PWM>,
657 <&cru SCLK_HDMI_CEC>,
658 <&cru SCLK_HDMI_HDCP>;
662 * Note: ACLK_VCODEC/HCLK_VCODEC are VCODEC
663 * (video endecoder & decoder) clocks that on the
664 * ACLK_VCODEC_NIU and HCLK_VCODEC_NIU (NOC).
667 reg = <RK3366_PD_VPU>;
668 clocks = <&cru ACLK_VIDEO>,
673 * Note: ACLK_RKVDEC/HCLK_RKVDEC are RKVDEC
674 * (video decoder) clocks that on the
675 * ACLK_RKVDEC_NIU and HCLK_RKVDEC_NIU (NOC).
678 reg = <RK3366_PD_RKVDEC>;
679 clocks = <&cru ACLK_RKVDEC>,
684 reg = <RK3366_PD_VIDEO>;
685 clocks = <&cru ACLK_VIDEO>,
689 <&cru SCLK_HEVC_CABAC>,
690 <&cru SCLK_HEVC_CORE>;
694 * Note: ACLK_GPU is the GPU clock,
695 * and on the ACLK_GPU_NIU (NOC).
698 reg = <RK3366_PD_GPU>;
699 clocks = <&cru ACLK_GPU>;
704 pmugrf: syscon@ff738000 {
705 compatible = "rockchip,rk3366-pmugrf", "syscon", "simple-mfd";
706 reg = <0x0 0xff738000 0x0 0x1000>;
709 compatible = "syscon-reboot-mode";
711 mode-normal = <BOOT_NORMAL>;
712 mode-recovery = <BOOT_RECOVERY>;
713 mode-fastboot = <BOOT_FASTBOOT>;
714 mode-loader = <BOOT_LOADER>;
719 compatible = "arm,amba-bus";
720 #address-cells = <2>;
724 dmac_peri: dma-controller@ff250000 {
725 compatible = "arm,pl330", "arm,primecell";
726 reg = <0x0 0xff250000 0x0 0x4000>;
727 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
728 <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
730 clocks = <&cru ACLK_DMAC_PERI>;
731 clock-names = "apb_pclk";
734 dmac_bus: dma-controller@ff600000 {
735 compatible = "arm,pl330", "arm,primecell";
736 reg = <0x0 0xff600000 0x0 0x4000>;
737 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
738 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
740 clocks = <&cru ACLK_DMAC_BUS>;
741 clock-names = "apb_pclk";
745 cru: clock-controller@ff760000 {
746 compatible = "rockchip,rk3366-cru";
747 reg = <0x0 0xff760000 0x0 0x1000>;
748 rockchip,grf = <&grf>;
752 <&cru SCLK_WIFIDSP>, <&cru SCLK_32K>,
753 <&cru DCLK_VOP_FULL>, <&cru DCLK_VOP_LITE>,
754 <&cru PLL_CPLL>, <&cru PLL_GPLL>,
755 <&cru PLL_NPLL>, <&cru PLL_MPLL>,
756 <&cru PLL_WPLL>, <&cru PLL_BPLL>,
757 <&cru ACLK_VOP_FULL>, <&cru ACLK_VOP_LITE>,
758 <&cru HCLK_VOP_LITE>,<&cru HCLK_VOP_LITE>,
759 <&cru ACLK_BUS>, <&cru ACLK_PERI0>,
761 assigned-clock-rates =
764 <750000000>, <576000000>,
765 <594000000>, <594000000>,
766 <960000000>, <520000000>,
767 <375000000>, <288000000>,
768 <100000000>, <100000000>,
769 <288000000>, <288000000>,
771 assigned-clock-parents =
772 <&cru SCLK_WIFI_WPLL>, <&cru SCLK_32K_INTR>,
773 <&cru SCLK_MPLL_SRC>, <&cru PLL_NPLL>;
776 grf: syscon@ff770000 {
777 compatible = "rockchip,rk3366-grf", "syscon";
778 reg = <0x0 0xff770000 0x0 0x1000>;
781 wdt: watchdog@ff800000 {
782 compatible = "snps,dw-wdt";
783 reg = <0x0 0xff800000 0x0 0x100>;
784 clocks = <&cru PCLK_WDT>;
785 interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
789 spdif: spdif@ff880000 {
790 compatible = "rockchip,rk3366-spdif";
791 reg = <0x0 0xff880000 0x0 0x1000>;
792 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
793 dmas = <&dmac_bus 3>;
795 clock-names = "mclk", "hclk";
796 clocks = <&cru SCLK_SPDIF_8CH>, <&cru HCLK_SPDIF>;
797 pinctrl-names = "default";
798 pinctrl-0 = <&spdif_bus>;
802 i2s_2ch: i2s-2ch@ff890000 {
803 compatible = "rockchip,rk3366-i2s", "rockchip,rk3066-i2s";
804 reg = <0x0 0xff890000 0x0 0x1000>;
805 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
806 dmas = <&dmac_bus 6>, <&dmac_bus 7>;
807 dma-names = "tx", "rx";
808 clock-names = "i2s_clk", "i2s_hclk";
809 clocks = <&cru SCLK_I2S_2CH>, <&cru HCLK_I2S_2CH>;
813 i2s_8ch: i2s-8ch@ff898000 {
814 compatible = "rockchip,rk3366-i2s", "rockchip,rk3066-i2s";
815 reg = <0x0 0xff898000 0x0 0x1000>;
816 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
817 dmas = <&dmac_bus 0>, <&dmac_bus 1>;
818 dma-names = "tx", "rx";
819 clock-names = "i2s_clk", "i2s_hclk";
820 clocks = <&cru SCLK_I2S_8CH>, <&cru HCLK_I2S_8CH>;
821 pinctrl-names = "default";
822 pinctrl-0 = <&i2s_8ch_bus>;
827 compatible = "rockchip,rk-fb";
828 rockchip,disp-mode = <DUAL>;
833 compatible = "rockchip,screen";
837 vop_lite: vop@ff8f0000 {
838 compatible = "rockchip,rk3366-lcdc-lite";
839 rockchip,grf = <&grf>;
840 rockchip,pwr18 = <0>;
841 rockchip,iommu-enabled = <1>;
842 reg = <0x0 0xff8f0000 0x0 0x1000>;
843 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
844 clocks = <&cru ACLK_VOP_LITE>, <&cru DCLK_VOP_LITE>, <&cru HCLK_VOP_LITE>;
845 clock-names = "aclk_lcdc", "dclk_lcdc", "hclk_lcdc";
846 resets = <&cru SRST_VOP1_AXI>, <&cru SRST_VOP1_DCLK>, <&cru SRST_VOP1_AHB>;
847 reset-names = "axi", "ahb", "dclk";
853 compatible = "rockchip,vopl_mmu";
854 reg = <0x0 0xff8f0f00 0x0 0x100>;
855 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
856 interrupt-names = "vopl_mmu";
861 compatible = "rockchip,iep";
863 reg = <0x0 0xff900000 0x0 0x800>;
864 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
865 clocks = <&cru ACLK_IEP>, <&cru HCLK_IEP>;
866 clock-names = "aclk_iep", "hclk_iep";
872 compatible = "rockchip,rga2";
874 reg = <0x0 0xff920000 0x0 0x1000>;
875 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
876 clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru SCLK_RGA>;
877 clock-names = "aclk_rga", "hclk_rga", "clk_rga";
881 vop_big: vop@ff930000 {
882 compatible = "rockchip,rk3366-lcdc-big";
883 rockchip,grf = <&grf>;
884 rockchip,prop = <PRMRY>;
885 rockchip,pwr18 = <0>;
886 rockchip,iommu-enabled = <1>;
887 reg = <0x0 0xff930000 0x0 0x23f0>;
888 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
889 clocks = <&cru ACLK_VOP_FULL>, <&cru DCLK_VOP_FULL>, <&cru HCLK_VOP_FULL>;
890 clock-names = "aclk_lcdc", "dclk_lcdc", "hclk_lcdc";
891 resets = <&cru SRST_VOP0_AXI>, <&cru SRST_VOP0_DCLK>, <&cru SRST_VOP0_AHB>;
892 reset-names = "axi", "ahb", "dclk";
898 compatible = "rockchip,vopb_mmu";
899 reg = <0x0 0xff932400 0x0 0x100>;
900 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
901 interrupt-names = "vop_mmu";
907 compatible = "rockchip,iep_mmu";
908 reg = <0x0 0xff900800 0x0 0x100>;
909 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
910 interrupt-names = "iep_mmu";
916 compatible = "rockchip,vpu_mmu";
917 reg = <0x0 0xff9a0800 0x0 0x100>;
918 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
919 interrupt-names = "vpu_mmu";
925 compatible = "rockchip,vdec_mmu";
926 reg = <0x0 0xff9b0480 0x0 0x40>,
927 <0x0 0xff9b04c0 0x0 0x40>;
928 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
929 interrupt-names = "vdec_mmu";
933 dsihost0: mipi@ff960000 {
934 compatible = "rockchip,rk3366-dsi";
936 reg = <0x0 0xff960000 0x0 0x4000>, <0x0 0xff968000 0x0 0x4000>;
937 reg-names = "mipi_dsi_host" ,"mipi_dsi_phy";
938 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
939 clocks = <&cru SCLK_MIPIDSI_24M>, <&cru PCLK_DPHYTX>, <&cru PCLK_MIPI_DSI0>;
940 clock-names = "clk_mipi_24m", "pclk_mipi_dsi", "pclk_mipi_dsi_host";
944 lvds: lvds@ff968000 {
945 compatible = "rockchip,rk3366-lvds";
946 rockchip,grf = <&grf>;
947 reg = <0x0 0xff968000 0x0 0x4000>, <0x0 0xff9600a0 0x0 0x20>;
948 reg-names = "mipi_lvds_phy", "mipi_lvds_ctl";
949 clocks = <&cru PCLK_DPHYTX>, <&cru PCLK_MIPI_DSI0>;
950 clock-names = "pclk_lvds", "pclk_lvds_ctl";
954 hdmi: hdmi@ff980000 {
955 compatible = "rockchip,rk3366-hdmi";
956 reg = <0x0 0xff980000 0x0 0x20000>;
957 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>,
958 <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
959 clocks = <&cru PCLK_HDMI_CTRL>,
960 <&cru SCLK_HDMI_HDCP>,
961 <&cru SCLK_HDMI_CEC>,
963 clock-names = "pclk_hdmi",
967 resets = <&cru SRST_HDMI>;
968 reset-names = "hdmi";
969 pinctrl-names = "default", "gpio";
970 pinctrl-0 = <&hdmii2c_xfer &hdmi_cec>;
971 pinctrl-1 = <&i2c5_gpio>;
975 vpu: vpu_service@ff9a0000 {
976 compatible = "rockchip,vpu_service";
977 rockchip,grf = <&grf>;
979 reg = <0x0 0xff9a0000 0x0 0x800>;
980 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
981 <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
982 interrupt-names = "irq_dec", "irq_enc";
983 clocks = <&cru ACLK_VIDEO>, <&cru HCLK_VIDEO>;
984 clock-names = "aclk_vcodec", "hclk_vcodec";
985 resets = <&cru SRST_VIDEO_AHB>, <&cru SRST_VIDEO_AXI>;
986 reset-names = "video_h", "video_a";
987 name = "vpu_service";
992 rkvdec: rkvdec@ff9b0000 {
993 compatible = "rockchip,rkvdec";
994 rockchip,grf = <&grf>;
996 reg = <0x0 0xff9b0000 0x0 0x400>;
997 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
998 interrupt-names = "irq_dec";
999 clocks = <&cru ACLK_RKVDEC>, <&cru HCLK_RKVDEC>,<&cru SCLK_HEVC_CABAC>,<&cru SCLK_HEVC_CORE>;
1000 clock-names = "aclk_vcodec", "hclk_vcodec", "clk_cabac", "clk_core";
1001 resets = <&cru SRST_RKVDEC_AHB>, <&cru SRST_VIDEO_AXI>;
1002 reset-names = "video_h", "video_a";
1005 status = "disabled";
1009 compatible = "rockchip,rk3366-pinctrl";
1010 rockchip,grf = <&grf>;
1011 rockchip,pmu = <&pmugrf>;
1012 #address-cells = <0x2>;
1013 #size-cells = <0x2>;
1016 gpio0: gpio0@ff750000 {
1017 compatible = "rockchip,gpio-bank";
1018 reg = <0x0 0xff750000 0x0 0x100>;
1019 clocks = <&cru PCLK_GPIO0>;
1020 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
1023 #gpio-cells = <0x2>;
1025 interrupt-controller;
1026 #interrupt-cells = <0x2>;
1029 gpio1: gpio1@ff780000 {
1030 compatible = "rockchip,gpio-bank";
1031 reg = <0x0 0xff758000 0x0 0x100>;
1032 clocks = <&cru PCLK_GPIO1>;
1033 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
1036 #gpio-cells = <0x2>;
1038 interrupt-controller;
1039 #interrupt-cells = <0x2>;
1042 gpio2: gpio2@ff790000 {
1043 compatible = "rockchip,gpio-bank";
1044 reg = <0x0 0xff790000 0x0 0x100>;
1045 clocks = <&cru PCLK_GPIO2>;
1046 interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
1049 #gpio-cells = <0x2>;
1051 interrupt-controller;
1052 #interrupt-cells = <0x2>;
1055 gpio3: gpio3@ff7a0000 {
1056 compatible = "rockchip,gpio-bank";
1057 reg = <0x0 0xff7a0000 0x0 0x100>;
1058 clocks = <&cru PCLK_GPIO3>;
1059 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
1062 #gpio-cells = <0x2>;
1064 interrupt-controller;
1065 #interrupt-cells = <0x2>;
1068 gpio4: gpio4@ff7b0000 {
1069 compatible = "rockchip,gpio-bank";
1070 reg = <0x0 0xff7b0000 0x0 0x100>;
1071 clocks = <&cru PCLK_GPIO4>;
1072 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
1075 #gpio-cells = <0x2>;
1077 interrupt-controller;
1078 #interrupt-cells = <0x2>;
1081 gpio5: gpio5@ff7c0000 {
1082 compatible = "rockchip,gpio-bank";
1083 reg = <0x0 0xff7c0000 0x0 0x100>;
1084 clocks = <&cru PCLK_GPIO5>;
1085 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
1088 #gpio-cells = <0x2>;
1090 interrupt-controller;
1091 #interrupt-cells = <0x2>;
1094 pcfg_pull_up: pcfg-pull-up {
1098 pcfg_pull_down: pcfg-pull-down {
1102 pcfg_pull_none: pcfg-pull-none {
1106 pcfg_pull_none_12ma: pcfg-pull-none-12ma {
1108 drive-strength = <12>;
1112 emmc_clk: emmc-clk {
1114 <3 4 RK_FUNC_2 &pcfg_pull_none>;
1117 emmc_cmd: emmc-cmd {
1119 <2 26 RK_FUNC_2 &pcfg_pull_up>;
1122 emmc_pwr: emmc-pwr {
1124 <2 27 RK_FUNC_2 &pcfg_pull_up>;
1127 emmc_bus1: emmc-bus1 {
1129 <2 18 RK_FUNC_2 &pcfg_pull_up>;
1132 emmc_bus4: emmc-bus4 {
1134 <2 18 RK_FUNC_2 &pcfg_pull_up>,
1135 <2 19 RK_FUNC_2 &pcfg_pull_up>,
1136 <2 20 RK_FUNC_2 &pcfg_pull_up>,
1137 <2 21 RK_FUNC_2 &pcfg_pull_up>;
1140 emmc_bus8: emmc-bus8 {
1142 <2 18 RK_FUNC_2 &pcfg_pull_up>,
1143 <2 19 RK_FUNC_2 &pcfg_pull_up>,
1144 <2 20 RK_FUNC_2 &pcfg_pull_up>,
1145 <2 21 RK_FUNC_2 &pcfg_pull_up>,
1146 <2 22 RK_FUNC_2 &pcfg_pull_up>,
1147 <2 23 RK_FUNC_2 &pcfg_pull_up>,
1148 <2 24 RK_FUNC_2 &pcfg_pull_up>,
1149 <2 25 RK_FUNC_2 &pcfg_pull_up>;
1154 sdmmc_cd: sdmmc-cd {
1155 rockchip,pins = <0 9 RK_FUNC_1 &pcfg_pull_up>;
1158 sdmmc_bus1: sdmmc-bus1 {
1159 rockchip,pins = <5 0 RK_FUNC_1 &pcfg_pull_up>;
1162 sdmmc_bus4: sdmmc-bus4 {
1163 rockchip,pins = <5 0 RK_FUNC_1 &pcfg_pull_up>,
1164 <5 1 RK_FUNC_1 &pcfg_pull_up>,
1165 <5 2 RK_FUNC_1 &pcfg_pull_up>,
1166 <5 3 RK_FUNC_1 &pcfg_pull_up>;
1169 sdmmc_clk: sdmmc-clk {
1170 rockchip,pins = <5 4 RK_FUNC_1 &pcfg_pull_none>;
1173 sdmmc_cmd: sdmmc-cmd {
1174 rockchip,pins = <5 5 RK_FUNC_1 &pcfg_pull_up>;
1179 sdio_bus1: sdio-bus1 {
1180 rockchip,pins = <3 12 RK_FUNC_1 &pcfg_pull_up>;
1183 sdio_bus4: sdio-bus4 {
1184 rockchip,pins = <3 12 RK_FUNC_1 &pcfg_pull_up>,
1185 <3 13 RK_FUNC_1 &pcfg_pull_up>,
1186 <3 14 RK_FUNC_1 &pcfg_pull_up>,
1187 <3 15 RK_FUNC_1 &pcfg_pull_up>;
1190 sdio_cmd: sdio-cmd {
1191 rockchip,pins = <3 16 RK_FUNC_1 &pcfg_pull_up>;
1194 sdio_clk: sdio-clk {
1195 rockchip,pins = <3 17 RK_FUNC_1 &pcfg_pull_none>;
1199 rockchip,pins = <3 18 RK_FUNC_1 &pcfg_pull_up>;
1203 rockchip,pins = <3 19 RK_FUNC_1 &pcfg_pull_up>;
1206 sdio_int: sdio-int {
1207 rockchip,pins = <3 20 RK_FUNC_1 &pcfg_pull_up>;
1210 sdio_pwr: sdio-pwr {
1211 rockchip,pins = <3 21 RK_FUNC_1 &pcfg_pull_up>;
1216 hdmii2c_xfer: hdmii2c-xfer {
1218 <5 13 RK_FUNC_2 &pcfg_pull_none>,
1219 <5 14 RK_FUNC_2 &pcfg_pull_none>;
1224 hdmi_cec: hdmi-cec {
1226 <5 12 RK_FUNC_1 &pcfg_pull_none>;
1231 i2c0_xfer: i2c0-xfer {
1233 <0 3 RK_FUNC_1 &pcfg_pull_none>,
1234 <0 4 RK_FUNC_1 &pcfg_pull_none>;
1239 i2c1_xfer: i2c1-xfer {
1241 <4 25 RK_FUNC_1 &pcfg_pull_none>,
1242 <4 26 RK_FUNC_1 &pcfg_pull_none>;
1247 i2c2_xfer: i2c2-xfer {
1249 <5 15 RK_FUNC_2 &pcfg_pull_none>,
1250 <5 16 RK_FUNC_2 &pcfg_pull_none>;
1253 i2c2_gpio: i2c2-gpio {
1255 <5 15 RK_FUNC_GPIO &pcfg_pull_none>,
1256 <5 16 RK_FUNC_GPIO &pcfg_pull_none>;
1261 i2c3_xfer: i2c3-xfer {
1263 <2 16 RK_FUNC_2 &pcfg_pull_none>,
1264 <2 17 RK_FUNC_2 &pcfg_pull_none>;
1269 i2c4_xfer: i2c4-xfer {
1271 <5 8 RK_FUNC_1 &pcfg_pull_none>,
1272 <5 9 RK_FUNC_1 &pcfg_pull_none>;
1275 i2c4_gpio: i2c4-gpio {
1277 <5 8 RK_FUNC_GPIO &pcfg_pull_none>,
1278 <5 9 RK_FUNC_GPIO &pcfg_pull_none>;
1283 i2c5_xfer: i2c5-xfer {
1285 <5 13 RK_FUNC_1 &pcfg_pull_none>,
1286 <5 14 RK_FUNC_1 &pcfg_pull_none>;
1288 i2c5_gpio: i2c5-gpio {
1290 <5 13 RK_FUNC_GPIO &pcfg_pull_none>,
1291 <5 14 RK_FUNC_GPIO &pcfg_pull_none>;
1296 i2s_8ch_bus: i2s-8ch-bus {
1298 <4 16 RK_FUNC_1 &pcfg_pull_none>,
1299 <4 17 RK_FUNC_1 &pcfg_pull_none>,
1300 <4 18 RK_FUNC_1 &pcfg_pull_none>,
1301 <4 19 RK_FUNC_1 &pcfg_pull_none>,
1302 <4 20 RK_FUNC_1 &pcfg_pull_none>,
1303 <4 21 RK_FUNC_1 &pcfg_pull_none>,
1304 <4 22 RK_FUNC_1 &pcfg_pull_none>,
1305 <4 23 RK_FUNC_1 &pcfg_pull_none>,
1306 <4 24 RK_FUNC_1 &pcfg_pull_none>;
1311 spdif_bus: spdif-bus {
1313 <5 19 RK_FUNC_1 &pcfg_pull_none>;
1318 spi0_clk: spi0-clk {
1320 <2 29 RK_FUNC_2 &pcfg_pull_up>;
1322 spi0_cs0: spi0-cs0 {
1324 <2 24 RK_FUNC_3 &pcfg_pull_up>;
1326 spi0_cs1: spi0-cs1 {
1328 <2 25 RK_FUNC_3 &pcfg_pull_up>;
1332 <2 23 RK_FUNC_3 &pcfg_pull_up>;
1336 <2 22 RK_FUNC_3 &pcfg_pull_up>;
1341 spi1_clk: spi1-clk {
1343 <2 4 RK_FUNC_3 &pcfg_pull_up>;
1345 spi1_cs0: spi1-cs0 {
1347 <2 5 RK_FUNC_3 &pcfg_pull_up>;
1351 <2 6 RK_FUNC_3 &pcfg_pull_up>;
1355 <2 7 RK_FUNC_3 &pcfg_pull_up>;
1362 <5 8 RK_FUNC_2 &pcfg_pull_none>;
1367 <5 9 RK_FUNC_2 &pcfg_pull_up>;
1372 <5 10 RK_FUNC_1 &pcfg_pull_none>;
1375 scr_detect: scr-detect {
1377 <5 11 RK_FUNC_1 &pcfg_pull_none>;
1382 uart0_xfer: uart0-xfer {
1384 <3 8 RK_FUNC_1 &pcfg_pull_up>,
1385 <3 9 RK_FUNC_1 &pcfg_pull_none>;
1388 uart0_cts: uart0-cts {
1390 <3 10 RK_FUNC_1 &pcfg_pull_none>;
1393 uart0_rts: uart0-rts {
1395 <3 11 RK_FUNC_1 &pcfg_pull_none>;
1400 uart2_t0_xfer: uart2_t0-xfer {
1402 <0 22 RK_FUNC_1 &pcfg_pull_up>,
1403 <0 21 RK_FUNC_1 &pcfg_pull_none>;
1405 /* no rts / cts for uart2 */
1409 uart2_t1_xfer: uart2_t1-xfer {
1411 <5 0 RK_FUNC_2 &pcfg_pull_up>,
1412 <5 1 RK_FUNC_2 &pcfg_pull_none>;
1414 /* no rts / cts for uart2 */
1418 uart2_t2_xfer: uart2_t2-xfer {
1420 <5 14 RK_FUNC_3 &pcfg_pull_up>,
1421 <5 13 RK_FUNC_3 &pcfg_pull_none>;
1423 /* no rts / cts for uart2 */
1427 uart3_xfer: uart3-xfer {
1429 <5 15 RK_FUNC_1 &pcfg_pull_up>,
1430 <5 16 RK_FUNC_1 &pcfg_pull_none>;
1433 uart3_cts: uart3-cts {
1435 <5 17 RK_FUNC_1 &pcfg_pull_none>;
1438 uart3_rts: uart3-rts {
1440 <5 18 RK_FUNC_1 &pcfg_pull_none>;
1445 pwm0_pin: pwm0-pin {
1447 <0 8 RK_FUNC_1 &pcfg_pull_none>;
1452 pwm1_pin: pwm1-pin {
1454 <1 6 RK_FUNC_2 &pcfg_pull_none>;
1459 pwm2_t0_pin: pwm2_t0-pin {
1461 <2 15 RK_FUNC_3 &pcfg_pull_none>;
1466 pwm2_t1_pin: pwm2_t1-pin {
1468 <5 17 RK_FUNC_2 &pcfg_pull_none>;
1473 pwm3_t0_pin: pwm3_t0-pin {
1475 <1 0 RK_FUNC_2 &pcfg_pull_none>;
1480 pwm3_t1_pin: pwm3_t1-pin {
1482 <0 21 RK_FUNC_2 &pcfg_pull_none>;
1487 pwm3_t2_pin: pwm3_t2-pin {
1489 <5 18 RK_FUNC_2 &pcfg_pull_none>;
1494 lcdc_lcdc: lcdc-lcdc {
1496 <0 24 RK_FUNC_2 &pcfg_pull_none>, /* HSYNC */
1497 <0 25 RK_FUNC_2 &pcfg_pull_none>, /* VSYNC */
1498 <0 26 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D10 */
1499 <0 27 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D11 */
1500 <0 28 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D12 */
1501 <0 29 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D13 */
1502 <0 30 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D14 */
1503 <0 31 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D15 */
1504 <1 0 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D16 */
1505 <1 1 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D17 */
1506 <1 2 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D18 */
1507 <1 3 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D19 */
1508 <1 4 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D20 */
1509 <1 5 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D21 */
1510 <1 6 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D22 */
1511 <1 7 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D23 */
1512 <1 8 RK_FUNC_1 &pcfg_pull_none>, /* DEN */
1513 <1 9 RK_FUNC_1 &pcfg_pull_none>; /* DCLK */
1516 lcdc_gpio: lcdc-gpio {
1518 <0 24 RK_FUNC_GPIO &pcfg_pull_none>, /* HSYNC */
1519 <0 25 RK_FUNC_GPIO &pcfg_pull_none>, /* VSYNC */
1520 <0 26 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D10 */
1521 <0 27 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D11 */
1522 <0 28 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D12 */
1523 <0 29 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D13 */
1524 <0 30 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D14 */
1525 <0 31 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D15 */
1526 <1 0 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D16 */
1527 <1 1 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D17 */
1528 <1 2 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D18 */
1529 <1 3 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D19 */
1530 <1 4 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D20 */
1531 <1 5 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D21 */
1532 <1 6 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D22 */
1533 <1 7 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D23 */
1534 <1 8 RK_FUNC_GPIO &pcfg_pull_none>, /* DEN */
1535 <1 9 RK_FUNC_GPIO &pcfg_pull_none>; /* DCLK */
1540 rgmii_pins: rgmii-pins {
1543 <2 7 RK_FUNC_1 &pcfg_pull_none>,
1545 <2 6 RK_FUNC_1 &pcfg_pull_none>,
1547 <2 5 RK_FUNC_1 &pcfg_pull_none_12ma>,
1549 <2 4 RK_FUNC_1 &pcfg_pull_none_12ma>,
1551 <2 3 RK_FUNC_1 &pcfg_pull_none>,
1553 <2 2 RK_FUNC_1 &pcfg_pull_none>,
1555 <2 1 RK_FUNC_1 &pcfg_pull_none_12ma>,
1557 <2 0 RK_FUNC_1 &pcfg_pull_none>,
1559 <2 17 RK_FUNC_1 &pcfg_pull_none_12ma>,
1561 /* <2 15 RK_FUNC_1 &pcfg_pull_none>, */
1563 <2 14 RK_FUNC_1 &pcfg_pull_none>,
1565 <2 13 RK_FUNC_1 &pcfg_pull_none>,
1567 <2 12 RK_FUNC_1 &pcfg_pull_none_12ma>,
1569 <2 11 RK_FUNC_1 &pcfg_pull_none>,
1571 /* <2 10 RK_FUNC_1 &pcfg_pull_none>, */
1573 <2 9 RK_FUNC_1 &pcfg_pull_none>,
1575 <2 8 RK_FUNC_1 &pcfg_pull_none>;
1578 rmii_pins: rmii-pins {
1581 <2 3 RK_FUNC_1 &pcfg_pull_none>,
1583 <2 2 RK_FUNC_1 &pcfg_pull_none>,
1585 <2 1 RK_FUNC_1 &pcfg_pull_none>,
1587 <2 0 RK_FUNC_1 &pcfg_pull_none>,
1589 /* <2 15 RK_FUNC_1 &pcfg_pull_none>, */
1591 <2 14 RK_FUNC_1 &pcfg_pull_none>,
1593 <2 13 RK_FUNC_1 &pcfg_pull_none>,
1595 <2 12 RK_FUNC_1 &pcfg_pull_none>,
1597 <2 11 RK_FUNC_1 &pcfg_pull_none>,
1599 /* <2 10 RK_FUNC_1 &pcfg_pull_none>, */
1601 <2 9 RK_FUNC_1 &pcfg_pull_none>,
1603 <2 8 RK_FUNC_1 &pcfg_pull_none>;
1608 eth_phy_pwr: eth-phy-pwr {
1610 <0 25 RK_FUNC_GPIO &pcfg_pull_none>;
1615 tsadc_gpio: tsadc-gpio {
1617 <0 22 RK_FUNC_GPIO &pcfg_pull_none>;
1620 tsadc_int: tsadc-int {
1622 <0 22 RK_FUNC_2 &pcfg_pull_none>;
1628 compatible = "arm,malit764",
1633 reg = <0x0 0xffa30000 0 0x10000>;
1635 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
1636 <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>,
1637 <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
1638 interrupt-names = "GPU", "MMU", "JOB";
1640 clocks = <&cru ACLK_GPU>;
1641 clock-names = "clk_mali";
1642 #cooling-cells = <2>; /* min followed by max */
1643 operating-points-v2 = <&gpu_opp_table>;
1644 status = "disabled";
1647 compatible = "arm,mali-simple-power-model";
1650 static-power = <300>;
1651 dynamic-power = <1780>;
1652 ts = <32000 4700 (-80) 2>;
1653 thermal-zone = "gpu-thermal";
1657 gpu_opp_table: gpu_opp_table {
1658 compatible = "operating-points-v2";
1662 opp-hz = /bits/ 64 <96000000>;
1663 opp-microvolt = <1100000>;
1666 opp-hz = /bits/ 64 <192000000>;
1667 opp-microvolt = <1100000>;
1670 opp-hz = /bits/ 64 <288000000>;
1671 opp-microvolt = <1100000>;
1674 opp-hz = /bits/ 64 <375000000>;
1675 opp-microvolt = <1125000>;
1678 opp-hz = /bits/ 64 <480000000>;
1679 opp-microvolt = <1200000>;