123a6da79SAlexey Minnekhanov// SPDX-License-Identifier: GPL-2.0-only
223a6da79SAlexey Minnekhanov/*
323a6da79SAlexey Minnekhanov * Copyright (c) 2020, Alexey Minnekhanov <alexey.min@gmail.com>
4262a8ad1SDang Huynh * Copyright (c) 2021, Dang Huynh <danct12@riseup.net>
523a6da79SAlexey Minnekhanov */
623a6da79SAlexey Minnekhanov
723a6da79SAlexey Minnekhanov/dts-v1/;
823a6da79SAlexey Minnekhanov
923a6da79SAlexey Minnekhanov#include "sdm660.dtsi"
10262a8ad1SDang Huynh#include "pm660.dtsi"
11262a8ad1SDang Huynh#include "pm660l.dtsi"
1268674303SDang Huynh#include <dt-bindings/input/input.h>
1368674303SDang Huynh#include <dt-bindings/input/gpio-keys.h>
1423a6da79SAlexey Minnekhanov
1523a6da79SAlexey Minnekhanov/ {
1623a6da79SAlexey Minnekhanov	model = "Xiaomi Redmi Note 7";
1723a6da79SAlexey Minnekhanov	compatible = "xiaomi,lavender", "qcom,sdm660";
18eaa744b1SArnaud Ferraris	chassis-type = "handset";
1923a6da79SAlexey Minnekhanov
2023a6da79SAlexey Minnekhanov	aliases {
2123a6da79SAlexey Minnekhanov		serial0 = &blsp1_uart2;
2223a6da79SAlexey Minnekhanov	};
2323a6da79SAlexey Minnekhanov
2423a6da79SAlexey Minnekhanov	chosen {
25e631e904SDang Huynh		#address-cells = <2>;
26e631e904SDang Huynh		#size-cells = <2>;
27e631e904SDang Huynh		ranges;
28e631e904SDang Huynh
2923a6da79SAlexey Minnekhanov		stdout-path = "serial0:115200n8";
30e631e904SDang Huynh
31e631e904SDang Huynh		framebuffer0: framebuffer@9d400000 {
32e631e904SDang Huynh			compatible = "simple-framebuffer";
33e631e904SDang Huynh			reg = <0 0x9d400000 0 (1080 * 2340 * 4)>;
34e631e904SDang Huynh			width = <1080>;
35e631e904SDang Huynh			height = <2340>;
36e631e904SDang Huynh			stride = <(1080 * 4)>;
37e631e904SDang Huynh			format = "a8r8g8b8";
38e631e904SDang Huynh		};
3923a6da79SAlexey Minnekhanov	};
4023a6da79SAlexey Minnekhanov
41262a8ad1SDang Huynh	vph_pwr: vph-pwr-regulator {
42262a8ad1SDang Huynh		compatible = "regulator-fixed";
43262a8ad1SDang Huynh		regulator-name = "vph_pwr";
44262a8ad1SDang Huynh		regulator-min-microvolt = <3700000>;
45262a8ad1SDang Huynh		regulator-max-microvolt = <3700000>;
46262a8ad1SDang Huynh
47262a8ad1SDang Huynh		regulator-always-on;
48262a8ad1SDang Huynh		regulator-boot-on;
49262a8ad1SDang Huynh	};
50262a8ad1SDang Huynh
5168674303SDang Huynh	gpio-keys {
5268674303SDang Huynh		compatible = "gpio-keys";
5368674303SDang Huynh
5468674303SDang Huynh		volup {
5568674303SDang Huynh			label = "Volume Up";
5668674303SDang Huynh			gpios = <&pm660l_gpios 7 GPIO_ACTIVE_LOW>;
5768674303SDang Huynh			linux,code = <KEY_VOLUMEUP>;
5868674303SDang Huynh			debounce-interval = <15>;
5968674303SDang Huynh		};
6068674303SDang Huynh	};
6168674303SDang Huynh
6223a6da79SAlexey Minnekhanov	reserved-memory {
6323a6da79SAlexey Minnekhanov		#address-cells = <2>;
6423a6da79SAlexey Minnekhanov		#size-cells = <2>;
6523a6da79SAlexey Minnekhanov		ranges;
6623a6da79SAlexey Minnekhanov
6723a6da79SAlexey Minnekhanov		ramoops@a0000000 {
6823a6da79SAlexey Minnekhanov			compatible = "ramoops";
6923a6da79SAlexey Minnekhanov			reg = <0x0 0xa0000000 0x0 0x400000>;
7023a6da79SAlexey Minnekhanov			console-size = <0x20000>;
7123a6da79SAlexey Minnekhanov			record-size = <0x20000>;
7223a6da79SAlexey Minnekhanov			ftrace-size = <0x0>;
7323a6da79SAlexey Minnekhanov			pmsg-size = <0x20000>;
7423a6da79SAlexey Minnekhanov		};
75e631e904SDang Huynh
76e631e904SDang Huynh		framebuffer_mem: memory@9d400000 {
77e631e904SDang Huynh			reg = <0x0 0x9d400000 0x0 0x23ff000>;
78e631e904SDang Huynh			no-map;
79e631e904SDang Huynh		};
8023a6da79SAlexey Minnekhanov	};
81e5d3e752SAlexey Min
82e5d3e752SAlexey Min	/*
83e5d3e752SAlexey Min	 * Until we hook up type-c detection, we
84e5d3e752SAlexey Min	 * have to stick with this. But it works.
85e5d3e752SAlexey Min	 */
86e5d3e752SAlexey Min	extcon_usb: extcon-usb {
87e5d3e752SAlexey Min		compatible = "linux,extcon-usb-gpio";
88e5d3e752SAlexey Min		id-gpio = <&tlmm 58 GPIO_ACTIVE_HIGH>;
89e5d3e752SAlexey Min	};
9023a6da79SAlexey Minnekhanov};
9123a6da79SAlexey Minnekhanov
9223a6da79SAlexey Minnekhanov&blsp1_uart2 {
9323a6da79SAlexey Minnekhanov	status = "okay";
9423a6da79SAlexey Minnekhanov};
9523a6da79SAlexey Minnekhanov
964c420a04SDang Huynh&pon_pwrkey {
974c420a04SDang Huynh	status = "okay";
984c420a04SDang Huynh};
994c420a04SDang Huynh
1004c420a04SDang Huynh&pon_resin {
1014c420a04SDang Huynh	status = "okay";
1024c420a04SDang Huynh
1034c420a04SDang Huynh	linux,code = <KEY_VOLUMEDOWN>;
1044c420a04SDang Huynh};
1054c420a04SDang Huynh
106696dea7eSDmitry Baryshkov&qusb2phy0 {
107e5d3e752SAlexey Min	status = "okay";
108e5d3e752SAlexey Min
109e5d3e752SAlexey Min	vdd-supply = <&vreg_l1b_0p925>;
110e5d3e752SAlexey Min	vdda-phy-dpdm-supply = <&vreg_l7b_3p125>;
111e5d3e752SAlexey Min};
112e5d3e752SAlexey Min
113262a8ad1SDang Huynh&rpm_requests {
114262a8ad1SDang Huynh	pm660l-regulators {
115262a8ad1SDang Huynh		compatible = "qcom,rpm-pm660l-regulators";
116262a8ad1SDang Huynh
117262a8ad1SDang Huynh		vdd_s1-supply = <&vph_pwr>;
118262a8ad1SDang Huynh		vdd_s2-supply = <&vph_pwr>;
119262a8ad1SDang Huynh		vdd_s3_s4-supply = <&vph_pwr>;
120262a8ad1SDang Huynh		vdd_s5-supply = <&vph_pwr>;
121262a8ad1SDang Huynh		vdd_s6-supply = <&vph_pwr>;
122262a8ad1SDang Huynh
123262a8ad1SDang Huynh		vdd_l1_l9_l10-supply = <&vreg_s2b_1p05>;
124262a8ad1SDang Huynh		vdd_l2-supply = <&vreg_bob>;
125262a8ad1SDang Huynh		vdd_l3_l5_l7_l8-supply = <&vreg_bob>;
126262a8ad1SDang Huynh		vdd_l4_l6-supply = <&vreg_bob>;
127262a8ad1SDang Huynh		vdd_bob-supply = <&vph_pwr>;
128262a8ad1SDang Huynh
129262a8ad1SDang Huynh		vreg_s1b_1p125: s1 {
130262a8ad1SDang Huynh			regulator-min-microvolt = <1125000>;
131262a8ad1SDang Huynh			regulator-max-microvolt = <1125000>;
132262a8ad1SDang Huynh			regulator-enable-ramp-delay = <200>;
133262a8ad1SDang Huynh		};
134262a8ad1SDang Huynh
135262a8ad1SDang Huynh		vreg_s2b_1p05: s2 {
136262a8ad1SDang Huynh			regulator-min-microvolt = <1050000>;
137262a8ad1SDang Huynh			regulator-max-microvolt = <1050000>;
138262a8ad1SDang Huynh			regulator-enable-ramp-delay = <200>;
139262a8ad1SDang Huynh		};
140262a8ad1SDang Huynh
141262a8ad1SDang Huynh		/* LDOs */
142262a8ad1SDang Huynh		vreg_l1b_0p925: l1 {
143262a8ad1SDang Huynh			regulator-min-microvolt = <800000>;
144262a8ad1SDang Huynh			regulator-max-microvolt = <925000>;
145262a8ad1SDang Huynh			regulator-enable-ramp-delay = <250>;
146262a8ad1SDang Huynh			regulator-allow-set-load;
147262a8ad1SDang Huynh		};
148262a8ad1SDang Huynh
149262a8ad1SDang Huynh		/* SDHCI 3.3V signal doesn't seem to be supported. */
150262a8ad1SDang Huynh		vreg_l2b_2p95: l2 {
151262a8ad1SDang Huynh			regulator-min-microvolt = <1648000>;
152262a8ad1SDang Huynh			regulator-max-microvolt = <2696000>;
153262a8ad1SDang Huynh			regulator-enable-ramp-delay = <250>;
154262a8ad1SDang Huynh			regulator-allow-set-load;
155262a8ad1SDang Huynh		};
156262a8ad1SDang Huynh
157262a8ad1SDang Huynh		vreg_l3b_3p3: l3 {
158262a8ad1SDang Huynh			regulator-min-microvolt = <1700000>;
159262a8ad1SDang Huynh			regulator-max-microvolt = <3300000>;
160262a8ad1SDang Huynh			regulator-enable-ramp-delay = <250>;
161262a8ad1SDang Huynh			regulator-allow-set-load;
162262a8ad1SDang Huynh		};
163262a8ad1SDang Huynh
164262a8ad1SDang Huynh		vreg_l4b_2p95: l4 {
165262a8ad1SDang Huynh			regulator-min-microvolt = <2944000>;
166262a8ad1SDang Huynh			regulator-max-microvolt = <2952000>;
167262a8ad1SDang Huynh			regulator-enable-ramp-delay = <250>;
168262a8ad1SDang Huynh
169262a8ad1SDang Huynh			regulator-min-microamp = <200>;
170262a8ad1SDang Huynh			regulator-max-microamp = <600000>;
171262a8ad1SDang Huynh			regulator-system-load = <570000>;
172262a8ad1SDang Huynh			regulator-allow-set-load;
173262a8ad1SDang Huynh		};
174262a8ad1SDang Huynh
175262a8ad1SDang Huynh		/*
176262a8ad1SDang Huynh		 * Downstream specifies a range of 1721-3600mV,
177262a8ad1SDang Huynh		 * but the only assigned consumers are SDHCI2 VMMC
178262a8ad1SDang Huynh		 * and Coresight QPDI that both request pinned 2.95V.
179262a8ad1SDang Huynh		 * Tighten the range to 1.8-3.328 (closest to 3.3) to
180262a8ad1SDang Huynh		 * make the mmc driver happy.
181262a8ad1SDang Huynh		 */
182262a8ad1SDang Huynh		vreg_l5b_2p95: l5 {
183262a8ad1SDang Huynh			regulator-min-microvolt = <1800000>;
184262a8ad1SDang Huynh			regulator-max-microvolt = <3328000>;
185262a8ad1SDang Huynh			regulator-enable-ramp-delay = <250>;
186262a8ad1SDang Huynh			regulator-allow-set-load;
187262a8ad1SDang Huynh			regulator-system-load = <800000>;
188262a8ad1SDang Huynh		};
189262a8ad1SDang Huynh
190262a8ad1SDang Huynh		vreg_l7b_3p125: l7 {
191262a8ad1SDang Huynh			regulator-min-microvolt = <2700000>;
192262a8ad1SDang Huynh			regulator-max-microvolt = <3125000>;
193262a8ad1SDang Huynh			regulator-enable-ramp-delay = <250>;
194262a8ad1SDang Huynh		};
195262a8ad1SDang Huynh
196262a8ad1SDang Huynh		vreg_l8b_3p3: l8 {
197262a8ad1SDang Huynh			regulator-min-microvolt = <3200000>;
198262a8ad1SDang Huynh			regulator-max-microvolt = <3400000>;
199262a8ad1SDang Huynh			regulator-enable-ramp-delay = <250>;
200262a8ad1SDang Huynh		};
201262a8ad1SDang Huynh
202262a8ad1SDang Huynh		vreg_bob: bob {
203262a8ad1SDang Huynh			regulator-min-microvolt = <3300000>;
204262a8ad1SDang Huynh			regulator-max-microvolt = <3600000>;
205262a8ad1SDang Huynh			regulator-enable-ramp-delay = <500>;
206262a8ad1SDang Huynh		};
207262a8ad1SDang Huynh	};
208262a8ad1SDang Huynh
209262a8ad1SDang Huynh	pm660-regulators {
210262a8ad1SDang Huynh		compatible = "qcom,rpm-pm660-regulators";
211262a8ad1SDang Huynh
212262a8ad1SDang Huynh		vdd_s1-supply = <&vph_pwr>;
213262a8ad1SDang Huynh		vdd_s2-supply = <&vph_pwr>;
214262a8ad1SDang Huynh		vdd_s3-supply = <&vph_pwr>;
215262a8ad1SDang Huynh		vdd_s4-supply = <&vph_pwr>;
216262a8ad1SDang Huynh		vdd_s5-supply = <&vph_pwr>;
217262a8ad1SDang Huynh		vdd_s6-supply = <&vph_pwr>;
218262a8ad1SDang Huynh
219262a8ad1SDang Huynh		vdd_l1_l6_l7-supply = <&vreg_s5a_1p35>;
220262a8ad1SDang Huynh		vdd_l2_l3-supply = <&vreg_s2b_1p05>;
221262a8ad1SDang Huynh		vdd_l5-supply = <&vreg_s2b_1p05>;
222262a8ad1SDang Huynh		vdd_l8_l9_l10_l11_l12_l13_l14-supply = <&vreg_s4a_2p04>;
223262a8ad1SDang Huynh		vdd_l15_l16_l17_l18_l19-supply = <&vreg_bob>;
224262a8ad1SDang Huynh
225262a8ad1SDang Huynh		/*
226262a8ad1SDang Huynh		 * S1A (FTAPC0), S2A (FTAPC1), S3A (HFAPC1) are managed
227262a8ad1SDang Huynh		 * by the Core Power Reduction hardened (CPRh) and the
228262a8ad1SDang Huynh		 * Operating State Manager (OSM) HW automatically.
229262a8ad1SDang Huynh		 */
230262a8ad1SDang Huynh
231262a8ad1SDang Huynh		vreg_s4a_2p04: s4 {
232262a8ad1SDang Huynh			regulator-min-microvolt = <1805000>;
233262a8ad1SDang Huynh			regulator-max-microvolt = <2040000>;
234262a8ad1SDang Huynh			regulator-enable-ramp-delay = <200>;
235262a8ad1SDang Huynh			regulator-always-on;
236262a8ad1SDang Huynh		};
237262a8ad1SDang Huynh
238262a8ad1SDang Huynh		vreg_s5a_1p35: s5 {
239262a8ad1SDang Huynh			regulator-min-microvolt = <1224000>;
240262a8ad1SDang Huynh			regulator-max-microvolt = <1350000>;
241262a8ad1SDang Huynh			regulator-enable-ramp-delay = <200>;
242262a8ad1SDang Huynh		};
243262a8ad1SDang Huynh
244262a8ad1SDang Huynh		vreg_s6a_0p87: s6 {
245262a8ad1SDang Huynh			regulator-min-microvolt = <504000>;
246262a8ad1SDang Huynh			regulator-max-microvolt = <992000>;
247262a8ad1SDang Huynh			regulator-enable-ramp-delay = <150>;
248262a8ad1SDang Huynh		};
249262a8ad1SDang Huynh
250262a8ad1SDang Huynh		/* LDOs */
251262a8ad1SDang Huynh		vreg_l1a_1p225: l1 {
252262a8ad1SDang Huynh			regulator-min-microvolt = <1150000>;
253262a8ad1SDang Huynh			regulator-max-microvolt = <1250000>;
254262a8ad1SDang Huynh			regulator-enable-ramp-delay = <250>;
255262a8ad1SDang Huynh			regulator-allow-set-load;
256262a8ad1SDang Huynh		};
257262a8ad1SDang Huynh
258262a8ad1SDang Huynh		vreg_l2a_1p0: l2 {
259262a8ad1SDang Huynh			regulator-min-microvolt = <950000>;
260262a8ad1SDang Huynh			regulator-max-microvolt = <1010000>;
261262a8ad1SDang Huynh			regulator-enable-ramp-delay = <250>;
262262a8ad1SDang Huynh		};
263262a8ad1SDang Huynh
264262a8ad1SDang Huynh		vreg_l3a_1p0: l3 {
265262a8ad1SDang Huynh			regulator-min-microvolt = <950000>;
266262a8ad1SDang Huynh			regulator-max-microvolt = <1010000>;
267262a8ad1SDang Huynh			regulator-enable-ramp-delay = <250>;
268262a8ad1SDang Huynh		};
269262a8ad1SDang Huynh
270262a8ad1SDang Huynh		vreg_l5a_0p848: l5 {
271262a8ad1SDang Huynh			regulator-min-microvolt = <525000>;
272262a8ad1SDang Huynh			regulator-max-microvolt = <950000>;
273262a8ad1SDang Huynh			regulator-enable-ramp-delay = <250>;
274262a8ad1SDang Huynh		};
275262a8ad1SDang Huynh
276262a8ad1SDang Huynh		vreg_l6a_1p3: l6 {
277262a8ad1SDang Huynh			regulator-min-microvolt = <1200000>;
278262a8ad1SDang Huynh			regulator-max-microvolt = <1370000>;
279262a8ad1SDang Huynh			regulator-allow-set-load;
280262a8ad1SDang Huynh			regulator-enable-ramp-delay = <250>;
281262a8ad1SDang Huynh		};
282262a8ad1SDang Huynh
283262a8ad1SDang Huynh		vreg_l7a_1p2: l7 {
284262a8ad1SDang Huynh			regulator-min-microvolt = <1200000>;
285262a8ad1SDang Huynh			regulator-max-microvolt = <1200000>;
286262a8ad1SDang Huynh			regulator-enable-ramp-delay = <250>;
287262a8ad1SDang Huynh		};
288262a8ad1SDang Huynh
289262a8ad1SDang Huynh		vreg_l8a_1p8: l8 {
290262a8ad1SDang Huynh			regulator-min-microvolt = <1750000>;
291262a8ad1SDang Huynh			regulator-max-microvolt = <1800000>;
292262a8ad1SDang Huynh			regulator-enable-ramp-delay = <250>;
293262a8ad1SDang Huynh			regulator-system-load = <325000>;
294262a8ad1SDang Huynh			regulator-allow-set-load;
295262a8ad1SDang Huynh		};
296262a8ad1SDang Huynh
297262a8ad1SDang Huynh		vreg_l9a_1p8: l9 {
298262a8ad1SDang Huynh			regulator-min-microvolt = <1750000>;
299262a8ad1SDang Huynh			regulator-max-microvolt = <1900000>;
300262a8ad1SDang Huynh			regulator-enable-ramp-delay = <250>;
301262a8ad1SDang Huynh			regulator-allow-set-load;
302262a8ad1SDang Huynh		};
303262a8ad1SDang Huynh
304262a8ad1SDang Huynh		vreg_l10a_1p8: l10 {
305262a8ad1SDang Huynh			regulator-min-microvolt = <1780000>;
306262a8ad1SDang Huynh			regulator-max-microvolt = <1950000>;
307262a8ad1SDang Huynh			regulator-enable-ramp-delay = <250>;
308262a8ad1SDang Huynh			regulator-allow-set-load;
309262a8ad1SDang Huynh		};
310262a8ad1SDang Huynh
311262a8ad1SDang Huynh		vreg_l11a_1p8: l11 {
312262a8ad1SDang Huynh			regulator-min-microvolt = <1780000>;
313262a8ad1SDang Huynh			regulator-max-microvolt = <1950000>;
314262a8ad1SDang Huynh			regulator-enable-ramp-delay = <250>;
315262a8ad1SDang Huynh		};
316262a8ad1SDang Huynh
317262a8ad1SDang Huynh		vreg_l12a_1p8: l12 {
318262a8ad1SDang Huynh			regulator-min-microvolt = <1780000>;
319262a8ad1SDang Huynh			regulator-max-microvolt = <1950000>;
320262a8ad1SDang Huynh			regulator-enable-ramp-delay = <250>;
321262a8ad1SDang Huynh		};
322262a8ad1SDang Huynh
323262a8ad1SDang Huynh		/* This gives power to the LPDDR4: never turn it off! */
324262a8ad1SDang Huynh		vreg_l13a_1p8: l13 {
325262a8ad1SDang Huynh			regulator-min-microvolt = <1780000>;
326262a8ad1SDang Huynh			regulator-max-microvolt = <1950000>;
327262a8ad1SDang Huynh			regulator-enable-ramp-delay = <250>;
328262a8ad1SDang Huynh			regulator-boot-on;
329262a8ad1SDang Huynh			regulator-always-on;
330262a8ad1SDang Huynh		};
331262a8ad1SDang Huynh
332262a8ad1SDang Huynh		vreg_l14a_1p8: l14 {
333262a8ad1SDang Huynh			regulator-min-microvolt = <1710000>;
334262a8ad1SDang Huynh			regulator-max-microvolt = <1900000>;
335262a8ad1SDang Huynh			regulator-enable-ramp-delay = <250>;
336262a8ad1SDang Huynh		};
337262a8ad1SDang Huynh
338262a8ad1SDang Huynh		vreg_l15a_1p8: l15 {
339262a8ad1SDang Huynh			regulator-min-microvolt = <1650000>;
340262a8ad1SDang Huynh			regulator-max-microvolt = <2950000>;
341262a8ad1SDang Huynh			regulator-enable-ramp-delay = <250>;
342262a8ad1SDang Huynh		};
343262a8ad1SDang Huynh
344262a8ad1SDang Huynh		vreg_l16a_2p7: l16 {
345262a8ad1SDang Huynh			regulator-min-microvolt = <2800000>;
346262a8ad1SDang Huynh			regulator-max-microvolt = <2800000>;
347262a8ad1SDang Huynh			regulator-enable-ramp-delay = <250>;
348262a8ad1SDang Huynh			regulator-always-on;
349262a8ad1SDang Huynh		};
350262a8ad1SDang Huynh
351262a8ad1SDang Huynh		vreg_l17a_1p8: l17 {
352262a8ad1SDang Huynh			regulator-min-microvolt = <1648000>;
353262a8ad1SDang Huynh			regulator-max-microvolt = <2952000>;
354262a8ad1SDang Huynh			regulator-enable-ramp-delay = <250>;
355262a8ad1SDang Huynh		};
356262a8ad1SDang Huynh
357262a8ad1SDang Huynh		vreg_l19a_3p3: l19 {
358262a8ad1SDang Huynh			regulator-min-microvolt = <3312000>;
359262a8ad1SDang Huynh			regulator-max-microvolt = <3400000>;
360262a8ad1SDang Huynh			regulator-enable-ramp-delay = <250>;
361262a8ad1SDang Huynh			regulator-allow-set-load;
362262a8ad1SDang Huynh		};
363262a8ad1SDang Huynh	};
364262a8ad1SDang Huynh};
365262a8ad1SDang Huynh
366b74f7b8fSDang Huynh&pm660l_wled {
367b74f7b8fSDang Huynh	status = "okay";
368b74f7b8fSDang Huynh
369b74f7b8fSDang Huynh	qcom,switching-freq = <800>;
370b74f7b8fSDang Huynh	qcom,current-limit-microamp = <20000>;
371b74f7b8fSDang Huynh	qcom,num-strings = <2>;
372b74f7b8fSDang Huynh};
373b74f7b8fSDang Huynh
374*5e9bc1baSDmitry Baryshkov&sdc2_state_on {
375*5e9bc1baSDmitry Baryshkov	sd-cd {
376*5e9bc1baSDmitry Baryshkov		pins = "gpio54";
377*5e9bc1baSDmitry Baryshkov		bias-pull-up;
378*5e9bc1baSDmitry Baryshkov		drive-strength = <2>;
379*5e9bc1baSDmitry Baryshkov	};
380*5e9bc1baSDmitry Baryshkov};
381*5e9bc1baSDmitry Baryshkov
382*5e9bc1baSDmitry Baryshkov&sdc2_state_off {
383*5e9bc1baSDmitry Baryshkov	sd-cd {
384*5e9bc1baSDmitry Baryshkov		pins = "gpio54";
385*5e9bc1baSDmitry Baryshkov		bias-disable;
386*5e9bc1baSDmitry Baryshkov		drive-strength = <2>;
387*5e9bc1baSDmitry Baryshkov	};
388*5e9bc1baSDmitry Baryshkov};
389*5e9bc1baSDmitry Baryshkov
390cf85e9aeSDang Huynh&sdhc_1 {
391cf85e9aeSDang Huynh	status = "okay";
392cf85e9aeSDang Huynh	supports-cqe;
393cf85e9aeSDang Huynh
394cf85e9aeSDang Huynh	mmc-hs200-1_8v;
395cf85e9aeSDang Huynh	mmc-hs400-1_8v;
396cf85e9aeSDang Huynh	mmc-hs400-enhanced-strobe;
397cf85e9aeSDang Huynh
398cf85e9aeSDang Huynh	vmmc-supply = <&vreg_l4b_2p95>;
399cf85e9aeSDang Huynh	vqmmc-supply = <&vreg_l8a_1p8>;
400cf85e9aeSDang Huynh};
401cf85e9aeSDang Huynh
402cf85e9aeSDang Huynh&sdhc_2 {
403cf85e9aeSDang Huynh	status = "okay";
404cf85e9aeSDang Huynh
405cf85e9aeSDang Huynh	vmmc-supply = <&vreg_l5b_2p95>;
406cf85e9aeSDang Huynh	vqmmc-supply = <&vreg_l2b_2p95>;
407cf85e9aeSDang Huynh};
408cf85e9aeSDang Huynh
40923a6da79SAlexey Minnekhanov&tlmm {
41023a6da79SAlexey Minnekhanov	gpio-reserved-ranges = <8 4>;
41123a6da79SAlexey Minnekhanov};
412e5d3e752SAlexey Min
413e5d3e752SAlexey Min&usb3 {
414e5d3e752SAlexey Min	status = "okay";
415e5d3e752SAlexey Min};
416e5d3e752SAlexey Min
417e5d3e752SAlexey Min&usb3_dwc3 {
418e5d3e752SAlexey Min	dr_mode = "peripheral";
419e5d3e752SAlexey Min	extcon = <&extcon_usb>;
420e5d3e752SAlexey Min};
421