1 #include <dt-bindings/interrupt-controller/arm-gic.h>
2 #include <dt-bindings/gpio/gpio.h>
3 #include <dt-bindings/pinctrl/rockchip.h>
5 #include "skeleton.dtsi"
8 compatible = "rockchip,rk3188";
9 interrupt-parent = <&gic>;
17 compatible = "arm,cortex-a9";
22 compatible = "arm,cortex-a9";
27 compatible = "arm,cortex-a9";
32 compatible = "arm,cortex-a9";
38 compatible = "arm,cortex-a9-twd-wdt";
39 reg = <0x1013c620 0x20>;
40 interrupts = <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
43 gic: interrupt-controller@1013d000 {
44 compatible = "arm,cortex-a9-gic";
46 #interrupt-cells = <3>;
47 reg = <0x1013d000 0x1000>,
51 L2: cache-controller@10138000 {
52 compatible = "arm,pl310-cache";
53 reg = <0x10138000 0x1000>;
56 arm,tag-latency = <1 1 1>;
57 arm,data-latency = <2 3 1>;
58 prefetch-ctrl = <0x70000003>;
59 /* L2X0_DYNAMIC_CLK_GATING_EN | L2X0_STNDBY_MODE_EN */
62 (0x1 << 0) | // Full line of write zero behavior Enabled
63 (0x1 << 25) | // Round-robin replacement
64 (0x1 << L2X0_AUX_CTRL_DATA_PREFETCH_SHIFT) |
65 (0x1 << L2X0_AUX_CTRL_INSTR_PREFETCH_SHIFT) |
66 (0x1 << L2X0_AUX_CTRL_EARLY_BRESP_SHIFT)
68 aux-ctrl = <0x72000001 (~0x72000001)>;
71 cpu_axi_bus: cpu_axi_bus@10128000 {
72 compatible = "rockchip,cpu_axi_bus";
73 reg = <0x10128000 0x8000>;
126 compatible = "rockchip,bootrom";
127 reg = <0x10120000 0x4000>;
131 compatible = "rockchip,bootram";
132 reg = <0x10080000 0x20>; /* 32 bytes */
136 compatible = "mmio-sram";
137 reg = <0x10080020 (0x8000 - 0x20)>; /* 32k - 32 */
142 compatible = "rockchip,pmu";
143 reg = <0x20004000 0x4000>;
147 compatible = "rockchip,timer";
148 reg = <0x200380a0 0x20>;
149 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
153 compatible = "rockchip,timer";
154 reg = <0x20038000 0x20>;
155 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
159 compatible = "rockchip,timer";
160 reg = <0x20038020 0x20>;
161 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
165 compatible = "rockchip,timer";
166 reg = <0x20038060 0x20>;
167 interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
171 compatible = "rockchip,timer";
172 reg = <0x20038080 0x20>;
173 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
177 compatible = "rockchip,rk3188-pinctrl";
178 reg = <0x20008000 0xa0>,
180 reg-names = "base", "pull";
181 #address-cells = <1>;
185 gpio0: gpio0@0x2000a000 {
186 compatible = "rockchip,rk3188-gpio-bank0";
187 reg = <0x2000a000 0x100>,
189 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
190 /*clocks = <&clk_gates8 9>;*/
195 interrupt-controller;
196 #interrupt-cells = <2>;
199 gpio1: gpio1@0x2003c000 {
200 compatible = "rockchip,gpio-bank";
201 reg = <0x2003c000 0x100>;
202 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
203 /*clocks = <&clk_gates8 10>;*/
208 interrupt-controller;
209 #interrupt-cells = <2>;
212 gpio2: gpio2@2003e000 {
213 compatible = "rockchip,gpio-bank";
214 reg = <0x2003e000 0x100>;
215 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
216 /*clocks = <&clk_gates8 11>;*/
221 interrupt-controller;
222 #interrupt-cells = <2>;
225 gpio3: gpio3@20080000 {
226 compatible = "rockchip,gpio-bank";
227 reg = <0x20080000 0x100>;
228 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
229 /*clocks = <&clk_gates8 12>;*/
234 interrupt-controller;
235 #interrupt-cells = <2>;
238 pcfg_pull_up: pcfg_pull_up {
242 pcfg_pull_down: pcfg_pull_down {
246 pcfg_pull_none: pcfg_pull_none {
251 uart0_xfer: uart0-xfer {
252 rockchip,pins = <RK_GPIO1 0 RK_FUNC_1 &pcfg_pull_none>,
253 <RK_GPIO1 1 RK_FUNC_1 &pcfg_pull_none>;
256 uart0_cts: uart0-cts {
257 rockchip,pins = <RK_GPIO1 2 RK_FUNC_1 &pcfg_pull_none>;
260 uart0_rts: uart0-rts {
261 rockchip,pins = <RK_GPIO1 3 RK_FUNC_1 &pcfg_pull_none>;
266 uart1_xfer: uart1-xfer {
267 rockchip,pins = <RK_GPIO1 4 RK_FUNC_1 &pcfg_pull_none>,
268 <RK_GPIO1 5 RK_FUNC_1 &pcfg_pull_none>;
271 uart1_cts: uart1-cts {
272 rockchip,pins = <RK_GPIO1 6 RK_FUNC_1 &pcfg_pull_none>;
275 uart1_rts: uart1-rts {
276 rockchip,pins = <RK_GPIO1 7 RK_FUNC_1 &pcfg_pull_none>;
281 uart2_xfer: uart2-xfer {
282 rockchip,pins = <RK_GPIO1 8 RK_FUNC_1 &pcfg_pull_none>,
283 <RK_GPIO1 9 RK_FUNC_1 &pcfg_pull_none>;
285 /* no rts / cts for uart2 */
289 uart3_xfer: uart3-xfer {
290 rockchip,pins = <RK_GPIO1 10 RK_FUNC_1 &pcfg_pull_none>,
291 <RK_GPIO1 11 RK_FUNC_1 &pcfg_pull_none>;
294 uart3_cts: uart3-cts {
295 rockchip,pins = <RK_GPIO1 12 RK_FUNC_1 &pcfg_pull_none>;
298 uart3_rts: uart3-rts {
299 rockchip,pins = <RK_GPIO1 13 RK_FUNC_1 &pcfg_pull_none>;
305 rockchip,pins = <RK_GPIO3 2 RK_FUNC_1 &pcfg_pull_none>;
309 rockchip,pins = <RK_GPIO3 3 RK_FUNC_1 &pcfg_pull_none>;
313 rockchip,pins = <RK_GPIO3 8 RK_FUNC_1 &pcfg_pull_none>;
317 rockchip,pins = <RK_GPIO3 9 RK_FUNC_1 &pcfg_pull_none>;
321 rockchip,pins = <RK_GPIO3 1 RK_FUNC_1 &pcfg_pull_none>;
324 sd0_bus1: sd0-bus-width1 {
325 rockchip,pins = <RK_GPIO3 4 RK_FUNC_1 &pcfg_pull_none>;
328 sd0_bus4: sd0-bus-width4 {
329 rockchip,pins = <RK_GPIO3 4 RK_FUNC_1 &pcfg_pull_none>,
330 <RK_GPIO3 5 RK_FUNC_1 &pcfg_pull_none>,
331 <RK_GPIO3 6 RK_FUNC_1 &pcfg_pull_none>,
332 <RK_GPIO3 7 RK_FUNC_1 &pcfg_pull_none>;
338 rockchip,pins = <RK_GPIO3 21 RK_FUNC_1 &pcfg_pull_none>;
342 rockchip,pins = <RK_GPIO3 16 RK_FUNC_1 &pcfg_pull_none>;
346 rockchip,pins = <RK_GPIO3 22 RK_FUNC_1 &pcfg_pull_none>;
350 rockchip,pins = <RK_GPIO3 23 RK_FUNC_1 &pcfg_pull_none>;
353 sd1_bus1: sd1-bus-width1 {
354 rockchip,pins = <RK_GPIO3 17 RK_FUNC_1 &pcfg_pull_none>;
357 sd1_bus4: sd1-bus-width4 {
358 rockchip,pins = <RK_GPIO3 17 RK_FUNC_1 &pcfg_pull_none>,
359 <RK_GPIO3 18 RK_FUNC_1 &pcfg_pull_none>,
360 <RK_GPIO3 19 RK_FUNC_1 &pcfg_pull_none>,
361 <RK_GPIO3 20 RK_FUNC_1 &pcfg_pull_none>;
367 uart0: serial@10124000 {
368 compatible = "rockchip,serial";
369 reg = <0x10124000 0x100>;
370 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
371 clock-frequency = <24000000>;
378 uart1: serial@10126000 {
379 compatible = "rockchip,serial";
380 reg = <0x10126000 0x100>;
381 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
382 clock-frequency = <24000000>;
389 uart2: serial@20064000 {
390 compatible = "rockchip,serial";
391 reg = <0x20064000 0x100>;
392 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
393 clock-frequency = <24000000>;
394 current-speed = <115200>;
401 uart3: serial@20068000 {
402 compatible = "rockchip,serial";
403 reg = <0x20068000 0x100>;
404 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
405 clock-frequency = <24000000>;