2 #include "skeleton.dtsi"
3 #include "rk3188-pinctrl.dtsi"
4 #include <dt-bindings/rkfb/rk_fb.h>
5 #include "rk3188_io_vol_domain.dtsi"
9 compatible = "rockchip,rk3188";
10 interrupt-parent = <&gic>;
11 rockchip,sram = <&sram>;
33 compatible = "arm,cortex-a9";
38 compatible = "arm,cortex-a9";
43 compatible = "arm,cortex-a9";
48 compatible = "arm,cortex-a9";
54 compatible = "arm,cortex-a9-twd-wdt";
55 reg = <0x1013c620 0x20>;
56 interrupts = <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
59 gic: interrupt-controller@1013d000 {
60 compatible = "arm,cortex-a9-gic";
62 #interrupt-cells = <3>;
63 reg = <0x1013d000 0x1000>,
67 L2: cache-controller@10138000 {
68 compatible = "rockchip,pl310-cache", "arm,pl310-cache";
69 reg = <0x10138000 0x1000>;
72 arm,tag-latency = <1 1 1>;
73 arm,data-latency = <3 1 2>;
74 rockchip,prefetch-ctrl = <0x70000003>;
75 /* L2X0_DYNAMIC_CLK_GATING_EN | L2X0_STNDBY_MODE_EN */
76 rockchip,power-ctrl = <0x3>;
78 (0x1 << 0) | // Full line of write zero behavior Enabled
79 (0x1 << 25) | // Round-robin replacement
80 (0x1 << L2X0_AUX_CTRL_DATA_PREFETCH_SHIFT) |
81 (0x1 << L2X0_AUX_CTRL_INSTR_PREFETCH_SHIFT) |
82 (0x1 << L2X0_AUX_CTRL_EARLY_BRESP_SHIFT)
84 rockchip,aux-ctrl = <0x72000001 (~0x72000001)>;
87 cpu_axi_bus: cpu_axi_bus@10128000 {
88 compatible = "rockchip,cpu_axi_bus";
89 reg = <0x10128000 0x8000>;
92 rockchip,offset = <0x1000>;
93 rockchip,priority = <0 0>;
96 rockchip,offset = <0x2000>;
97 rockchip,priority = <0 0>;
100 rockchip,offset = <0x2080>;
101 rockchip,priority = <0 0>;
104 rockchip,offset = <0x2100>;
105 rockchip,priority = <0 0>;
108 rockchip,offset = <0x4000>;
109 rockchip,priority = <2 2>;
112 rockchip,offset = <0x5000>;
113 rockchip,priority = <2 1>;
116 rockchip,offset = <0x6000>;
119 rockchip,offset = <0x7000>;
120 rockchip,priority = <3 3>;
123 rockchip,offset = <0x7080>;
126 rockchip,offset = <0x7100>;
129 rockchip,offset = <0x7180>;
130 rockchip,priority = <3 3>;
133 rockchip,offset = <0x7200>;
136 rockchip,offset = <0x7280>;
142 compatible = "rockchip,bootrom";
143 reg = <0x10120000 0x4000>;
147 compatible = "rockchip,bootram";
148 reg = <0x10080000 0x20>; /* 32 bytes */
151 sram: sram@10080020 {
152 compatible = "mmio-sram";
153 reg = <0x10080020 (0x8000 - 0x20)>; /* 32k - 32 */
158 compatible = "rockchip,pmu";
159 reg = <0x20004000 0x4000>;
163 compatible = "rockchip,timer";
164 reg = <0x20038000 0x20>;
165 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
166 rockchip,percpu = <0>;
170 compatible = "rockchip,timer";
171 reg = <0x20038020 0x20>;
172 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
173 rockchip,percpu = <1>;
177 compatible = "rockchip,timer";
178 reg = <0x20038040 0x20>;
179 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
180 rockchip,percpu = <2>;
184 compatible = "rockchip,timer";
185 reg = <0x20038060 0x20>;
186 interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
187 rockchip,percpu = <3>;
191 compatible = "rockchip,timer";
192 reg = <0x20038080 0x20>;
193 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
194 rockchip,broadcast = <1>;
198 compatible = "rockchip,timer";
199 reg = <0x200380a0 0x20>;
200 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
201 rockchip,clocksource = <1>;
204 watchdog:wdt@2004c000 {
205 compatible = "rockchip,watch dog";
206 reg = <0x2004c000 0x100>;
207 clocks = <&clk_gates7 15>;
208 clock-names = "pclk_wdt";
209 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
211 rockchip,timeout = <5>;
212 rockchip,atboot = <1>;
213 rockchip,debug = <0>;
218 #address-cells = <1>;
220 compatible = "arm,amba-bus";
221 interrupt-parent = <&gic>;
224 pdma0: pdma@20018000 {
225 compatible = "arm,pl330", "arm,primecell";
226 reg = <0x20018000 0x4000>;
227 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
228 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
232 pdma1: pdma@20078000 {
233 compatible = "arm,pl330", "arm,primecell";
234 reg = <0x20078000 0x4000>;
235 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
236 <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
241 uart0: serial@10124000 {
242 compatible = "rockchip,serial";
243 reg = <0x10124000 0x100>;
244 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
245 clock-frequency = <24000000>;
246 clocks = <&clk_uart0>, <&clk_gates8 0>;
247 clock-names = "sclk_uart", "pclk_uart";
250 dmas = <&pdma0 0>, <&pdma0 1>;
252 pinctrl-names = "default";
253 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
257 uart1: serial@10126000 {
258 compatible = "rockchip,serial";
259 reg = <0x10126000 0x100>;
260 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
261 clock-frequency = <24000000>;
262 clocks = <&clk_uart1>, <&clk_gates8 1>;
263 clock-names = "sclk_uart", "pclk_uart";
266 dmas = <&pdma0 2>, <&pdma0 3>;
268 pinctrl-names = "default";
269 pinctrl-0 = <&uart1_xfer &uart1_cts &uart1_rts>;
273 uart2: serial@20064000 {
274 compatible = "rockchip,serial";
275 reg = <0x20064000 0x100>;
276 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
277 clock-frequency = <24000000>;
278 clocks = <&clk_uart2>, <&clk_gates8 2>;
279 clock-names = "sclk_uart", "pclk_uart";
280 current-speed = <115200>;
283 pinctrl-names = "default";
284 pinctrl-0 = <&uart2_xfer>;
288 uart3: serial@20068000 {
289 compatible = "rockchip,serial";
290 reg = <0x20068000 0x100>;
291 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
292 clock-frequency = <24000000>;
293 clocks = <&clk_uart3>, <&clk_gates8 3>;
294 clock-names = "sclk_uart", "pclk_uart";
297 dmas = <&pdma1 8>, <&pdma1 9>;
299 pinctrl-names = "default";
300 pinctrl-0 = <&uart3_xfer &uart3_cts &uart3_rts>;
305 compatible = "rockchip,fiq-debugger";
306 rockchip,serial-id = <2>;
307 rockchip,signal-irq = <112>;
308 rockchip,wake-irq = <0>;
313 compatible = "rockchip,rk30-i2c";
314 reg = <0x2002d000 0x1000>;
315 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
316 #address-cells = <1>;
318 pinctrl-names = "default", "gpio";
319 pinctrl-0 = <&i2c0_sda &i2c0_scl>;
320 pinctrl-1 = <&i2c0_gpio>;
321 gpios = <&gpio1 GPIO_D0 GPIO_ACTIVE_LOW>, <&gpio1 GPIO_D1 GPIO_ACTIVE_LOW>;
322 clocks = <&clk_gates8 4>;
323 rockchip,check-idle = <1>;
328 compatible = "rockchip,rk30-i2c";
329 reg = <0x2002f000 0x1000>;
330 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
331 #address-cells = <1>;
333 pinctrl-names = "default", "gpio";
334 pinctrl-0 = <&i2c1_sda &i2c1_scl>;
335 pinctrl-1 = <&i2c1_gpio>;
336 gpios = <&gpio1 GPIO_D2 GPIO_ACTIVE_LOW>, <&gpio1 GPIO_D3 GPIO_ACTIVE_LOW>;
337 clocks = <&clk_gates8 5>;
338 rockchip,check-idle = <1>;
343 compatible = "rockchip,rk30-i2c";
344 reg = <0x20056000 0x1000>;
345 interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
346 #address-cells = <1>;
348 pinctrl-names = "default", "gpio";
349 pinctrl-0 = <&i2c2_sda &i2c2_scl>;
350 pinctrl-1 = <&i2c2_gpio>;
351 gpios = <&gpio1 GPIO_D4 GPIO_ACTIVE_LOW>, <&gpio1 GPIO_D5 GPIO_ACTIVE_LOW>;
352 clocks = <&clk_gates8 6>;
353 rockchip,check-idle = <1>;
358 compatible = "rockchip,rk30-i2c";
359 reg = <0x2005a000 0x1000>;
360 interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
361 #address-cells = <1>;
363 pinctrl-names = "default", "gpio";
364 pinctrl-0 = <&i2c3_sda &i2c3_scl>;
365 pinctrl-1 = <&i2c3_gpio>;
366 gpios = <&gpio3 GPIO_B6 GPIO_ACTIVE_LOW>, <&gpio3 GPIO_B7 GPIO_ACTIVE_LOW>;
367 clocks = <&clk_gates8 7>;
368 rockchip,check-idle = <1>;
373 compatible = "rockchip,rk30-i2c";
374 reg = <0x2005e000 0x1000>;
375 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
376 #address-cells = <1>;
378 pinctrl-names = "default", "gpio";
379 pinctrl-0 = <&i2c4_sda &i2c4_scl>;
380 pinctrl-1 = <&i2c4_gpio>;
381 gpios = <&gpio1 GPIO_D6 GPIO_ACTIVE_LOW>, <&gpio1 GPIO_D7 GPIO_ACTIVE_LOW>;
382 clocks = <&clk_gates8 8>;
383 rockchip,check-idle = <1>;
388 compatible = "rockchip,clocks-init";
389 rockchip,clocks-init-parent =
390 <&clk_core &clk_apll>, <&aclk_cpu_mux &clk_gpll>,/*FIXME*/
391 <&aclk_peri_mux &clk_gpll>, <&clk_i2s_pll_mux &clk_cpll>,
392 <&clk_uart_pll_mux &clk_gpll>;
393 rockchip,clocks-init-rate =
394 <&clk_core 792000000>, <&clk_gpll 768000000>,
395 <&clk_cpll 594000000>, <&aclk_cpu 192000000>,
396 <&hclk_cpu 96000000>, <&pclk_cpu 48000000>,
397 <&pclk_ahb2apb 48000000>, <&aclk_peri 192000000>,
398 <&hclk_peri 96000000>, <&pclk_peri 48000000>,
399 <&clk_gpu 200000000>, <&aclk_lcdc0 300000000>,
400 <&aclk_lcdc1 300000000>;
404 compatible = "rockchip,rk-fb";
405 rockchip,disp-mode = <DUAL>;
409 compatible = "rockchip,rk-nandc";
410 reg = <0x10050000 0x4000>;
411 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
414 lcdc0:lcdc@1010c000 {
415 compatible = "rockchip,rk3188-lcdc";
416 rockchip,prop = <PRMRY>;
417 rochchip,pwr18 = <0>;
418 reg = <0x1010c000 0x1000>;
419 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
423 lcdc1:lcdc@1010e000 {
424 compatible = "rockchip,rk3188-lcdc";
425 rockchip,prop = <EXTEND>;
426 rockchip,pwr18 = <0>;
427 reg = <0x1010e000 0x1000>;
428 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
429 pinctrl-names = "default", "gpio";
430 pinctrl-0 = <&lcdc1_lcdc>;
431 pinctrl-1 = <&lcdc1_gpio>;
435 compatible = "rockchip,rga";
436 reg = <0x10114000 0x1000>;
437 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
438 clocks = <&clk_gates6 10>, <&clk_gates6 11>;
439 clock-names = "hclk_rga", "aclk_rga";
444 compatible = "rockchip,saradc";
445 reg = <0x2006c000 0x100>;
446 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
447 #io-channel-cells = <1>;
449 rockchip,adc-vref = <1800>;
450 clock-frequency = <1000000>;
451 clocks = <&clk_saradc>, <&clk_gates7 14>;
452 clock-names = "saradc", "pclk_saradc";
456 spdif: rockchip-spdif@0x1011e000 {
457 compatible = "rockchip-spdif";
458 reg = <0x1011e000 0x2000>;
459 clocks = <&clk_spdif>;
460 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
464 pinctrl-names = "default";
465 pinctrl-0 = <&spdif_tx>;
468 i2s1: rockchip-i2s@0x1011a000 {
469 compatible = "rockchip-i2s";
470 reg = <0x1011a000 0x2000>;
473 clock-names = "i2s_clk";
474 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
478 dma-names = "tx", "rx";
479 pinctrl-names = "default", "sleep";
480 pinctrl-0 = <&i2s0_mclk &i2s0_sclk &i2s0_lrckrx &i2s0_lrcktx &i2s0_sdi &i2s0_sdo>;
481 pinctrl-1 = <&i2s0_gpio>;
485 compatible = "rockchip,pwm";
486 reg = <0x20030000 0x10>;
488 pinctrl-names = "default";
489 pinctrl-0 = <&pwm0_pin>;
495 compatible = "rockchip,pwm";
496 reg = <0x20030010 0x10>; /*0x20030000*/
498 pinctrl-names = "default";
499 pinctrl-0 = <&pwm1_pin>;
504 compatible = "rockchip,pwm";
505 reg = <0x20050020 0x10>; /*0x20030000*/
507 pinctrl-names = "default";
508 pinctrl-0 = <&pwm2_pin>;
514 compatible = "rockchip,pwm";
515 reg = <0x20050030 0x10>; /*0x20030000*/
517 pinctrl-names = "default";
518 pinctrl-0 = <&pwm3_pin>;
525 regulator_name="vdd_arm";
526 suspend_volt=<1000>; //mV
546 regulator_name="vdd_logic";
547 suspend_volt=<1000>; //mV
575 compatible = "rockchip,ion";
576 #address-cells = <1>;
578 rockchip,ion-heap@1 { /* CMA HEAP */
581 rockchip,ion-heap@3 { /* SYSTEM HEAP */
586 dwc_control_usb: dwc-control-usb@0x200080ac {
587 compatible = "rockchip,rk3188-dwc-control-usb";
588 reg = <0x200080ac 0x4>,
593 reg-names = "GRF_SOC_STATUS0",
598 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
599 interrupt-names = "bvalid";
600 gpios = <&gpio0 GPIO_C0 GPIO_ACTIVE_LOW>, <&gpio3 GPIO_D5 GPIO_ACTIVE_LOW>;
601 clocks = <&clk_gates4 5>;
602 clock-names = "hclk_usb_peri";
606 compatible = "rockchip,usb20_otg";
607 reg = <0x10180000 0x40000>;
608 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
609 clocks = <&clk_otgphy0_480m>, <&clk_gates5 13>;
610 clock-names = "otgphy0", "hclk_otg0";
614 compatible = "rockchip,usb20_host";
615 reg = <0x101c0000 0x40000>;
616 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
617 clocks = <&clk_otgphy1_480m>, <&clk_gates7 3>;
618 clock-names = "otgphy1", "hclk_otg1";
622 compatible = "rockchip,rk_hsic_host";
623 reg = <0x10240000 0x40000>;
624 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
625 clocks = <&clk_hsicphy480m>, <&clk_gates7 4>,
626 <&clk_hsicphy12m>, <&clk_otgphy1_480m>;
627 clock-names = "hsicphy480m", "hclk_hsic",
628 "hsicphy12m", "hsic_otgphy1";