1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2013 MundoReader S.L.
4 * Author: Heiko Stuebner <heiko@sntech.de>
7 #include <dt-bindings/interrupt-controller/irq.h>
8 #include <dt-bindings/interrupt-controller/arm-gic.h>
9 #include <dt-bindings/soc/rockchip,boot-mode.h>
15 interrupt-parent = <&gic>;
36 compatible = "fixed-clock";
37 clock-frequency = <24000000>;
39 clock-output-names = "xin24m";
43 compatible = "arm,mali-400";
44 reg = <0x10090000 0x10000>;
45 clocks = <&cru ACLK_GPU>, <&cru ACLK_GPU>;
46 clock-names = "bus", "core";
47 assigned-clocks = <&cru ACLK_GPU>;
48 assigned-clock-rates = <100000000>;
49 resets = <&cru SRST_GPU>;
53 L2: cache-controller@10138000 {
54 compatible = "arm,pl310-cache";
55 reg = <0x10138000 0x1000>;
61 compatible = "arm,cortex-a9-scu";
62 reg = <0x1013c000 0x100>;
65 global_timer: global-timer@1013c200 {
66 compatible = "arm,cortex-a9-global-timer";
67 reg = <0x1013c200 0x20>;
68 interrupts = <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>;
69 clocks = <&cru CORE_PERI>;
72 local_timer: local-timer@1013c600 {
73 compatible = "arm,cortex-a9-twd-timer";
74 reg = <0x1013c600 0x20>;
75 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>;
76 clocks = <&cru CORE_PERI>;
79 gic: interrupt-controller@1013d000 {
80 compatible = "arm,cortex-a9-gic";
82 #interrupt-cells = <3>;
83 reg = <0x1013d000 0x1000>,
87 uart0: serial@10124000 {
88 compatible = "snps,dw-apb-uart";
89 reg = <0x10124000 0x400>;
90 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
93 clock-names = "baudclk", "apb_pclk";
94 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
98 uart1: serial@10126000 {
99 compatible = "snps,dw-apb-uart";
100 reg = <0x10126000 0x400>;
101 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
104 clock-names = "baudclk", "apb_pclk";
105 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
109 qos_gpu: qos@1012d000 {
110 compatible = "rockchip,rk3066-qos", "syscon";
111 reg = <0x1012d000 0x20>;
114 qos_vpu: qos@1012e000 {
115 compatible = "rockchip,rk3066-qos", "syscon";
116 reg = <0x1012e000 0x20>;
119 qos_lcdc0: qos@1012f000 {
120 compatible = "rockchip,rk3066-qos", "syscon";
121 reg = <0x1012f000 0x20>;
124 qos_cif0: qos@1012f080 {
125 compatible = "rockchip,rk3066-qos", "syscon";
126 reg = <0x1012f080 0x20>;
129 qos_ipp: qos@1012f100 {
130 compatible = "rockchip,rk3066-qos", "syscon";
131 reg = <0x1012f100 0x20>;
134 qos_lcdc1: qos@1012f180 {
135 compatible = "rockchip,rk3066-qos", "syscon";
136 reg = <0x1012f180 0x20>;
139 qos_cif1: qos@1012f200 {
140 compatible = "rockchip,rk3066-qos", "syscon";
141 reg = <0x1012f200 0x20>;
144 qos_rga: qos@1012f280 {
145 compatible = "rockchip,rk3066-qos", "syscon";
146 reg = <0x1012f280 0x20>;
149 usb_otg: usb@10180000 {
150 compatible = "rockchip,rk3066-usb", "snps,dwc2";
151 reg = <0x10180000 0x40000>;
152 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
153 clocks = <&cru HCLK_OTG0>;
156 g-np-tx-fifo-size = <16>;
157 g-rx-fifo-size = <275>;
158 g-tx-fifo-size = <256 128 128 64 64 32>;
160 phy-names = "usb2-phy";
164 usb_host: usb@101c0000 {
165 compatible = "snps,dwc2";
166 reg = <0x101c0000 0x40000>;
167 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
168 clocks = <&cru HCLK_OTG1>;
172 phy-names = "usb2-phy";
176 emac: ethernet@10204000 {
177 compatible = "snps,arc-emac";
178 reg = <0x10204000 0x3c>;
179 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
180 #address-cells = <1>;
183 rockchip,grf = <&grf>;
185 clocks = <&cru HCLK_EMAC>, <&cru SCLK_MAC>;
186 clock-names = "hclk", "macref";
194 compatible = "rockchip,rk2928-dw-mshc";
195 reg = <0x10214000 0x1000>;
196 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
197 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>;
198 clock-names = "biu", "ciu";
202 resets = <&cru SRST_SDMMC>;
203 reset-names = "reset";
208 compatible = "rockchip,rk2928-dw-mshc";
209 reg = <0x10218000 0x1000>;
210 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
211 clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>;
212 clock-names = "biu", "ciu";
216 resets = <&cru SRST_SDIO>;
217 reset-names = "reset";
222 compatible = "rockchip,rk2928-dw-mshc";
223 reg = <0x1021c000 0x1000>;
224 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
225 clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>;
226 clock-names = "biu", "ciu";
230 resets = <&cru SRST_EMMC>;
231 reset-names = "reset";
235 nfc: nand-controller@10500000 {
236 compatible = "rockchip,rk2928-nfc";
237 reg = <0x10500000 0x4000>;
238 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
239 clocks = <&cru HCLK_NANDC0>;
245 compatible = "rockchip,rk3066-pmu", "syscon", "simple-mfd";
246 reg = <0x20004000 0x100>;
249 compatible = "syscon-reboot-mode";
251 mode-normal = <BOOT_NORMAL>;
252 mode-recovery = <BOOT_RECOVERY>;
253 mode-bootloader = <BOOT_FASTBOOT>;
254 mode-loader = <BOOT_BL_DOWNLOAD>;
259 compatible = "syscon";
260 reg = <0x20008000 0x200>;
263 dmac1_s: dma-controller@20018000 {
264 compatible = "arm,pl330", "arm,primecell";
265 reg = <0x20018000 0x4000>;
266 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
267 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
269 arm,pl330-broken-no-flushp;
270 arm,pl330-periph-burst;
271 clocks = <&cru ACLK_DMA1>;
272 clock-names = "apb_pclk";
275 dmac1_ns: dma-controller@2001c000 {
276 compatible = "arm,pl330", "arm,primecell";
277 reg = <0x2001c000 0x4000>;
278 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
279 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
281 arm,pl330-broken-no-flushp;
282 arm,pl330-periph-burst;
283 clocks = <&cru ACLK_DMA1>;
284 clock-names = "apb_pclk";
289 compatible = "rockchip,rk3066-i2c";
290 reg = <0x2002d000 0x1000>;
291 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
292 #address-cells = <1>;
295 rockchip,grf = <&grf>;
298 clocks = <&cru PCLK_I2C0>;
304 compatible = "rockchip,rk3066-i2c";
305 reg = <0x2002f000 0x1000>;
306 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
307 #address-cells = <1>;
310 rockchip,grf = <&grf>;
312 clocks = <&cru PCLK_I2C1>;
319 compatible = "rockchip,rk2928-pwm";
320 reg = <0x20030000 0x10>;
322 clocks = <&cru PCLK_PWM01>;
327 compatible = "rockchip,rk2928-pwm";
328 reg = <0x20030010 0x10>;
330 clocks = <&cru PCLK_PWM01>;
334 wdt: watchdog@2004c000 {
335 compatible = "snps,dw-wdt";
336 reg = <0x2004c000 0x100>;
337 clocks = <&cru PCLK_WDT>;
338 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
343 compatible = "rockchip,rk2928-pwm";
344 reg = <0x20050020 0x10>;
346 clocks = <&cru PCLK_PWM23>;
351 compatible = "rockchip,rk2928-pwm";
352 reg = <0x20050030 0x10>;
354 clocks = <&cru PCLK_PWM23>;
359 compatible = "rockchip,rk3066-i2c";
360 reg = <0x20056000 0x1000>;
361 interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
362 #address-cells = <1>;
365 rockchip,grf = <&grf>;
367 clocks = <&cru PCLK_I2C2>;
374 compatible = "rockchip,rk3066-i2c";
375 reg = <0x2005a000 0x1000>;
376 interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
377 #address-cells = <1>;
380 rockchip,grf = <&grf>;
382 clocks = <&cru PCLK_I2C3>;
389 compatible = "rockchip,rk3066-i2c";
390 reg = <0x2005e000 0x1000>;
391 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
392 #address-cells = <1>;
395 rockchip,grf = <&grf>;
397 clocks = <&cru PCLK_I2C4>;
403 uart2: serial@20064000 {
404 compatible = "snps,dw-apb-uart";
405 reg = <0x20064000 0x400>;
406 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
409 clock-names = "baudclk", "apb_pclk";
410 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
414 uart3: serial@20068000 {
415 compatible = "snps,dw-apb-uart";
416 reg = <0x20068000 0x400>;
417 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
420 clock-names = "baudclk", "apb_pclk";
421 clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
425 saradc: saradc@2006c000 {
426 compatible = "rockchip,saradc";
427 reg = <0x2006c000 0x100>;
428 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
429 #io-channel-cells = <1>;
430 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
431 clock-names = "saradc", "apb_pclk";
432 resets = <&cru SRST_SARADC>;
433 reset-names = "saradc-apb";
438 compatible = "rockchip,rk3066-spi";
439 clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
440 clock-names = "spiclk", "apb_pclk";
441 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
442 reg = <0x20070000 0x1000>;
443 #address-cells = <1>;
445 dmas = <&dmac2 10>, <&dmac2 11>;
446 dma-names = "tx", "rx";
451 compatible = "rockchip,rk3066-spi";
452 clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>;
453 clock-names = "spiclk", "apb_pclk";
454 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
455 reg = <0x20074000 0x1000>;
456 #address-cells = <1>;
458 dmas = <&dmac2 12>, <&dmac2 13>;
459 dma-names = "tx", "rx";
463 dmac2: dma-controller@20078000 {
464 compatible = "arm,pl330", "arm,primecell";
465 reg = <0x20078000 0x4000>;
466 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
467 <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
469 arm,pl330-broken-no-flushp;
470 arm,pl330-periph-burst;
471 clocks = <&cru ACLK_DMA2>;
472 clock-names = "apb_pclk";