xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/sc7280-qcard.dtsi (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1c9ccf3a3SEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2c9ccf3a3SEmmanuel Vadot/*
3c9ccf3a3SEmmanuel Vadot * sc7280 Qcard device tree source
4c9ccf3a3SEmmanuel Vadot *
5c9ccf3a3SEmmanuel Vadot * Qcard PCB has the processor, RAM, eMMC (if stuffed), and eDP connector (if
6c9ccf3a3SEmmanuel Vadot * stuffed) on it. This device tree tries to encapsulate all the things that
7c9ccf3a3SEmmanuel Vadot * all boards using Qcard will have in common. Given that there are stuffing
8c9ccf3a3SEmmanuel Vadot * options, some things may be left with status "disabled" and enabled in
9c9ccf3a3SEmmanuel Vadot * the actual board device tree files.
10c9ccf3a3SEmmanuel Vadot *
11c9ccf3a3SEmmanuel Vadot * Copyright 2022 Google LLC.
12c9ccf3a3SEmmanuel Vadot */
13c9ccf3a3SEmmanuel Vadot
14c9ccf3a3SEmmanuel Vadot#include <dt-bindings/iio/qcom,spmi-adc7-pmk8350.h>
15c9ccf3a3SEmmanuel Vadot#include <dt-bindings/iio/qcom,spmi-adc7-pmr735a.h>
16c9ccf3a3SEmmanuel Vadot#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
17c9ccf3a3SEmmanuel Vadot#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
18c9ccf3a3SEmmanuel Vadot
19c9ccf3a3SEmmanuel Vadot#include "sc7280.dtsi"
20c9ccf3a3SEmmanuel Vadot
21c9ccf3a3SEmmanuel Vadot/* PMICs depend on spmi_bus label and so must come after SoC */
22c9ccf3a3SEmmanuel Vadot#include "pm7325.dtsi"
23c9ccf3a3SEmmanuel Vadot#include "pm8350c.dtsi"
24c9ccf3a3SEmmanuel Vadot#include "pmk8350.dtsi"
25c9ccf3a3SEmmanuel Vadot
26c9ccf3a3SEmmanuel Vadot/ {
27c9ccf3a3SEmmanuel Vadot	aliases {
28c9ccf3a3SEmmanuel Vadot		bluetooth0 = &bluetooth;
29c9ccf3a3SEmmanuel Vadot		serial0 = &uart5;
30c9ccf3a3SEmmanuel Vadot		serial1 = &uart7;
317ef62cebSEmmanuel Vadot		wifi0 = &wifi;
327ef62cebSEmmanuel Vadot	};
337ef62cebSEmmanuel Vadot
347ef62cebSEmmanuel Vadot	wcd9385: audio-codec-1 {
357ef62cebSEmmanuel Vadot		compatible = "qcom,wcd9385-codec";
367ef62cebSEmmanuel Vadot		pinctrl-names = "default", "sleep";
377ef62cebSEmmanuel Vadot		pinctrl-0 = <&wcd_reset_n>, <&us_euro_hs_sel>;
387ef62cebSEmmanuel Vadot		pinctrl-1 = <&wcd_reset_n_sleep>, <&us_euro_hs_sel>;
397ef62cebSEmmanuel Vadot
408bab661aSEmmanuel Vadot		reset-gpios = <&tlmm 83 GPIO_ACTIVE_LOW>;
417ef62cebSEmmanuel Vadot		us-euro-gpios = <&tlmm 81 GPIO_ACTIVE_HIGH>;
427ef62cebSEmmanuel Vadot
437ef62cebSEmmanuel Vadot		qcom,rx-device = <&wcd_rx>;
447ef62cebSEmmanuel Vadot		qcom,tx-device = <&wcd_tx>;
457ef62cebSEmmanuel Vadot
467ef62cebSEmmanuel Vadot		vdd-rxtx-supply = <&vreg_l18b_1p8>;
477ef62cebSEmmanuel Vadot		vdd-io-supply = <&vreg_l18b_1p8>;
487ef62cebSEmmanuel Vadot		vdd-buck-supply = <&vreg_l17b_1p8>;
497ef62cebSEmmanuel Vadot		vdd-mic-bias-supply = <&vreg_bob>;
507ef62cebSEmmanuel Vadot
517ef62cebSEmmanuel Vadot		qcom,micbias1-microvolt = <1800000>;
527ef62cebSEmmanuel Vadot		qcom,micbias2-microvolt = <1800000>;
537ef62cebSEmmanuel Vadot		qcom,micbias3-microvolt = <1800000>;
547ef62cebSEmmanuel Vadot		qcom,micbias4-microvolt = <1800000>;
557ef62cebSEmmanuel Vadot
567ef62cebSEmmanuel Vadot		qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000
577ef62cebSEmmanuel Vadot							  500000 500000 500000>;
587ef62cebSEmmanuel Vadot		qcom,mbhc-headset-vthreshold-microvolt = <1700000>;
597ef62cebSEmmanuel Vadot		qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
607ef62cebSEmmanuel Vadot		#sound-dai-cells = <1>;
617ef62cebSEmmanuel Vadot
627ef62cebSEmmanuel Vadot		status = "disabled";
63c9ccf3a3SEmmanuel Vadot	};
64d5b0e70fSEmmanuel Vadot
65d5b0e70fSEmmanuel Vadot	pm8350c_pwm_backlight: backlight {
66d5b0e70fSEmmanuel Vadot		compatible = "pwm-backlight";
67d5b0e70fSEmmanuel Vadot		status = "disabled";
68d5b0e70fSEmmanuel Vadot
69d5b0e70fSEmmanuel Vadot		enable-gpios = <&pm8350c_gpios 7 GPIO_ACTIVE_HIGH>;
70d5b0e70fSEmmanuel Vadot		pinctrl-names = "default";
71d5b0e70fSEmmanuel Vadot		pinctrl-0 = <&pmic_edp_bl_en>;
72d5b0e70fSEmmanuel Vadot		pwms = <&pm8350c_pwm 3 65535>;
73d5b0e70fSEmmanuel Vadot	};
74c9ccf3a3SEmmanuel Vadot};
75c9ccf3a3SEmmanuel Vadot
76c9ccf3a3SEmmanuel Vadot&apps_rsc {
77c9ccf3a3SEmmanuel Vadot	/*
78c9ccf3a3SEmmanuel Vadot	 * Regulators are given labels corresponding to the various names
79c9ccf3a3SEmmanuel Vadot	 * they are referred to on schematics. They are also given labels
80c9ccf3a3SEmmanuel Vadot	 * corresponding to named voltage inputs on the SoC or components
81c9ccf3a3SEmmanuel Vadot	 * bundled with the SoC (like radio companion chips). We totally
82c9ccf3a3SEmmanuel Vadot	 * ignore it when one regulator is the input to another regulator.
83c9ccf3a3SEmmanuel Vadot	 * That's handled automatically by the initial config given to
84c9ccf3a3SEmmanuel Vadot	 * RPMH by the firmware.
85c9ccf3a3SEmmanuel Vadot	 *
86c9ccf3a3SEmmanuel Vadot	 * Regulators that the HLOS (High Level OS) doesn't touch at all
87c9ccf3a3SEmmanuel Vadot	 * are left out of here since they are managed elsewhere.
88c9ccf3a3SEmmanuel Vadot	 */
89c9ccf3a3SEmmanuel Vadot
90fac71e4eSEmmanuel Vadot	regulators-0 {
91c9ccf3a3SEmmanuel Vadot		compatible = "qcom,pm7325-rpmh-regulators";
92c9ccf3a3SEmmanuel Vadot		qcom,pmic-id = "b";
93c9ccf3a3SEmmanuel Vadot
94c9ccf3a3SEmmanuel Vadot		vdd19_pmu_pcie_i:
95c9ccf3a3SEmmanuel Vadot		vdd19_pmu_rfa_i:
96c9ccf3a3SEmmanuel Vadot		vreg_s1b_1p856: smps1 {
97c9ccf3a3SEmmanuel Vadot			regulator-min-microvolt = <1856000>;
98c9ccf3a3SEmmanuel Vadot			regulator-max-microvolt = <2040000>;
99c9ccf3a3SEmmanuel Vadot		};
100c9ccf3a3SEmmanuel Vadot
101c9ccf3a3SEmmanuel Vadot		vdd_pmu_aon_i:
102c9ccf3a3SEmmanuel Vadot		vdd09_pmu_rfa_i:
103c9ccf3a3SEmmanuel Vadot		vdd095_mx_pmu:
104c9ccf3a3SEmmanuel Vadot		vdd095_pmu:
105c9ccf3a3SEmmanuel Vadot		vreg_s7b_0p952: smps7 {
106c9ccf3a3SEmmanuel Vadot			regulator-min-microvolt = <535000>;
107c9ccf3a3SEmmanuel Vadot			regulator-max-microvolt = <1120000>;
108c9ccf3a3SEmmanuel Vadot		};
109c9ccf3a3SEmmanuel Vadot
110c9ccf3a3SEmmanuel Vadot		vdd13_pmu_rfa_i:
111c9ccf3a3SEmmanuel Vadot		vdd13_pmu_pcie_i:
112c9ccf3a3SEmmanuel Vadot		vreg_s8b_1p256: smps8 {
113c9ccf3a3SEmmanuel Vadot			regulator-min-microvolt = <1256000>;
114c9ccf3a3SEmmanuel Vadot			regulator-max-microvolt = <1500000>;
115c9ccf3a3SEmmanuel Vadot		};
116c9ccf3a3SEmmanuel Vadot
117c9ccf3a3SEmmanuel Vadot		vdd_a_usbssdp_0_core:
118c9ccf3a3SEmmanuel Vadot		vreg_l1b_0p912: ldo1 {
119c9ccf3a3SEmmanuel Vadot			regulator-min-microvolt = <825000>;
120c9ccf3a3SEmmanuel Vadot			regulator-max-microvolt = <925000>;
121c9ccf3a3SEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
122c9ccf3a3SEmmanuel Vadot		};
123c9ccf3a3SEmmanuel Vadot
124c9ccf3a3SEmmanuel Vadot		vdd_a_usbhs_3p1:
125c9ccf3a3SEmmanuel Vadot		vreg_l2b_3p072: ldo2 {
126c9ccf3a3SEmmanuel Vadot			regulator-min-microvolt = <2700000>;
127c9ccf3a3SEmmanuel Vadot			regulator-max-microvolt = <3544000>;
128c9ccf3a3SEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
129c9ccf3a3SEmmanuel Vadot		};
130c9ccf3a3SEmmanuel Vadot
131c9ccf3a3SEmmanuel Vadot		vdd_a_csi_0_1_1p2:
132c9ccf3a3SEmmanuel Vadot		vdd_a_csi_2_3_1p2:
133c9ccf3a3SEmmanuel Vadot		vdd_a_csi_4_1p2:
134c9ccf3a3SEmmanuel Vadot		vdd_a_dsi_0_1p2:
135c9ccf3a3SEmmanuel Vadot		vdd_a_edp_0_1p2:
136c9ccf3a3SEmmanuel Vadot		vdd_a_qlink_0_1p2:
137c9ccf3a3SEmmanuel Vadot		vdd_a_qlink_1_1p2:
138c9ccf3a3SEmmanuel Vadot		vdd_a_pcie_0_1p2:
139c9ccf3a3SEmmanuel Vadot		vdd_a_pcie_1_1p2:
140c9ccf3a3SEmmanuel Vadot		vdd_a_ufs_0_1p2:
141c9ccf3a3SEmmanuel Vadot		vdd_a_usbssdp_0_1p2:
142c9ccf3a3SEmmanuel Vadot		vreg_l6b_1p2: ldo6 {
143c9ccf3a3SEmmanuel Vadot			regulator-min-microvolt = <1140000>;
144c9ccf3a3SEmmanuel Vadot			regulator-max-microvolt = <1260000>;
145c9ccf3a3SEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
146c9ccf3a3SEmmanuel Vadot		};
147c9ccf3a3SEmmanuel Vadot
148c9ccf3a3SEmmanuel Vadot		/*
149c9ccf3a3SEmmanuel Vadot		 * Despite the fact that this is named to be 2.5V on the
150c9ccf3a3SEmmanuel Vadot		 * schematic, it powers eMMC which doesn't accept 2.5V
151c9ccf3a3SEmmanuel Vadot		 */
152c9ccf3a3SEmmanuel Vadot		vreg_l7b_2p5: ldo7 {
153c9ccf3a3SEmmanuel Vadot			regulator-min-microvolt = <2960000>;
154c9ccf3a3SEmmanuel Vadot			regulator-max-microvolt = <2960000>;
155c9ccf3a3SEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
156c9ccf3a3SEmmanuel Vadot		};
157c9ccf3a3SEmmanuel Vadot
158b97ee269SEmmanuel Vadot		vreg_l17b_1p8: ldo17 {
159b97ee269SEmmanuel Vadot			regulator-min-microvolt = <1700000>;
160b97ee269SEmmanuel Vadot			regulator-max-microvolt = <1900000>;
161b97ee269SEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
162b97ee269SEmmanuel Vadot		};
163b97ee269SEmmanuel Vadot
164c9ccf3a3SEmmanuel Vadot		vdd_px_wcd9385:
165c9ccf3a3SEmmanuel Vadot		vdd_txrx:
166c9ccf3a3SEmmanuel Vadot		vddpx_0:
167c9ccf3a3SEmmanuel Vadot		vddpx_3:
168c9ccf3a3SEmmanuel Vadot		vddpx_7:
169c9ccf3a3SEmmanuel Vadot		vreg_l18b_1p8: ldo18 {
170c9ccf3a3SEmmanuel Vadot			regulator-min-microvolt = <1800000>;
171c9ccf3a3SEmmanuel Vadot			regulator-max-microvolt = <2000000>;
172c9ccf3a3SEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
173c9ccf3a3SEmmanuel Vadot		};
174c9ccf3a3SEmmanuel Vadot
175c9ccf3a3SEmmanuel Vadot		vdd_1p8:
176c9ccf3a3SEmmanuel Vadot		vdd_px_sdr735:
177c9ccf3a3SEmmanuel Vadot		vdd_pxm:
178c9ccf3a3SEmmanuel Vadot		vdd18_io:
179c9ccf3a3SEmmanuel Vadot		vddio_px_1:
180c9ccf3a3SEmmanuel Vadot		vddio_px_2:
181c9ccf3a3SEmmanuel Vadot		vddio_px_3:
182c9ccf3a3SEmmanuel Vadot		vddpx_ts:
183c9ccf3a3SEmmanuel Vadot		vddpx_wl4otp:
184c9ccf3a3SEmmanuel Vadot		vreg_l19b_1p8: ldo19 {
185c9ccf3a3SEmmanuel Vadot			regulator-min-microvolt = <1800000>;
186c9ccf3a3SEmmanuel Vadot			regulator-max-microvolt = <1800000>;
187c9ccf3a3SEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
188c9ccf3a3SEmmanuel Vadot		};
189c9ccf3a3SEmmanuel Vadot	};
190c9ccf3a3SEmmanuel Vadot
191fac71e4eSEmmanuel Vadot	regulators-1 {
192c9ccf3a3SEmmanuel Vadot		compatible = "qcom,pm8350c-rpmh-regulators";
193c9ccf3a3SEmmanuel Vadot		qcom,pmic-id = "c";
194c9ccf3a3SEmmanuel Vadot
195c9ccf3a3SEmmanuel Vadot		vdd22_wlbtpa_ch0:
196c9ccf3a3SEmmanuel Vadot		vdd22_wlbtpa_ch1:
197c9ccf3a3SEmmanuel Vadot		vdd22_wlbtppa_ch0:
198c9ccf3a3SEmmanuel Vadot		vdd22_wlbtppa_ch1:
199c9ccf3a3SEmmanuel Vadot		vdd22_wlpa5g_ch0:
200c9ccf3a3SEmmanuel Vadot		vdd22_wlpa5g_ch1:
201c9ccf3a3SEmmanuel Vadot		vdd22_wlppa5g_ch0:
202c9ccf3a3SEmmanuel Vadot		vdd22_wlppa5g_ch1:
203c9ccf3a3SEmmanuel Vadot		vreg_s1c_2p2: smps1 {
204c9ccf3a3SEmmanuel Vadot			regulator-min-microvolt = <2190000>;
205c9ccf3a3SEmmanuel Vadot			regulator-max-microvolt = <2210000>;
206c9ccf3a3SEmmanuel Vadot		};
207c9ccf3a3SEmmanuel Vadot
208c9ccf3a3SEmmanuel Vadot		lp4_vdd2_1p052:
209c9ccf3a3SEmmanuel Vadot		vreg_s9c_0p676: smps9 {
210c9ccf3a3SEmmanuel Vadot			regulator-min-microvolt = <1010000>;
211c9ccf3a3SEmmanuel Vadot			regulator-max-microvolt = <1170000>;
212c9ccf3a3SEmmanuel Vadot		};
213c9ccf3a3SEmmanuel Vadot
214c9ccf3a3SEmmanuel Vadot		vdda_apc_cs_1p8:
215c9ccf3a3SEmmanuel Vadot		vdda_gfx_cs_1p8:
216c9ccf3a3SEmmanuel Vadot		vdda_turing_q6_cs_1p8:
217c9ccf3a3SEmmanuel Vadot		vdd_a_cxo_1p8:
218c9ccf3a3SEmmanuel Vadot		vdd_a_qrefs_1p8:
219c9ccf3a3SEmmanuel Vadot		vdd_a_usbhs_1p8:
220c9ccf3a3SEmmanuel Vadot		vdd_qfprom:
221c9ccf3a3SEmmanuel Vadot		vreg_l1c_1p8: ldo1 {
222c9ccf3a3SEmmanuel Vadot			regulator-min-microvolt = <1800000>;
223c9ccf3a3SEmmanuel Vadot			regulator-max-microvolt = <1980000>;
224c9ccf3a3SEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
225c9ccf3a3SEmmanuel Vadot		};
226c9ccf3a3SEmmanuel Vadot
227c9ccf3a3SEmmanuel Vadot		vreg_l2c_1p8: ldo2 {
228c9ccf3a3SEmmanuel Vadot			regulator-min-microvolt = <1620000>;
229c9ccf3a3SEmmanuel Vadot			regulator-max-microvolt = <1980000>;
230c9ccf3a3SEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
231c9ccf3a3SEmmanuel Vadot		};
232c9ccf3a3SEmmanuel Vadot
233cb7aa33aSEmmanuel Vadot		/*
234cb7aa33aSEmmanuel Vadot		 * The initial design of this regulator was to use it as 3.3V,
235cb7aa33aSEmmanuel Vadot		 * but due to later changes in design it was changed to 1.8V.
236cb7aa33aSEmmanuel Vadot		 * The original name is kept due to same schematic.
237cb7aa33aSEmmanuel Vadot		 */
238cb7aa33aSEmmanuel Vadot		ts_avccio:
239c9ccf3a3SEmmanuel Vadot		vreg_l3c_3p0: ldo3 {
240cb7aa33aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
241cb7aa33aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
242c9ccf3a3SEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
243c9ccf3a3SEmmanuel Vadot		};
244c9ccf3a3SEmmanuel Vadot
245c9ccf3a3SEmmanuel Vadot		vddpx_5:
246c9ccf3a3SEmmanuel Vadot		vreg_l4c_1p8_3p0: ldo4 {
247c9ccf3a3SEmmanuel Vadot			regulator-min-microvolt = <1620000>;
248c9ccf3a3SEmmanuel Vadot			regulator-max-microvolt = <3300000>;
249c9ccf3a3SEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
250c9ccf3a3SEmmanuel Vadot		};
251c9ccf3a3SEmmanuel Vadot
252c9ccf3a3SEmmanuel Vadot		vddpx_6:
253c9ccf3a3SEmmanuel Vadot		vreg_l5c_1p8_3p0: ldo5 {
254c9ccf3a3SEmmanuel Vadot			regulator-min-microvolt = <1620000>;
255c9ccf3a3SEmmanuel Vadot			regulator-max-microvolt = <3300000>;
256c9ccf3a3SEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
257c9ccf3a3SEmmanuel Vadot		};
258c9ccf3a3SEmmanuel Vadot
259c9ccf3a3SEmmanuel Vadot		vddpx_2:
260c9ccf3a3SEmmanuel Vadot		vreg_l6c_2p96: ldo6 {
261c9ccf3a3SEmmanuel Vadot			regulator-min-microvolt = <1800000>;
262c9ccf3a3SEmmanuel Vadot			regulator-max-microvolt = <2950000>;
263c9ccf3a3SEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
264c9ccf3a3SEmmanuel Vadot		};
265c9ccf3a3SEmmanuel Vadot
266c9ccf3a3SEmmanuel Vadot		vreg_l7c_3p0: ldo7 {
267c9ccf3a3SEmmanuel Vadot			regulator-min-microvolt = <3000000>;
268c9ccf3a3SEmmanuel Vadot			regulator-max-microvolt = <3544000>;
269c9ccf3a3SEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
270c9ccf3a3SEmmanuel Vadot		};
271c9ccf3a3SEmmanuel Vadot
272c9ccf3a3SEmmanuel Vadot		vreg_l8c_1p8: ldo8 {
273c9ccf3a3SEmmanuel Vadot			regulator-min-microvolt = <1620000>;
274c9ccf3a3SEmmanuel Vadot			regulator-max-microvolt = <2000000>;
275c9ccf3a3SEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
276c9ccf3a3SEmmanuel Vadot		};
277c9ccf3a3SEmmanuel Vadot
278c9ccf3a3SEmmanuel Vadot		vreg_l9c_2p96: ldo9 {
279c9ccf3a3SEmmanuel Vadot			regulator-min-microvolt = <2960000>;
280c9ccf3a3SEmmanuel Vadot			regulator-max-microvolt = <2960000>;
281c9ccf3a3SEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
282c9ccf3a3SEmmanuel Vadot		};
283c9ccf3a3SEmmanuel Vadot
284c9ccf3a3SEmmanuel Vadot		vdd_a_csi_0_1_0p9:
285c9ccf3a3SEmmanuel Vadot		vdd_a_csi_2_3_0p9:
286c9ccf3a3SEmmanuel Vadot		vdd_a_csi_4_0p9:
287c9ccf3a3SEmmanuel Vadot		vdd_a_dsi_0_0p9:
288c9ccf3a3SEmmanuel Vadot		vdd_a_dsi_0_pll_0p9:
289c9ccf3a3SEmmanuel Vadot		vdd_a_edp_0_0p9:
290c9ccf3a3SEmmanuel Vadot		vdd_a_gnss_0p9:
291c9ccf3a3SEmmanuel Vadot		vdd_a_pcie_0_core:
292c9ccf3a3SEmmanuel Vadot		vdd_a_pcie_1_core:
293c9ccf3a3SEmmanuel Vadot		vdd_a_qlink_0_0p9:
294c9ccf3a3SEmmanuel Vadot		vdd_a_qlink_0_0p9_ck:
295c9ccf3a3SEmmanuel Vadot		vdd_a_qlink_1_0p9:
296c9ccf3a3SEmmanuel Vadot		vdd_a_qlink_1_0p9_ck:
297c9ccf3a3SEmmanuel Vadot		vdd_a_qrefs_0p875_0:
298c9ccf3a3SEmmanuel Vadot		vdd_a_qrefs_0p875_1:
299c9ccf3a3SEmmanuel Vadot		vdd_a_qrefs_0p875_2:
300c9ccf3a3SEmmanuel Vadot		vdd_a_qrefs_0p875_3:
301c9ccf3a3SEmmanuel Vadot		vdd_a_qrefs_0p875_4_5:
302c9ccf3a3SEmmanuel Vadot		vdd_a_qrefs_0p875_6:
303c9ccf3a3SEmmanuel Vadot		vdd_a_qrefs_0p875_7:
304c9ccf3a3SEmmanuel Vadot		vdd_a_qrefs_0p875_8:
305c9ccf3a3SEmmanuel Vadot		vdd_a_qrefs_0p875_9:
306c9ccf3a3SEmmanuel Vadot		vdd_a_ufs_0_core:
307c9ccf3a3SEmmanuel Vadot		vdd_a_usbhs_core:
308c9ccf3a3SEmmanuel Vadot		vreg_l10c_0p88: ldo10 {
309c9ccf3a3SEmmanuel Vadot			regulator-min-microvolt = <720000>;
310c9ccf3a3SEmmanuel Vadot			regulator-max-microvolt = <1050000>;
311c9ccf3a3SEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
312c9ccf3a3SEmmanuel Vadot		};
313c9ccf3a3SEmmanuel Vadot
314c9ccf3a3SEmmanuel Vadot		vreg_l11c_2p8: ldo11 {
315c9ccf3a3SEmmanuel Vadot			regulator-min-microvolt = <2800000>;
316c9ccf3a3SEmmanuel Vadot			regulator-max-microvolt = <3544000>;
317c9ccf3a3SEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
318c9ccf3a3SEmmanuel Vadot		};
319c9ccf3a3SEmmanuel Vadot
320c9ccf3a3SEmmanuel Vadot		vreg_l12c_1p8: ldo12 {
321c9ccf3a3SEmmanuel Vadot			regulator-min-microvolt = <1650000>;
322c9ccf3a3SEmmanuel Vadot			regulator-max-microvolt = <2000000>;
323c9ccf3a3SEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
324c9ccf3a3SEmmanuel Vadot		};
325c9ccf3a3SEmmanuel Vadot
326c9ccf3a3SEmmanuel Vadot		vreg_l13c_3p0: ldo13 {
327c9ccf3a3SEmmanuel Vadot			regulator-min-microvolt = <2700000>;
328c9ccf3a3SEmmanuel Vadot			regulator-max-microvolt = <3544000>;
329c9ccf3a3SEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
330c9ccf3a3SEmmanuel Vadot		};
331c9ccf3a3SEmmanuel Vadot
332c9ccf3a3SEmmanuel Vadot		vdd_flash:
333c9ccf3a3SEmmanuel Vadot		vdd_iris_rgb:
334c9ccf3a3SEmmanuel Vadot		vdd_mic_bias:
335c9ccf3a3SEmmanuel Vadot		vreg_bob: bob {
336c9ccf3a3SEmmanuel Vadot			regulator-min-microvolt = <3008000>;
337c9ccf3a3SEmmanuel Vadot			regulator-max-microvolt = <3960000>;
338c9ccf3a3SEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>;
339c9ccf3a3SEmmanuel Vadot		};
340c9ccf3a3SEmmanuel Vadot	};
341c9ccf3a3SEmmanuel Vadot};
342c9ccf3a3SEmmanuel Vadot
343c9ccf3a3SEmmanuel Vadot/* ADDITIONS TO NODES DEFINED IN PARENT DEVICE TREE FILES */
344c9ccf3a3SEmmanuel Vadot
3457ef62cebSEmmanuel Vadot&lpass_va_macro {
3467ef62cebSEmmanuel Vadot	vdd-micb-supply = <&vreg_bob>;
3477ef62cebSEmmanuel Vadot};
3487ef62cebSEmmanuel Vadot
349d5b0e70fSEmmanuel Vadot/* NOTE: Not all Qcards have eDP connector stuffed */
350d5b0e70fSEmmanuel Vadot&mdss_edp {
351d5b0e70fSEmmanuel Vadot	aux-bus {
352d5b0e70fSEmmanuel Vadot		edp_panel: panel {
353d5b0e70fSEmmanuel Vadot			compatible = "edp-panel";
354d5b0e70fSEmmanuel Vadot
355d5b0e70fSEmmanuel Vadot			backlight = <&pm8350c_pwm_backlight>;
356d5b0e70fSEmmanuel Vadot
357fac71e4eSEmmanuel Vadot			port {
358d5b0e70fSEmmanuel Vadot				edp_panel_in: endpoint {
359d5b0e70fSEmmanuel Vadot					remote-endpoint = <&mdss_edp_out>;
360d5b0e70fSEmmanuel Vadot				};
361d5b0e70fSEmmanuel Vadot			};
362d5b0e70fSEmmanuel Vadot		};
363d5b0e70fSEmmanuel Vadot	};
364d5b0e70fSEmmanuel Vadot};
365d5b0e70fSEmmanuel Vadot
366d5b0e70fSEmmanuel Vadot&mdss_edp_out {
367d5b0e70fSEmmanuel Vadot	remote-endpoint = <&edp_panel_in>;
368d5b0e70fSEmmanuel Vadot};
369d5b0e70fSEmmanuel Vadot
370d5b0e70fSEmmanuel Vadot&mdss_edp_phy {
371d5b0e70fSEmmanuel Vadot	vdda-pll-supply = <&vdd_a_edp_0_0p9>;
372d5b0e70fSEmmanuel Vadot	vdda-phy-supply = <&vdd_a_edp_0_1p2>;
373d5b0e70fSEmmanuel Vadot};
374d5b0e70fSEmmanuel Vadot
375c9ccf3a3SEmmanuel Vadot&pcie1_phy {
376c9ccf3a3SEmmanuel Vadot	vdda-phy-supply = <&vreg_l10c_0p88>;
377c9ccf3a3SEmmanuel Vadot	vdda-pll-supply = <&vreg_l6b_1p2>;
378c9ccf3a3SEmmanuel Vadot};
379c9ccf3a3SEmmanuel Vadot
380d5b0e70fSEmmanuel Vadot&pm8350c_pwm {
381d5b0e70fSEmmanuel Vadot	pinctrl-names = "default";
382d5b0e70fSEmmanuel Vadot	pinctrl-0 = <&pmic_edp_bl_pwm>;
383d5b0e70fSEmmanuel Vadot};
384d5b0e70fSEmmanuel Vadot
385c9ccf3a3SEmmanuel Vadot&pmk8350_vadc {
386*aa1a8ff2SEmmanuel Vadot	channel@3 {
387c9ccf3a3SEmmanuel Vadot		reg = <PMK8350_ADC7_DIE_TEMP>;
388c9ccf3a3SEmmanuel Vadot		label = "pmk8350_die_temp";
389c9ccf3a3SEmmanuel Vadot		qcom,pre-scaling = <1 1>;
390c9ccf3a3SEmmanuel Vadot	};
391c9ccf3a3SEmmanuel Vadot
392*aa1a8ff2SEmmanuel Vadot	channel@403 {
393c9ccf3a3SEmmanuel Vadot		reg = <PMR735A_ADC7_DIE_TEMP>;
394c9ccf3a3SEmmanuel Vadot		label = "pmr735a_die_temp";
395c9ccf3a3SEmmanuel Vadot		qcom,pre-scaling = <1 1>;
396c9ccf3a3SEmmanuel Vadot	};
397c9ccf3a3SEmmanuel Vadot};
398c9ccf3a3SEmmanuel Vadot
399c9ccf3a3SEmmanuel Vadot&qfprom {
400c9ccf3a3SEmmanuel Vadot	vcc-supply = <&vdd_qfprom>;
401c9ccf3a3SEmmanuel Vadot};
402c9ccf3a3SEmmanuel Vadot
403c9ccf3a3SEmmanuel Vadot/* For eMMC. NOTE: not all Qcards have eMMC stuffed */
404c9ccf3a3SEmmanuel Vadot&sdhc_1 {
405c9ccf3a3SEmmanuel Vadot	vmmc-supply = <&vreg_l7b_2p5>;
406c9ccf3a3SEmmanuel Vadot	vqmmc-supply = <&vreg_l19b_1p8>;
407c9ccf3a3SEmmanuel Vadot
408c9ccf3a3SEmmanuel Vadot	non-removable;
409c9ccf3a3SEmmanuel Vadot	no-sd;
410c9ccf3a3SEmmanuel Vadot	no-sdio;
411c9ccf3a3SEmmanuel Vadot};
412c9ccf3a3SEmmanuel Vadot
4137ef62cebSEmmanuel Vadot&swr0 {
4147ef62cebSEmmanuel Vadot	wcd_rx: codec@0,4 {
4157ef62cebSEmmanuel Vadot		compatible = "sdw20217010d00";
4167ef62cebSEmmanuel Vadot		reg = <0 4>;
4177ef62cebSEmmanuel Vadot		qcom,rx-port-mapping = <1 2 3 4 5>;
4187ef62cebSEmmanuel Vadot	};
4197ef62cebSEmmanuel Vadot};
4207ef62cebSEmmanuel Vadot
4217ef62cebSEmmanuel Vadot&swr1 {
4227ef62cebSEmmanuel Vadot	wcd_tx: codec@0,3 {
4237ef62cebSEmmanuel Vadot		compatible = "sdw20217010d00";
4247ef62cebSEmmanuel Vadot		reg = <0 3>;
4257ef62cebSEmmanuel Vadot		qcom,tx-port-mapping = <1 2 3 4>;
4267ef62cebSEmmanuel Vadot	};
4277ef62cebSEmmanuel Vadot};
4287ef62cebSEmmanuel Vadot
429c9ccf3a3SEmmanuel Vadotuart_dbg: &uart5 {
430c9ccf3a3SEmmanuel Vadot	compatible = "qcom,geni-debug-uart";
431c9ccf3a3SEmmanuel Vadot	status = "okay";
432c9ccf3a3SEmmanuel Vadot};
433c9ccf3a3SEmmanuel Vadot
434c9ccf3a3SEmmanuel Vadotmos_bt_uart: &uart7 {
435c9ccf3a3SEmmanuel Vadot	status = "okay";
436c9ccf3a3SEmmanuel Vadot
437c9ccf3a3SEmmanuel Vadot	/delete-property/ interrupts;
438c9ccf3a3SEmmanuel Vadot	interrupts-extended = <&intc GIC_SPI 608 IRQ_TYPE_LEVEL_HIGH>,
439c9ccf3a3SEmmanuel Vadot				<&tlmm 31 IRQ_TYPE_EDGE_FALLING>;
440c9ccf3a3SEmmanuel Vadot	pinctrl-names = "default", "sleep";
441c9ccf3a3SEmmanuel Vadot	pinctrl-1 = <&qup_uart7_sleep_cts>, <&qup_uart7_sleep_rts>, <&qup_uart7_sleep_tx>, <&qup_uart7_sleep_rx>;
442c9ccf3a3SEmmanuel Vadot
443c9ccf3a3SEmmanuel Vadot	bluetooth: bluetooth {
444c9ccf3a3SEmmanuel Vadot		compatible = "qcom,wcn6750-bt";
445c9ccf3a3SEmmanuel Vadot		pinctrl-names = "default";
446c9ccf3a3SEmmanuel Vadot		pinctrl-0 = <&mos_bt_en>;
447c9ccf3a3SEmmanuel Vadot		enable-gpios = <&tlmm 85 GPIO_ACTIVE_HIGH>;
448c9ccf3a3SEmmanuel Vadot		swctrl-gpios = <&tlmm 86 GPIO_ACTIVE_HIGH>;
449c9ccf3a3SEmmanuel Vadot		vddaon-supply = <&vreg_s7b_0p952>;
450c9ccf3a3SEmmanuel Vadot		vddbtcxmx-supply = <&vreg_s7b_0p952>;
451c9ccf3a3SEmmanuel Vadot		vddrfacmn-supply = <&vreg_s7b_0p952>;
452c9ccf3a3SEmmanuel Vadot		vddrfa0p8-supply = <&vreg_s7b_0p952>;
453c9ccf3a3SEmmanuel Vadot		vddrfa1p7-supply = <&vdd19_pmu_rfa_i>;
454c9ccf3a3SEmmanuel Vadot		vddrfa1p2-supply = <&vdd13_pmu_rfa_i>;
455c9ccf3a3SEmmanuel Vadot		vddrfa2p2-supply = <&vreg_s1c_2p2>;
456c9ccf3a3SEmmanuel Vadot		vddasd-supply = <&vreg_l11c_2p8>;
457c9ccf3a3SEmmanuel Vadot		vddio-supply = <&vreg_l18b_1p8>;
458c9ccf3a3SEmmanuel Vadot		max-speed = <3200000>;
459c9ccf3a3SEmmanuel Vadot	};
460c9ccf3a3SEmmanuel Vadot};
461c9ccf3a3SEmmanuel Vadot
462c9ccf3a3SEmmanuel Vadot&usb_1_hsphy {
463c9ccf3a3SEmmanuel Vadot	vdda-pll-supply = <&vdd_a_usbhs_core>;
464c9ccf3a3SEmmanuel Vadot	vdda33-supply = <&vdd_a_usbhs_3p1>;
465c9ccf3a3SEmmanuel Vadot	vdda18-supply = <&vdd_a_usbhs_1p8>;
466c9ccf3a3SEmmanuel Vadot};
467c9ccf3a3SEmmanuel Vadot
468c9ccf3a3SEmmanuel Vadot&usb_1_qmpphy {
469c9ccf3a3SEmmanuel Vadot	vdda-phy-supply = <&vdd_a_usbssdp_0_1p2>;
470c9ccf3a3SEmmanuel Vadot	vdda-pll-supply = <&vdd_a_usbssdp_0_core>;
471c9ccf3a3SEmmanuel Vadot};
472c9ccf3a3SEmmanuel Vadot
473c9ccf3a3SEmmanuel Vadot&usb_2_hsphy {
474c9ccf3a3SEmmanuel Vadot	vdda-pll-supply = <&vdd_a_usbhs_core>;
475c9ccf3a3SEmmanuel Vadot	vdda33-supply = <&vdd_a_usbhs_3p1>;
476c9ccf3a3SEmmanuel Vadot	vdda18-supply = <&vdd_a_usbhs_1p8>;
477c9ccf3a3SEmmanuel Vadot};
478c9ccf3a3SEmmanuel Vadot
479c9ccf3a3SEmmanuel Vadot/*
480c9ccf3a3SEmmanuel Vadot * PINCTRL - ADDITIONS TO NODES IN PARENT DEVICE TREE FILES
481c9ccf3a3SEmmanuel Vadot *
482c9ccf3a3SEmmanuel Vadot * NOTE: In general if pins leave the Qcard then the pinctrl goes in the
483c9ccf3a3SEmmanuel Vadot * baseboard or board device tree, not here.
484c9ccf3a3SEmmanuel Vadot */
485c9ccf3a3SEmmanuel Vadot
486d5b0e70fSEmmanuel Vadot/* No external pull for eDP HPD, so set the internal one. */
487d5b0e70fSEmmanuel Vadot&edp_hot_plug_det {
488d5b0e70fSEmmanuel Vadot	bias-pull-down;
489d5b0e70fSEmmanuel Vadot};
490d5b0e70fSEmmanuel Vadot
491c9ccf3a3SEmmanuel Vadot/*
492c9ccf3a3SEmmanuel Vadot * For ts_i2c
493c9ccf3a3SEmmanuel Vadot *
494c9ccf3a3SEmmanuel Vadot * Technically this i2c bus actually leaves the Qcard, but it leaves directly
495c9ccf3a3SEmmanuel Vadot * via the eDP connector (it doesn't hit the baseboard). The external pulls
496c9ccf3a3SEmmanuel Vadot * are on Qcard.
497c9ccf3a3SEmmanuel Vadot */
498c9ccf3a3SEmmanuel Vadot&qup_i2c13_data_clk {
499c9ccf3a3SEmmanuel Vadot	/* Has external pull */
500c9ccf3a3SEmmanuel Vadot	bias-disable;
501c9ccf3a3SEmmanuel Vadot	drive-strength = <2>;
502c9ccf3a3SEmmanuel Vadot};
503c9ccf3a3SEmmanuel Vadot
504c9ccf3a3SEmmanuel Vadot/* For mos_bt_uart */
505c9ccf3a3SEmmanuel Vadot&qup_uart7_cts {
506d5b0e70fSEmmanuel Vadot	/*
507d5b0e70fSEmmanuel Vadot	 * Configure a bias-bus-hold on CTS to lower power
508d5b0e70fSEmmanuel Vadot	 * usage when Bluetooth is turned off. Bus hold will
509d5b0e70fSEmmanuel Vadot	 * maintain a low power state regardless of whether
510d5b0e70fSEmmanuel Vadot	 * the Bluetooth module drives the pin in either
511d5b0e70fSEmmanuel Vadot	 * direction or leaves the pin fully unpowered.
512d5b0e70fSEmmanuel Vadot	 */
513d5b0e70fSEmmanuel Vadot	bias-bus-hold;
514c9ccf3a3SEmmanuel Vadot};
515c9ccf3a3SEmmanuel Vadot
516c9ccf3a3SEmmanuel Vadot/* For mos_bt_uart */
517c9ccf3a3SEmmanuel Vadot&qup_uart7_rts {
518c9ccf3a3SEmmanuel Vadot	/* We'll drive RTS, so no pull */
519c9ccf3a3SEmmanuel Vadot	bias-disable;
520c9ccf3a3SEmmanuel Vadot	drive-strength = <2>;
521c9ccf3a3SEmmanuel Vadot};
522c9ccf3a3SEmmanuel Vadot
523c9ccf3a3SEmmanuel Vadot/* For mos_bt_uart */
524c9ccf3a3SEmmanuel Vadot&qup_uart7_tx {
525c9ccf3a3SEmmanuel Vadot	/* We'll drive TX, so no pull */
526c9ccf3a3SEmmanuel Vadot	bias-disable;
527c9ccf3a3SEmmanuel Vadot	drive-strength = <2>;
528c9ccf3a3SEmmanuel Vadot};
529c9ccf3a3SEmmanuel Vadot
530c9ccf3a3SEmmanuel Vadot/* For mos_bt_uart */
531c9ccf3a3SEmmanuel Vadot&qup_uart7_rx {
532c9ccf3a3SEmmanuel Vadot	/*
533c9ccf3a3SEmmanuel Vadot	 * Configure a pull-up on RX. This is needed to avoid
534c9ccf3a3SEmmanuel Vadot	 * garbage data when the TX pin of the Bluetooth module is
535c9ccf3a3SEmmanuel Vadot	 * in tri-state (module powered off or not driving the
536c9ccf3a3SEmmanuel Vadot	 * signal yet).
537c9ccf3a3SEmmanuel Vadot	 */
538c9ccf3a3SEmmanuel Vadot	bias-pull-up;
539c9ccf3a3SEmmanuel Vadot};
540c9ccf3a3SEmmanuel Vadot
541c9ccf3a3SEmmanuel Vadot/* eMMC, if stuffed, is straight on the Qcard */
542c9ccf3a3SEmmanuel Vadot&sdc1_clk {
543c9ccf3a3SEmmanuel Vadot	bias-disable;
544c9ccf3a3SEmmanuel Vadot	drive-strength = <16>;
545c9ccf3a3SEmmanuel Vadot};
546c9ccf3a3SEmmanuel Vadot
547c9ccf3a3SEmmanuel Vadot&sdc1_cmd {
548c9ccf3a3SEmmanuel Vadot	bias-pull-up;
549c9ccf3a3SEmmanuel Vadot	drive-strength = <10>;
550c9ccf3a3SEmmanuel Vadot};
551c9ccf3a3SEmmanuel Vadot
552c9ccf3a3SEmmanuel Vadot&sdc1_data {
553c9ccf3a3SEmmanuel Vadot	bias-pull-up;
554c9ccf3a3SEmmanuel Vadot	drive-strength = <10>;
555c9ccf3a3SEmmanuel Vadot};
556c9ccf3a3SEmmanuel Vadot
557c9ccf3a3SEmmanuel Vadot&sdc1_rclk {
558c9ccf3a3SEmmanuel Vadot	bias-pull-down;
559c9ccf3a3SEmmanuel Vadot};
560c9ccf3a3SEmmanuel Vadot
561c9ccf3a3SEmmanuel Vadot/*
562c9ccf3a3SEmmanuel Vadot * PINCTRL - QCARD
563c9ccf3a3SEmmanuel Vadot *
564c9ccf3a3SEmmanuel Vadot * This has entries that are defined by Qcard even if they go to the main
565c9ccf3a3SEmmanuel Vadot * board. In cases where the pulls may be board dependent we defer those
566c9ccf3a3SEmmanuel Vadot * settings to the board device tree. Drive strengths tend to be assinged here
567c9ccf3a3SEmmanuel Vadot * but could conceivably be overwridden by board device trees.
568c9ccf3a3SEmmanuel Vadot */
569c9ccf3a3SEmmanuel Vadot
570c9ccf3a3SEmmanuel Vadot&pm8350c_gpios {
571b97ee269SEmmanuel Vadot	pmic_edp_bl_en: pmic-edp-bl-en-state {
572c9ccf3a3SEmmanuel Vadot		pins = "gpio7";
573c9ccf3a3SEmmanuel Vadot		function = "normal";
574c9ccf3a3SEmmanuel Vadot		bias-disable;
575c9ccf3a3SEmmanuel Vadot		qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
576c9ccf3a3SEmmanuel Vadot
577c9ccf3a3SEmmanuel Vadot		/* Force backlight to be disabled to match state at boot. */
578c9ccf3a3SEmmanuel Vadot		output-low;
579c9ccf3a3SEmmanuel Vadot	};
580c9ccf3a3SEmmanuel Vadot
581b97ee269SEmmanuel Vadot	pmic_edp_bl_pwm: pmic-edp-bl-pwm-state {
582c9ccf3a3SEmmanuel Vadot		pins = "gpio8";
583c9ccf3a3SEmmanuel Vadot		function = "func1";
584c9ccf3a3SEmmanuel Vadot		bias-disable;
585c9ccf3a3SEmmanuel Vadot		qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
586c9ccf3a3SEmmanuel Vadot		output-low;
587c9ccf3a3SEmmanuel Vadot		power-source = <0>;
588c9ccf3a3SEmmanuel Vadot	};
589c9ccf3a3SEmmanuel Vadot};
590c9ccf3a3SEmmanuel Vadot
591c9ccf3a3SEmmanuel Vadot&tlmm {
5928bab661aSEmmanuel Vadot	mos_bt_en: mos-bt-en-state {
593c9ccf3a3SEmmanuel Vadot		pins = "gpio85";
594c9ccf3a3SEmmanuel Vadot		function = "gpio";
595c9ccf3a3SEmmanuel Vadot		drive-strength = <2>;
596c9ccf3a3SEmmanuel Vadot		output-low;
597c9ccf3a3SEmmanuel Vadot	};
598c9ccf3a3SEmmanuel Vadot
599c9ccf3a3SEmmanuel Vadot	/* For mos_bt_uart */
6008bab661aSEmmanuel Vadot	qup_uart7_sleep_cts: qup-uart7-sleep-cts-state {
601c9ccf3a3SEmmanuel Vadot		pins = "gpio28";
602c9ccf3a3SEmmanuel Vadot		function = "gpio";
603c9ccf3a3SEmmanuel Vadot		/*
604d5b0e70fSEmmanuel Vadot		 * Configure a bias-bus-hold on CTS to lower power
605d5b0e70fSEmmanuel Vadot		 * usage when Bluetooth is turned off. Bus hold will
606d5b0e70fSEmmanuel Vadot		 * maintain a low power state regardless of whether
607d5b0e70fSEmmanuel Vadot		 * the Bluetooth module drives the pin in either
608d5b0e70fSEmmanuel Vadot		 * direction or leaves the pin fully unpowered.
609c9ccf3a3SEmmanuel Vadot		 */
610d5b0e70fSEmmanuel Vadot		bias-bus-hold;
611c9ccf3a3SEmmanuel Vadot	};
612c9ccf3a3SEmmanuel Vadot
613c9ccf3a3SEmmanuel Vadot	/* For mos_bt_uart */
6148bab661aSEmmanuel Vadot	qup_uart7_sleep_rts: qup-uart7-sleep-rts-state {
615c9ccf3a3SEmmanuel Vadot		pins = "gpio29";
616c9ccf3a3SEmmanuel Vadot		function = "gpio";
617c9ccf3a3SEmmanuel Vadot		/*
618c9ccf3a3SEmmanuel Vadot		 * Configure pull-down on RTS. As RTS is active low
619c9ccf3a3SEmmanuel Vadot		 * signal, pull it low to indicate the BT SoC that it
620c9ccf3a3SEmmanuel Vadot		 * can wakeup the system anytime from suspend state by
621c9ccf3a3SEmmanuel Vadot		 * pulling RX low (by sending wakeup bytes).
622c9ccf3a3SEmmanuel Vadot		 */
623c9ccf3a3SEmmanuel Vadot		bias-pull-down;
624c9ccf3a3SEmmanuel Vadot	};
625c9ccf3a3SEmmanuel Vadot
626c9ccf3a3SEmmanuel Vadot	/* For mos_bt_uart */
6278bab661aSEmmanuel Vadot	qup_uart7_sleep_rx: qup-uart7-sleep-rx-state {
628c9ccf3a3SEmmanuel Vadot		pins = "gpio31";
629c9ccf3a3SEmmanuel Vadot		function = "gpio";
630c9ccf3a3SEmmanuel Vadot		/*
631c9ccf3a3SEmmanuel Vadot		 * Configure a pull-up on RX. This is needed to avoid
632c9ccf3a3SEmmanuel Vadot		 * garbage data when the TX pin of the Bluetooth module
633c9ccf3a3SEmmanuel Vadot		 * is floating which may cause spurious wakeups.
634c9ccf3a3SEmmanuel Vadot		 */
635c9ccf3a3SEmmanuel Vadot		bias-pull-up;
636c9ccf3a3SEmmanuel Vadot	};
637c9ccf3a3SEmmanuel Vadot
638c9ccf3a3SEmmanuel Vadot	/* For mos_bt_uart */
6398bab661aSEmmanuel Vadot	qup_uart7_sleep_tx: qup-uart7-sleep-tx-state {
640c9ccf3a3SEmmanuel Vadot		pins = "gpio30";
641c9ccf3a3SEmmanuel Vadot		function = "gpio";
642c9ccf3a3SEmmanuel Vadot		/*
643c9ccf3a3SEmmanuel Vadot		 * Configure pull-up on TX when it isn't actively driven
644c9ccf3a3SEmmanuel Vadot		 * to prevent BT SoC from receiving garbage during sleep.
645c9ccf3a3SEmmanuel Vadot		 */
646c9ccf3a3SEmmanuel Vadot		bias-pull-up;
647c9ccf3a3SEmmanuel Vadot	};
648c9ccf3a3SEmmanuel Vadot
6498bab661aSEmmanuel Vadot	ts_int_conn: ts-int-conn-state {
650c9ccf3a3SEmmanuel Vadot		pins = "gpio55";
651c9ccf3a3SEmmanuel Vadot		function = "gpio";
652c9ccf3a3SEmmanuel Vadot		bias-pull-up;
653c9ccf3a3SEmmanuel Vadot	};
654c9ccf3a3SEmmanuel Vadot
6558bab661aSEmmanuel Vadot	ts_rst_conn: ts-rst-conn-state {
656c9ccf3a3SEmmanuel Vadot		pins = "gpio54";
657c9ccf3a3SEmmanuel Vadot		function = "gpio";
658c9ccf3a3SEmmanuel Vadot		drive-strength = <2>;
659c9ccf3a3SEmmanuel Vadot	};
6607ef62cebSEmmanuel Vadot
6618bab661aSEmmanuel Vadot	us_euro_hs_sel: us-euro-hs-sel-state {
6627ef62cebSEmmanuel Vadot		pins = "gpio81";
6637ef62cebSEmmanuel Vadot		function = "gpio";
6647ef62cebSEmmanuel Vadot		bias-pull-down;
6657ef62cebSEmmanuel Vadot		drive-strength = <2>;
6667ef62cebSEmmanuel Vadot	};
6677ef62cebSEmmanuel Vadot
6688bab661aSEmmanuel Vadot	wcd_reset_n: wcd-reset-n-state {
6697ef62cebSEmmanuel Vadot		pins = "gpio83";
6707ef62cebSEmmanuel Vadot		function = "gpio";
6717ef62cebSEmmanuel Vadot		drive-strength = <8>;
6727ef62cebSEmmanuel Vadot	};
6737ef62cebSEmmanuel Vadot
6748bab661aSEmmanuel Vadot	wcd_reset_n_sleep: wcd-reset-n-sleep-state {
6757ef62cebSEmmanuel Vadot		pins = "gpio83";
6767ef62cebSEmmanuel Vadot		function = "gpio";
6777ef62cebSEmmanuel Vadot		drive-strength = <8>;
6787ef62cebSEmmanuel Vadot		bias-disable;
6797ef62cebSEmmanuel Vadot	};
680c9ccf3a3SEmmanuel Vadot};
681