Commit | Line | Data |
---|---|---|
6bcf60f8 HS |
1 | /* |
2 | * Copyright (c) 2013 Heiko Stuebner <heiko@sntech.de> | |
3 | * | |
4 | * This program is free software; you can redistribute it and/or modify | |
5 | * it under the terms of the GNU General Public License as published by | |
6 | * the Free Software Foundation; either version 2 of the License, or | |
7 | * (at your option) any later version. | |
8 | * | |
9 | * This program is distributed in the hope that it will be useful, | |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | * GNU General Public License for more details. | |
13 | */ | |
14 | ||
15 | /dts-v1/; | |
16 | #include "rk3188.dtsi" | |
17 | ||
18 | / { | |
19 | model = "Radxa Rock"; | |
ac4eba8e | 20 | compatible = "radxa,rock", "rockchip,rk3188"; |
6bcf60f8 HS |
21 | |
22 | memory { | |
23 | reg = <0x60000000 0x80000000>; | |
24 | }; | |
25 | ||
c3030d30 HS |
26 | gpio-keys { |
27 | compatible = "gpio-keys"; | |
28 | #address-cells = <1>; | |
29 | #size-cells = <0>; | |
30 | autorepeat; | |
6bcf60f8 | 31 | |
c3030d30 HS |
32 | button@0 { |
33 | gpios = <&gpio0 4 GPIO_ACTIVE_LOW>; | |
34 | linux,code = <116>; | |
35 | label = "GPIO Key Power"; | |
36 | linux,input-type = <1>; | |
37 | gpio-key,wakeup = <1>; | |
38 | debounce-interval = <100>; | |
6bcf60f8 | 39 | }; |
c3030d30 | 40 | }; |
6bcf60f8 | 41 | |
c3030d30 HS |
42 | gpio-leds { |
43 | compatible = "gpio-leds"; | |
6bcf60f8 | 44 | |
c3030d30 HS |
45 | green { |
46 | gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; | |
47 | default-state = "off"; | |
48 | }; | |
6bcf60f8 | 49 | |
c3030d30 HS |
50 | yellow { |
51 | gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; | |
52 | default-state = "off"; | |
6bcf60f8 HS |
53 | }; |
54 | ||
c3030d30 HS |
55 | sleep { |
56 | gpios = <&gpio0 15 0>; | |
57 | default-state = "off"; | |
58 | }; | |
6bcf60f8 | 59 | }; |
b09e35a3 | 60 | |
08567053 BG |
61 | ir_recv: gpio-ir-receiver { |
62 | compatible = "gpio-ir-receiver"; | |
63 | gpios = <&gpio0 10 1>; | |
64 | pinctrl-names = "default"; | |
65 | pinctrl-0 = <&ir_recv_pin>; | |
66 | }; | |
67 | ||
f1c8547f HS |
68 | vcc_otg: usb-otg-regulator { |
69 | compatible = "regulator-fixed"; | |
70 | enable-active-high; | |
71 | gpio = <&gpio2 31 GPIO_ACTIVE_HIGH>; | |
72 | pinctrl-names = "default"; | |
66fa6cf2 | 73 | pinctrl-0 = <&otg_vbus_drv>; |
f1c8547f HS |
74 | regulator-name = "otg-vbus"; |
75 | regulator-min-microvolt = <5000000>; | |
76 | regulator-max-microvolt = <5000000>; | |
77 | regulator-always-on; | |
78 | regulator-boot-on; | |
79 | }; | |
80 | ||
b09e35a3 HS |
81 | vcc_sd0: sdmmc-regulator { |
82 | compatible = "regulator-fixed"; | |
83 | regulator-name = "sdmmc-supply"; | |
84 | regulator-min-microvolt = <3300000>; | |
85 | regulator-max-microvolt = <3300000>; | |
86 | gpio = <&gpio3 1 GPIO_ACTIVE_LOW>; | |
87 | startup-delay-us = <100000>; | |
88 | vin-supply = <&vcc_io>; | |
89 | }; | |
f1c8547f HS |
90 | |
91 | vcc_host: usb-host-regulator { | |
92 | compatible = "regulator-fixed"; | |
93 | enable-active-high; | |
94 | gpio = <&gpio0 3 GPIO_ACTIVE_HIGH>; | |
95 | pinctrl-names = "default"; | |
66fa6cf2 | 96 | pinctrl-0 = <&host_vbus_drv>; |
f1c8547f HS |
97 | regulator-name = "host-pwr"; |
98 | regulator-min-microvolt = <5000000>; | |
99 | regulator-max-microvolt = <5000000>; | |
100 | regulator-always-on; | |
101 | regulator-boot-on; | |
102 | }; | |
6bcf60f8 | 103 | }; |
fcbbf965 | 104 | |
c6ec956b RP |
105 | &emac { |
106 | status = "okay"; | |
107 | ||
108 | pinctrl-names = "default"; | |
109 | pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&phy_int>; | |
110 | ||
111 | phy = <&phy0>; | |
112 | phy-supply = <&vcc_rmii>; | |
113 | ||
114 | phy0: ethernet-phy@0 { | |
115 | reg = <0>; | |
116 | interrupt-parent = <&gpio3>; | |
117 | interrupts = <26 IRQ_TYPE_LEVEL_LOW>; | |
118 | }; | |
119 | }; | |
120 | ||
3adb1327 HS |
121 | &cpu0 { |
122 | cpu0-supply = <&vdd_arm>; | |
123 | }; | |
124 | ||
fe2c89af BG |
125 | &i2c1 { |
126 | status = "okay"; | |
127 | clock-frequency = <400000>; | |
128 | ||
4721ab85 HS |
129 | rtc@51 { |
130 | compatible = "haoyu,hym8563"; | |
131 | reg = <0x51>; | |
132 | interrupt-parent = <&gpio0>; | |
133 | interrupts = <13 IRQ_TYPE_EDGE_FALLING>; | |
134 | pinctrl-names = "default"; | |
135 | pinctrl-0 = <&rtc_int>; | |
136 | #clock-cells = <0>; | |
137 | clock-output-names = "xin32k"; | |
138 | }; | |
139 | ||
fe2c89af BG |
140 | act8846: act8846@5a { |
141 | compatible = "active-semi,act8846"; | |
142 | reg = <0x5a>; | |
143 | status = "okay"; | |
144 | ||
145 | pinctrl-names = "default"; | |
146 | pinctrl-0 = <&act8846_dvs0_ctl>; | |
147 | ||
148 | regulators { | |
149 | vcc_ddr: REG1 { | |
150 | regulator-name = "VCC_DDR"; | |
151 | regulator-min-microvolt = <1200000>; | |
152 | regulator-max-microvolt = <1200000>; | |
153 | regulator-always-on; | |
154 | }; | |
155 | ||
156 | vdd_log: REG2 { | |
157 | regulator-name = "VDD_LOG"; | |
158 | regulator-min-microvolt = <1000000>; | |
159 | regulator-max-microvolt = <1000000>; | |
160 | regulator-always-on; | |
161 | }; | |
162 | ||
163 | vdd_arm: REG3 { | |
164 | regulator-name = "VDD_ARM"; | |
165 | regulator-min-microvolt = <875000>; | |
3adb1327 | 166 | regulator-max-microvolt = <1350000>; |
fe2c89af BG |
167 | regulator-always-on; |
168 | }; | |
169 | ||
170 | vcc_io: REG4 { | |
171 | regulator-name = "VCC_IO"; | |
172 | regulator-min-microvolt = <3300000>; | |
173 | regulator-max-microvolt = <3300000>; | |
174 | regulator-always-on; | |
175 | }; | |
176 | ||
177 | vdd_10: REG5 { | |
178 | regulator-name = "VDD_10"; | |
179 | regulator-min-microvolt = <1000000>; | |
180 | regulator-max-microvolt = <1000000>; | |
181 | regulator-always-on; | |
182 | }; | |
183 | ||
184 | vdd_hdmi: REG6 { | |
185 | regulator-name = "VDD_HDMI"; | |
186 | regulator-min-microvolt = <2500000>; | |
187 | regulator-max-microvolt = <2500000>; | |
188 | regulator-always-on; | |
189 | }; | |
190 | ||
191 | vcc18: REG7 { | |
192 | regulator-name = "VCC_18"; | |
193 | regulator-min-microvolt = <1800000>; | |
194 | regulator-max-microvolt = <1800000>; | |
195 | regulator-always-on; | |
196 | }; | |
197 | ||
198 | vcca_33: REG8 { | |
199 | regulator-name = "VCCA_33"; | |
200 | regulator-min-microvolt = <3300000>; | |
201 | regulator-max-microvolt = <3300000>; | |
202 | regulator-always-on; | |
203 | }; | |
204 | ||
205 | vcc_rmii: REG9 { | |
206 | regulator-name = "VCC_RMII"; | |
207 | regulator-min-microvolt = <3300000>; | |
208 | regulator-max-microvolt = <3300000>; | |
fe2c89af BG |
209 | }; |
210 | ||
211 | vccio_wl: REG10 { | |
212 | regulator-name = "VCCIO_WL"; | |
213 | regulator-min-microvolt = <3300000>; | |
214 | regulator-max-microvolt = <3300000>; | |
215 | regulator-always-on; | |
216 | }; | |
217 | ||
218 | vcc_18: REG11 { | |
219 | regulator-name = "VCC18_IO"; | |
220 | regulator-min-microvolt = <1800000>; | |
221 | regulator-max-microvolt = <1800000>; | |
222 | regulator-always-on; | |
223 | }; | |
224 | ||
225 | vcc28: REG12 { | |
226 | regulator-name = "VCC_28"; | |
227 | regulator-min-microvolt = <2800000>; | |
228 | regulator-max-microvolt = <2800000>; | |
229 | regulator-always-on; | |
230 | }; | |
231 | }; | |
232 | }; | |
233 | }; | |
234 | ||
b09e35a3 HS |
235 | &mmc0 { |
236 | num-slots = <1>; | |
237 | status = "okay"; | |
1302d32c HS |
238 | pinctrl-names = "default"; |
239 | pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>; | |
b09e35a3 HS |
240 | vmmc-supply = <&vcc_sd0>; |
241 | ||
356649ab JC |
242 | bus-width = <4>; |
243 | disable-wp; | |
b09e35a3 HS |
244 | }; |
245 | ||
fe2c89af BG |
246 | &pinctrl { |
247 | pcfg_output_low: pcfg-output-low { | |
248 | output-low; | |
249 | }; | |
250 | ||
251 | act8846 { | |
252 | act8846_dvs0_ctl: act8846-dvs0-ctl { | |
253 | rockchip,pins = <RK_GPIO3 27 RK_FUNC_GPIO &pcfg_output_low>; | |
254 | }; | |
255 | }; | |
08567053 | 256 | |
4721ab85 HS |
257 | hym8563 { |
258 | rtc_int: rtc-int { | |
259 | rockchip,pins = <RK_GPIO0 0 RK_FUNC_GPIO &pcfg_pull_up>; | |
260 | }; | |
261 | }; | |
262 | ||
c6ec956b RP |
263 | lan8720a { |
264 | phy_int: phy-int { | |
265 | rockchip,pins = <RK_GPIO3 26 RK_FUNC_GPIO &pcfg_pull_up>; | |
266 | }; | |
267 | }; | |
268 | ||
08567053 BG |
269 | ir-receiver { |
270 | ir_recv_pin: ir-recv-pin { | |
271 | rockchip,pins = <RK_GPIO0 10 RK_FUNC_GPIO &pcfg_pull_none>; | |
272 | }; | |
273 | }; | |
f1c8547f HS |
274 | |
275 | usb { | |
276 | host_vbus_drv: host-vbus-drv { | |
277 | rockchip,pins = <0 3 RK_FUNC_GPIO &pcfg_pull_none>; | |
278 | }; | |
279 | otg_vbus_drv: otg-vbus-drv { | |
280 | rockchip,pins = <2 31 RK_FUNC_GPIO &pcfg_pull_none>; | |
281 | }; | |
282 | }; | |
fe2c89af BG |
283 | }; |
284 | ||
fcbbf965 HS |
285 | &uart0 { |
286 | status = "okay"; | |
287 | }; | |
288 | ||
289 | &uart1 { | |
290 | status = "okay"; | |
291 | }; | |
292 | ||
293 | &uart2 { | |
fcbbf965 HS |
294 | status = "okay"; |
295 | }; | |
296 | ||
297 | &uart3 { | |
298 | status = "okay"; | |
299 | }; | |
eb2b9d47 | 300 | |
f1c8547f HS |
301 | &usb_host { |
302 | status = "okay"; | |
303 | }; | |
304 | ||
305 | &usb_otg { | |
306 | status = "okay"; | |
307 | }; | |
308 | ||
eb2b9d47 HS |
309 | &wdt { |
310 | status = "okay"; | |
311 | }; |