xref: /freebsd/sys/contrib/device-tree/src/arm/qcom/qcom-msm8974pro-oneplus-bacon.dts (revision 833e5d42ab135b0238e61c5b3c19b8619677cbfa)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2f126890aSEmmanuel Vadot#include "qcom-msm8974pro.dtsi"
38d13bc63SEmmanuel Vadot#include "pm8841.dtsi"
48d13bc63SEmmanuel Vadot#include "pm8941.dtsi"
5f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h>
6f126890aSEmmanuel Vadot#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
7f126890aSEmmanuel Vadot
8f126890aSEmmanuel Vadot/ {
9f126890aSEmmanuel Vadot	model = "OnePlus One";
10f126890aSEmmanuel Vadot	compatible = "oneplus,bacon", "qcom,msm8974pro", "qcom,msm8974";
11f126890aSEmmanuel Vadot	chassis-type = "handset";
12f126890aSEmmanuel Vadot	qcom,msm-id = <194 0x10000>;
13f126890aSEmmanuel Vadot	qcom,board-id = <8 0>;
14f126890aSEmmanuel Vadot
15f126890aSEmmanuel Vadot	aliases {
16*833e5d42SEmmanuel Vadot		mmc0 = &sdhc_1;
17f126890aSEmmanuel Vadot		serial0 = &blsp1_uart2;
18f126890aSEmmanuel Vadot	};
19f126890aSEmmanuel Vadot
20f126890aSEmmanuel Vadot	chosen {
21f126890aSEmmanuel Vadot		stdout-path = "serial0:115200n8";
22f126890aSEmmanuel Vadot	};
23f126890aSEmmanuel Vadot
24f126890aSEmmanuel Vadot	gpio-keys {
25f126890aSEmmanuel Vadot		compatible = "gpio-keys";
26f126890aSEmmanuel Vadot
27f126890aSEmmanuel Vadot		pinctrl-0 = <&gpio_keys_default>, <&gpio_hall_sensor_default>;
28f126890aSEmmanuel Vadot		pinctrl-names = "default";
29f126890aSEmmanuel Vadot
30f126890aSEmmanuel Vadot		key-volume-down {
31f126890aSEmmanuel Vadot			label = "Volume Down";
32f126890aSEmmanuel Vadot			gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>;
33f126890aSEmmanuel Vadot			linux,code = <KEY_VOLUMEDOWN>;
34f126890aSEmmanuel Vadot			wakeup-source;
35f126890aSEmmanuel Vadot			debounce-interval = <15>;
36f126890aSEmmanuel Vadot		};
37f126890aSEmmanuel Vadot
38f126890aSEmmanuel Vadot		key-volume-up {
39f126890aSEmmanuel Vadot			label = "Volume Up";
40f126890aSEmmanuel Vadot			gpios = <&pm8941_gpios 5 GPIO_ACTIVE_LOW>;
41f126890aSEmmanuel Vadot			linux,code = <KEY_VOLUMEUP>;
42f126890aSEmmanuel Vadot			wakeup-source;
43f126890aSEmmanuel Vadot			debounce-interval = <15>;
44f126890aSEmmanuel Vadot		};
45f126890aSEmmanuel Vadot
46f126890aSEmmanuel Vadot		event-hall-sensor {
47f126890aSEmmanuel Vadot			label = "Hall Effect Sensor";
48f126890aSEmmanuel Vadot			gpios = <&tlmm 68 GPIO_ACTIVE_LOW>;
49f126890aSEmmanuel Vadot			linux,input-type = <EV_SW>;
50f126890aSEmmanuel Vadot			linux,code = <SW_LID>;
51f126890aSEmmanuel Vadot			linux,can-disable;
52f126890aSEmmanuel Vadot			debounce-interval = <150>;
53f126890aSEmmanuel Vadot		};
54f126890aSEmmanuel Vadot	};
558d13bc63SEmmanuel Vadot
568d13bc63SEmmanuel Vadot	vreg_boost: vreg-boost {
578d13bc63SEmmanuel Vadot		compatible = "regulator-fixed";
588d13bc63SEmmanuel Vadot
598d13bc63SEmmanuel Vadot		regulator-name = "vreg-boost";
608d13bc63SEmmanuel Vadot		regulator-min-microvolt = <3150000>;
618d13bc63SEmmanuel Vadot		regulator-max-microvolt = <3150000>;
628d13bc63SEmmanuel Vadot
638d13bc63SEmmanuel Vadot		regulator-always-on;
648d13bc63SEmmanuel Vadot		regulator-boot-on;
658d13bc63SEmmanuel Vadot
668d13bc63SEmmanuel Vadot		gpio = <&pm8941_gpios 21 GPIO_ACTIVE_HIGH>;
678d13bc63SEmmanuel Vadot		enable-active-high;
688d13bc63SEmmanuel Vadot
698d13bc63SEmmanuel Vadot		pinctrl-names = "default";
708d13bc63SEmmanuel Vadot		pinctrl-0 = <&boost_bypass_n_pin>;
718d13bc63SEmmanuel Vadot	};
728d13bc63SEmmanuel Vadot
738d13bc63SEmmanuel Vadot	vreg_vph_pwr: vreg-vph-pwr {
748d13bc63SEmmanuel Vadot		compatible = "regulator-fixed";
758d13bc63SEmmanuel Vadot		regulator-name = "vph-pwr";
768d13bc63SEmmanuel Vadot
778d13bc63SEmmanuel Vadot		regulator-min-microvolt = <3600000>;
788d13bc63SEmmanuel Vadot		regulator-max-microvolt = <3600000>;
798d13bc63SEmmanuel Vadot
808d13bc63SEmmanuel Vadot		regulator-always-on;
818d13bc63SEmmanuel Vadot	};
82f126890aSEmmanuel Vadot};
83f126890aSEmmanuel Vadot
84f126890aSEmmanuel Vadot&blsp1_i2c1 {
85f126890aSEmmanuel Vadot	status = "okay";
86f126890aSEmmanuel Vadot
87f126890aSEmmanuel Vadot	fuel-gauge@55 {
88f126890aSEmmanuel Vadot		compatible = "ti,bq27541";
89f126890aSEmmanuel Vadot		reg = <0x55>;
90f126890aSEmmanuel Vadot		power-supplies = <&bq24196_charger>;
91f126890aSEmmanuel Vadot	};
92f126890aSEmmanuel Vadot};
93f126890aSEmmanuel Vadot
94f126890aSEmmanuel Vadot&blsp1_i2c2 {
95f126890aSEmmanuel Vadot	status = "okay";
96f126890aSEmmanuel Vadot
97f126890aSEmmanuel Vadot	rmi4-i2c-dev@20 {
98f126890aSEmmanuel Vadot		compatible = "syna,rmi4-i2c";
99f126890aSEmmanuel Vadot		reg = <0x20>;
100f126890aSEmmanuel Vadot
101f126890aSEmmanuel Vadot		syna,startup-delay-ms = <100>;
102f126890aSEmmanuel Vadot
103f126890aSEmmanuel Vadot		interrupts-extended = <&tlmm 61 IRQ_TYPE_EDGE_FALLING>;
104f126890aSEmmanuel Vadot		vdd-supply = <&pm8941_l22>;
105f126890aSEmmanuel Vadot		vio-supply = <&pm8941_lvs3>;
106f126890aSEmmanuel Vadot
107f126890aSEmmanuel Vadot		pinctrl-names = "default";
108f126890aSEmmanuel Vadot		pinctrl-0 = <&touch_default_state>;
109f126890aSEmmanuel Vadot
110f126890aSEmmanuel Vadot		#address-cells = <1>;
111f126890aSEmmanuel Vadot		#size-cells = <0>;
112f126890aSEmmanuel Vadot
113f126890aSEmmanuel Vadot		rmi4-f01@1 {
114f126890aSEmmanuel Vadot			reg = <0x1>;
115f126890aSEmmanuel Vadot			syna,nosleep-mode = <1>;
116f126890aSEmmanuel Vadot		};
117f126890aSEmmanuel Vadot
118f126890aSEmmanuel Vadot		rmi4-f12@12 {
119f126890aSEmmanuel Vadot			reg = <0x12>;
120f126890aSEmmanuel Vadot			syna,sensor-type = <1>;
121f126890aSEmmanuel Vadot			/*
122f126890aSEmmanuel Vadot			 * Touchscreen size is 2040x1080, y-values between
123f126890aSEmmanuel Vadot			 * 1920-2040 are used for touchkey (menu, home & back).
124f126890aSEmmanuel Vadot			 * For now clip it off so we don't get touch events
125f126890aSEmmanuel Vadot			 * outside of the display area.
126f126890aSEmmanuel Vadot			 */
127f126890aSEmmanuel Vadot			syna,clip-y-high = <1920>;
128f126890aSEmmanuel Vadot		};
129f126890aSEmmanuel Vadot	};
130f126890aSEmmanuel Vadot
131f126890aSEmmanuel Vadot	led-controller@36 {
132f126890aSEmmanuel Vadot		compatible = "ti,lm3630a";
133f126890aSEmmanuel Vadot		reg = <0x36>;
134f126890aSEmmanuel Vadot
135f126890aSEmmanuel Vadot		#address-cells = <1>;
136f126890aSEmmanuel Vadot		#size-cells = <0>;
137f126890aSEmmanuel Vadot
138f126890aSEmmanuel Vadot		led@0 {
139f126890aSEmmanuel Vadot			reg = <0>;
140f126890aSEmmanuel Vadot			led-sources = <0 1>;
141f126890aSEmmanuel Vadot			label = "lcd-backlight";
142f126890aSEmmanuel Vadot			default-brightness = <80>;
143f126890aSEmmanuel Vadot		};
144f126890aSEmmanuel Vadot	};
145f126890aSEmmanuel Vadot
146f126890aSEmmanuel Vadot	led-controller@68 {
147f126890aSEmmanuel Vadot		compatible = "si-en,sn3193";
148f126890aSEmmanuel Vadot		reg = <0x68>;
149f126890aSEmmanuel Vadot
150f126890aSEmmanuel Vadot		shutdown-gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
151f126890aSEmmanuel Vadot
152f126890aSEmmanuel Vadot		#address-cells = <1>;
153f126890aSEmmanuel Vadot		#size-cells = <0>;
154f126890aSEmmanuel Vadot
155f126890aSEmmanuel Vadot		led@1 {
156f126890aSEmmanuel Vadot			reg = <1>;
157f126890aSEmmanuel Vadot			label = "red:status";
158f126890aSEmmanuel Vadot			led-max-microamp = <17500>;
159f126890aSEmmanuel Vadot		};
160f126890aSEmmanuel Vadot
161f126890aSEmmanuel Vadot		led@2 {
162f126890aSEmmanuel Vadot			reg = <2>;
163f126890aSEmmanuel Vadot			label = "green:status";
164f126890aSEmmanuel Vadot			led-max-microamp = <17500>;
165f126890aSEmmanuel Vadot		};
166f126890aSEmmanuel Vadot
167f126890aSEmmanuel Vadot		led@3 {
168f126890aSEmmanuel Vadot			reg = <3>;
169f126890aSEmmanuel Vadot			label = "blue:status";
170f126890aSEmmanuel Vadot			led-max-microamp = <17500>;
171f126890aSEmmanuel Vadot		};
172f126890aSEmmanuel Vadot	};
173f126890aSEmmanuel Vadot};
174f126890aSEmmanuel Vadot
175f126890aSEmmanuel Vadot&blsp1_i2c6 {
176f126890aSEmmanuel Vadot	status = "okay";
177f126890aSEmmanuel Vadot
178f126890aSEmmanuel Vadot	bq24196_charger: charger@6b {
179f126890aSEmmanuel Vadot		compatible = "ti,bq24196";
180f126890aSEmmanuel Vadot		reg = <0x6b>;
181f126890aSEmmanuel Vadot		interrupts-extended = <&tlmm 31 IRQ_TYPE_EDGE_FALLING>;
182f126890aSEmmanuel Vadot		omit-battery-class;
183f126890aSEmmanuel Vadot	};
184f126890aSEmmanuel Vadot};
185f126890aSEmmanuel Vadot
186f126890aSEmmanuel Vadot&blsp1_uart2 {
187f126890aSEmmanuel Vadot	status = "okay";
188f126890aSEmmanuel Vadot};
189f126890aSEmmanuel Vadot
190f126890aSEmmanuel Vadot&gcc {
191f126890aSEmmanuel Vadot	compatible = "qcom,gcc-msm8974pro-ac";
192f126890aSEmmanuel Vadot};
193f126890aSEmmanuel Vadot
194f126890aSEmmanuel Vadot&pm8941_coincell {
195f126890aSEmmanuel Vadot	qcom,rset-ohms = <800>;
196f126890aSEmmanuel Vadot	qcom,vset-millivolts = <3200>;
197f126890aSEmmanuel Vadot
198f126890aSEmmanuel Vadot	status = "okay";
199f126890aSEmmanuel Vadot};
200f126890aSEmmanuel Vadot
201f126890aSEmmanuel Vadot&pm8941_gpios {
202f126890aSEmmanuel Vadot	gpio_keys_default: gpio-keys-active-state {
203f126890aSEmmanuel Vadot		pins = "gpio2", "gpio5";
204f126890aSEmmanuel Vadot		function = "normal";
205f126890aSEmmanuel Vadot		input-enable;
206f126890aSEmmanuel Vadot		bias-disable;
207f126890aSEmmanuel Vadot		power-source = <PM8941_GPIO_S3>;
208f126890aSEmmanuel Vadot	};
209f126890aSEmmanuel Vadot};
210f126890aSEmmanuel Vadot
211f126890aSEmmanuel Vadot&pm8941_vib {
212f126890aSEmmanuel Vadot	status = "okay";
213f126890aSEmmanuel Vadot};
214f126890aSEmmanuel Vadot
215f126890aSEmmanuel Vadot&pronto {
216f126890aSEmmanuel Vadot	vddmx-supply = <&pm8841_s1>;
217f126890aSEmmanuel Vadot	vddcx-supply = <&pm8841_s2>;
218f126890aSEmmanuel Vadot	vddpx-supply = <&pm8941_s3>;
219f126890aSEmmanuel Vadot
220f126890aSEmmanuel Vadot	pinctrl-names = "default";
221f126890aSEmmanuel Vadot	pinctrl-0 = <&wcnss_pin_a>;
222f126890aSEmmanuel Vadot
223f126890aSEmmanuel Vadot	status = "okay";
224f126890aSEmmanuel Vadot
225f126890aSEmmanuel Vadot	iris {
226f126890aSEmmanuel Vadot		vddxo-supply = <&pm8941_l6>;
227f126890aSEmmanuel Vadot		vddrfa-supply = <&pm8941_l11>;
228f126890aSEmmanuel Vadot		vddpa-supply = <&pm8941_l19>;
229f126890aSEmmanuel Vadot		vdddig-supply = <&pm8941_s3>;
230f126890aSEmmanuel Vadot	};
231f126890aSEmmanuel Vadot
232f126890aSEmmanuel Vadot	smd-edge {
233f126890aSEmmanuel Vadot		qcom,remote-pid = <4>;
234f126890aSEmmanuel Vadot		label = "pronto";
235f126890aSEmmanuel Vadot
236f126890aSEmmanuel Vadot		wcnss {
237f126890aSEmmanuel Vadot			status = "okay";
238f126890aSEmmanuel Vadot		};
239f126890aSEmmanuel Vadot	};
240f126890aSEmmanuel Vadot};
241f126890aSEmmanuel Vadot
242f126890aSEmmanuel Vadot&remoteproc_adsp {
243f126890aSEmmanuel Vadot	cx-supply = <&pm8841_s2>;
244f126890aSEmmanuel Vadot
245f126890aSEmmanuel Vadot	status = "okay";
246f126890aSEmmanuel Vadot};
247f126890aSEmmanuel Vadot
248f126890aSEmmanuel Vadot&rpm_requests {
249f126890aSEmmanuel Vadot	regulators-0 {
250f126890aSEmmanuel Vadot		compatible = "qcom,rpm-pm8841-regulators";
251f126890aSEmmanuel Vadot
252f126890aSEmmanuel Vadot		pm8841_s1: s1 {
253f126890aSEmmanuel Vadot			regulator-min-microvolt = <675000>;
254f126890aSEmmanuel Vadot			regulator-max-microvolt = <1050000>;
255f126890aSEmmanuel Vadot		};
256f126890aSEmmanuel Vadot
257f126890aSEmmanuel Vadot		pm8841_s2: s2 {
258f126890aSEmmanuel Vadot			regulator-min-microvolt = <875000>;
259f126890aSEmmanuel Vadot			regulator-max-microvolt = <1050000>;
260f126890aSEmmanuel Vadot			regulator-always-on;
261f126890aSEmmanuel Vadot		};
262f126890aSEmmanuel Vadot
263f126890aSEmmanuel Vadot		pm8841_s3: s3 {
264f126890aSEmmanuel Vadot			regulator-min-microvolt = <1050000>;
265f126890aSEmmanuel Vadot			regulator-max-microvolt = <1050000>;
266f126890aSEmmanuel Vadot		};
267f126890aSEmmanuel Vadot	};
268f126890aSEmmanuel Vadot
269f126890aSEmmanuel Vadot	regulators-1 {
270f126890aSEmmanuel Vadot		compatible = "qcom,rpm-pm8941-regulators";
271f126890aSEmmanuel Vadot
272f126890aSEmmanuel Vadot		vdd_l1_l3-supply = <&pm8941_s1>;
273f126890aSEmmanuel Vadot		vdd_l2_lvs1_2_3-supply = <&pm8941_s3>;
274f126890aSEmmanuel Vadot		vdd_l4_l11-supply = <&pm8941_s1>;
275f126890aSEmmanuel Vadot		vdd_l5_l7-supply = <&pm8941_s2>;
276f126890aSEmmanuel Vadot		vdd_l6_l12_l14_l15-supply = <&pm8941_s2>;
277f126890aSEmmanuel Vadot		vdd_l8_l16_l18_l19-supply = <&vreg_vph_pwr>;
278f126890aSEmmanuel Vadot		vdd_l9_l10_l17_l22-supply = <&vreg_boost>;
279f126890aSEmmanuel Vadot		vdd_l13_l20_l23_l24-supply = <&vreg_boost>;
280f126890aSEmmanuel Vadot		vdd_l21-supply = <&vreg_boost>;
281f126890aSEmmanuel Vadot
282f126890aSEmmanuel Vadot		pm8941_s1: s1 {
283f126890aSEmmanuel Vadot			regulator-min-microvolt = <1300000>;
284f126890aSEmmanuel Vadot			regulator-max-microvolt = <1300000>;
285f126890aSEmmanuel Vadot
286f126890aSEmmanuel Vadot			regulator-always-on;
287f126890aSEmmanuel Vadot			regulator-boot-on;
288f126890aSEmmanuel Vadot		};
289f126890aSEmmanuel Vadot
290f126890aSEmmanuel Vadot		pm8941_s2: s2 {
291f126890aSEmmanuel Vadot			regulator-min-microvolt = <2150000>;
292f126890aSEmmanuel Vadot			regulator-max-microvolt = <2150000>;
293f126890aSEmmanuel Vadot
294f126890aSEmmanuel Vadot			regulator-boot-on;
295f126890aSEmmanuel Vadot		};
296f126890aSEmmanuel Vadot
297f126890aSEmmanuel Vadot		pm8941_s3: s3 {
298f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
299f126890aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
300f126890aSEmmanuel Vadot			regulator-system-load = <154000>;
301f126890aSEmmanuel Vadot
302f126890aSEmmanuel Vadot			regulator-always-on;
303f126890aSEmmanuel Vadot			regulator-boot-on;
304f126890aSEmmanuel Vadot			regulator-allow-set-load;
305f126890aSEmmanuel Vadot		};
306f126890aSEmmanuel Vadot
307f126890aSEmmanuel Vadot		pm8941_l1: l1 {
308f126890aSEmmanuel Vadot			regulator-min-microvolt = <1225000>;
309f126890aSEmmanuel Vadot			regulator-max-microvolt = <1225000>;
310f126890aSEmmanuel Vadot
311f126890aSEmmanuel Vadot			regulator-always-on;
312f126890aSEmmanuel Vadot			regulator-boot-on;
313f126890aSEmmanuel Vadot		};
314f126890aSEmmanuel Vadot
315f126890aSEmmanuel Vadot		pm8941_l2: l2 {
316f126890aSEmmanuel Vadot			regulator-min-microvolt = <1200000>;
317f126890aSEmmanuel Vadot			regulator-max-microvolt = <1200000>;
318f126890aSEmmanuel Vadot		};
319f126890aSEmmanuel Vadot
320f126890aSEmmanuel Vadot		pm8941_l3: l3 {
321f126890aSEmmanuel Vadot			regulator-min-microvolt = <1225000>;
322f126890aSEmmanuel Vadot			regulator-max-microvolt = <1225000>;
323f126890aSEmmanuel Vadot		};
324f126890aSEmmanuel Vadot
325f126890aSEmmanuel Vadot		pm8941_l4: l4 {
326f126890aSEmmanuel Vadot			regulator-min-microvolt = <1225000>;
327f126890aSEmmanuel Vadot			regulator-max-microvolt = <1225000>;
328f126890aSEmmanuel Vadot		};
329f126890aSEmmanuel Vadot
330f126890aSEmmanuel Vadot		pm8941_l5: l5 {
331f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
332f126890aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
333f126890aSEmmanuel Vadot		};
334f126890aSEmmanuel Vadot
335f126890aSEmmanuel Vadot		pm8941_l6: l6 {
336f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
337f126890aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
338f126890aSEmmanuel Vadot
339f126890aSEmmanuel Vadot			regulator-boot-on;
340f126890aSEmmanuel Vadot		};
341f126890aSEmmanuel Vadot
342f126890aSEmmanuel Vadot		pm8941_l7: l7 {
343f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
344f126890aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
345f126890aSEmmanuel Vadot
346f126890aSEmmanuel Vadot			regulator-boot-on;
347f126890aSEmmanuel Vadot		};
348f126890aSEmmanuel Vadot
349f126890aSEmmanuel Vadot		pm8941_l8: l8 {
350f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
351f126890aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
352f126890aSEmmanuel Vadot		};
353f126890aSEmmanuel Vadot
354f126890aSEmmanuel Vadot		pm8941_l9: l9 {
355f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
356f126890aSEmmanuel Vadot			regulator-max-microvolt = <2950000>;
357f126890aSEmmanuel Vadot		};
358f126890aSEmmanuel Vadot
359f126890aSEmmanuel Vadot		pm8941_l10: l10 {
360f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
361f126890aSEmmanuel Vadot			regulator-max-microvolt = <2950000>;
362f126890aSEmmanuel Vadot		};
363f126890aSEmmanuel Vadot
364f126890aSEmmanuel Vadot		pm8941_l11: l11 {
365f126890aSEmmanuel Vadot			regulator-min-microvolt = <1225000>;
366f126890aSEmmanuel Vadot			regulator-max-microvolt = <1350000>;
367f126890aSEmmanuel Vadot		};
368f126890aSEmmanuel Vadot
369f126890aSEmmanuel Vadot		pm8941_l12: l12 {
370f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
371f126890aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
372f126890aSEmmanuel Vadot
373f126890aSEmmanuel Vadot			regulator-always-on;
374f126890aSEmmanuel Vadot			regulator-boot-on;
375f126890aSEmmanuel Vadot			regulator-allow-set-load;
376f126890aSEmmanuel Vadot		};
377f126890aSEmmanuel Vadot
378f126890aSEmmanuel Vadot		pm8941_l13: l13 {
379f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
380f126890aSEmmanuel Vadot			regulator-max-microvolt = <2950000>;
381f126890aSEmmanuel Vadot
382f126890aSEmmanuel Vadot			regulator-boot-on;
383f126890aSEmmanuel Vadot		};
384f126890aSEmmanuel Vadot
385f126890aSEmmanuel Vadot		pm8941_l14: l14 {
386f126890aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
387f126890aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
388f126890aSEmmanuel Vadot		};
389f126890aSEmmanuel Vadot
390f126890aSEmmanuel Vadot		pm8941_l15: l15 {
391f126890aSEmmanuel Vadot			regulator-min-microvolt = <2050000>;
392f126890aSEmmanuel Vadot			regulator-max-microvolt = <2050000>;
393f126890aSEmmanuel Vadot		};
394f126890aSEmmanuel Vadot
395f126890aSEmmanuel Vadot		pm8941_l16: l16 {
396f126890aSEmmanuel Vadot			regulator-min-microvolt = <2700000>;
397f126890aSEmmanuel Vadot			regulator-max-microvolt = <2700000>;
398f126890aSEmmanuel Vadot		};
399f126890aSEmmanuel Vadot
400f126890aSEmmanuel Vadot		pm8941_l17: l17 {
401f126890aSEmmanuel Vadot			regulator-min-microvolt = <2850000>;
402f126890aSEmmanuel Vadot			regulator-max-microvolt = <2850000>;
403f126890aSEmmanuel Vadot		};
404f126890aSEmmanuel Vadot
405f126890aSEmmanuel Vadot		pm8941_l18: l18 {
406f126890aSEmmanuel Vadot			regulator-min-microvolt = <2850000>;
407f126890aSEmmanuel Vadot			regulator-max-microvolt = <2850000>;
408f126890aSEmmanuel Vadot		};
409f126890aSEmmanuel Vadot
410f126890aSEmmanuel Vadot		pm8941_l19: l19 {
411f126890aSEmmanuel Vadot			regulator-min-microvolt = <2900000>;
412f126890aSEmmanuel Vadot			regulator-max-microvolt = <3350000>;
413f126890aSEmmanuel Vadot		};
414f126890aSEmmanuel Vadot
415f126890aSEmmanuel Vadot		pm8941_l20: l20 {
416f126890aSEmmanuel Vadot			regulator-min-microvolt = <2950000>;
417f126890aSEmmanuel Vadot			regulator-max-microvolt = <2950000>;
418f126890aSEmmanuel Vadot
419f126890aSEmmanuel Vadot			regulator-system-load = <200000>;
420f126890aSEmmanuel Vadot			regulator-allow-set-load;
421f126890aSEmmanuel Vadot			regulator-boot-on;
422f126890aSEmmanuel Vadot		};
423f126890aSEmmanuel Vadot
424f126890aSEmmanuel Vadot		pm8941_l21: l21 {
425f126890aSEmmanuel Vadot			regulator-min-microvolt = <2950000>;
426f126890aSEmmanuel Vadot			regulator-max-microvolt = <2950000>;
427f126890aSEmmanuel Vadot
428f126890aSEmmanuel Vadot			regulator-boot-on;
429f126890aSEmmanuel Vadot		};
430f126890aSEmmanuel Vadot
431f126890aSEmmanuel Vadot		pm8941_l22: l22 {
432f126890aSEmmanuel Vadot			regulator-min-microvolt = <3000000>;
433f126890aSEmmanuel Vadot			regulator-max-microvolt = <3000000>;
434f126890aSEmmanuel Vadot			regulator-allow-set-load;
435f126890aSEmmanuel Vadot		};
436f126890aSEmmanuel Vadot
437f126890aSEmmanuel Vadot		pm8941_l23: l23 {
438f126890aSEmmanuel Vadot			regulator-min-microvolt = <3000000>;
439f126890aSEmmanuel Vadot			regulator-max-microvolt = <3000000>;
440f126890aSEmmanuel Vadot		};
441f126890aSEmmanuel Vadot
442f126890aSEmmanuel Vadot		pm8941_l24: l24 {
443f126890aSEmmanuel Vadot			regulator-min-microvolt = <3075000>;
444f126890aSEmmanuel Vadot			regulator-max-microvolt = <3075000>;
445f126890aSEmmanuel Vadot
446f126890aSEmmanuel Vadot			regulator-boot-on;
447f126890aSEmmanuel Vadot		};
448f126890aSEmmanuel Vadot
449f126890aSEmmanuel Vadot		pm8941_lvs3: lvs3 {};
450f126890aSEmmanuel Vadot	};
451f126890aSEmmanuel Vadot};
452f126890aSEmmanuel Vadot
453f126890aSEmmanuel Vadot&sdhc_1 {
454f126890aSEmmanuel Vadot	vmmc-supply = <&pm8941_l20>;
455f126890aSEmmanuel Vadot	vqmmc-supply = <&pm8941_s3>;
456f126890aSEmmanuel Vadot
457f126890aSEmmanuel Vadot	pinctrl-names = "default", "sleep";
458f126890aSEmmanuel Vadot	pinctrl-0 = <&sdc1_on>;
459f126890aSEmmanuel Vadot	pinctrl-1 = <&sdc1_off>;
460f126890aSEmmanuel Vadot
461f126890aSEmmanuel Vadot	status = "okay";
462f126890aSEmmanuel Vadot};
463f126890aSEmmanuel Vadot
4648d13bc63SEmmanuel Vadot&smbb {
4658d13bc63SEmmanuel Vadot	status = "okay";
4668d13bc63SEmmanuel Vadot};
4678d13bc63SEmmanuel Vadot
468f126890aSEmmanuel Vadot&tlmm {
469f126890aSEmmanuel Vadot	gpio_hall_sensor_default: gpio-hall-sensor-default-state {
470f126890aSEmmanuel Vadot		pins = "gpio68";
471f126890aSEmmanuel Vadot		function = "gpio";
472f126890aSEmmanuel Vadot		drive-strength = <8>;
473f126890aSEmmanuel Vadot		bias-pull-up;
474f126890aSEmmanuel Vadot	};
475f126890aSEmmanuel Vadot
476f126890aSEmmanuel Vadot	sdc1_on: sdc1-on-state {
477f126890aSEmmanuel Vadot		clk-pins {
478f126890aSEmmanuel Vadot			pins = "sdc1_clk";
479f126890aSEmmanuel Vadot			drive-strength = <4>;
480f126890aSEmmanuel Vadot			bias-disable;
481f126890aSEmmanuel Vadot		};
482f126890aSEmmanuel Vadot
483f126890aSEmmanuel Vadot		cmd-data-pins {
484f126890aSEmmanuel Vadot			pins = "sdc1_cmd", "sdc1_data";
485f126890aSEmmanuel Vadot			drive-strength = <4>;
486f126890aSEmmanuel Vadot			bias-pull-up;
487f126890aSEmmanuel Vadot		};
488f126890aSEmmanuel Vadot	};
489f126890aSEmmanuel Vadot
490f126890aSEmmanuel Vadot	touch_default_state: touch-default-state {
491f126890aSEmmanuel Vadot		int-pins {
492f126890aSEmmanuel Vadot			pins = "gpio61";
493f126890aSEmmanuel Vadot			function = "gpio";
494f126890aSEmmanuel Vadot			drive-strength = <2>;
495f126890aSEmmanuel Vadot			bias-disable;
496f126890aSEmmanuel Vadot		};
497f126890aSEmmanuel Vadot
498f126890aSEmmanuel Vadot		reset-pins {
499f126890aSEmmanuel Vadot			pins = "gpio60";
500f126890aSEmmanuel Vadot			function = "gpio";
501f126890aSEmmanuel Vadot			drive-strength = <2>;
502f126890aSEmmanuel Vadot			bias-pull-up;
503f126890aSEmmanuel Vadot		};
504f126890aSEmmanuel Vadot	};
505f126890aSEmmanuel Vadot
506f126890aSEmmanuel Vadot	wcnss_pin_a: wcnss-pin-active-state {
507f126890aSEmmanuel Vadot		wlan-pins {
508f126890aSEmmanuel Vadot			pins = "gpio36", "gpio37", "gpio38", "gpio39", "gpio40";
509f126890aSEmmanuel Vadot			function = "wlan";
510f126890aSEmmanuel Vadot			drive-strength = <6>;
511f126890aSEmmanuel Vadot			bias-pull-down;
512f126890aSEmmanuel Vadot		};
513f126890aSEmmanuel Vadot
514f126890aSEmmanuel Vadot		bt-pins {
515f126890aSEmmanuel Vadot			pins = "gpio35", "gpio43", "gpio44";
516f126890aSEmmanuel Vadot			function = "bt";
517f126890aSEmmanuel Vadot			drive-strength = <2>;
518f126890aSEmmanuel Vadot			bias-pull-down;
519f126890aSEmmanuel Vadot		};
520f126890aSEmmanuel Vadot	};
521f126890aSEmmanuel Vadot};
522f126890aSEmmanuel Vadot
523f126890aSEmmanuel Vadot&usb {
524f126890aSEmmanuel Vadot	phys = <&usb_hs1_phy>;
525f126890aSEmmanuel Vadot	phy-select = <&tcsr 0xb000 0>;
526f126890aSEmmanuel Vadot	extcon = <&smbb>, <&usb_id>;
527f126890aSEmmanuel Vadot	vbus-supply = <&chg_otg>;
528f126890aSEmmanuel Vadot
529f126890aSEmmanuel Vadot	hnp-disable;
530f126890aSEmmanuel Vadot	srp-disable;
531f126890aSEmmanuel Vadot	adp-disable;
532f126890aSEmmanuel Vadot
533f126890aSEmmanuel Vadot	status = "okay";
534f126890aSEmmanuel Vadot};
535f126890aSEmmanuel Vadot
536f126890aSEmmanuel Vadot&usb_hs1_phy {
537f126890aSEmmanuel Vadot	status = "okay";
538f126890aSEmmanuel Vadot
539f126890aSEmmanuel Vadot	v1p8-supply = <&pm8941_l6>;
540f126890aSEmmanuel Vadot	v3p3-supply = <&pm8941_l24>;
541f126890aSEmmanuel Vadot
542f126890aSEmmanuel Vadot	extcon = <&smbb>;
543f126890aSEmmanuel Vadot	qcom,init-seq = /bits/ 8 <0x1 0x64>;
544f126890aSEmmanuel Vadot};
545