2 * Copyright (c) 2013 MundoReader S.L.
3 * Author: Heiko Stuebner <heiko@sntech.de>
5 * SPDX-License-Identifier: GPL-2.0+ or X11
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/pinctrl/rockchip.h>
10 #include <dt-bindings/clock/rk3188-cru.h>
11 #include "rk3xxx.dtsi"
14 compatible = "rockchip,rk3188";
19 enable-method = "rockchip,rk3066-smp";
23 compatible = "arm,cortex-a9";
24 next-level-cache = <&L2>;
37 clock-latency = <40000>;
38 clocks = <&cru ARMCLK>;
42 compatible = "arm,cortex-a9";
43 next-level-cache = <&L2>;
48 compatible = "arm,cortex-a9";
49 next-level-cache = <&L2>;
54 compatible = "arm,cortex-a9";
55 next-level-cache = <&L2>;
61 compatible = "mmio-sram";
62 reg = <0x10080000 0x8000>;
65 ranges = <0 0x10080000 0x8000>;
68 compatible = "rockchip,rk3066-smp-sram";
74 compatible = "rockchip,rk3188-i2s", "rockchip,rk3066-i2s";
75 reg = <0x1011a000 0x2000>;
76 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
79 pinctrl-names = "default";
80 pinctrl-0 = <&i2s0_bus>;
81 dmas = <&dmac1_s 6>, <&dmac1_s 7>;
82 dma-names = "tx", "rx";
83 clock-names = "i2s_hclk", "i2s_clk";
84 clocks = <&cru HCLK_I2S0>, <&cru SCLK_I2S0>;
85 rockchip,playback-channels = <2>;
86 rockchip,capture-channels = <2>;
90 spdif: sound@1011e000 {
91 compatible = "rockchip,rk3188-spdif", "rockchip,rk3066-spdif";
92 reg = <0x1011e000 0x2000>;
93 #sound-dai-cells = <0>;
94 clock-names = "hclk", "mclk";
95 clocks = <&cru HCLK_SPDIF>, <&cru SCLK_SPDIF>;
98 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
99 pinctrl-names = "default";
100 pinctrl-0 = <&spdif_tx>;
104 cru: clock-controller@20000000 {
105 compatible = "rockchip,rk3188-cru";
106 reg = <0x20000000 0x1000>;
107 rockchip,grf = <&grf>;
114 efuse: efuse@20010000 {
115 compatible = "rockchip,rockchip-efuse";
116 reg = <0x20010000 0x4000>;
117 #address-cells = <1>;
119 clocks = <&cru PCLK_EFUSE>;
120 clock-names = "pclk_efuse";
122 cpu_leakage: cpu_leakage@17 {
128 compatible = "rockchip,rk3188-usb-phy", "rockchip,rk3288-usb-phy";
129 rockchip,grf = <&grf>;
130 #address-cells = <1>;
134 usbphy0: usb-phy@10c {
137 clocks = <&cru SCLK_OTGPHY0>;
138 clock-names = "phyclk";
142 usbphy1: usb-phy@11c {
145 clocks = <&cru SCLK_OTGPHY1>;
146 clock-names = "phyclk";
152 compatible = "rockchip,rk3188-pinctrl";
153 rockchip,grf = <&grf>;
154 rockchip,pmu = <&pmu>;
156 #address-cells = <1>;
161 gpio0: gpio0@2000a000 {
162 compatible = "rockchip,gpio-bank";
163 reg = <0x2000a000 0x100>;
164 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
165 clocks = <&cru PCLK_GPIO0>;
170 interrupt-controller;
171 #interrupt-cells = <2>;
174 gpio1: gpio1@2003c000 {
175 compatible = "rockchip,gpio-bank";
176 reg = <0x2003c000 0x100>;
177 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
178 clocks = <&cru PCLK_GPIO1>;
183 interrupt-controller;
184 #interrupt-cells = <2>;
187 gpio2: gpio2@2003e000 {
188 compatible = "rockchip,gpio-bank";
189 reg = <0x2003e000 0x100>;
190 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
191 clocks = <&cru PCLK_GPIO2>;
196 interrupt-controller;
197 #interrupt-cells = <2>;
200 gpio3: gpio3@20080000 {
201 compatible = "rockchip,gpio-bank";
202 reg = <0x20080000 0x100>;
203 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
204 clocks = <&cru PCLK_GPIO3>;
209 interrupt-controller;
210 #interrupt-cells = <2>;
213 pcfg_pull_up: pcfg_pull_up {
217 pcfg_pull_down: pcfg_pull_down {
221 pcfg_pull_none: pcfg_pull_none {
227 rockchip,pins = <RK_GPIO0 24 RK_FUNC_2 &pcfg_pull_none>;
231 rockchip,pins = <RK_GPIO0 26 RK_FUNC_2 &pcfg_pull_up>;
235 rockchip,pins = <RK_GPIO0 27 RK_FUNC_2 &pcfg_pull_none>;
239 * The data pins are shared between nandc and emmc and
240 * not accessible through pinctrl. Also they should've
241 * been already set correctly by firmware, as
242 * flash/emmc is the boot-device.
247 emac_xfer: emac-xfer {
248 rockchip,pins = <RK_GPIO3 16 RK_FUNC_2 &pcfg_pull_none>, /* tx_en */
249 <RK_GPIO3 17 RK_FUNC_2 &pcfg_pull_none>, /* txd1 */
250 <RK_GPIO3 18 RK_FUNC_2 &pcfg_pull_none>, /* txd0 */
251 <RK_GPIO3 19 RK_FUNC_2 &pcfg_pull_none>, /* rxd0 */
252 <RK_GPIO3 20 RK_FUNC_2 &pcfg_pull_none>, /* rxd1 */
253 <RK_GPIO3 21 RK_FUNC_2 &pcfg_pull_none>, /* mac_clk */
254 <RK_GPIO3 22 RK_FUNC_2 &pcfg_pull_none>, /* rx_err */
255 <RK_GPIO3 23 RK_FUNC_2 &pcfg_pull_none>; /* crs_dvalid */
258 emac_mdio: emac-mdio {
259 rockchip,pins = <RK_GPIO3 24 RK_FUNC_2 &pcfg_pull_none>,
260 <RK_GPIO3 25 RK_FUNC_2 &pcfg_pull_none>;
265 i2c0_xfer: i2c0-xfer {
266 rockchip,pins = <RK_GPIO1 24 RK_FUNC_1 &pcfg_pull_none>,
267 <RK_GPIO1 25 RK_FUNC_1 &pcfg_pull_none>;
272 i2c1_xfer: i2c1-xfer {
273 rockchip,pins = <RK_GPIO1 26 RK_FUNC_1 &pcfg_pull_none>,
274 <RK_GPIO1 27 RK_FUNC_1 &pcfg_pull_none>;
279 i2c2_xfer: i2c2-xfer {
280 rockchip,pins = <RK_GPIO1 28 RK_FUNC_1 &pcfg_pull_none>,
281 <RK_GPIO1 29 RK_FUNC_1 &pcfg_pull_none>;
286 i2c3_xfer: i2c3-xfer {
287 rockchip,pins = <RK_GPIO3 14 RK_FUNC_2 &pcfg_pull_none>,
288 <RK_GPIO3 15 RK_FUNC_2 &pcfg_pull_none>;
293 i2c4_xfer: i2c4-xfer {
294 rockchip,pins = <RK_GPIO1 30 RK_FUNC_1 &pcfg_pull_none>,
295 <RK_GPIO1 31 RK_FUNC_1 &pcfg_pull_none>;
301 rockchip,pins = <RK_GPIO3 27 RK_FUNC_1 &pcfg_pull_none>;
307 rockchip,pins = <RK_GPIO3 28 RK_FUNC_1 &pcfg_pull_none>;
313 rockchip,pins = <RK_GPIO3 29 RK_FUNC_1 &pcfg_pull_none>;
319 rockchip,pins = <RK_GPIO3 30 RK_FUNC_1 &pcfg_pull_none>;
325 rockchip,pins = <RK_GPIO1 6 RK_FUNC_2 &pcfg_pull_up>;
328 rockchip,pins = <RK_GPIO1 7 RK_FUNC_2 &pcfg_pull_up>;
331 rockchip,pins = <RK_GPIO1 5 RK_FUNC_2 &pcfg_pull_up>;
334 rockchip,pins = <RK_GPIO1 4 RK_FUNC_2 &pcfg_pull_up>;
337 rockchip,pins = <RK_GPIO1 15 RK_FUNC_1 &pcfg_pull_up>;
343 rockchip,pins = <RK_GPIO0 30 RK_FUNC_1 &pcfg_pull_up>;
346 rockchip,pins = <RK_GPIO0 31 RK_FUNC_1 &pcfg_pull_up>;
349 rockchip,pins = <RK_GPIO0 28 RK_FUNC_1 &pcfg_pull_up>;
352 rockchip,pins = <RK_GPIO0 29 RK_FUNC_1 &pcfg_pull_up>;
355 rockchip,pins = <RK_GPIO1 14 RK_FUNC_2 &pcfg_pull_up>;
360 uart0_xfer: uart0-xfer {
361 rockchip,pins = <RK_GPIO1 0 RK_FUNC_1 &pcfg_pull_up>,
362 <RK_GPIO1 1 RK_FUNC_1 &pcfg_pull_none>;
365 uart0_cts: uart0-cts {
366 rockchip,pins = <RK_GPIO1 2 RK_FUNC_1 &pcfg_pull_none>;
369 uart0_rts: uart0-rts {
370 rockchip,pins = <RK_GPIO1 3 RK_FUNC_1 &pcfg_pull_none>;
375 uart1_xfer: uart1-xfer {
376 rockchip,pins = <RK_GPIO1 4 RK_FUNC_1 &pcfg_pull_up>,
377 <RK_GPIO1 5 RK_FUNC_1 &pcfg_pull_none>;
380 uart1_cts: uart1-cts {
381 rockchip,pins = <RK_GPIO1 6 RK_FUNC_1 &pcfg_pull_none>;
384 uart1_rts: uart1-rts {
385 rockchip,pins = <RK_GPIO1 7 RK_FUNC_1 &pcfg_pull_none>;
390 uart2_xfer: uart2-xfer {
391 rockchip,pins = <RK_GPIO1 8 RK_FUNC_1 &pcfg_pull_up>,
392 <RK_GPIO1 9 RK_FUNC_1 &pcfg_pull_none>;
394 /* no rts / cts for uart2 */
398 uart3_xfer: uart3-xfer {
399 rockchip,pins = <RK_GPIO1 10 RK_FUNC_1 &pcfg_pull_up>,
400 <RK_GPIO1 11 RK_FUNC_1 &pcfg_pull_none>;
403 uart3_cts: uart3-cts {
404 rockchip,pins = <RK_GPIO1 12 RK_FUNC_1 &pcfg_pull_none>;
407 uart3_rts: uart3-rts {
408 rockchip,pins = <RK_GPIO1 13 RK_FUNC_1 &pcfg_pull_none>;
414 rockchip,pins = <RK_GPIO3 2 RK_FUNC_1 &pcfg_pull_none>;
418 rockchip,pins = <RK_GPIO3 3 RK_FUNC_1 &pcfg_pull_none>;
422 rockchip,pins = <RK_GPIO3 8 RK_FUNC_1 &pcfg_pull_none>;
426 rockchip,pins = <RK_GPIO3 9 RK_FUNC_1 &pcfg_pull_none>;
430 rockchip,pins = <RK_GPIO3 1 RK_FUNC_1 &pcfg_pull_none>;
433 sd0_bus1: sd0-bus-width1 {
434 rockchip,pins = <RK_GPIO3 4 RK_FUNC_1 &pcfg_pull_none>;
437 sd0_bus4: sd0-bus-width4 {
438 rockchip,pins = <RK_GPIO3 4 RK_FUNC_1 &pcfg_pull_none>,
439 <RK_GPIO3 5 RK_FUNC_1 &pcfg_pull_none>,
440 <RK_GPIO3 6 RK_FUNC_1 &pcfg_pull_none>,
441 <RK_GPIO3 7 RK_FUNC_1 &pcfg_pull_none>;
447 rockchip,pins = <RK_GPIO3 21 RK_FUNC_1 &pcfg_pull_none>;
451 rockchip,pins = <RK_GPIO3 16 RK_FUNC_1 &pcfg_pull_none>;
455 rockchip,pins = <RK_GPIO3 22 RK_FUNC_1 &pcfg_pull_none>;
459 rockchip,pins = <RK_GPIO3 23 RK_FUNC_1 &pcfg_pull_none>;
462 sd1_bus1: sd1-bus-width1 {
463 rockchip,pins = <RK_GPIO3 17 RK_FUNC_1 &pcfg_pull_none>;
466 sd1_bus4: sd1-bus-width4 {
467 rockchip,pins = <RK_GPIO3 17 RK_FUNC_1 &pcfg_pull_none>,
468 <RK_GPIO3 18 RK_FUNC_1 &pcfg_pull_none>,
469 <RK_GPIO3 19 RK_FUNC_1 &pcfg_pull_none>,
470 <RK_GPIO3 20 RK_FUNC_1 &pcfg_pull_none>;
476 rockchip,pins = <RK_GPIO1 16 RK_FUNC_1 &pcfg_pull_none>,
477 <RK_GPIO1 17 RK_FUNC_1 &pcfg_pull_none>,
478 <RK_GPIO1 18 RK_FUNC_1 &pcfg_pull_none>,
479 <RK_GPIO1 19 RK_FUNC_1 &pcfg_pull_none>,
480 <RK_GPIO1 20 RK_FUNC_1 &pcfg_pull_none>,
481 <RK_GPIO1 21 RK_FUNC_1 &pcfg_pull_none>;
487 rockchip,pins = <RK_GPIO1 14 RK_FUNC_1 &pcfg_pull_none>;
494 compatible = "rockchip,rk3188-emac";
498 interrupts = <GIC_PPI 11 0xf04>;
502 compatible = "rockchip,rk3188-grf", "syscon";
506 interrupts = <GIC_PPI 13 0xf04>;
510 compatible = "rockchip,rk3188-i2c";
511 pinctrl-names = "default";
512 pinctrl-0 = <&i2c0_xfer>;
516 compatible = "rockchip,rk3188-i2c";
517 pinctrl-names = "default";
518 pinctrl-0 = <&i2c1_xfer>;
522 compatible = "rockchip,rk3188-i2c";
523 pinctrl-names = "default";
524 pinctrl-0 = <&i2c2_xfer>;
528 compatible = "rockchip,rk3188-i2c";
529 pinctrl-names = "default";
530 pinctrl-0 = <&i2c3_xfer>;
534 compatible = "rockchip,rk3188-i2c";
535 pinctrl-names = "default";
536 pinctrl-0 = <&i2c4_xfer>;
540 compatible = "rockchip,rk3188-pmu", "syscon";
544 pinctrl-names = "default";
545 pinctrl-0 = <&pwm0_out>;
549 pinctrl-names = "default";
550 pinctrl-0 = <&pwm1_out>;
554 pinctrl-names = "default";
555 pinctrl-0 = <&pwm2_out>;
559 pinctrl-names = "default";
560 pinctrl-0 = <&pwm3_out>;
564 compatible = "rockchip,rk3188-spi", "rockchip,rk3066-spi";
565 pinctrl-names = "default";
566 pinctrl-0 = <&spi0_clk &spi0_tx &spi0_rx &spi0_cs0>;
570 compatible = "rockchip,rk3188-spi", "rockchip,rk3066-spi";
571 pinctrl-names = "default";
572 pinctrl-0 = <&spi1_clk &spi1_tx &spi1_rx &spi1_cs0>;
576 compatible = "rockchip,rk3188-uart", "snps,dw-apb-uart";
577 pinctrl-names = "default";
578 pinctrl-0 = <&uart0_xfer>;
582 compatible = "rockchip,rk3188-uart", "snps,dw-apb-uart";
583 pinctrl-names = "default";
584 pinctrl-0 = <&uart1_xfer>;
588 compatible = "rockchip,rk3188-uart", "snps,dw-apb-uart";
589 pinctrl-names = "default";
590 pinctrl-0 = <&uart2_xfer>;
594 compatible = "rockchip,rk3188-uart", "snps,dw-apb-uart";
595 pinctrl-names = "default";
596 pinctrl-0 = <&uart3_xfer>;
600 compatible = "rockchip,rk3188-wdt", "snps,dw-wdt";