xref: /freebsd-src/sys/contrib/device-tree/src/arm/qcom/qcom-apq8074-dragonboard.dts (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
3f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h>
4f126890aSEmmanuel Vadot#include <dt-bindings/leds/common.h>
5f126890aSEmmanuel Vadot#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
6f126890aSEmmanuel Vadot#include "qcom-msm8974.dtsi"
7*8d13bc63SEmmanuel Vadot#include "pm8841.dtsi"
8*8d13bc63SEmmanuel Vadot#include "pm8941.dtsi"
9f126890aSEmmanuel Vadot
10f126890aSEmmanuel Vadot/delete-node/ &mpss_region;
11f126890aSEmmanuel Vadot
12f126890aSEmmanuel Vadot/ {
13f126890aSEmmanuel Vadot	model = "Qualcomm APQ8074 Dragonboard";
14f126890aSEmmanuel Vadot	compatible = "qcom,apq8074-dragonboard", "qcom,apq8074";
15f126890aSEmmanuel Vadot
16f126890aSEmmanuel Vadot	aliases {
17f126890aSEmmanuel Vadot		serial0 = &blsp1_uart2;
18f126890aSEmmanuel Vadot		usid0 = &pm8941_0;
19f126890aSEmmanuel Vadot		usid4 = &pm8841_0;
20f126890aSEmmanuel Vadot	};
21f126890aSEmmanuel Vadot
22f126890aSEmmanuel Vadot	chosen {
23f126890aSEmmanuel Vadot		stdout-path = "serial0:115200n8";
24f126890aSEmmanuel Vadot	};
25f126890aSEmmanuel Vadot
26f126890aSEmmanuel Vadot	gpio-keys {
27f126890aSEmmanuel Vadot		compatible = "gpio-keys";
28f126890aSEmmanuel Vadot		autorepeat;
29f126890aSEmmanuel Vadot
30f126890aSEmmanuel Vadot		pinctrl-0 = <&msm_keys_default>;
31f126890aSEmmanuel Vadot		pinctrl-names = "default";
32f126890aSEmmanuel Vadot
33f126890aSEmmanuel Vadot		button-volup {
34f126890aSEmmanuel Vadot			label = "Volume Up";
35f126890aSEmmanuel Vadot			linux,code = <KEY_VOLUMEUP>;
36f126890aSEmmanuel Vadot			gpios = <&pm8941_gpios 5 GPIO_ACTIVE_LOW>;
37f126890aSEmmanuel Vadot		};
38f126890aSEmmanuel Vadot
39f126890aSEmmanuel Vadot		button-general {
40f126890aSEmmanuel Vadot			label = "General";
41f126890aSEmmanuel Vadot			linux,code = <KEY_PROG1>;
42f126890aSEmmanuel Vadot			gpios = <&pm8941_gpios 23 GPIO_ACTIVE_LOW>;
43f126890aSEmmanuel Vadot		};
44f126890aSEmmanuel Vadot	};
45f126890aSEmmanuel Vadot
46f126890aSEmmanuel Vadot	reserved-memory {
47f126890aSEmmanuel Vadot		mpss_region: mpss@ac00000 {
48f126890aSEmmanuel Vadot			reg = <0x0ac00000 0x2500000>;
49f126890aSEmmanuel Vadot			no-map;
50f126890aSEmmanuel Vadot		};
51f126890aSEmmanuel Vadot	};
52*8d13bc63SEmmanuel Vadot
53*8d13bc63SEmmanuel Vadot	vreg_boost: vreg-boost {
54*8d13bc63SEmmanuel Vadot		compatible = "regulator-fixed";
55*8d13bc63SEmmanuel Vadot
56*8d13bc63SEmmanuel Vadot		regulator-name = "vreg-boost";
57*8d13bc63SEmmanuel Vadot		regulator-min-microvolt = <3150000>;
58*8d13bc63SEmmanuel Vadot		regulator-max-microvolt = <3150000>;
59*8d13bc63SEmmanuel Vadot
60*8d13bc63SEmmanuel Vadot		regulator-always-on;
61*8d13bc63SEmmanuel Vadot		regulator-boot-on;
62*8d13bc63SEmmanuel Vadot
63*8d13bc63SEmmanuel Vadot		gpio = <&pm8941_gpios 21 GPIO_ACTIVE_HIGH>;
64*8d13bc63SEmmanuel Vadot		enable-active-high;
65*8d13bc63SEmmanuel Vadot
66*8d13bc63SEmmanuel Vadot		pinctrl-names = "default";
67*8d13bc63SEmmanuel Vadot		pinctrl-0 = <&boost_bypass_n_pin>;
68*8d13bc63SEmmanuel Vadot	};
69*8d13bc63SEmmanuel Vadot
70*8d13bc63SEmmanuel Vadot	vreg_vph_pwr: vreg-vph-pwr {
71*8d13bc63SEmmanuel Vadot		compatible = "regulator-fixed";
72*8d13bc63SEmmanuel Vadot		regulator-name = "vph-pwr";
73*8d13bc63SEmmanuel Vadot
74*8d13bc63SEmmanuel Vadot		regulator-min-microvolt = <3600000>;
75*8d13bc63SEmmanuel Vadot		regulator-max-microvolt = <3600000>;
76*8d13bc63SEmmanuel Vadot
77*8d13bc63SEmmanuel Vadot		regulator-always-on;
78*8d13bc63SEmmanuel Vadot	};
79f126890aSEmmanuel Vadot};
80f126890aSEmmanuel Vadot
81f126890aSEmmanuel Vadot&blsp1_uart2 {
82f126890aSEmmanuel Vadot	status = "okay";
83f126890aSEmmanuel Vadot};
84f126890aSEmmanuel Vadot
85f126890aSEmmanuel Vadot&blsp2_dma {
86f126890aSEmmanuel Vadot	qcom,controlled-remotely;
87f126890aSEmmanuel Vadot};
88f126890aSEmmanuel Vadot
89f126890aSEmmanuel Vadot&blsp2_i2c5 {
90f126890aSEmmanuel Vadot	status = "okay";
91f126890aSEmmanuel Vadot	clock-frequency = <200000>;
92f126890aSEmmanuel Vadot
93f126890aSEmmanuel Vadot	eeprom: eeprom@52 {
94f126890aSEmmanuel Vadot		compatible = "atmel,24c128";
95f126890aSEmmanuel Vadot		reg = <0x52>;
96f126890aSEmmanuel Vadot		pagesize = <32>;
97f126890aSEmmanuel Vadot		read-only;
98f126890aSEmmanuel Vadot	};
99f126890aSEmmanuel Vadot};
100f126890aSEmmanuel Vadot
101f126890aSEmmanuel Vadot&gpu {
102f126890aSEmmanuel Vadot	status = "okay";
103f126890aSEmmanuel Vadot};
104f126890aSEmmanuel Vadot
105f126890aSEmmanuel Vadot&mdss {
106f126890aSEmmanuel Vadot	status = "okay";
107f126890aSEmmanuel Vadot};
108f126890aSEmmanuel Vadot
109f126890aSEmmanuel Vadot&mdss_dsi0 {
110f126890aSEmmanuel Vadot	vdda-supply = <&pm8941_l2>;
111f126890aSEmmanuel Vadot	vdd-supply = <&pm8941_l22>;
112f126890aSEmmanuel Vadot	vddio-supply = <&pm8941_l12>;
113f126890aSEmmanuel Vadot
114f126890aSEmmanuel Vadot	status = "okay";
115f126890aSEmmanuel Vadot
116f126890aSEmmanuel Vadot	panel: panel@0 {
117f126890aSEmmanuel Vadot		compatible = "sharp,ls043t1le01-qhd";
118f126890aSEmmanuel Vadot		reg = <0>;
119f126890aSEmmanuel Vadot
120f126890aSEmmanuel Vadot		avdd-supply = <&pm8941_l22>;
121f126890aSEmmanuel Vadot		backlight = <&pm8941_wled>;
122f126890aSEmmanuel Vadot		reset-gpios = <&pm8941_gpios 19 GPIO_ACTIVE_HIGH>;
123f126890aSEmmanuel Vadot
124f126890aSEmmanuel Vadot		port {
125f126890aSEmmanuel Vadot			panel_in: endpoint {
126f126890aSEmmanuel Vadot				remote-endpoint = <&mdss_dsi0_out>;
127f126890aSEmmanuel Vadot			};
128f126890aSEmmanuel Vadot		};
129f126890aSEmmanuel Vadot	};
130f126890aSEmmanuel Vadot};
131f126890aSEmmanuel Vadot
132f126890aSEmmanuel Vadot&mdss_dsi0_out {
133f126890aSEmmanuel Vadot	remote-endpoint = <&panel_in>;
134f126890aSEmmanuel Vadot	data-lanes = <0 1 2 3>;
135f126890aSEmmanuel Vadot};
136f126890aSEmmanuel Vadot
137f126890aSEmmanuel Vadot&mdss_dsi0_phy {
138f126890aSEmmanuel Vadot	status = "okay";
139f126890aSEmmanuel Vadot
140f126890aSEmmanuel Vadot	vddio-supply = <&pm8941_l12>;
141f126890aSEmmanuel Vadot};
142f126890aSEmmanuel Vadot
143f126890aSEmmanuel Vadot&gpu {
144f126890aSEmmanuel Vadot	status = "okay";
145f126890aSEmmanuel Vadot};
146f126890aSEmmanuel Vadot
147f126890aSEmmanuel Vadot&mdss {
148f126890aSEmmanuel Vadot	status = "okay";
149f126890aSEmmanuel Vadot};
150f126890aSEmmanuel Vadot
151f126890aSEmmanuel Vadot&pm8941_gpios {
152f126890aSEmmanuel Vadot        msm_keys_default: pm8941-gpio-keys-state {
153f126890aSEmmanuel Vadot		pins = "gpio5", "gpio23";
154f126890aSEmmanuel Vadot		function = "normal";
155f126890aSEmmanuel Vadot		input-enable;
156f126890aSEmmanuel Vadot		drive-push-pull;
157f126890aSEmmanuel Vadot		bias-pull-up;
158f126890aSEmmanuel Vadot		qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
159f126890aSEmmanuel Vadot		power-source = <PM8941_GPIO_S3>; /* 1.8V */
160f126890aSEmmanuel Vadot        };
161f126890aSEmmanuel Vadot};
162f126890aSEmmanuel Vadot
163f126890aSEmmanuel Vadot&pm8941_lpg {
164f126890aSEmmanuel Vadot	qcom,power-source = <1>;
165f126890aSEmmanuel Vadot	status = "okay";
166f126890aSEmmanuel Vadot
167f126890aSEmmanuel Vadot	led@5 {
168f126890aSEmmanuel Vadot		reg = <5>;
169f126890aSEmmanuel Vadot		color = <LED_COLOR_ID_BLUE>;
170f126890aSEmmanuel Vadot		function = LED_FUNCTION_INDICATOR;
171f126890aSEmmanuel Vadot	};
172f126890aSEmmanuel Vadot
173f126890aSEmmanuel Vadot	led@6 {
174f126890aSEmmanuel Vadot		reg = <6>;
175f126890aSEmmanuel Vadot		color = <LED_COLOR_ID_GREEN>;
176f126890aSEmmanuel Vadot		function = LED_FUNCTION_INDICATOR;
177f126890aSEmmanuel Vadot	};
178f126890aSEmmanuel Vadot
179f126890aSEmmanuel Vadot	led@7 {
180f126890aSEmmanuel Vadot		reg = <7>;
181f126890aSEmmanuel Vadot		color = <LED_COLOR_ID_RED>;
182f126890aSEmmanuel Vadot		function = LED_FUNCTION_INDICATOR;
183f126890aSEmmanuel Vadot	};
184f126890aSEmmanuel Vadot};
185f126890aSEmmanuel Vadot
186aa1a8ff2SEmmanuel Vadot&pm8941_resin {
187aa1a8ff2SEmmanuel Vadot	linux,code = <KEY_VOLUMEDOWN>;
188aa1a8ff2SEmmanuel Vadot	status = "okay";
189aa1a8ff2SEmmanuel Vadot};
190aa1a8ff2SEmmanuel Vadot
191f126890aSEmmanuel Vadot&pm8941_wled {
192f126890aSEmmanuel Vadot	qcom,cs-out;
193f126890aSEmmanuel Vadot	qcom,switching-freq = <3200>;
194f126890aSEmmanuel Vadot	qcom,ovp = <32>;
195f126890aSEmmanuel Vadot	qcom,num-strings = <1>;
196f126890aSEmmanuel Vadot
197f126890aSEmmanuel Vadot	status = "okay";
198f126890aSEmmanuel Vadot};
199f126890aSEmmanuel Vadot
200f126890aSEmmanuel Vadot&remoteproc_adsp {
201f126890aSEmmanuel Vadot	cx-supply = <&pm8841_s2>;
202f126890aSEmmanuel Vadot
203f126890aSEmmanuel Vadot	firmware-name = "qcom/apq8074/adsp.mbn";
204f126890aSEmmanuel Vadot
205f126890aSEmmanuel Vadot	status = "okay";
206f126890aSEmmanuel Vadot};
207f126890aSEmmanuel Vadot
208f126890aSEmmanuel Vadot&remoteproc_mss {
209f126890aSEmmanuel Vadot	cx-supply = <&pm8841_s2>;
210f126890aSEmmanuel Vadot	mss-supply = <&pm8841_s3>;
211f126890aSEmmanuel Vadot	mx-supply = <&pm8841_s1>;
212f126890aSEmmanuel Vadot	pll-supply = <&pm8941_l12>;
213f126890aSEmmanuel Vadot
214f126890aSEmmanuel Vadot	firmware-name = "qcom/apq8074/mba.mbn", "qcom/apq8074/modem.mbn";
215f126890aSEmmanuel Vadot
216f126890aSEmmanuel Vadot	status = "okay";
217f126890aSEmmanuel Vadot};
218f126890aSEmmanuel Vadot
219f126890aSEmmanuel Vadot&rpm_requests {
220f126890aSEmmanuel Vadot	regulators-0 {
221f126890aSEmmanuel Vadot		compatible = "qcom,rpm-pm8841-regulators";
222f126890aSEmmanuel Vadot
223f126890aSEmmanuel Vadot		pm8841_s1: s1 {
224f126890aSEmmanuel Vadot			regulator-min-microvolt = <675000>;
225f126890aSEmmanuel Vadot			regulator-max-microvolt = <1050000>;
226f126890aSEmmanuel Vadot		};
227f126890aSEmmanuel Vadot
228f126890aSEmmanuel Vadot		pm8841_s2: s2 {
229f126890aSEmmanuel Vadot			regulator-min-microvolt = <500000>;
230f126890aSEmmanuel Vadot			regulator-max-microvolt = <1050000>;
231f126890aSEmmanuel Vadot		};
232f126890aSEmmanuel Vadot
233f126890aSEmmanuel Vadot		pm8841_s3: s3 {
234f126890aSEmmanuel Vadot			regulator-min-microvolt = <500000>;
235f126890aSEmmanuel Vadot			regulator-max-microvolt = <1050000>;
236f126890aSEmmanuel Vadot		};
237f126890aSEmmanuel Vadot
238f126890aSEmmanuel Vadot		pm8841_s4: s4 {
239f126890aSEmmanuel Vadot			regulator-min-microvolt = <500000>;
240f126890aSEmmanuel Vadot			regulator-max-microvolt = <1050000>;
241f126890aSEmmanuel Vadot		};
242f126890aSEmmanuel Vadot	};
243f126890aSEmmanuel Vadot
244f126890aSEmmanuel Vadot	regulators-1 {
245f126890aSEmmanuel Vadot		compatible = "qcom,rpm-pm8941-regulators";
246f126890aSEmmanuel Vadot
247f126890aSEmmanuel Vadot		vdd_l1_l3-supply = <&pm8941_s1>;
248f126890aSEmmanuel Vadot		vdd_l2_lvs1_2_3-supply = <&pm8941_s3>;
249f126890aSEmmanuel Vadot		vdd_l4_l11-supply = <&pm8941_s1>;
250f126890aSEmmanuel Vadot		vdd_l5_l7-supply = <&pm8941_s2>;
251f126890aSEmmanuel Vadot		vdd_l6_l12_l14_l15-supply = <&pm8941_s2>;
252f126890aSEmmanuel Vadot		vin_5vs-supply = <&pm8941_5v>;
253f126890aSEmmanuel Vadot
254f126890aSEmmanuel Vadot		pm8941_s1: s1 {
255f126890aSEmmanuel Vadot			regulator-min-microvolt = <1300000>;
256f126890aSEmmanuel Vadot			regulator-max-microvolt = <1300000>;
257f126890aSEmmanuel Vadot			regulator-always-on;
258f126890aSEmmanuel Vadot			regulator-boot-on;
259f126890aSEmmanuel Vadot		};
260f126890aSEmmanuel Vadot
261f126890aSEmmanuel Vadot		pm8941_s2: s2 {
262f126890aSEmmanuel Vadot			regulator-min-microvolt = <2150000>;
263f126890aSEmmanuel Vadot			regulator-max-microvolt = <2150000>;
264f126890aSEmmanuel Vadot			regulator-boot-on;
265f126890aSEmmanuel Vadot		};
266f126890aSEmmanuel Vadot
267f126890aSEmmanuel Vadot		pm8941_s3: s3 {
268f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
269f126890aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
270f126890aSEmmanuel Vadot			regulator-always-on;
271f126890aSEmmanuel Vadot			regulator-boot-on;
272f126890aSEmmanuel Vadot		};
273f126890aSEmmanuel Vadot
274f126890aSEmmanuel Vadot		pm8941_l1: l1 {
275f126890aSEmmanuel Vadot			regulator-min-microvolt = <1225000>;
276f126890aSEmmanuel Vadot			regulator-max-microvolt = <1225000>;
277f126890aSEmmanuel Vadot			regulator-always-on;
278f126890aSEmmanuel Vadot			regulator-boot-on;
279f126890aSEmmanuel Vadot		};
280f126890aSEmmanuel Vadot
281f126890aSEmmanuel Vadot		pm8941_l2: l2 {
282f126890aSEmmanuel Vadot			regulator-min-microvolt = <1200000>;
283f126890aSEmmanuel Vadot			regulator-max-microvolt = <1200000>;
284f126890aSEmmanuel Vadot		};
285f126890aSEmmanuel Vadot
286f126890aSEmmanuel Vadot		pm8941_l3: l3 {
287f126890aSEmmanuel Vadot			regulator-min-microvolt = <1225000>;
288f126890aSEmmanuel Vadot			regulator-max-microvolt = <1225000>;
289f126890aSEmmanuel Vadot		};
290f126890aSEmmanuel Vadot
291f126890aSEmmanuel Vadot		pm8941_l4: l4 {
292f126890aSEmmanuel Vadot			regulator-min-microvolt = <1225000>;
293f126890aSEmmanuel Vadot			regulator-max-microvolt = <1225000>;
294f126890aSEmmanuel Vadot		};
295f126890aSEmmanuel Vadot
296f126890aSEmmanuel Vadot		pm8941_l5: l5 {
297f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
298f126890aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
299f126890aSEmmanuel Vadot		};
300f126890aSEmmanuel Vadot
301f126890aSEmmanuel Vadot		pm8941_l6: l6 {
302f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
303f126890aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
304f126890aSEmmanuel Vadot			regulator-boot-on;
305f126890aSEmmanuel Vadot		};
306f126890aSEmmanuel Vadot
307f126890aSEmmanuel Vadot		pm8941_l7: l7 {
308f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
309f126890aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
310f126890aSEmmanuel Vadot			regulator-boot-on;
311f126890aSEmmanuel Vadot		};
312f126890aSEmmanuel Vadot
313f126890aSEmmanuel Vadot		pm8941_l8: l8 {
314f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
315f126890aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
316f126890aSEmmanuel Vadot		};
317f126890aSEmmanuel Vadot
318f126890aSEmmanuel Vadot		pm8941_l9: l9 {
319f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
320f126890aSEmmanuel Vadot			regulator-max-microvolt = <2950000>;
321f126890aSEmmanuel Vadot		};
322f126890aSEmmanuel Vadot
323f126890aSEmmanuel Vadot		pm8941_l10: l10 {
324f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
325f126890aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
326f126890aSEmmanuel Vadot			regulator-always-on;
327f126890aSEmmanuel Vadot		};
328f126890aSEmmanuel Vadot
329f126890aSEmmanuel Vadot		pm8941_l11: l11 {
330f126890aSEmmanuel Vadot			regulator-min-microvolt = <1300000>;
331f126890aSEmmanuel Vadot			regulator-max-microvolt = <1300000>;
332f126890aSEmmanuel Vadot		};
333f126890aSEmmanuel Vadot
334f126890aSEmmanuel Vadot		pm8941_l12: l12 {
335f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
336f126890aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
337f126890aSEmmanuel Vadot			regulator-always-on;
338f126890aSEmmanuel Vadot			regulator-boot-on;
339f126890aSEmmanuel Vadot		};
340f126890aSEmmanuel Vadot
341f126890aSEmmanuel Vadot		pm8941_l13: l13 {
342f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
343f126890aSEmmanuel Vadot			regulator-max-microvolt = <2950000>;
344f126890aSEmmanuel Vadot			regulator-boot-on;
345f126890aSEmmanuel Vadot		};
346f126890aSEmmanuel Vadot
347f126890aSEmmanuel Vadot		pm8941_l14: l14 {
348f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
349f126890aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
350f126890aSEmmanuel Vadot		};
351f126890aSEmmanuel Vadot
352f126890aSEmmanuel Vadot		pm8941_l15: l15 {
353f126890aSEmmanuel Vadot			regulator-min-microvolt = <2050000>;
354f126890aSEmmanuel Vadot			regulator-max-microvolt = <2050000>;
355f126890aSEmmanuel Vadot		};
356f126890aSEmmanuel Vadot
357f126890aSEmmanuel Vadot		pm8941_l16: l16 {
358f126890aSEmmanuel Vadot			regulator-min-microvolt = <2700000>;
359f126890aSEmmanuel Vadot			regulator-max-microvolt = <2700000>;
360f126890aSEmmanuel Vadot		};
361f126890aSEmmanuel Vadot
362f126890aSEmmanuel Vadot		pm8941_l17: l17 {
363f126890aSEmmanuel Vadot			regulator-min-microvolt = <2700000>;
364f126890aSEmmanuel Vadot			regulator-max-microvolt = <2700000>;
365f126890aSEmmanuel Vadot		};
366f126890aSEmmanuel Vadot
367f126890aSEmmanuel Vadot		pm8941_l18: l18 {
368f126890aSEmmanuel Vadot			regulator-min-microvolt = <2850000>;
369f126890aSEmmanuel Vadot			regulator-max-microvolt = <2850000>;
370f126890aSEmmanuel Vadot		};
371f126890aSEmmanuel Vadot
372f126890aSEmmanuel Vadot		pm8941_l19: l19 {
373f126890aSEmmanuel Vadot			regulator-min-microvolt = <3300000>;
374f126890aSEmmanuel Vadot			regulator-max-microvolt = <3300000>;
375f126890aSEmmanuel Vadot			regulator-always-on;
376f126890aSEmmanuel Vadot		};
377f126890aSEmmanuel Vadot
378f126890aSEmmanuel Vadot		pm8941_l20: l20 {
379f126890aSEmmanuel Vadot			regulator-min-microvolt = <2950000>;
380f126890aSEmmanuel Vadot			regulator-max-microvolt = <2950000>;
381f126890aSEmmanuel Vadot			regulator-system-load = <200000>;
382f126890aSEmmanuel Vadot			regulator-allow-set-load;
383f126890aSEmmanuel Vadot			regulator-boot-on;
384f126890aSEmmanuel Vadot		};
385f126890aSEmmanuel Vadot
386f126890aSEmmanuel Vadot		pm8941_l21: l21 {
387f126890aSEmmanuel Vadot			regulator-min-microvolt = <2950000>;
388f126890aSEmmanuel Vadot			regulator-max-microvolt = <2950000>;
389f126890aSEmmanuel Vadot			regulator-boot-on;
390f126890aSEmmanuel Vadot		};
391f126890aSEmmanuel Vadot
392f126890aSEmmanuel Vadot		pm8941_l22: l22 {
393f126890aSEmmanuel Vadot			regulator-min-microvolt = <3000000>;
394f126890aSEmmanuel Vadot			regulator-max-microvolt = <3000000>;
395f126890aSEmmanuel Vadot		};
396f126890aSEmmanuel Vadot
397f126890aSEmmanuel Vadot		pm8941_l23: l23 {
398f126890aSEmmanuel Vadot			regulator-min-microvolt = <3000000>;
399f126890aSEmmanuel Vadot			regulator-max-microvolt = <3000000>;
400f126890aSEmmanuel Vadot		};
401f126890aSEmmanuel Vadot
402f126890aSEmmanuel Vadot		pm8941_l24: l24 {
403f126890aSEmmanuel Vadot			regulator-min-microvolt = <3075000>;
404f126890aSEmmanuel Vadot			regulator-max-microvolt = <3075000>;
405f126890aSEmmanuel Vadot			regulator-boot-on;
406f126890aSEmmanuel Vadot		};
407f126890aSEmmanuel Vadot	};
408f126890aSEmmanuel Vadot};
409f126890aSEmmanuel Vadot
410f126890aSEmmanuel Vadot&sdhc_1 {
411f126890aSEmmanuel Vadot	status = "okay";
412f126890aSEmmanuel Vadot
413f126890aSEmmanuel Vadot	vmmc-supply = <&pm8941_l20>;
414f126890aSEmmanuel Vadot	vqmmc-supply = <&pm8941_s3>;
415f126890aSEmmanuel Vadot
416f126890aSEmmanuel Vadot	pinctrl-names = "default", "sleep";
417f126890aSEmmanuel Vadot	pinctrl-0 = <&sdc1_on>;
418f126890aSEmmanuel Vadot	pinctrl-1 = <&sdc1_off>;
419f126890aSEmmanuel Vadot};
420f126890aSEmmanuel Vadot
421f126890aSEmmanuel Vadot&sdhc_2 {
422f126890aSEmmanuel Vadot	status = "okay";
423f126890aSEmmanuel Vadot
424f126890aSEmmanuel Vadot	cd-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>;
425f126890aSEmmanuel Vadot	vmmc-supply = <&pm8941_l21>;
426f126890aSEmmanuel Vadot	vqmmc-supply = <&pm8941_l13>;
427f126890aSEmmanuel Vadot
428f126890aSEmmanuel Vadot	pinctrl-names = "default", "sleep";
429f126890aSEmmanuel Vadot	pinctrl-0 = <&sdc2_on>;
430f126890aSEmmanuel Vadot	pinctrl-1 = <&sdc2_off>;
431f126890aSEmmanuel Vadot};
432f126890aSEmmanuel Vadot
433*8d13bc63SEmmanuel Vadot&smbb {
434*8d13bc63SEmmanuel Vadot	status = "okay";
435*8d13bc63SEmmanuel Vadot};
436*8d13bc63SEmmanuel Vadot
437f126890aSEmmanuel Vadot&tlmm {
438f126890aSEmmanuel Vadot	sdc1_on: sdc1-on-state {
439f126890aSEmmanuel Vadot		clk-pins {
440f126890aSEmmanuel Vadot			pins = "sdc1_clk";
441f126890aSEmmanuel Vadot			drive-strength = <16>;
442f126890aSEmmanuel Vadot			bias-disable;
443f126890aSEmmanuel Vadot		};
444f126890aSEmmanuel Vadot
445f126890aSEmmanuel Vadot		cmd-data-pins {
446f126890aSEmmanuel Vadot			pins = "sdc1_cmd", "sdc1_data";
447f126890aSEmmanuel Vadot			drive-strength = <10>;
448f126890aSEmmanuel Vadot			bias-pull-up;
449f126890aSEmmanuel Vadot		};
450f126890aSEmmanuel Vadot	};
451f126890aSEmmanuel Vadot
452f126890aSEmmanuel Vadot	sdc2_on: sdc2-on-state {
453f126890aSEmmanuel Vadot		clk-pins {
454f126890aSEmmanuel Vadot			pins = "sdc2_clk";
455f126890aSEmmanuel Vadot			drive-strength = <10>;
456f126890aSEmmanuel Vadot			bias-disable;
457f126890aSEmmanuel Vadot		};
458f126890aSEmmanuel Vadot
459f126890aSEmmanuel Vadot		cmd-data-pins {
460f126890aSEmmanuel Vadot			pins = "sdc2_cmd", "sdc2_data";
461f126890aSEmmanuel Vadot			drive-strength = <6>;
462f126890aSEmmanuel Vadot			bias-pull-up;
463f126890aSEmmanuel Vadot		};
464f126890aSEmmanuel Vadot
465f126890aSEmmanuel Vadot		cd-pins {
466f126890aSEmmanuel Vadot			pins = "gpio62";
467f126890aSEmmanuel Vadot			function = "gpio";
468f126890aSEmmanuel Vadot			drive-strength = <2>;
469f126890aSEmmanuel Vadot			bias-disable;
470f126890aSEmmanuel Vadot		};
471f126890aSEmmanuel Vadot	};
472f126890aSEmmanuel Vadot};
473f126890aSEmmanuel Vadot
474f126890aSEmmanuel Vadot&usb {
475f126890aSEmmanuel Vadot	status = "okay";
476f126890aSEmmanuel Vadot
477f126890aSEmmanuel Vadot	phys = <&usb_hs2_phy>;
478f126890aSEmmanuel Vadot	phy-select = <&tcsr 0xb000 1>;
479f126890aSEmmanuel Vadot	extcon = <&smbb>, <&usb_id>;
480f126890aSEmmanuel Vadot	vbus-supply = <&chg_otg>;
481f126890aSEmmanuel Vadot	hnp-disable;
482f126890aSEmmanuel Vadot	srp-disable;
483f126890aSEmmanuel Vadot	adp-disable;
484f126890aSEmmanuel Vadot};
485f126890aSEmmanuel Vadot
486f126890aSEmmanuel Vadot&usb_hs2_phy {
487f126890aSEmmanuel Vadot	status = "okay";
488f126890aSEmmanuel Vadot	v3p3-supply = <&pm8941_l24>;
489f126890aSEmmanuel Vadot	v1p8-supply = <&pm8941_l6>;
490f126890aSEmmanuel Vadot	extcon = <&smbb>;
491f126890aSEmmanuel Vadot	qcom,init-seq = /bits/ 8 <0x1 0x63>;
492f126890aSEmmanuel Vadot};
493