blob: 072eaa61168adc243363c8afd736d6b1238e791b [file] [log] [blame]
Simon Glass17aa5482015-08-30 16:55:41 -06001/*
2 * Copyright (c) 2014, 2015 FUKAUMI Naoki <naobsd@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0+ X11
5 */
6
7#include "rk3288.dtsi"
8
9/ {
10 memory {
11 reg = <0 0x80000000>;
12 };
13
14 ext_gmac: external-gmac-clock {
15 compatible = "fixed-clock";
16 #clock-cells = <0>;
17 clock-frequency = <125000000>;
18 clock-output-names = "ext_gmac";
19 };
20
21 ir: ir-receiver {
22 compatible = "gpio-ir-receiver";
23 pinctrl-names = "default";
24 pinctrl-0 = <&ir_int>;
25 };
26
27 keys: gpio-keys {
28 compatible = "gpio-keys";
29 #address-cells = <1>;
30 #size-cells = <0>;
31
32 button@0 {
33 gpio-key,wakeup = <1>;
34 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
35 label = "GPIO Power";
36 linux,code = <116>;
37 pinctrl-names = "default";
38 pinctrl-0 = <&pwr_key>;
39 };
40 };
41
42 leds {
43 u-boot,dm-pre-reloc;
44 compatible = "gpio-leds";
45
46 work {
47 u-boot,dm-pre-reloc;
48 gpios = <&gpio8 1 GPIO_ACTIVE_LOW>;
49 label = "firefly:blue:user";
50 linux,default-trigger = "rc-feedback";
51 pinctrl-names = "default";
52 pinctrl-0 = <&work_led>;
53 };
54
55 power {
56 u-boot,dm-pre-reloc;
57 gpios = <&gpio8 2 GPIO_ACTIVE_LOW>;
58 label = "firefly:green:power";
59 linux,default-trigger = "default-on";
60 pinctrl-names = "default";
61 pinctrl-0 = <&power_led>;
62 };
63 };
64
65 vcc_sys: vsys-regulator {
66 compatible = "regulator-fixed";
67 regulator-name = "vcc_sys";
68 regulator-min-microvolt = <5000000>;
69 regulator-max-microvolt = <5000000>;
70 regulator-always-on;
71 regulator-boot-on;
72 };
73
74 vcc_sd: sdmmc-regulator {
75 compatible = "regulator-fixed";
76 gpio = <&gpio7 11 GPIO_ACTIVE_LOW>;
77 pinctrl-names = "default";
78 pinctrl-0 = <&sdmmc_pwr>;
79 regulator-name = "vcc_sd";
80 regulator-min-microvolt = <3300000>;
81 regulator-max-microvolt = <3300000>;
82 startup-delay-us = <100000>;
83 vin-supply = <&vcc_io>;
84 };
85
86 vcc_flash: flash-regulator {
87 compatible = "regulator-fixed";
88 regulator-name = "vcc_flash";
89 regulator-min-microvolt = <1800000>;
90 regulator-max-microvolt = <1800000>;
91 vin-supply = <&vcc_io>;
92 };
93
94 vcc_5v: usb-regulator {
95 compatible = "regulator-fixed";
96 regulator-name = "vcc_5v";
97 regulator-min-microvolt = <5000000>;
98 regulator-max-microvolt = <5000000>;
99 regulator-always-on;
100 regulator-boot-on;
101 vin-supply = <&vcc_sys>;
102 };
103
104 vcc_host_5v: usb-host-regulator {
105 compatible = "regulator-fixed";
106 enable-active-high;
107 gpio = <&gpio0 14 GPIO_ACTIVE_HIGH>;
108 pinctrl-names = "default";
109 pinctrl-0 = <&host_vbus_drv>;
110 regulator-name = "vcc_host_5v";
111 regulator-min-microvolt = <5000000>;
112 regulator-max-microvolt = <5000000>;
113 regulator-always-on;
114 vin-supply = <&vcc_5v>;
115 };
116
117 vcc_otg_5v: usb-otg-regulator {
118 compatible = "regulator-fixed";
119 enable-active-high;
120 gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
121 pinctrl-names = "default";
122 pinctrl-0 = <&otg_vbus_drv>;
123 regulator-name = "vcc_otg_5v";
124 regulator-min-microvolt = <5000000>;
125 regulator-max-microvolt = <5000000>;
126 regulator-always-on;
127 vin-supply = <&vcc_5v>;
128 };
129};
130
131&cpu0 {
132 cpu0-supply = <&vdd_cpu>;
133};
134
135&emmc {
136 broken-cd;
137 bus-width = <8>;
138 cap-mmc-highspeed;
139 disable-wp;
140 non-removable;
141 num-slots = <1>;
142 pinctrl-names = "default";
143 pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_pwr>, <&emmc_bus8>;
144 vmmc-supply = <&vcc_io>;
145 vqmmc-supply = <&vcc_flash>;
146 status = "okay";
147};
148
Sjoerd Simons1c09a7f2016-02-28 22:25:02 +0100149&gmac {
150 assigned-clocks = <&cru SCLK_MAC>;
151 assigned-clock-parents = <&ext_gmac>;
152 clock_in_out = "input";
153 pinctrl-names = "default";
154 pinctrl-0 = <&rgmii_pins>, <&phy_rst>, <&phy_pmeb>, <&phy_int>;
155 phy-supply = <&vcc_lan>;
156 phy-mode = "rgmii";
157 snps,reset-active-low;
158 snps,reset-delays-us = <0 10000 1000000>;
159 snps,reset-gpio = <&gpio4 8 GPIO_ACTIVE_LOW>;
160 tx_delay = <0x30>;
161 rx_delay = <0x10>;
162 status = "okay";
163};
164
Simon Glass17aa5482015-08-30 16:55:41 -0600165&hdmi {
166 ddc-i2c-bus = <&i2c5>;
167 status = "okay";
168};
169
170&i2c0 {
171 clock-frequency = <400000>;
172 status = "okay";
173
174 vdd_cpu: syr827@40 {
175 compatible = "silergy,syr827";
176 fcs,suspend-voltage-selector = <1>;
177 reg = <0x40>;
178 regulator-name = "vdd_cpu";
179 regulator-min-microvolt = <850000>;
180 regulator-max-microvolt = <1350000>;
181 regulator-always-on;
182 regulator-boot-on;
183 vin-supply = <&vcc_sys>;
184 };
185
186 vdd_gpu: syr828@41 {
187 compatible = "silergy,syr828";
188 fcs,suspend-voltage-selector = <1>;
189 reg = <0x41>;
190 regulator-name = "vdd_gpu";
191 regulator-min-microvolt = <850000>;
192 regulator-max-microvolt = <1350000>;
193 regulator-always-on;
194 vin-supply = <&vcc_sys>;
195 };
196
197 hym8563: hym8563@51 {
198 compatible = "haoyu,hym8563";
199 reg = <0x51>;
200 #clock-cells = <0>;
201 clock-frequency = <32768>;
202 clock-output-names = "xin32k";
203 interrupt-parent = <&gpio7>;
204 interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
205 pinctrl-names = "default";
206 pinctrl-0 = <&rtc_int>;
207 };
208
209 act8846: act8846@5a {
210 compatible = "active-semi,act8846";
211 reg = <0x5a>;
212 pinctrl-names = "default";
213 pinctrl-0 = <&pmic_vsel>, <&pwr_hold>;
214 system-power-controller;
215
216 regulators {
217 vcc_ddr: REG1 {
218 regulator-name = "vcc_ddr";
219 regulator-min-microvolt = <1200000>;
220 regulator-max-microvolt = <1200000>;
221 regulator-always-on;
222 };
223
224 vcc_io: REG2 {
225 regulator-name = "vcc_io";
226 regulator-min-microvolt = <3300000>;
227 regulator-max-microvolt = <3300000>;
228 regulator-always-on;
229 };
230
231 vdd_log: REG3 {
232 regulator-name = "vdd_log";
233 regulator-min-microvolt = <1100000>;
234 regulator-max-microvolt = <1100000>;
235 regulator-always-on;
236 };
237
238 vcc_20: REG4 {
239 regulator-name = "vcc_20";
240 regulator-min-microvolt = <2000000>;
241 regulator-max-microvolt = <2000000>;
242 regulator-always-on;
243 };
244
245 vccio_sd: REG5 {
246 regulator-name = "vccio_sd";
247 regulator-min-microvolt = <3300000>;
248 regulator-max-microvolt = <3300000>;
249 regulator-always-on;
250 };
251
252 vdd10_lcd: REG6 {
253 regulator-name = "vdd10_lcd";
254 regulator-min-microvolt = <1000000>;
255 regulator-max-microvolt = <1000000>;
256 regulator-always-on;
257 };
258
259 vcca_18: REG7 {
260 regulator-name = "vcca_18";
261 regulator-min-microvolt = <1800000>;
262 regulator-max-microvolt = <1800000>;
263 };
264
265 vcca_33: REG8 {
266 regulator-name = "vcca_33";
267 regulator-min-microvolt = <3300000>;
268 regulator-max-microvolt = <3300000>;
269 };
270
271 vcc_lan: REG9 {
272 regulator-name = "vcc_lan";
273 regulator-min-microvolt = <3300000>;
274 regulator-max-microvolt = <3300000>;
275 };
276
277 vdd_10: REG10 {
278 regulator-name = "vdd_10";
279 regulator-min-microvolt = <1000000>;
280 regulator-max-microvolt = <1000000>;
281 regulator-always-on;
282 };
283
284 vcc_18: REG11 {
285 regulator-name = "vcc_18";
286 regulator-min-microvolt = <1800000>;
287 regulator-max-microvolt = <1800000>;
288 regulator-always-on;
289 };
290
291 vcc18_lcd: REG12 {
292 regulator-name = "vcc18_lcd";
293 regulator-min-microvolt = <1800000>;
294 regulator-max-microvolt = <1800000>;
295 regulator-always-on;
296 };
297 };
298 };
299};
300
301&i2c1 {
302 status = "okay";
303};
304
305&i2c2 {
306 status = "okay";
307};
308
309&i2c4 {
310 status = "okay";
311};
312
313&i2c5 {
314 status = "okay";
315};
316
317&pinctrl {
318 pcfg_output_high: pcfg-output-high {
319 output-high;
320 };
321
322 pcfg_output_low: pcfg-output-low {
323 output-low;
324 };
325
326 act8846 {
327 pwr_hold: pwr-hold {
328 rockchip,pins = <0 1 RK_FUNC_GPIO &pcfg_output_high>;
329 };
330 };
331
332 gmac {
333 phy_int: phy-int {
334 rockchip,pins = <0 9 RK_FUNC_GPIO &pcfg_pull_up>;
335 };
336
337 phy_pmeb: phy-pmeb {
338 rockchip,pins = <0 8 RK_FUNC_GPIO &pcfg_pull_up>;
339 };
340
341 phy_rst: phy-rst {
342 rockchip,pins = <4 8 RK_FUNC_GPIO &pcfg_output_high>;
343 };
344 };
345
346 hym8563 {
347 rtc_int: rtc-int {
348 rockchip,pins = <7 4 RK_FUNC_GPIO &pcfg_pull_up>;
349 };
350 };
351
352 keys {
353 pwr_key: pwr-key {
354 rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
355 };
356 };
357
358 leds {
359 power_led: power-led {
360 rockchip,pins = <8 2 RK_FUNC_GPIO &pcfg_pull_none>;
361 };
362
363 work_led: work-led {
364 rockchip,pins = <8 1 RK_FUNC_GPIO &pcfg_pull_none>;
365 };
366 };
367
368 sdmmc {
369 sdmmc_pwr: sdmmc-pwr {
370 rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>;
371 };
372 };
373
374 usb_host {
375 host_vbus_drv: host-vbus-drv {
376 rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>;
377 };
378
379 usbhub_rst: usbhub-rst {
380 rockchip,pins = <8 3 RK_FUNC_GPIO &pcfg_output_high>;
381 };
382 };
383
384 usb_otg {
385 otg_vbus_drv: otg-vbus-drv {
386 rockchip,pins = <0 12 RK_FUNC_GPIO &pcfg_pull_none>;
387 };
388 };
389};
390
391&saradc {
392 vref-supply = <&vcc_18>;
393 status = "okay";
394};
395
396&sdio0 {
397 broken-cd;
398 bus-width = <4>;
399 disable-wp;
400 non-removable;
401 num-slots = <1>;
402 pinctrl-names = "default";
403 pinctrl-0 = <&sdio0_bus4>, <&sdio0_cmd>, <&sdio0_clk>;
404 vmmc-supply = <&vcc_18>;
Sjoerd Simons7e278152015-08-30 16:55:46 -0600405 status = "disabled";
Simon Glass17aa5482015-08-30 16:55:41 -0600406};
407
408&sdmmc {
409 bus-width = <4>;
410 cap-mmc-highspeed;
411 cap-sd-highspeed;
412 card-detect-delay = <200>;
413 disable-wp;
414 num-slots = <1>;
415 pinctrl-names = "default";
416 pinctrl-0 = <&sdmmc_clk>, <&sdmmc_cmd>, <&sdmmc_cd>, <&sdmmc_bus4>;
417 vmmc-supply = <&vcc_sd>;
418 status = "okay";
419};
420
421&spi0 {
422 pinctrl-names = "default";
423 pinctrl-0 = <&spi0_clk>, <&spi0_cs0>, <&spi0_tx>, <&spi0_rx>, <&spi0_cs1>;
424 status = "okay";
425};
426
427&uart0 {
428 pinctrl-names = "default";
429 pinctrl-0 = <&uart0_xfer>, <&uart0_cts>, <&uart0_rts>;
430 status = "okay";
431};
432
433&uart1 {
434 status = "okay";
435};
436
437&uart2 {
438 status = "okay";
439};
440
441&uart3 {
442 status = "okay";
443};
444
445&usb_host1 {
446 pinctrl-names = "default";
447 pinctrl-0 = <&usbhub_rst>;
448 status = "okay";
449};
450
451&usb_otg {
452 status = "okay";
453};
454
455&vopb {
456 status = "okay";
457};
458
459&vopb_mmu {
460 status = "okay";
461};
462
463&vopl {
464 status = "okay";
465};
466
467&vopl_mmu {
468 status = "okay";
469};
470
471&wdt {
472 status = "okay";
473};