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