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>;
478 usb_host0_ehci: usb@ff480000 {
479 compatible = "generic-ehci";
480 reg = <0x0 0xff480000 0x0 0x20000>;
481 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
482 clocks = <&cru SCLK_USBPHY480M>, <&cru HCLK_HOST>;
483 clock-names = "usbphy_480m", "hclk_host0";
484 phys = <&u2phy_host>;
489 usb_host0_ohci: usb@ff4a0000 {
490 compatible = "generic-ohci";
491 reg = <0x0 0xff4a0000 0x0 0x20000>;
492 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
493 clocks = <&cru SCLK_USBPHY480M>, <&cru HCLK_HOST>;
494 clock-names = "usbphy_480m", "hclk_host0";
495 phys = <&u2phy_host>;
500 usb_otg: usb@ff4c0000 {
501 compatible = "rockchip,rk3368-usb", "rockchip,rk3066-usb",
503 reg = <0x0 0xff4c0000 0x0 0x40000>;
504 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
505 clocks = <&cru HCLK_OTG>;
508 g-np-tx-fifo-size = <16>;
509 g-rx-fifo-size = <275>;
510 g-tx-fifo-size = <256 128 128 64 64 32>;
516 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
517 reg = <0x0 0xff660000 0x0 0x1000>;
518 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
519 #address-cells = <1>;
522 clocks = <&cru PCLK_I2C1>;
523 pinctrl-names = "default";
524 pinctrl-0 = <&i2c1_xfer>;
529 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
530 reg = <0x0 0xff680000 0x0 0x10>;
532 pinctrl-names = "default";
533 pinctrl-0 = <&pwm0_pin>;
534 clocks = <&cru PCLK_RKPWM>;
540 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
541 reg = <0x0 0xff680010 0x0 0x10>;
543 pinctrl-names = "default";
544 pinctrl-0 = <&pwm1_pin>;
545 clocks = <&cru PCLK_RKPWM>;
551 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
552 reg = <0x0 0xff680020 0x0 0x10>;
554 clocks = <&cru PCLK_RKPWM>;
560 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
561 reg = <0x0 0xff680030 0x0 0x10>;
563 pinctrl-names = "default";
564 pinctrl-0 = <&pwm3_t2_pin>;
565 clocks = <&cru PCLK_RKPWM>;
570 uart2: serial@ff690000 {
571 compatible = "rockchip,rk3366-uart", "snps,dw-apb-uart";
572 reg = <0x0 0xff690000 0x0 0x100>;
573 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
574 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
575 clock-names = "baudclk", "apb_pclk";
578 pinctrl-names = "default";
579 pinctrl-0 = <&uart2_t1_xfer>;
583 pmu: power-management@ff730000 {
584 compatible = "rockchip,rk3366-pmu", "syscon", "simple-mfd";
585 reg = <0x0 0xff730000 0x0 0x1000>;
587 power: power-controller {
589 compatible = "rockchip,rk3366-power-controller";
590 #power-domain-cells = <1>;
591 #address-cells = <1>;
595 * Note: Although SCLK_* are the working clocks
596 * of device without including on the NOC, needed for
599 * The clocks on the which NOC:
600 * ACLK_IEP/ACLK_VOP0 are on ACLK_VIO0_NIU.
601 * ACLK_RGA/ACLK_VOP1 are on ACLK_RGA_NIU.
602 * ACLK_ISP is on ACLK_ISP_NIU.
603 * ACLK_HDCP is on ACLK_HDCP_NIU.
604 * The others (HCLK_*,PLCK_*) are on HCLK_VIO_NIU.
606 * Which clock are device clocks:
608 * *_IEP IEP:Image Enhancement Processor
609 * *_ISP ISP:Image Signal Processing
610 * *_VOP* VOP:Visual Output Processor
617 reg = <RK3366_PD_VIO>;
618 clocks = <&cru ACLK_IEP>,
622 <&cru ACLK_VOP_FULL>,
623 <&cru ACLK_VOP_LITE>,
625 <&cru DCLK_VOP_FULL>,
626 <&cru DCLK_VOP_LITE>,
630 <&cru HCLK_VOP_FULL>,
631 <&cru HCLK_VOP_LITE>,
632 <&cru HCLK_VIO_HDCPMMU>,
633 <&cru PCLK_HDMI_CTRL>,
635 <&cru PCLK_MIPI_DSI0>,
636 <&cru SCLK_VOP_FULL_PWM>,
640 <&cru SCLK_HDMI_CEC>,
641 <&cru SCLK_HDMI_HDCP>;
645 * Note: ACLK_VCODEC/HCLK_VCODEC are VCODEC
646 * (video endecoder & decoder) clocks that on the
647 * ACLK_VCODEC_NIU and HCLK_VCODEC_NIU (NOC).
650 reg = <RK3366_PD_VPU>;
651 clocks = <&cru ACLK_VIDEO>,
656 * Note: ACLK_RKVDEC/HCLK_RKVDEC are RKVDEC
657 * (video decoder) clocks that on the
658 * ACLK_RKVDEC_NIU and HCLK_RKVDEC_NIU (NOC).
661 reg = <RK3366_PD_RKVDEC>;
662 clocks = <&cru ACLK_RKVDEC>,
667 reg = <RK3366_PD_VIDEO>;
668 clocks = <&cru ACLK_VIDEO>,
672 <&cru SCLK_HEVC_CABAC>,
673 <&cru SCLK_HEVC_CORE>;
677 * Note: ACLK_GPU is the GPU clock,
678 * and on the ACLK_GPU_NIU (NOC).
681 reg = <RK3366_PD_GPU>;
682 clocks = <&cru ACLK_GPU>;
687 pmugrf: syscon@ff738000 {
688 compatible = "rockchip,rk3366-pmugrf", "syscon", "simple-mfd";
689 reg = <0x0 0xff738000 0x0 0x1000>;
692 compatible = "syscon-reboot-mode";
694 mode-normal = <BOOT_NORMAL>;
695 mode-recovery = <BOOT_RECOVERY>;
696 mode-fastboot = <BOOT_FASTBOOT>;
697 mode-loader = <BOOT_LOADER>;
701 compatible = "rockchip,rk3366-pmu-pvtm";
702 clocks = <&cru SCLK_PVTM_PMU>;
709 compatible = "arm,amba-bus";
710 #address-cells = <2>;
714 dmac_peri: dma-controller@ff250000 {
715 compatible = "arm,pl330", "arm,primecell";
716 reg = <0x0 0xff250000 0x0 0x4000>;
717 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
718 <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
720 clocks = <&cru ACLK_DMAC_PERI>;
721 clock-names = "apb_pclk";
722 peripherals-req-type-burst;
725 dmac_bus: dma-controller@ff600000 {
726 compatible = "arm,pl330", "arm,primecell";
727 reg = <0x0 0xff600000 0x0 0x4000>;
728 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
729 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
731 clocks = <&cru ACLK_DMAC_BUS>;
732 clock-names = "apb_pclk";
733 peripherals-req-type-burst;
737 cru: clock-controller@ff760000 {
738 compatible = "rockchip,rk3366-cru";
739 reg = <0x0 0xff760000 0x0 0x1000>;
740 rockchip,grf = <&grf>;
744 <&cru SCLK_WIFIDSP>, <&cru SCLK_32K>,
745 <&cru DCLK_VOP_FULL>, <&cru DCLK_VOP_LITE>,
746 <&cru SCLK_I2S_8CH_SRC>, <&cru SCLK_I2S_2CH_SRC>,
747 <&cru SCLK_SPDIF_8CH_SRC>,
748 <&cru PLL_CPLL>, <&cru PLL_GPLL>,
749 <&cru PLL_NPLL>, <&cru PLL_MPLL>,
750 <&cru PLL_WPLL>, <&cru PLL_BPLL>,
751 <&cru ACLK_VOP_FULL>, <&cru ACLK_VOP_LITE>,
752 <&cru HCLK_VOP_LITE>,<&cru HCLK_VOP_LITE>,
753 <&cru ACLK_BUS>, <&cru ACLK_PERI0>,
755 assigned-clock-rates =
760 <750000000>, <576000000>,
761 <594000000>, <594000000>,
762 <960000000>, <520000000>,
763 <375000000>, <288000000>,
764 <100000000>, <100000000>,
765 <288000000>, <288000000>,
767 assigned-clock-parents =
768 <&cru SCLK_WIFI_WPLL>, <&cru SCLK_32K_INTR>,
769 <&cru SCLK_MPLL_SRC>, <&cru PLL_NPLL>,
770 <&cru PLL_GPLL>, <&cru PLL_GPLL>,
774 grf: syscon@ff770000 {
775 compatible = "rockchip,rk3366-grf", "syscon", "simple-mfd";
776 reg = <0x0 0xff770000 0x0 0x1000>;
777 #address-cells = <1>;
780 u2phy: usb2-phy@700 {
781 compatible = "rockchip,rk3366-usb2phy";
783 clocks = <&cru SCLK_OTG_PHY0>;
784 clock-names = "phyclk";
786 clock-output-names = "sclk_otgphy0_480m";
788 u2phy_host: host-port {
790 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
791 interrupt-names = "linestate";
797 compatible = "rockchip,rk3366-pvtm";
798 clocks = <&cru SCLK_PVTM_CORE>, <&cru SCLK_PVTM_GPU>;
799 clock-names = "core", "gpu";
804 wdt: watchdog@ff800000 {
805 compatible = "snps,dw-wdt";
806 reg = <0x0 0xff800000 0x0 0x100>;
807 clocks = <&cru PCLK_WDT>;
808 interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
812 spdif: spdif@ff880000 {
813 compatible = "rockchip,rk3366-spdif";
814 reg = <0x0 0xff880000 0x0 0x1000>;
815 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
816 dmas = <&dmac_bus 3>;
818 clock-names = "mclk", "hclk";
819 clocks = <&cru SCLK_SPDIF_8CH>, <&cru HCLK_SPDIF>;
820 pinctrl-names = "default";
821 pinctrl-0 = <&spdif_bus>;
825 i2s_2ch: i2s-2ch@ff890000 {
826 compatible = "rockchip,rk3366-i2s", "rockchip,rk3066-i2s";
827 reg = <0x0 0xff890000 0x0 0x1000>;
828 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
829 dmas = <&dmac_bus 6>, <&dmac_bus 7>;
830 dma-names = "tx", "rx";
831 clock-names = "i2s_clk", "i2s_hclk";
832 clocks = <&cru SCLK_I2S_2CH>, <&cru HCLK_I2S_2CH>;
836 i2s_8ch: i2s-8ch@ff898000 {
837 compatible = "rockchip,rk3366-i2s", "rockchip,rk3066-i2s";
838 reg = <0x0 0xff898000 0x0 0x1000>;
839 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
840 dmas = <&dmac_bus 0>, <&dmac_bus 1>;
841 dma-names = "tx", "rx";
842 clock-names = "i2s_clk", "i2s_hclk";
843 clocks = <&cru SCLK_I2S_8CH>, <&cru HCLK_I2S_8CH>;
844 pinctrl-names = "default";
845 pinctrl-0 = <&i2s_8ch_bus>;
850 compatible = "rockchip,rk-fb";
851 rockchip,disp-mode = <DUAL>;
856 compatible = "rockchip,screen";
860 vop_lite: vop@ff8f0000 {
861 compatible = "rockchip,rk3366-lcdc-lite";
862 rockchip,grf = <&grf>;
863 rockchip,pwr18 = <0>;
864 rockchip,iommu-enabled = <1>;
865 reg = <0x0 0xff8f0000 0x0 0x1000>;
866 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
867 clocks = <&cru ACLK_VOP_LITE>, <&cru DCLK_VOP_LITE>, <&cru HCLK_VOP_LITE>;
868 clock-names = "aclk_lcdc", "dclk_lcdc", "hclk_lcdc";
869 resets = <&cru SRST_VOP1_AXI>, <&cru SRST_VOP1_DCLK>, <&cru SRST_VOP1_AHB>;
870 reset-names = "axi", "ahb", "dclk";
876 compatible = "rockchip,vopl_mmu";
877 reg = <0x0 0xff8f0f00 0x0 0x100>;
878 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
879 interrupt-names = "vopl_mmu";
884 compatible = "rockchip,iep";
886 reg = <0x0 0xff900000 0x0 0x800>;
887 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
888 clocks = <&cru ACLK_IEP>, <&cru HCLK_IEP>;
889 clock-names = "aclk_iep", "hclk_iep";
895 compatible = "rockchip,rga2";
897 reg = <0x0 0xff920000 0x0 0x1000>;
898 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
899 clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru SCLK_RGA>;
900 clock-names = "aclk_rga", "hclk_rga", "clk_rga";
904 vop_big: vop@ff930000 {
905 compatible = "rockchip,rk3366-lcdc-big";
906 rockchip,grf = <&grf>;
907 rockchip,prop = <PRMRY>;
908 rockchip,pwr18 = <0>;
909 rockchip,iommu-enabled = <1>;
910 reg = <0x0 0xff930000 0x0 0x23f0>;
911 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
912 clocks = <&cru ACLK_VOP_FULL>, <&cru DCLK_VOP_FULL>, <&cru HCLK_VOP_FULL>;
913 clock-names = "aclk_lcdc", "dclk_lcdc", "hclk_lcdc";
914 resets = <&cru SRST_VOP0_AXI>, <&cru SRST_VOP0_DCLK>, <&cru SRST_VOP0_AHB>;
915 reset-names = "axi", "ahb", "dclk";
921 compatible = "rockchip,vopb_mmu";
922 reg = <0x0 0xff932400 0x0 0x100>;
923 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
924 interrupt-names = "vop_mmu";
930 compatible = "rockchip,iep_mmu";
931 reg = <0x0 0xff900800 0x0 0x100>;
932 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
933 interrupt-names = "iep_mmu";
939 compatible = "rockchip,vpu_mmu";
940 reg = <0x0 0xff9a0800 0x0 0x100>;
941 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
942 interrupt-names = "vpu_mmu";
948 compatible = "rockchip,vdec_mmu";
949 reg = <0x0 0xff9b0480 0x0 0x40>,
950 <0x0 0xff9b04c0 0x0 0x40>;
951 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
952 interrupt-names = "vdec_mmu";
956 dsihost0: mipi@ff960000 {
957 compatible = "rockchip,rk3366-dsi";
959 reg = <0x0 0xff960000 0x0 0x4000>, <0x0 0xff968000 0x0 0x4000>;
960 reg-names = "mipi_dsi_host" ,"mipi_dsi_phy";
961 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
962 clocks = <&cru SCLK_MIPIDSI_24M>, <&cru PCLK_DPHYTX>, <&cru PCLK_MIPI_DSI0>;
963 clock-names = "clk_mipi_24m", "pclk_mipi_dsi", "pclk_mipi_dsi_host";
967 lvds: lvds@ff968000 {
968 compatible = "rockchip,rk3366-lvds";
969 rockchip,grf = <&grf>;
970 reg = <0x0 0xff968000 0x0 0x4000>, <0x0 0xff9600a0 0x0 0x20>;
971 reg-names = "mipi_lvds_phy", "mipi_lvds_ctl";
972 clocks = <&cru PCLK_DPHYTX>, <&cru PCLK_MIPI_DSI0>;
973 clock-names = "pclk_lvds", "pclk_lvds_ctl";
977 hdmi: hdmi@ff980000 {
978 compatible = "rockchip,rk3366-hdmi";
979 reg = <0x0 0xff980000 0x0 0x20000>;
980 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>,
981 <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
982 clocks = <&cru PCLK_HDMI_CTRL>,
983 <&cru SCLK_HDMI_HDCP>,
984 <&cru SCLK_HDMI_CEC>,
986 clock-names = "pclk_hdmi",
990 resets = <&cru SRST_HDMI>;
991 reset-names = "hdmi";
992 pinctrl-names = "default", "gpio";
993 pinctrl-0 = <&hdmii2c_xfer &hdmi_cec>;
994 pinctrl-1 = <&i2c5_gpio>;
998 vpu: vpu_service@ff9a0000 {
999 compatible = "rockchip,vpu_service";
1000 rockchip,grf = <&grf>;
1001 iommu_enabled = <1>;
1002 reg = <0x0 0xff9a0000 0x0 0x800>;
1003 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
1004 <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
1005 interrupt-names = "irq_dec", "irq_enc";
1006 clocks = <&cru ACLK_VIDEO>, <&cru HCLK_VIDEO>;
1007 clock-names = "aclk_vcodec", "hclk_vcodec";
1008 resets = <&cru SRST_VIDEO_AHB>, <&cru SRST_VIDEO_AXI>;
1009 reset-names = "video_h", "video_a";
1010 name = "vpu_service";
1012 status = "disabled";
1015 rkvdec: rkvdec@ff9b0000 {
1016 compatible = "rockchip,rkvdec";
1017 rockchip,grf = <&grf>;
1018 iommu_enabled = <1>;
1019 reg = <0x0 0xff9b0000 0x0 0x400>;
1020 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
1021 interrupt-names = "irq_dec";
1022 clocks = <&cru ACLK_RKVDEC>, <&cru HCLK_RKVDEC>,<&cru SCLK_HEVC_CABAC>,<&cru SCLK_HEVC_CORE>;
1023 clock-names = "aclk_vcodec", "hclk_vcodec", "clk_cabac", "clk_core";
1024 resets = <&cru SRST_RKVDEC_AHB>, <&cru SRST_VIDEO_AXI>;
1025 reset-names = "video_h", "video_a";
1028 status = "disabled";
1032 compatible = "rockchip,rk3366-pinctrl";
1033 rockchip,grf = <&grf>;
1034 rockchip,pmu = <&pmugrf>;
1035 #address-cells = <0x2>;
1036 #size-cells = <0x2>;
1039 gpio0: gpio0@ff750000 {
1040 compatible = "rockchip,gpio-bank";
1041 reg = <0x0 0xff750000 0x0 0x100>;
1042 clocks = <&cru PCLK_GPIO0>;
1043 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
1046 #gpio-cells = <0x2>;
1048 interrupt-controller;
1049 #interrupt-cells = <0x2>;
1052 gpio1: gpio1@ff780000 {
1053 compatible = "rockchip,gpio-bank";
1054 reg = <0x0 0xff758000 0x0 0x100>;
1055 clocks = <&cru PCLK_GPIO1>;
1056 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
1059 #gpio-cells = <0x2>;
1061 interrupt-controller;
1062 #interrupt-cells = <0x2>;
1065 gpio2: gpio2@ff790000 {
1066 compatible = "rockchip,gpio-bank";
1067 reg = <0x0 0xff790000 0x0 0x100>;
1068 clocks = <&cru PCLK_GPIO2>;
1069 interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
1072 #gpio-cells = <0x2>;
1074 interrupt-controller;
1075 #interrupt-cells = <0x2>;
1078 gpio3: gpio3@ff7a0000 {
1079 compatible = "rockchip,gpio-bank";
1080 reg = <0x0 0xff7a0000 0x0 0x100>;
1081 clocks = <&cru PCLK_GPIO3>;
1082 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
1085 #gpio-cells = <0x2>;
1087 interrupt-controller;
1088 #interrupt-cells = <0x2>;
1091 gpio4: gpio4@ff7b0000 {
1092 compatible = "rockchip,gpio-bank";
1093 reg = <0x0 0xff7b0000 0x0 0x100>;
1094 clocks = <&cru PCLK_GPIO4>;
1095 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
1098 #gpio-cells = <0x2>;
1100 interrupt-controller;
1101 #interrupt-cells = <0x2>;
1104 gpio5: gpio5@ff7c0000 {
1105 compatible = "rockchip,gpio-bank";
1106 reg = <0x0 0xff7c0000 0x0 0x100>;
1107 clocks = <&cru PCLK_GPIO5>;
1108 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
1111 #gpio-cells = <0x2>;
1113 interrupt-controller;
1114 #interrupt-cells = <0x2>;
1117 pcfg_pull_up: pcfg-pull-up {
1121 pcfg_pull_down: pcfg-pull-down {
1125 pcfg_pull_none: pcfg-pull-none {
1129 pcfg_pull_none_12ma: pcfg-pull-none-12ma {
1131 drive-strength = <12>;
1135 emmc_clk: emmc-clk {
1137 <3 4 RK_FUNC_2 &pcfg_pull_none>;
1140 emmc_cmd: emmc-cmd {
1142 <2 26 RK_FUNC_2 &pcfg_pull_up>;
1145 emmc_pwr: emmc-pwr {
1147 <2 27 RK_FUNC_2 &pcfg_pull_up>;
1150 emmc_bus1: emmc-bus1 {
1152 <2 18 RK_FUNC_2 &pcfg_pull_up>;
1155 emmc_bus4: emmc-bus4 {
1157 <2 18 RK_FUNC_2 &pcfg_pull_up>,
1158 <2 19 RK_FUNC_2 &pcfg_pull_up>,
1159 <2 20 RK_FUNC_2 &pcfg_pull_up>,
1160 <2 21 RK_FUNC_2 &pcfg_pull_up>;
1163 emmc_bus8: emmc-bus8 {
1165 <2 18 RK_FUNC_2 &pcfg_pull_up>,
1166 <2 19 RK_FUNC_2 &pcfg_pull_up>,
1167 <2 20 RK_FUNC_2 &pcfg_pull_up>,
1168 <2 21 RK_FUNC_2 &pcfg_pull_up>,
1169 <2 22 RK_FUNC_2 &pcfg_pull_up>,
1170 <2 23 RK_FUNC_2 &pcfg_pull_up>,
1171 <2 24 RK_FUNC_2 &pcfg_pull_up>,
1172 <2 25 RK_FUNC_2 &pcfg_pull_up>;
1177 sdmmc_cd: sdmmc-cd {
1178 rockchip,pins = <0 9 RK_FUNC_1 &pcfg_pull_up>;
1181 sdmmc_bus1: sdmmc-bus1 {
1182 rockchip,pins = <5 0 RK_FUNC_1 &pcfg_pull_up>;
1185 sdmmc_bus4: sdmmc-bus4 {
1186 rockchip,pins = <5 0 RK_FUNC_1 &pcfg_pull_up>,
1187 <5 1 RK_FUNC_1 &pcfg_pull_up>,
1188 <5 2 RK_FUNC_1 &pcfg_pull_up>,
1189 <5 3 RK_FUNC_1 &pcfg_pull_up>;
1192 sdmmc_clk: sdmmc-clk {
1193 rockchip,pins = <5 4 RK_FUNC_1 &pcfg_pull_none>;
1196 sdmmc_cmd: sdmmc-cmd {
1197 rockchip,pins = <5 5 RK_FUNC_1 &pcfg_pull_up>;
1202 sdio_bus1: sdio-bus1 {
1203 rockchip,pins = <3 12 RK_FUNC_1 &pcfg_pull_up>;
1206 sdio_bus4: sdio-bus4 {
1207 rockchip,pins = <3 12 RK_FUNC_1 &pcfg_pull_up>,
1208 <3 13 RK_FUNC_1 &pcfg_pull_up>,
1209 <3 14 RK_FUNC_1 &pcfg_pull_up>,
1210 <3 15 RK_FUNC_1 &pcfg_pull_up>;
1213 sdio_cmd: sdio-cmd {
1214 rockchip,pins = <3 16 RK_FUNC_1 &pcfg_pull_up>;
1217 sdio_clk: sdio-clk {
1218 rockchip,pins = <3 17 RK_FUNC_1 &pcfg_pull_none>;
1222 rockchip,pins = <3 18 RK_FUNC_1 &pcfg_pull_up>;
1226 rockchip,pins = <3 19 RK_FUNC_1 &pcfg_pull_up>;
1229 sdio_int: sdio-int {
1230 rockchip,pins = <3 20 RK_FUNC_1 &pcfg_pull_up>;
1233 sdio_pwr: sdio-pwr {
1234 rockchip,pins = <3 21 RK_FUNC_1 &pcfg_pull_up>;
1239 hdmii2c_xfer: hdmii2c-xfer {
1241 <5 13 RK_FUNC_2 &pcfg_pull_none>,
1242 <5 14 RK_FUNC_2 &pcfg_pull_none>;
1247 hdmi_cec: hdmi-cec {
1249 <5 12 RK_FUNC_1 &pcfg_pull_none>;
1254 i2c0_xfer: i2c0-xfer {
1256 <0 3 RK_FUNC_1 &pcfg_pull_none>,
1257 <0 4 RK_FUNC_1 &pcfg_pull_none>;
1262 i2c1_xfer: i2c1-xfer {
1264 <4 25 RK_FUNC_1 &pcfg_pull_none>,
1265 <4 26 RK_FUNC_1 &pcfg_pull_none>;
1270 i2c2_xfer: i2c2-xfer {
1272 <5 15 RK_FUNC_2 &pcfg_pull_none>,
1273 <5 16 RK_FUNC_2 &pcfg_pull_none>;
1276 i2c2_gpio: i2c2-gpio {
1278 <5 15 RK_FUNC_GPIO &pcfg_pull_none>,
1279 <5 16 RK_FUNC_GPIO &pcfg_pull_none>;
1284 i2c3_xfer: i2c3-xfer {
1286 <2 16 RK_FUNC_2 &pcfg_pull_none>,
1287 <2 17 RK_FUNC_2 &pcfg_pull_none>;
1292 i2c4_xfer: i2c4-xfer {
1294 <5 8 RK_FUNC_1 &pcfg_pull_none>,
1295 <5 9 RK_FUNC_1 &pcfg_pull_none>;
1298 i2c4_gpio: i2c4-gpio {
1300 <5 8 RK_FUNC_GPIO &pcfg_pull_none>,
1301 <5 9 RK_FUNC_GPIO &pcfg_pull_none>;
1306 i2c5_xfer: i2c5-xfer {
1308 <5 13 RK_FUNC_1 &pcfg_pull_none>,
1309 <5 14 RK_FUNC_1 &pcfg_pull_none>;
1311 i2c5_gpio: i2c5-gpio {
1313 <5 13 RK_FUNC_GPIO &pcfg_pull_none>,
1314 <5 14 RK_FUNC_GPIO &pcfg_pull_none>;
1319 i2s_8ch_bus: i2s-8ch-bus {
1321 <4 16 RK_FUNC_1 &pcfg_pull_none>,
1322 <4 17 RK_FUNC_1 &pcfg_pull_none>,
1323 <4 18 RK_FUNC_1 &pcfg_pull_none>,
1324 <4 19 RK_FUNC_1 &pcfg_pull_none>,
1325 <4 20 RK_FUNC_1 &pcfg_pull_none>,
1326 <4 21 RK_FUNC_1 &pcfg_pull_none>,
1327 <4 22 RK_FUNC_1 &pcfg_pull_none>,
1328 <4 23 RK_FUNC_1 &pcfg_pull_none>,
1329 <4 24 RK_FUNC_1 &pcfg_pull_none>;
1334 spdif_bus: spdif-bus {
1336 <5 19 RK_FUNC_1 &pcfg_pull_none>;
1341 spi0_clk: spi0-clk {
1343 <2 29 RK_FUNC_2 &pcfg_pull_up>;
1345 spi0_cs0: spi0-cs0 {
1347 <2 24 RK_FUNC_3 &pcfg_pull_up>;
1349 spi0_cs1: spi0-cs1 {
1351 <2 25 RK_FUNC_3 &pcfg_pull_up>;
1355 <2 23 RK_FUNC_3 &pcfg_pull_up>;
1359 <2 22 RK_FUNC_3 &pcfg_pull_up>;
1364 spi1_clk: spi1-clk {
1366 <2 4 RK_FUNC_3 &pcfg_pull_up>;
1368 spi1_cs0: spi1-cs0 {
1370 <2 5 RK_FUNC_3 &pcfg_pull_up>;
1374 <2 6 RK_FUNC_3 &pcfg_pull_up>;
1378 <2 7 RK_FUNC_3 &pcfg_pull_up>;
1385 <5 8 RK_FUNC_2 &pcfg_pull_none>;
1390 <5 9 RK_FUNC_2 &pcfg_pull_up>;
1395 <5 10 RK_FUNC_1 &pcfg_pull_none>;
1398 scr_detect: scr-detect {
1400 <5 11 RK_FUNC_1 &pcfg_pull_none>;
1405 uart0_xfer: uart0-xfer {
1407 <3 8 RK_FUNC_1 &pcfg_pull_up>,
1408 <3 9 RK_FUNC_1 &pcfg_pull_none>;
1411 uart0_cts: uart0-cts {
1413 <3 10 RK_FUNC_1 &pcfg_pull_none>;
1416 uart0_rts: uart0-rts {
1418 <3 11 RK_FUNC_1 &pcfg_pull_none>;
1423 uart2_t0_xfer: uart2_t0-xfer {
1425 <0 22 RK_FUNC_1 &pcfg_pull_up>,
1426 <0 21 RK_FUNC_1 &pcfg_pull_none>;
1428 /* no rts / cts for uart2 */
1432 uart2_t1_xfer: uart2_t1-xfer {
1434 <5 0 RK_FUNC_2 &pcfg_pull_up>,
1435 <5 1 RK_FUNC_2 &pcfg_pull_none>;
1437 /* no rts / cts for uart2 */
1441 uart2_t2_xfer: uart2_t2-xfer {
1443 <5 14 RK_FUNC_3 &pcfg_pull_up>,
1444 <5 13 RK_FUNC_3 &pcfg_pull_none>;
1446 /* no rts / cts for uart2 */
1450 uart3_xfer: uart3-xfer {
1452 <5 15 RK_FUNC_1 &pcfg_pull_up>,
1453 <5 16 RK_FUNC_1 &pcfg_pull_none>;
1456 uart3_cts: uart3-cts {
1458 <5 17 RK_FUNC_1 &pcfg_pull_none>;
1461 uart3_rts: uart3-rts {
1463 <5 18 RK_FUNC_1 &pcfg_pull_none>;
1468 pwm0_pin: pwm0-pin {
1470 <0 8 RK_FUNC_1 &pcfg_pull_none>;
1475 pwm1_pin: pwm1-pin {
1477 <1 6 RK_FUNC_2 &pcfg_pull_none>;
1482 pwm2_t0_pin: pwm2_t0-pin {
1484 <2 15 RK_FUNC_3 &pcfg_pull_none>;
1489 pwm2_t1_pin: pwm2_t1-pin {
1491 <5 17 RK_FUNC_2 &pcfg_pull_none>;
1496 pwm3_t0_pin: pwm3_t0-pin {
1498 <1 0 RK_FUNC_2 &pcfg_pull_none>;
1503 pwm3_t1_pin: pwm3_t1-pin {
1505 <0 21 RK_FUNC_2 &pcfg_pull_none>;
1510 pwm3_t2_pin: pwm3_t2-pin {
1512 <5 18 RK_FUNC_2 &pcfg_pull_none>;
1517 lcdc_lcdc: lcdc-lcdc {
1519 <0 24 RK_FUNC_2 &pcfg_pull_none>, /* HSYNC */
1520 <0 25 RK_FUNC_2 &pcfg_pull_none>, /* VSYNC */
1521 <0 26 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D10 */
1522 <0 27 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D11 */
1523 <0 28 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D12 */
1524 <0 29 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D13 */
1525 <0 30 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D14 */
1526 <0 31 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D15 */
1527 <1 0 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D16 */
1528 <1 1 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D17 */
1529 <1 2 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D18 */
1530 <1 3 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D19 */
1531 <1 4 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D20 */
1532 <1 5 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D21 */
1533 <1 6 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D22 */
1534 <1 7 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D23 */
1535 <1 8 RK_FUNC_1 &pcfg_pull_none>, /* DEN */
1536 <1 9 RK_FUNC_1 &pcfg_pull_none>; /* DCLK */
1539 lcdc_gpio: lcdc-gpio {
1541 <0 24 RK_FUNC_GPIO &pcfg_pull_none>, /* HSYNC */
1542 <0 25 RK_FUNC_GPIO &pcfg_pull_none>, /* VSYNC */
1543 <0 26 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D10 */
1544 <0 27 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D11 */
1545 <0 28 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D12 */
1546 <0 29 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D13 */
1547 <0 30 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D14 */
1548 <0 31 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D15 */
1549 <1 0 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D16 */
1550 <1 1 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D17 */
1551 <1 2 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D18 */
1552 <1 3 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D19 */
1553 <1 4 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D20 */
1554 <1 5 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D21 */
1555 <1 6 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D22 */
1556 <1 7 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D23 */
1557 <1 8 RK_FUNC_GPIO &pcfg_pull_none>, /* DEN */
1558 <1 9 RK_FUNC_GPIO &pcfg_pull_none>; /* DCLK */
1563 rgmii_pins: rgmii-pins {
1566 <2 7 RK_FUNC_1 &pcfg_pull_none>,
1568 <2 6 RK_FUNC_1 &pcfg_pull_none>,
1570 <2 5 RK_FUNC_1 &pcfg_pull_none_12ma>,
1572 <2 4 RK_FUNC_1 &pcfg_pull_none_12ma>,
1574 <2 3 RK_FUNC_1 &pcfg_pull_none>,
1576 <2 2 RK_FUNC_1 &pcfg_pull_none>,
1578 <2 1 RK_FUNC_1 &pcfg_pull_none_12ma>,
1580 <2 0 RK_FUNC_1 &pcfg_pull_none>,
1582 <2 17 RK_FUNC_1 &pcfg_pull_none_12ma>,
1584 /* <2 15 RK_FUNC_1 &pcfg_pull_none>, */
1586 <2 14 RK_FUNC_1 &pcfg_pull_none>,
1588 <2 13 RK_FUNC_1 &pcfg_pull_none>,
1590 <2 12 RK_FUNC_1 &pcfg_pull_none_12ma>,
1592 <2 11 RK_FUNC_1 &pcfg_pull_none>,
1594 /* <2 10 RK_FUNC_1 &pcfg_pull_none>, */
1596 <2 9 RK_FUNC_1 &pcfg_pull_none>,
1598 <2 8 RK_FUNC_1 &pcfg_pull_none>;
1601 rmii_pins: rmii-pins {
1604 <2 3 RK_FUNC_1 &pcfg_pull_none>,
1606 <2 2 RK_FUNC_1 &pcfg_pull_none>,
1608 <2 1 RK_FUNC_1 &pcfg_pull_none>,
1610 <2 0 RK_FUNC_1 &pcfg_pull_none>,
1612 /* <2 15 RK_FUNC_1 &pcfg_pull_none>, */
1614 <2 14 RK_FUNC_1 &pcfg_pull_none>,
1616 <2 13 RK_FUNC_1 &pcfg_pull_none>,
1618 <2 12 RK_FUNC_1 &pcfg_pull_none>,
1620 <2 11 RK_FUNC_1 &pcfg_pull_none>,
1622 /* <2 10 RK_FUNC_1 &pcfg_pull_none>, */
1624 <2 9 RK_FUNC_1 &pcfg_pull_none>,
1626 <2 8 RK_FUNC_1 &pcfg_pull_none>;
1631 eth_phy_pwr: eth-phy-pwr {
1633 <0 25 RK_FUNC_GPIO &pcfg_pull_none>;
1638 tsadc_gpio: tsadc-gpio {
1640 <0 22 RK_FUNC_GPIO &pcfg_pull_none>;
1643 tsadc_int: tsadc-int {
1645 <0 22 RK_FUNC_2 &pcfg_pull_none>;
1650 host_vbus_drv: host-vbus-drv {
1652 <0 16 RK_FUNC_GPIO &pcfg_pull_none>;
1659 compatible = "arm,malit764",
1664 reg = <0x0 0xffa30000 0 0x10000>;
1666 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
1667 <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>,
1668 <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
1669 interrupt-names = "GPU", "MMU", "JOB";
1671 clocks = <&cru ACLK_GPU>;
1672 clock-names = "clk_mali";
1673 #cooling-cells = <2>; /* min followed by max */
1674 operating-points-v2 = <&gpu_opp_table>;
1675 status = "disabled";
1678 compatible = "arm,mali-simple-power-model";
1681 static-power = <300>;
1682 dynamic-power = <1780>;
1683 ts = <32000 4700 (-80) 2>;
1684 thermal-zone = "gpu-thermal";
1688 gpu_opp_table: gpu_opp_table {
1689 compatible = "operating-points-v2";
1693 opp-hz = /bits/ 64 <96000000>;
1694 opp-microvolt = <1100000>;
1697 opp-hz = /bits/ 64 <192000000>;
1698 opp-microvolt = <1100000>;
1701 opp-hz = /bits/ 64 <288000000>;
1702 opp-microvolt = <1100000>;
1705 opp-hz = /bits/ 64 <375000000>;
1706 opp-microvolt = <1125000>;
1709 opp-hz = /bits/ 64 <480000000>;
1710 opp-microvolt = <1200000>;