1 #include <dt-bindings/interrupt-controller/arm-gic.h>
2 #include <dt-bindings/gpio/gpio.h>
3 #include <dt-bindings/pinctrl/rockchip.h>
4 #include <dt-bindings/pinctrl/rockchip-rk3188.h>
6 #include "skeleton.dtsi"
9 compatible = "rockchip,rk3188";
10 interrupt-parent = <&gic>;
18 compatible = "arm,cortex-a9";
23 compatible = "arm,cortex-a9";
28 compatible = "arm,cortex-a9";
33 compatible = "arm,cortex-a9";
39 compatible = "arm,cortex-a9-twd-wdt";
40 reg = <0x1013c620 0x20>;
41 interrupts = <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
44 gic: interrupt-controller@1013d000 {
45 compatible = "arm,cortex-a9-gic";
47 #interrupt-cells = <3>;
48 reg = <0x1013d000 0x1000>,
52 L2: cache-controller@10138000 {
53 compatible = "arm,pl310-cache";
54 reg = <0x10138000 0x1000>;
57 arm,tag-latency = <1 1 1>;
58 arm,data-latency = <2 3 1>;
59 prefetch-ctrl = <0x70000003>;
60 /* L2X0_DYNAMIC_CLK_GATING_EN | L2X0_STNDBY_MODE_EN */
63 (0x1 << 0) | // Full line of write zero behavior Enabled
64 (0x1 << 25) | // Round-robin replacement
65 (0x1 << L2X0_AUX_CTRL_DATA_PREFETCH_SHIFT) |
66 (0x1 << L2X0_AUX_CTRL_INSTR_PREFETCH_SHIFT) |
67 (0x1 << L2X0_AUX_CTRL_EARLY_BRESP_SHIFT)
69 aux-ctrl = <0x72000001 (~0x72000001)>;
72 cpu_axi_bus: cpu_axi_bus@10128000 {
73 compatible = "rockchip,cpu_axi_bus";
74 reg = <0x10128000 0x8000>;
127 compatible = "rockchip,bootrom";
128 reg = <0x10120000 0x4000>;
132 compatible = "rockchip,bootram";
133 reg = <0x10080000 0x20>; /* 32 bytes */
137 compatible = "mmio-sram";
138 reg = <0x10080020 (0x8000 - 0x20)>; /* 32k - 32 */
143 compatible = "rockchip,pmu";
144 reg = <0x20004000 0x4000>;
148 compatible = "rockchip,timer";
149 reg = <0x200380a0 0x20>;
150 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
154 compatible = "rockchip,timer";
155 reg = <0x20038000 0x20>;
156 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
160 compatible = "rockchip,timer";
161 reg = <0x20038020 0x20>;
162 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
166 compatible = "rockchip,timer";
167 reg = <0x20038060 0x20>;
168 interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
172 compatible = "rockchip,timer";
173 reg = <0x20038080 0x20>;
174 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
178 compatible = "rockchip,rk3188-pinctrl";
179 reg = <0x20008000 0xa0>,
181 reg-names = "base", "pull";
182 #address-cells = <1>;
186 gpio0: gpio0@0x2000a000 {
187 compatible = "rockchip,rk3188-gpio-bank0";
188 reg = <0x2000a000 0x100>,
190 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
191 /*clocks = <&clk_gates8 9>;*/
196 interrupt-controller;
197 #interrupt-cells = <2>;
200 gpio1: gpio1@0x2003c000 {
201 compatible = "rockchip,gpio-bank";
202 reg = <0x2003c000 0x100>;
203 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
204 /*clocks = <&clk_gates8 10>;*/
209 interrupt-controller;
210 #interrupt-cells = <2>;
213 gpio2: gpio2@2003e000 {
214 compatible = "rockchip,gpio-bank";
215 reg = <0x2003e000 0x100>;
216 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
217 /*clocks = <&clk_gates8 11>;*/
222 interrupt-controller;
223 #interrupt-cells = <2>;
226 gpio3: gpio3@20080000 {
227 compatible = "rockchip,gpio-bank";
228 reg = <0x20080000 0x100>;
229 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
230 /*clocks = <&clk_gates8 12>;*/
235 interrupt-controller;
236 #interrupt-cells = <2>;
239 pcfg_pull_up: pcfg_pull_up {
243 pcfg_pull_down: pcfg_pull_down {
247 pcfg_pull_none: pcfg_pull_none {
252 uart0_xfer: uart0-xfer {
253 rockchip,pins = <UART0_SIN &pcfg_pull_none>,
254 <UART0_SOUT &pcfg_pull_none>;
257 uart0_cts: uart0-cts {
258 rockchip,pins = <UART0_CTSN &pcfg_pull_none>;
261 uart0_rts: uart0-rts {
262 rockchip,pins = <UART0_RTSN &pcfg_pull_none>;
267 uart1_xfer: uart1-xfer {
268 rockchip,pins = <UART1_SIN &pcfg_pull_none>,
269 <UART1_SOUT &pcfg_pull_none>;
272 uart1_cts: uart1-cts {
273 rockchip,pins = <UART1_CTSN &pcfg_pull_none>;
276 uart1_rts: uart1-rts {
277 rockchip,pins = <UART1_RTSN &pcfg_pull_none>;
282 uart2_xfer: uart2-xfer {
283 rockchip,pins = <UART2_SIN &pcfg_pull_none>,
284 <UART2_SOUT &pcfg_pull_none>;
286 /* no rts / cts for uart2 */
290 uart3_xfer: uart3-xfer {
291 rockchip,pins = <UART3_SIN &pcfg_pull_none>,
292 <UART3_SOUT &pcfg_pull_none>;
295 uart3_cts: uart3-cts {
296 rockchip,pins = <UART3_CTSN &pcfg_pull_none>;
299 uart3_rts: uart3-rts {
300 rockchip,pins = <UART3_RTSN &pcfg_pull_none>;
306 rockchip,pins = <MMC0_CLKOUT &pcfg_pull_none>;
310 rockchip,pins = <MMC0_CMD &pcfg_pull_none>;
314 rockchip,pins = <MMC0_DETN &pcfg_pull_none>;
318 rockchip,pins = <MMC0_WRPRT &pcfg_pull_none>;
322 rockchip,pins = <MMC0_PWREN &pcfg_pull_none>;
325 sd0_bus1: sd0-bus-width1 {
326 rockchip,pins = <MMC0_D0 &pcfg_pull_none>;
329 sd0_bus4: sd0-bus-width4 {
330 rockchip,pins = <MMC0_D0 &pcfg_pull_none>,
331 <MMC0_D1 &pcfg_pull_none>,
332 <MMC0_D2 &pcfg_pull_none>,
333 <MMC0_D3 &pcfg_pull_none>;
340 rockchip,pins = <MMC1_CLKOUT &pcfg_pull_none>;
344 rockchip,pins = <MMC1_CMD &pcfg_pull_none>;
348 rockchip,pins = <MMC1_DETN &pcfg_pull_none>;
352 rockchip,pins = <MMC1_WRPRT &pcfg_pull_none>;
355 sd1_bus1: sd1-bus-width1 {
356 rockchip,pins = <MMC1_D0 &pcfg_pull_none>;
359 sd1_bus4: sd1-bus-width4 {
360 rockchip,pins = <MMC1_D0 &pcfg_pull_none>,
361 <MMC1_D1 &pcfg_pull_none>,
362 <MMC1_D2 &pcfg_pull_none>,
363 <MMC1_D3 &pcfg_pull_none>;
369 uart0: serial@10124000 {
370 compatible = "rockchip,serial";
371 reg = <0x10124000 0x100>;
372 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
373 clock-frequency = <24000000>;
377 pinctrl-names = "default";
378 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
382 uart1: serial@10126000 {
383 compatible = "rockchip,serial";
384 reg = <0x10126000 0x100>;
385 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
386 clock-frequency = <24000000>;
390 pinctrl-names = "default";
391 pinctrl-0 = <&uart1_xfer &uart1_cts &uart1_rts>;
395 uart2: serial@20064000 {
396 compatible = "rockchip,serial";
397 reg = <0x20064000 0x100>;
398 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
399 clock-frequency = <24000000>;
400 current-speed = <115200>;
404 pinctrl-names = "default";
405 pinctrl-0 = <&uart2_xfer>;
409 uart3: serial@20068000 {
410 compatible = "rockchip,serial";
411 reg = <0x20068000 0x100>;
412 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
413 clock-frequency = <24000000>;
417 pinctrl-names = "default";
418 pinctrl-0 = <&uart3_xfer &uart3_cts &uart3_rts>;
423 compatible = "rockchip,fiq-debugger";