2 * Copyright (c) 2013 MundoReader S.L.
3 * Author: Heiko Stuebner <heiko@sntech.de>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
16 #include <dt-bindings/gpio/gpio.h>
17 #include <dt-bindings/pinctrl/rockchip.h>
18 #include <dt-bindings/clock/rk3188-cru.h>
19 #include "rk3xxx.dtsi"
20 #include "rk3188-clocks.dtsi"
23 compatible = "rockchip,rk3188";
28 enable-method = "rockchip,rk3066-smp";
32 compatible = "arm,cortex-a9";
33 next-level-cache = <&L2>;
38 compatible = "arm,cortex-a9";
39 next-level-cache = <&L2>;
44 compatible = "arm,cortex-a9";
45 next-level-cache = <&L2>;
50 compatible = "arm,cortex-a9";
51 next-level-cache = <&L2>;
57 global-timer@1013c200 {
58 interrupts = <GIC_PPI 11 0xf04>;
61 local-timer@1013c600 {
62 interrupts = <GIC_PPI 13 0xf04>;
66 compatible = "mmio-sram";
67 reg = <0x10080000 0x8000>;
70 ranges = <0 0x10080000 0x8000>;
73 compatible = "rockchip,rk3066-smp-sram";
78 cru: clock-controller@20000000 {
79 compatible = "rockchip,rk3188-cru";
80 reg = <0x20000000 0x1000>;
81 rockchip,grf = <&grf>;
88 compatible = "rockchip,rk3188-pinctrl";
89 rockchip,grf = <&grf>;
90 rockchip,pmu = <&pmu>;
96 gpio0: gpio0@0x2000a000 {
97 compatible = "rockchip,rk3188-gpio-bank0";
98 reg = <0x2000a000 0x100>;
99 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
100 clocks = <&cru PCLK_GPIO0>;
105 interrupt-controller;
106 #interrupt-cells = <2>;
109 gpio1: gpio1@0x2003c000 {
110 compatible = "rockchip,gpio-bank";
111 reg = <0x2003c000 0x100>;
112 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
113 clocks = <&cru PCLK_GPIO1>;
118 interrupt-controller;
119 #interrupt-cells = <2>;
122 gpio2: gpio2@2003e000 {
123 compatible = "rockchip,gpio-bank";
124 reg = <0x2003e000 0x100>;
125 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
126 clocks = <&cru PCLK_GPIO2>;
131 interrupt-controller;
132 #interrupt-cells = <2>;
135 gpio3: gpio3@20080000 {
136 compatible = "rockchip,gpio-bank";
137 reg = <0x20080000 0x100>;
138 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
139 clocks = <&cru PCLK_GPIO3>;
144 interrupt-controller;
145 #interrupt-cells = <2>;
148 pcfg_pull_up: pcfg_pull_up {
152 pcfg_pull_down: pcfg_pull_down {
156 pcfg_pull_none: pcfg_pull_none {
161 uart0_xfer: uart0-xfer {
162 rockchip,pins = <RK_GPIO1 0 RK_FUNC_1 &pcfg_pull_up>,
163 <RK_GPIO1 1 RK_FUNC_1 &pcfg_pull_none>;
166 uart0_cts: uart0-cts {
167 rockchip,pins = <RK_GPIO1 2 RK_FUNC_1 &pcfg_pull_none>;
170 uart0_rts: uart0-rts {
171 rockchip,pins = <RK_GPIO1 3 RK_FUNC_1 &pcfg_pull_none>;
176 uart1_xfer: uart1-xfer {
177 rockchip,pins = <RK_GPIO1 4 RK_FUNC_1 &pcfg_pull_up>,
178 <RK_GPIO1 5 RK_FUNC_1 &pcfg_pull_none>;
181 uart1_cts: uart1-cts {
182 rockchip,pins = <RK_GPIO1 6 RK_FUNC_1 &pcfg_pull_none>;
185 uart1_rts: uart1-rts {
186 rockchip,pins = <RK_GPIO1 7 RK_FUNC_1 &pcfg_pull_none>;
191 uart2_xfer: uart2-xfer {
192 rockchip,pins = <RK_GPIO1 8 RK_FUNC_1 &pcfg_pull_up>,
193 <RK_GPIO1 9 RK_FUNC_1 &pcfg_pull_none>;
195 /* no rts / cts for uart2 */
199 uart3_xfer: uart3-xfer {
200 rockchip,pins = <RK_GPIO1 10 RK_FUNC_1 &pcfg_pull_up>,
201 <RK_GPIO1 11 RK_FUNC_1 &pcfg_pull_none>;
204 uart3_cts: uart3-cts {
205 rockchip,pins = <RK_GPIO1 12 RK_FUNC_1 &pcfg_pull_none>;
208 uart3_rts: uart3-rts {
209 rockchip,pins = <RK_GPIO1 13 RK_FUNC_1 &pcfg_pull_none>;
215 rockchip,pins = <RK_GPIO3 2 RK_FUNC_1 &pcfg_pull_none>;
219 rockchip,pins = <RK_GPIO3 3 RK_FUNC_1 &pcfg_pull_none>;
223 rockchip,pins = <RK_GPIO3 8 RK_FUNC_1 &pcfg_pull_none>;
227 rockchip,pins = <RK_GPIO3 9 RK_FUNC_1 &pcfg_pull_none>;
231 rockchip,pins = <RK_GPIO3 1 RK_FUNC_1 &pcfg_pull_none>;
234 sd0_bus1: sd0-bus-width1 {
235 rockchip,pins = <RK_GPIO3 4 RK_FUNC_1 &pcfg_pull_none>;
238 sd0_bus4: sd0-bus-width4 {
239 rockchip,pins = <RK_GPIO3 4 RK_FUNC_1 &pcfg_pull_none>,
240 <RK_GPIO3 5 RK_FUNC_1 &pcfg_pull_none>,
241 <RK_GPIO3 6 RK_FUNC_1 &pcfg_pull_none>,
242 <RK_GPIO3 7 RK_FUNC_1 &pcfg_pull_none>;
248 rockchip,pins = <RK_GPIO3 21 RK_FUNC_1 &pcfg_pull_none>;
252 rockchip,pins = <RK_GPIO3 16 RK_FUNC_1 &pcfg_pull_none>;
256 rockchip,pins = <RK_GPIO3 22 RK_FUNC_1 &pcfg_pull_none>;
260 rockchip,pins = <RK_GPIO3 23 RK_FUNC_1 &pcfg_pull_none>;
263 sd1_bus1: sd1-bus-width1 {
264 rockchip,pins = <RK_GPIO3 17 RK_FUNC_1 &pcfg_pull_none>;
267 sd1_bus4: sd1-bus-width4 {
268 rockchip,pins = <RK_GPIO3 17 RK_FUNC_1 &pcfg_pull_none>,
269 <RK_GPIO3 18 RK_FUNC_1 &pcfg_pull_none>,
270 <RK_GPIO3 19 RK_FUNC_1 &pcfg_pull_none>,
271 <RK_GPIO3 20 RK_FUNC_1 &pcfg_pull_none>;