]>
Commit | Line | Data |
---|---|---|
cde669fa HS |
1 | /* |
2 | * Copyright (c) 2015 Heiko Stuebner <heiko@sntech.de> | |
3 | * | |
4 | * This file is dual-licensed: you can use it either under the terms | |
5 | * of the GPL or the X11 license, at your option. Note that this dual | |
6 | * licensing only applies to this file, and not this project as a | |
7 | * whole. | |
8 | * | |
9 | * a) This file is free software; you can redistribute it and/or | |
10 | * modify it under the terms of the GNU General Public License as | |
11 | * published by the Free Software Foundation; either version 2 of the | |
12 | * License, or (at your option) any later version. | |
13 | * | |
14 | * This file is distributed in the hope that it will be useful, | |
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 | * GNU General Public License for more details. | |
18 | * | |
19 | * Or, alternatively, | |
20 | * | |
21 | * b) Permission is hereby granted, free of charge, to any person | |
22 | * obtaining a copy of this software and associated documentation | |
23 | * files (the "Software"), to deal in the Software without | |
24 | * restriction, including without limitation the rights to use, | |
25 | * copy, modify, merge, publish, distribute, sublicense, and/or | |
26 | * sell copies of the Software, and to permit persons to whom the | |
27 | * Software is furnished to do so, subject to the following | |
28 | * conditions: | |
29 | * | |
30 | * The above copyright notice and this permission notice shall be | |
31 | * included in all copies or substantial portions of the Software. | |
32 | * | |
33 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
34 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | |
35 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | |
36 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | |
37 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | |
38 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | |
39 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | |
40 | * OTHER DEALINGS IN THE SOFTWARE. | |
41 | */ | |
42 | ||
43 | /dts-v1/; | |
44 | #include <dt-bindings/pwm/pwm.h> | |
45 | #include "rk3288.dtsi" | |
46 | ||
47 | / { | |
48 | compatible = "netxeon,r89", "rockchip,rk3288"; | |
49 | ||
50 | memory { | |
6158e6d0 | 51 | device_type = "memory"; |
cde669fa HS |
52 | reg = <0x0 0x80000000>; |
53 | }; | |
54 | ||
55 | ext_gmac: external-gmac-clock { | |
56 | compatible = "fixed-clock"; | |
57 | clock-frequency = <125000000>; | |
58 | clock-output-names = "ext_gmac"; | |
59 | #clock-cells = <0>; | |
60 | }; | |
61 | ||
62 | gpio-keys { | |
63 | compatible = "gpio-keys"; | |
64 | #address-cells = <1>; | |
65 | #size-cells = <0>; | |
66 | autorepeat; | |
67 | ||
68 | pinctrl-names = "default"; | |
69 | pinctrl-0 = <&pwrbtn>; | |
70 | ||
71 | button@0 { | |
72 | gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; | |
73 | linux,code = <116>; | |
74 | label = "GPIO Key Power"; | |
75 | linux,input-type = <1>; | |
4f66f247 | 76 | wakeup-source; |
cde669fa HS |
77 | debounce-interval = <100>; |
78 | }; | |
79 | }; | |
80 | ||
06611141 HS |
81 | ir: ir-receiver { |
82 | compatible = "gpio-ir-receiver"; | |
83 | gpios = <&gpio7 0 GPIO_ACTIVE_LOW>; | |
84 | pinctrl-names = "default"; | |
85 | pinctrl-0 = <&ir_int>; | |
86 | }; | |
87 | ||
cde669fa HS |
88 | vcc_host: vcc-host-regulator { |
89 | compatible = "regulator-fixed"; | |
90 | enable-active-high; | |
91 | gpio = <&gpio0 14 GPIO_ACTIVE_HIGH>; | |
92 | pinctrl-names = "default"; | |
93 | pinctrl-0 = <&host_vbus_drv>; | |
94 | regulator-name = "vcc_host"; | |
95 | regulator-always-on; | |
96 | regulator-boot-on; | |
97 | }; | |
98 | ||
99 | vcc_otg: vcc-otg-regulator { | |
100 | compatible = "regulator-fixed"; | |
101 | enable-active-high; | |
102 | gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>; | |
103 | pinctrl-names = "default"; | |
104 | pinctrl-0 = <&otg_vbus_drv>; | |
105 | regulator-name = "vcc_otg"; | |
106 | regulator-always-on; | |
107 | regulator-boot-on; | |
108 | }; | |
109 | ||
110 | vcc_sdmmc: sdmmc-regulator { | |
111 | compatible = "regulator-fixed"; | |
112 | regulator-name = "sdmmc-supply"; | |
113 | regulator-min-microvolt = <3300000>; | |
114 | regulator-max-microvolt = <3300000>; | |
115 | gpio = <&gpio7 11 GPIO_ACTIVE_LOW>; | |
116 | startup-delay-us = <100000>; | |
117 | vin-supply = <&vcc_io>; | |
118 | }; | |
119 | ||
120 | vcc_sys: sys-regulator { | |
121 | compatible = "regulator-fixed"; | |
122 | regulator-name = "sys-supply"; | |
123 | regulator-min-microvolt = <5000000>; | |
124 | regulator-max-microvolt = <5000000>; | |
125 | regulator-always-on; | |
126 | regulator-boot-on; | |
127 | }; | |
128 | }; | |
129 | ||
130 | &cpu0 { | |
131 | cpu0-supply = <&vdd_cpu>; | |
132 | }; | |
133 | ||
134 | &gmac { | |
135 | phy-supply = <&vcc_lan>; | |
136 | phy-mode = "rgmii"; | |
137 | clock_in_out = "input"; | |
138 | snps,reset-gpio = <&gpio4 7 0>; | |
139 | snps,reset-active-low; | |
140 | snps,reset-delays-us = <0 10000 1000000>; | |
141 | assigned-clocks = <&cru SCLK_MAC>; | |
142 | assigned-clock-parents = <&ext_gmac>; | |
143 | pinctrl-names = "default"; | |
144 | pinctrl-0 = <&rgmii_pins>; | |
145 | tx_delay = <0x30>; | |
146 | rx_delay = <0x10>; | |
147 | status = "ok"; | |
148 | }; | |
149 | ||
150 | &hdmi { | |
151 | status = "okay"; | |
152 | }; | |
153 | ||
154 | &i2c0 { | |
155 | status = "okay"; | |
156 | ||
157 | vdd_cpu: pmic@40 { | |
158 | compatible = "silergy,syr827"; | |
159 | reg = <0x40>; | |
160 | fcs,suspend-voltage-selector = <1>; | |
161 | regulator-name = "VDD_CPU"; | |
162 | regulator-enable-ramp-delay = <300>; | |
163 | regulator-min-microvolt = <850000>; | |
164 | regulator-max-microvolt = <1350000>; | |
165 | regulator-ramp-delay = <8000>; | |
166 | regulator-always-on; | |
167 | regulator-boot-on; | |
168 | vin-supply = <&vcc_sys>; | |
169 | }; | |
170 | ||
171 | vdd_gpu: pmic@41 { | |
172 | compatible = "silergy,syr828"; | |
173 | reg = <0x41>; | |
174 | fcs,suspend-voltage-selector = <1>; | |
175 | regulator-name = "VDD_GPU"; | |
176 | regulator-enable-ramp-delay = <300>; | |
177 | regulator-min-microvolt = <850000>; | |
178 | regulator-max-microvolt = <1350000>; | |
179 | regulator-ramp-delay = <8000>; | |
180 | regulator-always-on; | |
181 | regulator-boot-on; | |
182 | vin-supply = <&vcc_sys>; | |
183 | }; | |
184 | ||
185 | rtc@51 { | |
186 | compatible = "haoyu,hym8563"; | |
187 | reg = <0x51>; | |
188 | #clock-cells = <0>; | |
189 | clock-output-names = "xin32k"; | |
190 | interrupt-parent = <&gpio0>; | |
191 | interrupts = <4 IRQ_TYPE_EDGE_FALLING>; | |
192 | pinctrl-names = "default"; | |
193 | pinctrl-0 = <&pmic_int>; | |
194 | }; | |
195 | ||
196 | act8846: pmic@5a { | |
197 | compatible = "active-semi,act8846"; | |
198 | reg = <0x5a>; | |
199 | pinctrl-names = "default"; | |
200 | pinctrl-0 = <&pmic_vsel>, <&pwr_hold>; | |
201 | system-power-controller; | |
202 | ||
203 | regulators { | |
204 | vcc_ddr: REG1 { | |
205 | regulator-name = "VCC_DDR"; | |
206 | regulator-min-microvolt = <1200000>; | |
207 | regulator-max-microvolt = <1200000>; | |
208 | regulator-always-on; | |
209 | }; | |
210 | ||
211 | vcc_io: REG2 { | |
212 | regulator-name = "VCC_IO"; | |
213 | regulator-min-microvolt = <3300000>; | |
214 | regulator-max-microvolt = <3300000>; | |
215 | regulator-always-on; | |
216 | }; | |
217 | ||
218 | vdd_log: REG3 { | |
219 | regulator-name = "VDD_LOG"; | |
220 | regulator-min-microvolt = <1000000>; | |
221 | regulator-max-microvolt = <1000000>; | |
222 | regulator-always-on; | |
223 | }; | |
224 | ||
225 | vcc_20: REG4 { | |
226 | regulator-name = "VCC_20"; | |
227 | regulator-min-microvolt = <2000000>; | |
228 | regulator-max-microvolt = <2000000>; | |
229 | regulator-always-on; | |
230 | }; | |
231 | ||
232 | vccio_sd: REG5 { | |
233 | regulator-name = "VCCIO_SD"; | |
234 | regulator-min-microvolt = <3300000>; | |
235 | regulator-max-microvolt = <3300000>; | |
236 | regulator-always-on; | |
237 | }; | |
238 | ||
239 | vdd10_lcd: REG6 { | |
240 | regulator-name = "VDD10_LCD"; | |
241 | regulator-min-microvolt = <1000000>; | |
242 | regulator-max-microvolt = <1000000>; | |
243 | regulator-always-on; | |
244 | }; | |
245 | ||
246 | vcc_wl: REG7 { | |
247 | regulator-name = "VCC_WL"; | |
248 | regulator-min-microvolt = <3300000>; | |
249 | regulator-max-microvolt = <3300000>; | |
250 | regulator-always-on; | |
251 | }; | |
252 | ||
253 | vcca_33: REG8 { | |
254 | regulator-name = "VCCA_33"; | |
255 | regulator-min-microvolt = <3300000>; | |
256 | regulator-max-microvolt = <3300000>; | |
257 | regulator-always-on; | |
258 | }; | |
259 | ||
260 | vcc_lan: REG9 { | |
261 | regulator-name = "VCC_LAN"; | |
262 | regulator-min-microvolt = <3300000>; | |
263 | regulator-max-microvolt = <3300000>; | |
264 | regulator-always-on; | |
265 | }; | |
266 | ||
267 | vdd_10: REG10 { | |
268 | regulator-name = "VDD_10"; | |
269 | regulator-min-microvolt = <1000000>; | |
270 | regulator-max-microvolt = <1000000>; | |
271 | regulator-always-on; | |
272 | }; | |
273 | ||
274 | vcc_18: REG11 { | |
275 | regulator-name = "VCC_18"; | |
276 | regulator-min-microvolt = <1800000>; | |
277 | regulator-max-microvolt = <1800000>; | |
278 | regulator-always-on; | |
279 | }; | |
280 | ||
281 | vcc18_lcd: REG12 { | |
282 | regulator-name = "VCC18_LCD"; | |
283 | regulator-min-microvolt = <1800000>; | |
284 | regulator-max-microvolt = <1800000>; | |
285 | regulator-always-on; | |
286 | }; | |
287 | }; | |
288 | }; | |
289 | }; | |
290 | ||
291 | &i2c5 { | |
292 | status = "okay"; | |
293 | }; | |
294 | ||
295 | &pinctrl { | |
296 | pcfg_output_high: pcfg-output-high { | |
297 | output-high; | |
298 | }; | |
299 | ||
300 | pcfg_output_low: pcfg-output-low { | |
301 | output-low; | |
302 | }; | |
303 | ||
304 | act8846 { | |
305 | pmic_vsel: pmic-vsel { | |
306 | rockchip,pins = <7 1 RK_FUNC_GPIO &pcfg_output_low>; | |
307 | }; | |
308 | ||
309 | pwr_hold: pwr-hold { | |
310 | rockchip,pins = <0 6 RK_FUNC_GPIO &pcfg_output_high>; | |
311 | }; | |
312 | }; | |
313 | ||
314 | buttons { | |
315 | pwrbtn: pwrbtn { | |
316 | rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>; | |
317 | }; | |
318 | }; | |
319 | ||
06611141 HS |
320 | ir { |
321 | ir_int: ir-int { | |
322 | rockchip,pins = <7 0 RK_FUNC_GPIO &pcfg_pull_up>; | |
323 | }; | |
324 | }; | |
325 | ||
cde669fa HS |
326 | pmic { |
327 | pmic_int: pmic-int { | |
328 | rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_up>; | |
329 | }; | |
330 | }; | |
331 | ||
332 | usb { | |
333 | host_vbus_drv: host-vbus-drv { | |
334 | rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>; | |
335 | }; | |
336 | ||
337 | otg_vbus_drv: otg-vbus-drv { | |
338 | rockchip,pins = <0 12 RK_FUNC_GPIO &pcfg_pull_none>; | |
339 | }; | |
340 | }; | |
341 | }; | |
342 | ||
343 | &pwm0 { | |
344 | status = "okay"; | |
345 | }; | |
346 | ||
347 | &saradc { | |
348 | vref-supply = <&vcc_18>; | |
349 | status = "okay"; | |
350 | }; | |
351 | ||
352 | &sdmmc { | |
353 | bus-width = <4>; | |
354 | cap-mmc-highspeed; | |
355 | cap-sd-highspeed; | |
356 | card-detect-delay = <200>; | |
357 | disable-wp; | |
358 | num-slots = <1>; | |
359 | pinctrl-names = "default"; | |
360 | pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>; | |
361 | vmmc-supply = <&vcc_sdmmc>; | |
362 | vqmmc-supply = <&vccio_sd>; | |
363 | status = "okay"; | |
364 | }; | |
365 | ||
366 | &tsadc { | |
367 | rockchip,hw-tshut-mode = <0>; | |
368 | rockchip,hw-tshut-polarity = <0>; | |
369 | status = "okay"; | |
370 | }; | |
371 | ||
372 | &uart0 { | |
373 | status = "okay"; | |
374 | }; | |
375 | ||
376 | &uart1 { | |
377 | status = "okay"; | |
378 | }; | |
379 | ||
380 | &uart2 { | |
381 | status = "okay"; | |
382 | }; | |
383 | ||
384 | &uart3 { | |
385 | status = "okay"; | |
386 | }; | |
387 | ||
388 | &uart4 { | |
389 | status = "okay"; | |
390 | }; | |
391 | ||
392 | &usb_host0_ehci { | |
393 | status = "okay"; | |
394 | }; | |
395 | ||
396 | &usb_host1 { | |
397 | status = "okay"; | |
398 | }; | |
399 | ||
400 | &usb_otg { | |
401 | status = "okay"; | |
402 | }; | |
403 | ||
404 | &usbphy { | |
405 | status = "okay"; | |
406 | }; | |
407 | ||
408 | &vopb { | |
409 | status = "okay"; | |
410 | }; | |
411 | ||
412 | &vopb_mmu { | |
413 | status = "okay"; | |
414 | }; | |
415 | ||
416 | &vopl { | |
417 | status = "okay"; | |
418 | }; | |
419 | ||
420 | &vopl_mmu { | |
421 | status = "okay"; | |
422 | }; | |
423 | ||
424 | &wdt { | |
425 | status = "okay"; | |
426 | }; |