xref: /OK3568_Linux_fs/kernel/scripts/dtc/include-prefixes/arm/rv1126-iotest-v10.dts (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2020 Fuzhou Rockchip Electronics Co., Ltd.
4 */
5
6/dts-v1/;
7
8#include "rv1126.dtsi"
9
10/ {
11	model = "Rockchip RV1126 IO Test Board";
12	compatible = "rockchip,rv1126-iotest", "rockchip,rv1126";
13
14	chosen {
15		bootargs = "earlycon=uart8250,mmio32,0xff570000 console=ttyFIQ0 root=PARTUUID=614e0000-0000 rootfstype=ext4 rootwait snd_aloop.index=7";
16	};
17
18	vcc5v0_sys: vccsys {
19		compatible = "regulator-fixed";
20		regulator-name = "vcc5v0_sys";
21		regulator-always-on;
22		regulator-boot-on;
23		regulator-min-microvolt = <5000000>;
24		regulator-max-microvolt = <5000000>;
25	};
26};
27
28&cpu0 {
29	cpu-supply = <&vdd_arm>;
30};
31
32&cpu_tsadc {
33	rockchip,hw-tshut-mode = <0>; /* tshut mode 0:CRU 1:GPIO */
34	rockchip,hw-tshut-polarity = <0>; /* tshut polarity 0:LOW 1:HIGH */
35	pinctrl-names = "gpio", "otpout";
36	pinctrl-0 = <&tsadcm0_shut>;
37	pinctrl-1 = <&tsadc_shutorg>;
38	status = "okay";
39};
40
41&emmc {
42	bus-width = <8>;
43	cap-mmc-highspeed;
44	non-removable;
45	mmc-hs200-1_8v;
46	rockchip,default-sample-phase = <90>;
47	no-sdio;
48	no-sd;
49	status = "okay";
50};
51
52&fiq_debugger {
53	status = "okay";
54};
55
56&i2c0 {
57	status = "okay";
58	clock-frequency = <400000>;
59
60	rk809: pmic@20 {
61		compatible = "rockchip,rk809";
62		reg = <0x20>;
63		interrupt-parent = <&gpio0>;
64		interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
65		pinctrl-names = "default", "pmic-sleep",
66			"pmic-power-off", "pmic-reset";
67		pinctrl-0 = <&pmic_int>;
68		pinctrl-1 = <&soc_slppin_gpio>, <&rk817_slppin_slp>;
69		pinctrl-2 = <&soc_slppin_gpio>, <&rk817_slppin_pwrdn>;
70		pinctrl-3 = <&soc_slppin_slp>, <&rk817_slppin_rst>;
71		rockchip,system-power-controller;
72		wakeup-source;
73		#clock-cells = <1>;
74		clock-output-names = "rk808-clkout1", "rk808-clkout2";
75		/* 0: rst the pmic, 1: rst regs (default in codes) */
76		pmic-reset-func = <0>;
77
78		vcc1-supply = <&vcc5v0_sys>;
79		vcc2-supply = <&vcc5v0_sys>;
80		vcc3-supply = <&vcc5v0_sys>;
81		vcc4-supply = <&vcc5v0_sys>;
82		vcc5-supply = <&vcc_buck5>;
83		vcc6-supply = <&vcc_buck5>;
84		vcc7-supply = <&vcc5v0_sys>;
85		vcc8-supply = <&vcc3v3_sys>;
86		vcc9-supply = <&vcc5v0_sys>;
87
88		pwrkey {
89			status = "okay";
90		};
91
92		pinctrl_rk8xx: pinctrl_rk8xx {
93			gpio-controller;
94			#gpio-cells = <2>;
95
96			/omit-if-no-ref/
97			rk817_slppin_null: rk817_slppin_null {
98				pins = "gpio_slp";
99				function = "pin_fun0";
100			};
101
102			/omit-if-no-ref/
103			rk817_slppin_slp: rk817_slppin_slp {
104				pins = "gpio_slp";
105				function = "pin_fun1";
106			};
107
108			/omit-if-no-ref/
109			rk817_slppin_pwrdn: rk817_slppin_pwrdn {
110				pins = "gpio_slp";
111				function = "pin_fun2";
112			};
113
114			/omit-if-no-ref/
115			rk817_slppin_rst: rk817_slppin_rst {
116				pins = "gpio_slp";
117				function = "pin_fun3";
118			};
119		};
120
121		regulators {
122			vdd_logic: DCDC_REG1 {
123				regulator-always-on;
124				regulator-boot-on;
125				regulator-min-microvolt = <725000>;
126				regulator-max-microvolt = <1350000>;
127				regulator-ramp-delay = <6001>;
128				regulator-initial-mode = <0x2>;
129				regulator-name = "vdd_logic";
130				regulator-state-mem {
131					regulator-on-in-suspend;
132					regulator-suspend-microvolt = <800000>;
133				};
134			};
135
136			vdd_arm: DCDC_REG2 {
137				regulator-always-on;
138				regulator-boot-on;
139				regulator-min-microvolt = <725000>;
140				regulator-max-microvolt = <1350000>;
141				regulator-ramp-delay = <6001>;
142				regulator-initial-mode = <0x2>;
143				regulator-name = "vdd_arm";
144				regulator-state-mem {
145					regulator-off-in-suspend;
146				};
147			};
148
149			vcc_ddr: DCDC_REG3 {
150				regulator-always-on;
151				regulator-boot-on;
152				regulator-initial-mode = <0x2>;
153				regulator-name = "vcc_ddr";
154				regulator-state-mem {
155					regulator-on-in-suspend;
156				};
157			};
158
159			vcc3v3_sys: DCDC_REG4 {
160				regulator-always-on;
161				regulator-boot-on;
162				regulator-min-microvolt = <3300000>;
163				regulator-max-microvolt = <3300000>;
164				regulator-initial-mode = <0x2>;
165				regulator-name = "vcc3v3_sys";
166				regulator-state-mem {
167					regulator-on-in-suspend;
168					regulator-suspend-microvolt = <3300000>;
169				};
170			};
171
172			vcc_buck5: DCDC_REG5 {
173				regulator-always-on;
174				regulator-boot-on;
175				regulator-min-microvolt = <2200000>;
176				regulator-max-microvolt = <2200000>;
177				regulator-name = "vcc_buck5";
178				regulator-state-mem {
179					regulator-on-in-suspend;
180					regulator-suspend-microvolt = <2200000>;
181				};
182			};
183
184			vcc_0v8: LDO_REG1 {
185				regulator-always-on;
186				regulator-boot-on;
187				regulator-min-microvolt = <800000>;
188				regulator-max-microvolt = <800000>;
189				regulator-name = "vcc_0v8";
190				regulator-state-mem {
191					regulator-off-in-suspend;
192				};
193			};
194
195			vcc1v8_pmu: LDO_REG2 {
196				regulator-always-on;
197				regulator-boot-on;
198				regulator-min-microvolt = <1800000>;
199				regulator-max-microvolt = <1800000>;
200				regulator-name = "vcc1v8_pmu";
201				regulator-state-mem {
202					regulator-on-in-suspend;
203					regulator-suspend-microvolt = <1800000>;
204				};
205			};
206
207			vdd0v8_pmu: LDO_REG3 {
208				regulator-always-on;
209				regulator-boot-on;
210				regulator-min-microvolt = <800000>;
211				regulator-max-microvolt = <800000>;
212				regulator-name = "vcc0v8_pmu";
213				regulator-state-mem {
214					regulator-on-in-suspend;
215					regulator-suspend-microvolt = <800000>;
216				};
217			};
218
219			vcc_1v8: LDO_REG4 {
220				regulator-always-on;
221				regulator-boot-on;
222				regulator-min-microvolt = <1800000>;
223				regulator-max-microvolt = <1800000>;
224				regulator-name = "vcc_1v8";
225				regulator-state-mem {
226					regulator-on-in-suspend;
227					regulator-suspend-microvolt = <1800000>;
228				};
229			};
230
231			vcc_dovdd: LDO_REG5 {
232				regulator-boot-on;
233				regulator-min-microvolt = <1800000>;
234				regulator-max-microvolt = <1800000>;
235				regulator-name = "vcc_dovdd";
236				regulator-state-mem {
237					regulator-off-in-suspend;
238				};
239			};
240
241			vcc_dvdd: LDO_REG6 {
242				regulator-min-microvolt = <1200000>;
243				regulator-max-microvolt = <1200000>;
244				regulator-name = "vcc_dvdd";
245				regulator-state-mem {
246					regulator-off-in-suspend;
247				};
248			};
249
250			vcc_avdd: LDO_REG7 {
251				regulator-min-microvolt = <2800000>;
252				regulator-max-microvolt = <2800000>;
253				regulator-name = "vcc_avdd";
254				regulator-state-mem {
255					regulator-off-in-suspend;
256				};
257			};
258
259			vccio_sd: LDO_REG8 {
260				regulator-always-on;
261				regulator-boot-on;
262				regulator-min-microvolt = <1800000>;
263				regulator-max-microvolt = <3300000>;
264				regulator-name = "vccio_sd";
265				regulator-state-mem {
266					regulator-off-in-suspend;
267				};
268			};
269
270			vcc3v3_sd: LDO_REG9 {
271				regulator-always-on;
272				regulator-boot-on;
273				regulator-min-microvolt = <3300000>;
274				regulator-max-microvolt = <3300000>;
275				regulator-name = "vcc3v3_sd";
276				regulator-state-mem {
277					regulator-off-in-suspend;
278				};
279			};
280
281			vcc5v0_host: SWITCH_REG1 {
282				regulator-name = "vcc5v0_host";
283			};
284
285			vcc_3v3: SWITCH_REG2 {
286				regulator-always-on;
287				regulator-boot-on;
288				regulator-name = "vcc_3v3";
289			};
290		};
291	};
292};
293
294&optee {
295	status = "disabled";
296};
297
298&otp {
299	status = "okay";
300};
301
302&pinctrl {
303	pmic {
304		/omit-if-no-ref/
305		pmic_int: pmic_int {
306			rockchip,pins =
307				<0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>;
308		};
309
310		/omit-if-no-ref/
311		soc_slppin_gpio: soc_slppin_gpio {
312			rockchip,pins =
313				<0 RK_PB2 RK_FUNC_GPIO &pcfg_output_low>;
314		};
315
316		/omit-if-no-ref/
317		soc_slppin_slp: soc_slppin_slp {
318			rockchip,pins =
319				<0 RK_PB2 1 &pcfg_pull_none>;
320		};
321
322		/omit-if-no-ref/
323		soc_slppin_rst: soc_slppin_rst {
324			rockchip,pins =
325				<0 RK_PB2 2 &pcfg_pull_none>;
326		};
327	};
328};
329
330&pmu_io_domains {
331	status = "okay";
332
333	pmuio0-supply = <&vcc1v8_pmu>;
334	pmuio1-supply = <&vcc3v3_sys>;
335	vccio2-supply = <&vcc_3v3>;
336	vccio3-supply = <&vcc_3v3>;
337	vccio4-supply = <&vcc_3v3>;
338	vccio5-supply = <&vcc_3v3>;
339	vccio6-supply = <&vcc_3v3>;
340	vccio7-supply = <&vcc_3v3>;
341};
342
343&rng {
344	status = "okay";
345};
346
347&u2phy0 {
348	status = "okay";
349	u2phy_otg: otg-port {
350		status = "okay";
351	};
352};
353
354&u2phy1 {
355	status = "okay";
356
357	u2phy_host: host-port {
358		status = "okay";
359		phy-supply = <&vcc5v0_host>;
360	};
361};
362
363&usb_host0_ehci {
364	status = "okay";
365};
366
367&usb_host0_ohci {
368	status = "okay";
369};
370
371&usbdrd {
372	status = "okay";
373};
374
375&usbdrd_dwc3 {
376	status = "okay";
377	extcon = <&u2phy0>;
378};
379