1a0aa6bfeSHeiko Stuebner// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2a0aa6bfeSHeiko Stuebner/*
3a0aa6bfeSHeiko Stuebner * Google Gru-Chromebook shared properties
4a0aa6bfeSHeiko Stuebner *
5a0aa6bfeSHeiko Stuebner * Copyright 2018 Google, Inc
6a0aa6bfeSHeiko Stuebner */
7a0aa6bfeSHeiko Stuebner
8a0aa6bfeSHeiko Stuebner#include "rk3399-gru.dtsi"
9a0aa6bfeSHeiko Stuebner
10a0aa6bfeSHeiko Stuebner/ {
11a0aa6bfeSHeiko Stuebner	pp900_ap: pp900-ap {
12a0aa6bfeSHeiko Stuebner		compatible = "regulator-fixed";
13a0aa6bfeSHeiko Stuebner		regulator-name = "pp900_ap";
14a0aa6bfeSHeiko Stuebner
15a0aa6bfeSHeiko Stuebner		/* EC turns on w/ pp900_ap_en; always on for AP */
16a0aa6bfeSHeiko Stuebner		regulator-always-on;
17a0aa6bfeSHeiko Stuebner		regulator-boot-on;
18a0aa6bfeSHeiko Stuebner		regulator-min-microvolt = <900000>;
19a0aa6bfeSHeiko Stuebner		regulator-max-microvolt = <900000>;
20a0aa6bfeSHeiko Stuebner
21a0aa6bfeSHeiko Stuebner		vin-supply = <&ppvar_sys>;
22a0aa6bfeSHeiko Stuebner	};
23a0aa6bfeSHeiko Stuebner
24a0aa6bfeSHeiko Stuebner	/* EC turns on w/ pp900_usb_en */
25a0aa6bfeSHeiko Stuebner	pp900_usb: pp900-ap {
26a0aa6bfeSHeiko Stuebner	};
27a0aa6bfeSHeiko Stuebner
28a0aa6bfeSHeiko Stuebner	/* EC turns on w/ pp900_pcie_en */
29a0aa6bfeSHeiko Stuebner	pp900_pcie: pp900-ap {
30a0aa6bfeSHeiko Stuebner	};
31a0aa6bfeSHeiko Stuebner
32a0aa6bfeSHeiko Stuebner	pp3000: pp3000 {
33a0aa6bfeSHeiko Stuebner		compatible = "regulator-fixed";
34a0aa6bfeSHeiko Stuebner		regulator-name = "pp3000";
35a0aa6bfeSHeiko Stuebner		pinctrl-names = "default";
36a0aa6bfeSHeiko Stuebner		pinctrl-0 = <&pp3000_en>;
37a0aa6bfeSHeiko Stuebner
38a0aa6bfeSHeiko Stuebner		enable-active-high;
39a0aa6bfeSHeiko Stuebner		gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
40a0aa6bfeSHeiko Stuebner
41a0aa6bfeSHeiko Stuebner		regulator-always-on;
42a0aa6bfeSHeiko Stuebner		regulator-boot-on;
43a0aa6bfeSHeiko Stuebner		regulator-min-microvolt = <3000000>;
44a0aa6bfeSHeiko Stuebner		regulator-max-microvolt = <3000000>;
45a0aa6bfeSHeiko Stuebner
46a0aa6bfeSHeiko Stuebner		vin-supply = <&ppvar_sys>;
47a0aa6bfeSHeiko Stuebner	};
48a0aa6bfeSHeiko Stuebner
49a0aa6bfeSHeiko Stuebner	ppvar_centerlogic_pwm: ppvar-centerlogic-pwm {
50a0aa6bfeSHeiko Stuebner		compatible = "pwm-regulator";
51a0aa6bfeSHeiko Stuebner		regulator-name = "ppvar_centerlogic_pwm";
52a0aa6bfeSHeiko Stuebner
53a0aa6bfeSHeiko Stuebner		pwms = <&pwm3 0 3337 0>;
54a0aa6bfeSHeiko Stuebner		pwm-supply = <&ppvar_sys>;
55a0aa6bfeSHeiko Stuebner		pwm-dutycycle-range = <100 0>;
56a0aa6bfeSHeiko Stuebner		pwm-dutycycle-unit = <100>;
57a0aa6bfeSHeiko Stuebner
58a0aa6bfeSHeiko Stuebner		/* EC turns on w/ ppvar_centerlogic_en; always on for AP */
59a0aa6bfeSHeiko Stuebner		regulator-always-on;
60a0aa6bfeSHeiko Stuebner		regulator-boot-on;
61a0aa6bfeSHeiko Stuebner		regulator-min-microvolt = <799434>;
62a0aa6bfeSHeiko Stuebner		regulator-max-microvolt = <1049925>;
63a0aa6bfeSHeiko Stuebner	};
64a0aa6bfeSHeiko Stuebner
65a0aa6bfeSHeiko Stuebner	ppvar_centerlogic: ppvar-centerlogic {
66a0aa6bfeSHeiko Stuebner		compatible = "vctrl-regulator";
67a0aa6bfeSHeiko Stuebner		regulator-name = "ppvar_centerlogic";
68a0aa6bfeSHeiko Stuebner
69a0aa6bfeSHeiko Stuebner		regulator-min-microvolt = <799434>;
70a0aa6bfeSHeiko Stuebner		regulator-max-microvolt = <1049925>;
71a0aa6bfeSHeiko Stuebner
72a0aa6bfeSHeiko Stuebner		ctrl-supply = <&ppvar_centerlogic_pwm>;
73a0aa6bfeSHeiko Stuebner		ctrl-voltage-range = <799434 1049925>;
74a0aa6bfeSHeiko Stuebner
75a0aa6bfeSHeiko Stuebner		regulator-settling-time-up-us = <378>;
76a0aa6bfeSHeiko Stuebner		min-slew-down-rate = <225>;
77a0aa6bfeSHeiko Stuebner		ovp-threshold-percent = <16>;
78a0aa6bfeSHeiko Stuebner	};
79a0aa6bfeSHeiko Stuebner
80a0aa6bfeSHeiko Stuebner	/* Schematics call this PPVAR even though it's fixed */
81a0aa6bfeSHeiko Stuebner	ppvar_logic: ppvar-logic {
82a0aa6bfeSHeiko Stuebner		compatible = "regulator-fixed";
83a0aa6bfeSHeiko Stuebner		regulator-name = "ppvar_logic";
84a0aa6bfeSHeiko Stuebner
85a0aa6bfeSHeiko Stuebner		/* EC turns on w/ ppvar_logic_en; always on for AP */
86a0aa6bfeSHeiko Stuebner		regulator-always-on;
87a0aa6bfeSHeiko Stuebner		regulator-boot-on;
88a0aa6bfeSHeiko Stuebner		regulator-min-microvolt = <900000>;
89a0aa6bfeSHeiko Stuebner		regulator-max-microvolt = <900000>;
90a0aa6bfeSHeiko Stuebner
91a0aa6bfeSHeiko Stuebner		vin-supply = <&ppvar_sys>;
92a0aa6bfeSHeiko Stuebner	};
93a0aa6bfeSHeiko Stuebner
94a0aa6bfeSHeiko Stuebner	pp1800_audio: pp1800-audio {
95a0aa6bfeSHeiko Stuebner		compatible = "regulator-fixed";
96a0aa6bfeSHeiko Stuebner		regulator-name = "pp1800_audio";
97a0aa6bfeSHeiko Stuebner		pinctrl-names = "default";
98a0aa6bfeSHeiko Stuebner		pinctrl-0 = <&pp1800_audio_en>;
99a0aa6bfeSHeiko Stuebner
100a0aa6bfeSHeiko Stuebner		enable-active-high;
101a0aa6bfeSHeiko Stuebner		gpio = <&gpio0 2 GPIO_ACTIVE_HIGH>;
102a0aa6bfeSHeiko Stuebner
103a0aa6bfeSHeiko Stuebner		regulator-always-on;
104a0aa6bfeSHeiko Stuebner		regulator-boot-on;
105a0aa6bfeSHeiko Stuebner
106a0aa6bfeSHeiko Stuebner		vin-supply = <&pp1800>;
107a0aa6bfeSHeiko Stuebner	};
108a0aa6bfeSHeiko Stuebner
109a0aa6bfeSHeiko Stuebner	/* gpio is shared with pp3300_wifi_bt */
110a0aa6bfeSHeiko Stuebner	pp1800_pcie: pp1800-pcie {
111a0aa6bfeSHeiko Stuebner		compatible = "regulator-fixed";
112a0aa6bfeSHeiko Stuebner		regulator-name = "pp1800_pcie";
113a0aa6bfeSHeiko Stuebner		pinctrl-names = "default";
114a0aa6bfeSHeiko Stuebner		pinctrl-0 = <&wlan_module_pd_l>;
115a0aa6bfeSHeiko Stuebner
116a0aa6bfeSHeiko Stuebner		enable-active-high;
117a0aa6bfeSHeiko Stuebner		gpio = <&gpio0 4 GPIO_ACTIVE_HIGH>;
118a0aa6bfeSHeiko Stuebner
119a0aa6bfeSHeiko Stuebner		/*
120a0aa6bfeSHeiko Stuebner		 * Need to wait 1ms + ramp-up time before we can power on WiFi.
121a0aa6bfeSHeiko Stuebner		 * This has been approximated as 8ms total.
122a0aa6bfeSHeiko Stuebner		 */
123a0aa6bfeSHeiko Stuebner		regulator-enable-ramp-delay = <8000>;
124a0aa6bfeSHeiko Stuebner
125a0aa6bfeSHeiko Stuebner		vin-supply = <&pp1800>;
126a0aa6bfeSHeiko Stuebner	};
127a0aa6bfeSHeiko Stuebner
128a0aa6bfeSHeiko Stuebner	/* Always on; plain and simple */
129a0aa6bfeSHeiko Stuebner	pp3000_ap: pp3000_emmc: pp3000 {
130a0aa6bfeSHeiko Stuebner	};
131a0aa6bfeSHeiko Stuebner
132a0aa6bfeSHeiko Stuebner	pp1500_ap_io: pp1500-ap-io {
133a0aa6bfeSHeiko Stuebner		compatible = "regulator-fixed";
134a0aa6bfeSHeiko Stuebner		regulator-name = "pp1500_ap_io";
135a0aa6bfeSHeiko Stuebner		pinctrl-names = "default";
136a0aa6bfeSHeiko Stuebner		pinctrl-0 = <&pp1500_en>;
137a0aa6bfeSHeiko Stuebner
138a0aa6bfeSHeiko Stuebner		enable-active-high;
139a0aa6bfeSHeiko Stuebner		gpio = <&gpio0 10 GPIO_ACTIVE_HIGH>;
140a0aa6bfeSHeiko Stuebner
141a0aa6bfeSHeiko Stuebner		regulator-always-on;
142a0aa6bfeSHeiko Stuebner		regulator-boot-on;
143a0aa6bfeSHeiko Stuebner		regulator-min-microvolt = <1500000>;
144a0aa6bfeSHeiko Stuebner		regulator-max-microvolt = <1500000>;
145a0aa6bfeSHeiko Stuebner
146a0aa6bfeSHeiko Stuebner		vin-supply = <&pp1800>;
147a0aa6bfeSHeiko Stuebner	};
148a0aa6bfeSHeiko Stuebner
149a0aa6bfeSHeiko Stuebner	pp3300_disp: pp3300-disp {
150a0aa6bfeSHeiko Stuebner		compatible = "regulator-fixed";
151a0aa6bfeSHeiko Stuebner		regulator-name = "pp3300_disp";
152a0aa6bfeSHeiko Stuebner		pinctrl-names = "default";
153a0aa6bfeSHeiko Stuebner		pinctrl-0 = <&pp3300_disp_en>;
154a0aa6bfeSHeiko Stuebner
155a0aa6bfeSHeiko Stuebner		enable-active-high;
156a0aa6bfeSHeiko Stuebner		gpio = <&gpio4 27 GPIO_ACTIVE_HIGH>;
157a0aa6bfeSHeiko Stuebner
158a0aa6bfeSHeiko Stuebner		startup-delay-us = <2000>;
159a0aa6bfeSHeiko Stuebner		vin-supply = <&pp3300>;
160a0aa6bfeSHeiko Stuebner	};
161a0aa6bfeSHeiko Stuebner
162a0aa6bfeSHeiko Stuebner	/* EC turns on w/ pp3300_usb_en_l */
163a0aa6bfeSHeiko Stuebner	pp3300_usb: pp3300 {
164a0aa6bfeSHeiko Stuebner	};
165a0aa6bfeSHeiko Stuebner
166a0aa6bfeSHeiko Stuebner	/* gpio is shared with pp1800_pcie and pinctrl is set there */
167a0aa6bfeSHeiko Stuebner	pp3300_wifi_bt: pp3300-wifi-bt {
168a0aa6bfeSHeiko Stuebner		compatible = "regulator-fixed";
169a0aa6bfeSHeiko Stuebner		regulator-name = "pp3300_wifi_bt";
170a0aa6bfeSHeiko Stuebner
171a0aa6bfeSHeiko Stuebner		enable-active-high;
172a0aa6bfeSHeiko Stuebner		gpio = <&gpio0 4 GPIO_ACTIVE_HIGH>;
173a0aa6bfeSHeiko Stuebner
174a0aa6bfeSHeiko Stuebner		vin-supply = <&pp3300>;
175a0aa6bfeSHeiko Stuebner	};
176a0aa6bfeSHeiko Stuebner
177a0aa6bfeSHeiko Stuebner	/*
178a0aa6bfeSHeiko Stuebner	 * This is a bit of a hack. The WiFi module should be reset at least
179a0aa6bfeSHeiko Stuebner	 * 1ms after its regulators have ramped up (max rampup time is ~7ms).
180a0aa6bfeSHeiko Stuebner	 * With some stretching of the imagination, we can call the 1.8V
181a0aa6bfeSHeiko Stuebner	 * regulator a supply.
182a0aa6bfeSHeiko Stuebner	 */
183a0aa6bfeSHeiko Stuebner	wlan_pd_n: wlan-pd-n {
184a0aa6bfeSHeiko Stuebner		compatible = "regulator-fixed";
185a0aa6bfeSHeiko Stuebner		regulator-name = "wlan_pd_n";
186a0aa6bfeSHeiko Stuebner		pinctrl-names = "default";
187a0aa6bfeSHeiko Stuebner		pinctrl-0 = <&wlan_module_reset_l>;
188a0aa6bfeSHeiko Stuebner
189a0aa6bfeSHeiko Stuebner		enable-active-high;
190a0aa6bfeSHeiko Stuebner		gpio = <&gpio1 11 GPIO_ACTIVE_HIGH>;
191a0aa6bfeSHeiko Stuebner
192a0aa6bfeSHeiko Stuebner		vin-supply = <&pp1800_pcie>;
193a0aa6bfeSHeiko Stuebner	};
194d67a38c5SHeiko Stuebner
195d67a38c5SHeiko Stuebner	backlight: backlight {
196d67a38c5SHeiko Stuebner		compatible = "pwm-backlight";
197d67a38c5SHeiko Stuebner		brightness-levels = <0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
198d67a38c5SHeiko Stuebner				     17 18 19 20 21 22 23 24 25 26 27 28 29 30
199d67a38c5SHeiko Stuebner				     31 32 33 34 35 36 37 38 39 40 41 42 43 44
200d67a38c5SHeiko Stuebner				     45 46 47 48 49 50 51 52 53 54 55 56 57 58
201d67a38c5SHeiko Stuebner				     59 60 61 62 63 64 65 66 67 68 69 70 71 72
202d67a38c5SHeiko Stuebner				     73 74 75 76 77 78 79 80 81 82 83 84 85 86
203d67a38c5SHeiko Stuebner				     87 88 89 90 91 92 93 94 95 96 97 98 99 100>;
204d67a38c5SHeiko Stuebner		default-brightness-level = <51>;
205d67a38c5SHeiko Stuebner		enable-gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>;
206d67a38c5SHeiko Stuebner		power-supply = <&pp3300_disp>;
207d67a38c5SHeiko Stuebner		pinctrl-names = "default";
208d67a38c5SHeiko Stuebner		pinctrl-0 = <&bl_en>;
209d67a38c5SHeiko Stuebner		pwm-delay-us = <10000>;
210d67a38c5SHeiko Stuebner	};
211a0aa6bfeSHeiko Stuebner};
212a0aa6bfeSHeiko Stuebner
213a0aa6bfeSHeiko Stuebner&ppvar_bigcpu {
214a0aa6bfeSHeiko Stuebner	min-slew-down-rate = <225>;
215a0aa6bfeSHeiko Stuebner	ovp-threshold-percent = <16>;
216a0aa6bfeSHeiko Stuebner};
217a0aa6bfeSHeiko Stuebner
218a0aa6bfeSHeiko Stuebner&ppvar_litcpu {
219a0aa6bfeSHeiko Stuebner	min-slew-down-rate = <225>;
220a0aa6bfeSHeiko Stuebner	ovp-threshold-percent = <16>;
221a0aa6bfeSHeiko Stuebner};
222a0aa6bfeSHeiko Stuebner
223a0aa6bfeSHeiko Stuebner&ppvar_gpu {
224a0aa6bfeSHeiko Stuebner	min-slew-down-rate = <225>;
225a0aa6bfeSHeiko Stuebner	ovp-threshold-percent = <16>;
226a0aa6bfeSHeiko Stuebner};
227a0aa6bfeSHeiko Stuebner
228a0aa6bfeSHeiko Stuebner&cdn_dp {
229a0aa6bfeSHeiko Stuebner	extcon = <&usbc_extcon0>, <&usbc_extcon1>;
230a0aa6bfeSHeiko Stuebner};
231a0aa6bfeSHeiko Stuebner
232d67a38c5SHeiko Stuebner&edp {
233d67a38c5SHeiko Stuebner	status = "okay";
234d67a38c5SHeiko Stuebner
235d67a38c5SHeiko Stuebner	ports {
236d67a38c5SHeiko Stuebner		edp_out: port@1 {
237d67a38c5SHeiko Stuebner			reg = <1>;
238d67a38c5SHeiko Stuebner			#address-cells = <1>;
239d67a38c5SHeiko Stuebner			#size-cells = <0>;
240d67a38c5SHeiko Stuebner
241d67a38c5SHeiko Stuebner			edp_out_panel: endpoint@0 {
242d67a38c5SHeiko Stuebner				reg = <0>;
243d67a38c5SHeiko Stuebner				remote-endpoint = <&panel_in_edp>;
244d67a38c5SHeiko Stuebner			};
245d67a38c5SHeiko Stuebner		};
246d67a38c5SHeiko Stuebner	};
247d67a38c5SHeiko Stuebner};
248d67a38c5SHeiko Stuebner
249a0aa6bfeSHeiko Stuebnerap_i2c_mic: &i2c1 {
250a0aa6bfeSHeiko Stuebner	status = "okay";
251a0aa6bfeSHeiko Stuebner
252a0aa6bfeSHeiko Stuebner	clock-frequency = <400000>;
253a0aa6bfeSHeiko Stuebner
254a0aa6bfeSHeiko Stuebner	/* These are relatively safe rise/fall times */
255a0aa6bfeSHeiko Stuebner	i2c-scl-falling-time-ns = <50>;
256a0aa6bfeSHeiko Stuebner	i2c-scl-rising-time-ns = <300>;
257a0aa6bfeSHeiko Stuebner
258a0aa6bfeSHeiko Stuebner	headsetcodec: rt5514@57 {
259a0aa6bfeSHeiko Stuebner		compatible = "realtek,rt5514";
260a0aa6bfeSHeiko Stuebner		reg = <0x57>;
261a0aa6bfeSHeiko Stuebner		realtek,dmic-init-delay-ms = <20>;
262a0aa6bfeSHeiko Stuebner	};
263a0aa6bfeSHeiko Stuebner};
264a0aa6bfeSHeiko Stuebner
265a0aa6bfeSHeiko Stuebnerap_i2c_tp: &i2c5 {
266a0aa6bfeSHeiko Stuebner	status = "okay";
267a0aa6bfeSHeiko Stuebner
268a0aa6bfeSHeiko Stuebner	clock-frequency = <400000>;
269a0aa6bfeSHeiko Stuebner
270a0aa6bfeSHeiko Stuebner	/* These are relatively safe rise/fall times */
271a0aa6bfeSHeiko Stuebner	i2c-scl-falling-time-ns = <50>;
272a0aa6bfeSHeiko Stuebner	i2c-scl-rising-time-ns = <300>;
273a0aa6bfeSHeiko Stuebner
274a0aa6bfeSHeiko Stuebner	/*
275a0aa6bfeSHeiko Stuebner	 * Note strange pullup enable.  Apparently this avoids leakage but
276a0aa6bfeSHeiko Stuebner	 * still allows us to get nice 4.7K pullups for high speed i2c
277a0aa6bfeSHeiko Stuebner	 * transfers.  Basically we want the pullup on whenever the ap is
278a0aa6bfeSHeiko Stuebner	 * alive, so the "en" pin just gets set to output high.
279a0aa6bfeSHeiko Stuebner	 */
280a0aa6bfeSHeiko Stuebner	pinctrl-0 = <&i2c5_xfer &ap_i2c_tp_pu_en>;
281a0aa6bfeSHeiko Stuebner};
282a0aa6bfeSHeiko Stuebner
283a0aa6bfeSHeiko Stuebner&cros_ec {
284a0aa6bfeSHeiko Stuebner	cros_ec_pwm: ec-pwm {
285a0aa6bfeSHeiko Stuebner		compatible = "google,cros-ec-pwm";
286a0aa6bfeSHeiko Stuebner		#pwm-cells = <1>;
287a0aa6bfeSHeiko Stuebner	};
288a0aa6bfeSHeiko Stuebner
289a0aa6bfeSHeiko Stuebner	usbc_extcon1: extcon@1 {
290a0aa6bfeSHeiko Stuebner		compatible = "google,extcon-usbc-cros-ec";
291a0aa6bfeSHeiko Stuebner		google,usb-port-id = <1>;
292a0aa6bfeSHeiko Stuebner
293a0aa6bfeSHeiko Stuebner		#extcon-cells = <0>;
294a0aa6bfeSHeiko Stuebner	};
295a0aa6bfeSHeiko Stuebner};
296a0aa6bfeSHeiko Stuebner
297a0aa6bfeSHeiko Stuebner&sound {
298a0aa6bfeSHeiko Stuebner	rockchip,codec = <&max98357a &headsetcodec
299a0aa6bfeSHeiko Stuebner			  &codec &wacky_spi_audio &cdn_dp>;
300a0aa6bfeSHeiko Stuebner};
301a0aa6bfeSHeiko Stuebner
302a0aa6bfeSHeiko Stuebner&spi2 {
303a0aa6bfeSHeiko Stuebner	wacky_spi_audio: spi2@0 {
304a0aa6bfeSHeiko Stuebner		compatible = "realtek,rt5514";
305a0aa6bfeSHeiko Stuebner		reg = <0>;
306a0aa6bfeSHeiko Stuebner		interrupt-parent = <&gpio1>;
307a0aa6bfeSHeiko Stuebner		interrupts = <13 IRQ_TYPE_LEVEL_HIGH>;
308a0aa6bfeSHeiko Stuebner		pinctrl-names = "default";
309a0aa6bfeSHeiko Stuebner		pinctrl-0 = <&mic_int>;
310a0aa6bfeSHeiko Stuebner		/* May run faster once verified. */
311a0aa6bfeSHeiko Stuebner		spi-max-frequency = <10000000>;
312a0aa6bfeSHeiko Stuebner		wakeup-source;
313a0aa6bfeSHeiko Stuebner	};
314a0aa6bfeSHeiko Stuebner};
315a0aa6bfeSHeiko Stuebner
316a0aa6bfeSHeiko Stuebner&pci_rootport {
317a0aa6bfeSHeiko Stuebner	mvl_wifi: wifi@0,0 {
318a0aa6bfeSHeiko Stuebner		compatible = "pci1b4b,2b42";
319a0aa6bfeSHeiko Stuebner		reg = <0x83010000 0x0 0x00000000 0x0 0x00100000
320a0aa6bfeSHeiko Stuebner		       0x83010000 0x0 0x00100000 0x0 0x00100000>;
321a0aa6bfeSHeiko Stuebner		interrupt-parent = <&gpio0>;
322a0aa6bfeSHeiko Stuebner		interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
323a0aa6bfeSHeiko Stuebner		pinctrl-names = "default";
324a0aa6bfeSHeiko Stuebner		pinctrl-0 = <&wlan_host_wake_l>;
325a0aa6bfeSHeiko Stuebner		wakeup-source;
326a0aa6bfeSHeiko Stuebner	};
327a0aa6bfeSHeiko Stuebner};
328a0aa6bfeSHeiko Stuebner
329a0aa6bfeSHeiko Stuebner&tcphy1 {
330a0aa6bfeSHeiko Stuebner	status = "okay";
331a0aa6bfeSHeiko Stuebner	extcon = <&usbc_extcon1>;
332a0aa6bfeSHeiko Stuebner};
333a0aa6bfeSHeiko Stuebner
334a0aa6bfeSHeiko Stuebner&u2phy1 {
335a0aa6bfeSHeiko Stuebner	status = "okay";
336a0aa6bfeSHeiko Stuebner};
337a0aa6bfeSHeiko Stuebner
338a0aa6bfeSHeiko Stuebner&usb_host0_ehci {
339a0aa6bfeSHeiko Stuebner	status = "okay";
340a0aa6bfeSHeiko Stuebner};
341a0aa6bfeSHeiko Stuebner
342a0aa6bfeSHeiko Stuebner&usb_host1_ehci {
343a0aa6bfeSHeiko Stuebner	status = "okay";
344a0aa6bfeSHeiko Stuebner};
345a0aa6bfeSHeiko Stuebner
346a0aa6bfeSHeiko Stuebner&usb_host1_ohci {
347a0aa6bfeSHeiko Stuebner	status = "okay";
348a0aa6bfeSHeiko Stuebner};
349a0aa6bfeSHeiko Stuebner
350a0aa6bfeSHeiko Stuebner&usbdrd3_1 {
351a0aa6bfeSHeiko Stuebner	status = "okay";
352a0aa6bfeSHeiko Stuebner	extcon = <&usbc_extcon1>;
353a0aa6bfeSHeiko Stuebner};
354a0aa6bfeSHeiko Stuebner
355a0aa6bfeSHeiko Stuebner&usbdrd_dwc3_1 {
356a0aa6bfeSHeiko Stuebner	status = "okay";
357a0aa6bfeSHeiko Stuebner	dr_mode = "host";
358a0aa6bfeSHeiko Stuebner};
359a0aa6bfeSHeiko Stuebner
360a0aa6bfeSHeiko Stuebner&pinctrl {
361a0aa6bfeSHeiko Stuebner	discrete-regulators {
362a0aa6bfeSHeiko Stuebner		pp1500_en: pp1500-en {
363a0aa6bfeSHeiko Stuebner			rockchip,pins = <RK_GPIO0 10 RK_FUNC_GPIO
364a0aa6bfeSHeiko Stuebner					 &pcfg_pull_none>;
365a0aa6bfeSHeiko Stuebner		};
366a0aa6bfeSHeiko Stuebner
367a0aa6bfeSHeiko Stuebner		pp1800_audio_en: pp1800-audio-en {
368a0aa6bfeSHeiko Stuebner			rockchip,pins = <RK_GPIO0 2 RK_FUNC_GPIO
369a0aa6bfeSHeiko Stuebner					 &pcfg_pull_down>;
370a0aa6bfeSHeiko Stuebner		};
371a0aa6bfeSHeiko Stuebner
372a0aa6bfeSHeiko Stuebner		pp3000_en: pp3000-en {
373a0aa6bfeSHeiko Stuebner			rockchip,pins = <RK_GPIO0 12 RK_FUNC_GPIO
374a0aa6bfeSHeiko Stuebner					 &pcfg_pull_none>;
375a0aa6bfeSHeiko Stuebner		};
376a0aa6bfeSHeiko Stuebner
377a0aa6bfeSHeiko Stuebner		pp3300_disp_en: pp3300-disp-en {
378a0aa6bfeSHeiko Stuebner			rockchip,pins = <RK_GPIO4 27 RK_FUNC_GPIO
379a0aa6bfeSHeiko Stuebner					 &pcfg_pull_none>;
380a0aa6bfeSHeiko Stuebner		};
381a0aa6bfeSHeiko Stuebner
382a0aa6bfeSHeiko Stuebner		wlan_module_pd_l: wlan-module-pd-l {
383a0aa6bfeSHeiko Stuebner			rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO
384a0aa6bfeSHeiko Stuebner					 &pcfg_pull_down>;
385a0aa6bfeSHeiko Stuebner		};
386a0aa6bfeSHeiko Stuebner	};
387a0aa6bfeSHeiko Stuebner};
388a0aa6bfeSHeiko Stuebner
389a0aa6bfeSHeiko Stuebner&wifi {
390a0aa6bfeSHeiko Stuebner	wifi_perst_l: wifi-perst-l {
391a0aa6bfeSHeiko Stuebner		rockchip,pins = <2 27 RK_FUNC_GPIO &pcfg_pull_none>;
392a0aa6bfeSHeiko Stuebner	};
393a0aa6bfeSHeiko Stuebner
394a0aa6bfeSHeiko Stuebner	wlan_host_wake_l: wlan-host-wake-l {
395a0aa6bfeSHeiko Stuebner		rockchip,pins = <0 8 RK_FUNC_GPIO &pcfg_pull_none>;
396a0aa6bfeSHeiko Stuebner	};
397a0aa6bfeSHeiko Stuebner};
398