xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/sc7280-qcard.dtsi (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
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
40*8bab661aSEmmanuel 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
90c9ccf3a3SEmmanuel Vadot	pm7325-regulators {
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
191c9ccf3a3SEmmanuel Vadot	pm8350c-regulators {
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
233c9ccf3a3SEmmanuel Vadot		vreg_l3c_3p0: ldo3 {
234c9ccf3a3SEmmanuel Vadot			regulator-min-microvolt = <2800000>;
235c9ccf3a3SEmmanuel Vadot			regulator-max-microvolt = <3540000>;
236c9ccf3a3SEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
237c9ccf3a3SEmmanuel Vadot		};
238c9ccf3a3SEmmanuel Vadot
239c9ccf3a3SEmmanuel Vadot		vddpx_5:
240c9ccf3a3SEmmanuel Vadot		vreg_l4c_1p8_3p0: ldo4 {
241c9ccf3a3SEmmanuel Vadot			regulator-min-microvolt = <1620000>;
242c9ccf3a3SEmmanuel Vadot			regulator-max-microvolt = <3300000>;
243c9ccf3a3SEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
244c9ccf3a3SEmmanuel Vadot		};
245c9ccf3a3SEmmanuel Vadot
246c9ccf3a3SEmmanuel Vadot		vddpx_6:
247c9ccf3a3SEmmanuel Vadot		vreg_l5c_1p8_3p0: ldo5 {
248c9ccf3a3SEmmanuel Vadot			regulator-min-microvolt = <1620000>;
249c9ccf3a3SEmmanuel Vadot			regulator-max-microvolt = <3300000>;
250c9ccf3a3SEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
251c9ccf3a3SEmmanuel Vadot		};
252c9ccf3a3SEmmanuel Vadot
253c9ccf3a3SEmmanuel Vadot		vddpx_2:
254c9ccf3a3SEmmanuel Vadot		vreg_l6c_2p96: ldo6 {
255c9ccf3a3SEmmanuel Vadot			regulator-min-microvolt = <1800000>;
256c9ccf3a3SEmmanuel Vadot			regulator-max-microvolt = <2950000>;
257c9ccf3a3SEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
258c9ccf3a3SEmmanuel Vadot		};
259c9ccf3a3SEmmanuel Vadot
260c9ccf3a3SEmmanuel Vadot		vreg_l7c_3p0: ldo7 {
261c9ccf3a3SEmmanuel Vadot			regulator-min-microvolt = <3000000>;
262c9ccf3a3SEmmanuel Vadot			regulator-max-microvolt = <3544000>;
263c9ccf3a3SEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
264c9ccf3a3SEmmanuel Vadot		};
265c9ccf3a3SEmmanuel Vadot
266c9ccf3a3SEmmanuel Vadot		vreg_l8c_1p8: ldo8 {
267c9ccf3a3SEmmanuel Vadot			regulator-min-microvolt = <1620000>;
268c9ccf3a3SEmmanuel Vadot			regulator-max-microvolt = <2000000>;
269c9ccf3a3SEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
270c9ccf3a3SEmmanuel Vadot		};
271c9ccf3a3SEmmanuel Vadot
272c9ccf3a3SEmmanuel Vadot		vreg_l9c_2p96: ldo9 {
273c9ccf3a3SEmmanuel Vadot			regulator-min-microvolt = <2960000>;
274c9ccf3a3SEmmanuel Vadot			regulator-max-microvolt = <2960000>;
275c9ccf3a3SEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
276c9ccf3a3SEmmanuel Vadot		};
277c9ccf3a3SEmmanuel Vadot
278c9ccf3a3SEmmanuel Vadot		vdd_a_csi_0_1_0p9:
279c9ccf3a3SEmmanuel Vadot		vdd_a_csi_2_3_0p9:
280c9ccf3a3SEmmanuel Vadot		vdd_a_csi_4_0p9:
281c9ccf3a3SEmmanuel Vadot		vdd_a_dsi_0_0p9:
282c9ccf3a3SEmmanuel Vadot		vdd_a_dsi_0_pll_0p9:
283c9ccf3a3SEmmanuel Vadot		vdd_a_edp_0_0p9:
284c9ccf3a3SEmmanuel Vadot		vdd_a_gnss_0p9:
285c9ccf3a3SEmmanuel Vadot		vdd_a_pcie_0_core:
286c9ccf3a3SEmmanuel Vadot		vdd_a_pcie_1_core:
287c9ccf3a3SEmmanuel Vadot		vdd_a_qlink_0_0p9:
288c9ccf3a3SEmmanuel Vadot		vdd_a_qlink_0_0p9_ck:
289c9ccf3a3SEmmanuel Vadot		vdd_a_qlink_1_0p9:
290c9ccf3a3SEmmanuel Vadot		vdd_a_qlink_1_0p9_ck:
291c9ccf3a3SEmmanuel Vadot		vdd_a_qrefs_0p875_0:
292c9ccf3a3SEmmanuel Vadot		vdd_a_qrefs_0p875_1:
293c9ccf3a3SEmmanuel Vadot		vdd_a_qrefs_0p875_2:
294c9ccf3a3SEmmanuel Vadot		vdd_a_qrefs_0p875_3:
295c9ccf3a3SEmmanuel Vadot		vdd_a_qrefs_0p875_4_5:
296c9ccf3a3SEmmanuel Vadot		vdd_a_qrefs_0p875_6:
297c9ccf3a3SEmmanuel Vadot		vdd_a_qrefs_0p875_7:
298c9ccf3a3SEmmanuel Vadot		vdd_a_qrefs_0p875_8:
299c9ccf3a3SEmmanuel Vadot		vdd_a_qrefs_0p875_9:
300c9ccf3a3SEmmanuel Vadot		vdd_a_ufs_0_core:
301c9ccf3a3SEmmanuel Vadot		vdd_a_usbhs_core:
302c9ccf3a3SEmmanuel Vadot		vreg_l10c_0p88: ldo10 {
303c9ccf3a3SEmmanuel Vadot			regulator-min-microvolt = <720000>;
304c9ccf3a3SEmmanuel Vadot			regulator-max-microvolt = <1050000>;
305c9ccf3a3SEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
306c9ccf3a3SEmmanuel Vadot		};
307c9ccf3a3SEmmanuel Vadot
308c9ccf3a3SEmmanuel Vadot		vreg_l11c_2p8: ldo11 {
309c9ccf3a3SEmmanuel Vadot			regulator-min-microvolt = <2800000>;
310c9ccf3a3SEmmanuel Vadot			regulator-max-microvolt = <3544000>;
311c9ccf3a3SEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
312c9ccf3a3SEmmanuel Vadot		};
313c9ccf3a3SEmmanuel Vadot
314c9ccf3a3SEmmanuel Vadot		vreg_l12c_1p8: ldo12 {
315c9ccf3a3SEmmanuel Vadot			regulator-min-microvolt = <1650000>;
316c9ccf3a3SEmmanuel Vadot			regulator-max-microvolt = <2000000>;
317c9ccf3a3SEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
318c9ccf3a3SEmmanuel Vadot		};
319c9ccf3a3SEmmanuel Vadot
320c9ccf3a3SEmmanuel Vadot		vreg_l13c_3p0: ldo13 {
321c9ccf3a3SEmmanuel Vadot			regulator-min-microvolt = <2700000>;
322c9ccf3a3SEmmanuel Vadot			regulator-max-microvolt = <3544000>;
323c9ccf3a3SEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
324c9ccf3a3SEmmanuel Vadot		};
325c9ccf3a3SEmmanuel Vadot
326c9ccf3a3SEmmanuel Vadot		vdd_flash:
327c9ccf3a3SEmmanuel Vadot		vdd_iris_rgb:
328c9ccf3a3SEmmanuel Vadot		vdd_mic_bias:
329c9ccf3a3SEmmanuel Vadot		vreg_bob: bob {
330c9ccf3a3SEmmanuel Vadot			regulator-min-microvolt = <3008000>;
331c9ccf3a3SEmmanuel Vadot			regulator-max-microvolt = <3960000>;
332c9ccf3a3SEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>;
333c9ccf3a3SEmmanuel Vadot		};
334c9ccf3a3SEmmanuel Vadot	};
335c9ccf3a3SEmmanuel Vadot};
336c9ccf3a3SEmmanuel Vadot
337c9ccf3a3SEmmanuel Vadot/* ADDITIONS TO NODES DEFINED IN PARENT DEVICE TREE FILES */
338c9ccf3a3SEmmanuel Vadot
339c9ccf3a3SEmmanuel Vadot&ipa {
340c9ccf3a3SEmmanuel Vadot	status = "okay";
341c9ccf3a3SEmmanuel Vadot	modem-init;
342c9ccf3a3SEmmanuel Vadot};
343c9ccf3a3SEmmanuel Vadot
3447ef62cebSEmmanuel Vadot&lpass_va_macro {
3457ef62cebSEmmanuel Vadot	vdd-micb-supply = <&vreg_bob>;
3467ef62cebSEmmanuel Vadot};
3477ef62cebSEmmanuel Vadot
348d5b0e70fSEmmanuel Vadot/* NOTE: Not all Qcards have eDP connector stuffed */
349d5b0e70fSEmmanuel Vadot&mdss_edp {
350d5b0e70fSEmmanuel Vadot	aux-bus {
351d5b0e70fSEmmanuel Vadot		edp_panel: panel {
352d5b0e70fSEmmanuel Vadot			compatible = "edp-panel";
353d5b0e70fSEmmanuel Vadot
354d5b0e70fSEmmanuel Vadot			backlight = <&pm8350c_pwm_backlight>;
355d5b0e70fSEmmanuel Vadot
356d5b0e70fSEmmanuel Vadot			ports {
357d5b0e70fSEmmanuel Vadot				#address-cells = <1>;
358d5b0e70fSEmmanuel Vadot				#size-cells = <0>;
359d5b0e70fSEmmanuel Vadot				port@0 {
360d5b0e70fSEmmanuel Vadot					reg = <0>;
361d5b0e70fSEmmanuel Vadot					edp_panel_in: endpoint {
362d5b0e70fSEmmanuel Vadot						remote-endpoint = <&mdss_edp_out>;
363d5b0e70fSEmmanuel Vadot					};
364d5b0e70fSEmmanuel Vadot				};
365d5b0e70fSEmmanuel Vadot			};
366d5b0e70fSEmmanuel Vadot		};
367d5b0e70fSEmmanuel Vadot	};
368d5b0e70fSEmmanuel Vadot};
369d5b0e70fSEmmanuel Vadot
370d5b0e70fSEmmanuel Vadot&mdss_edp_out {
371d5b0e70fSEmmanuel Vadot	remote-endpoint = <&edp_panel_in>;
372d5b0e70fSEmmanuel Vadot};
373d5b0e70fSEmmanuel Vadot
374d5b0e70fSEmmanuel Vadot&mdss_edp_phy {
375d5b0e70fSEmmanuel Vadot	vdda-pll-supply = <&vdd_a_edp_0_0p9>;
376d5b0e70fSEmmanuel Vadot	vdda-phy-supply = <&vdd_a_edp_0_1p2>;
377d5b0e70fSEmmanuel Vadot};
378d5b0e70fSEmmanuel Vadot
379c9ccf3a3SEmmanuel Vadot&pcie1_phy {
380c9ccf3a3SEmmanuel Vadot	vdda-phy-supply = <&vreg_l10c_0p88>;
381c9ccf3a3SEmmanuel Vadot	vdda-pll-supply = <&vreg_l6b_1p2>;
382c9ccf3a3SEmmanuel Vadot};
383c9ccf3a3SEmmanuel Vadot
384d5b0e70fSEmmanuel Vadot&pm8350c_pwm {
385d5b0e70fSEmmanuel Vadot	pinctrl-names = "default";
386d5b0e70fSEmmanuel Vadot	pinctrl-0 = <&pmic_edp_bl_pwm>;
387d5b0e70fSEmmanuel Vadot};
388d5b0e70fSEmmanuel Vadot
389c9ccf3a3SEmmanuel Vadot&pmk8350_vadc {
390c9ccf3a3SEmmanuel Vadot	pmk8350-die-temp@3 {
391c9ccf3a3SEmmanuel Vadot		reg = <PMK8350_ADC7_DIE_TEMP>;
392c9ccf3a3SEmmanuel Vadot		label = "pmk8350_die_temp";
393c9ccf3a3SEmmanuel Vadot		qcom,pre-scaling = <1 1>;
394c9ccf3a3SEmmanuel Vadot	};
395c9ccf3a3SEmmanuel Vadot
396c9ccf3a3SEmmanuel Vadot	pmr735a-die-temp@403 {
397c9ccf3a3SEmmanuel Vadot		reg = <PMR735A_ADC7_DIE_TEMP>;
398c9ccf3a3SEmmanuel Vadot		label = "pmr735a_die_temp";
399c9ccf3a3SEmmanuel Vadot		qcom,pre-scaling = <1 1>;
400c9ccf3a3SEmmanuel Vadot	};
401c9ccf3a3SEmmanuel Vadot};
402c9ccf3a3SEmmanuel Vadot
403c9ccf3a3SEmmanuel Vadot&qfprom {
404c9ccf3a3SEmmanuel Vadot	vcc-supply = <&vdd_qfprom>;
405c9ccf3a3SEmmanuel Vadot};
406c9ccf3a3SEmmanuel Vadot
407c9ccf3a3SEmmanuel Vadot/* For eMMC. NOTE: not all Qcards have eMMC stuffed */
408c9ccf3a3SEmmanuel Vadot&sdhc_1 {
409c9ccf3a3SEmmanuel Vadot	vmmc-supply = <&vreg_l7b_2p5>;
410c9ccf3a3SEmmanuel Vadot	vqmmc-supply = <&vreg_l19b_1p8>;
411c9ccf3a3SEmmanuel Vadot
412c9ccf3a3SEmmanuel Vadot	non-removable;
413c9ccf3a3SEmmanuel Vadot	no-sd;
414c9ccf3a3SEmmanuel Vadot	no-sdio;
415c9ccf3a3SEmmanuel Vadot};
416c9ccf3a3SEmmanuel Vadot
4177ef62cebSEmmanuel Vadot&swr0 {
4187ef62cebSEmmanuel Vadot	wcd_rx: codec@0,4 {
4197ef62cebSEmmanuel Vadot		compatible = "sdw20217010d00";
4207ef62cebSEmmanuel Vadot		reg = <0 4>;
4217ef62cebSEmmanuel Vadot		#sound-dai-cells = <1>;
4227ef62cebSEmmanuel Vadot		qcom,rx-port-mapping = <1 2 3 4 5>;
4237ef62cebSEmmanuel Vadot	};
4247ef62cebSEmmanuel Vadot};
4257ef62cebSEmmanuel Vadot
4267ef62cebSEmmanuel Vadot&swr1 {
4277ef62cebSEmmanuel Vadot	wcd_tx: codec@0,3 {
4287ef62cebSEmmanuel Vadot		compatible = "sdw20217010d00";
4297ef62cebSEmmanuel Vadot		reg = <0 3>;
4307ef62cebSEmmanuel Vadot		#sound-dai-cells = <1>;
4317ef62cebSEmmanuel Vadot		qcom,tx-port-mapping = <1 2 3 4>;
4327ef62cebSEmmanuel Vadot	};
4337ef62cebSEmmanuel Vadot};
4347ef62cebSEmmanuel Vadot
435c9ccf3a3SEmmanuel Vadotuart_dbg: &uart5 {
436c9ccf3a3SEmmanuel Vadot	compatible = "qcom,geni-debug-uart";
437c9ccf3a3SEmmanuel Vadot	status = "okay";
438c9ccf3a3SEmmanuel Vadot};
439c9ccf3a3SEmmanuel Vadot
440c9ccf3a3SEmmanuel Vadotmos_bt_uart: &uart7 {
441c9ccf3a3SEmmanuel Vadot	status = "okay";
442c9ccf3a3SEmmanuel Vadot
443c9ccf3a3SEmmanuel Vadot	/delete-property/ interrupts;
444c9ccf3a3SEmmanuel Vadot	interrupts-extended = <&intc GIC_SPI 608 IRQ_TYPE_LEVEL_HIGH>,
445c9ccf3a3SEmmanuel Vadot				<&tlmm 31 IRQ_TYPE_EDGE_FALLING>;
446c9ccf3a3SEmmanuel Vadot	pinctrl-names = "default", "sleep";
447c9ccf3a3SEmmanuel Vadot	pinctrl-1 = <&qup_uart7_sleep_cts>, <&qup_uart7_sleep_rts>, <&qup_uart7_sleep_tx>, <&qup_uart7_sleep_rx>;
448c9ccf3a3SEmmanuel Vadot
449c9ccf3a3SEmmanuel Vadot	bluetooth: bluetooth {
450c9ccf3a3SEmmanuel Vadot		compatible = "qcom,wcn6750-bt";
451c9ccf3a3SEmmanuel Vadot		pinctrl-names = "default";
452c9ccf3a3SEmmanuel Vadot		pinctrl-0 = <&mos_bt_en>;
453c9ccf3a3SEmmanuel Vadot		enable-gpios = <&tlmm 85 GPIO_ACTIVE_HIGH>;
454c9ccf3a3SEmmanuel Vadot		swctrl-gpios = <&tlmm 86 GPIO_ACTIVE_HIGH>;
455c9ccf3a3SEmmanuel Vadot		vddaon-supply = <&vreg_s7b_0p952>;
456c9ccf3a3SEmmanuel Vadot		vddbtcxmx-supply = <&vreg_s7b_0p952>;
457c9ccf3a3SEmmanuel Vadot		vddrfacmn-supply = <&vreg_s7b_0p952>;
458c9ccf3a3SEmmanuel Vadot		vddrfa0p8-supply = <&vreg_s7b_0p952>;
459c9ccf3a3SEmmanuel Vadot		vddrfa1p7-supply = <&vdd19_pmu_rfa_i>;
460c9ccf3a3SEmmanuel Vadot		vddrfa1p2-supply = <&vdd13_pmu_rfa_i>;
461c9ccf3a3SEmmanuel Vadot		vddrfa2p2-supply = <&vreg_s1c_2p2>;
462c9ccf3a3SEmmanuel Vadot		vddasd-supply = <&vreg_l11c_2p8>;
463c9ccf3a3SEmmanuel Vadot		vddio-supply = <&vreg_l18b_1p8>;
464c9ccf3a3SEmmanuel Vadot		max-speed = <3200000>;
465c9ccf3a3SEmmanuel Vadot	};
466c9ccf3a3SEmmanuel Vadot};
467c9ccf3a3SEmmanuel Vadot
468c9ccf3a3SEmmanuel Vadot&usb_1_hsphy {
469c9ccf3a3SEmmanuel Vadot	vdda-pll-supply = <&vdd_a_usbhs_core>;
470c9ccf3a3SEmmanuel Vadot	vdda33-supply = <&vdd_a_usbhs_3p1>;
471c9ccf3a3SEmmanuel Vadot	vdda18-supply = <&vdd_a_usbhs_1p8>;
472c9ccf3a3SEmmanuel Vadot};
473c9ccf3a3SEmmanuel Vadot
474c9ccf3a3SEmmanuel Vadot&usb_1_qmpphy {
475c9ccf3a3SEmmanuel Vadot	vdda-phy-supply = <&vdd_a_usbssdp_0_1p2>;
476c9ccf3a3SEmmanuel Vadot	vdda-pll-supply = <&vdd_a_usbssdp_0_core>;
477c9ccf3a3SEmmanuel Vadot};
478c9ccf3a3SEmmanuel Vadot
479c9ccf3a3SEmmanuel Vadot&usb_2_hsphy {
480c9ccf3a3SEmmanuel Vadot	vdda-pll-supply = <&vdd_a_usbhs_core>;
481c9ccf3a3SEmmanuel Vadot	vdda33-supply = <&vdd_a_usbhs_3p1>;
482c9ccf3a3SEmmanuel Vadot	vdda18-supply = <&vdd_a_usbhs_1p8>;
483c9ccf3a3SEmmanuel Vadot};
484c9ccf3a3SEmmanuel Vadot
485c9ccf3a3SEmmanuel Vadot/*
486c9ccf3a3SEmmanuel Vadot * PINCTRL - ADDITIONS TO NODES IN PARENT DEVICE TREE FILES
487c9ccf3a3SEmmanuel Vadot *
488c9ccf3a3SEmmanuel Vadot * NOTE: In general if pins leave the Qcard then the pinctrl goes in the
489c9ccf3a3SEmmanuel Vadot * baseboard or board device tree, not here.
490c9ccf3a3SEmmanuel Vadot */
491c9ccf3a3SEmmanuel Vadot
492d5b0e70fSEmmanuel Vadot/* No external pull for eDP HPD, so set the internal one. */
493d5b0e70fSEmmanuel Vadot&edp_hot_plug_det {
494d5b0e70fSEmmanuel Vadot	bias-pull-down;
495d5b0e70fSEmmanuel Vadot};
496d5b0e70fSEmmanuel Vadot
497c9ccf3a3SEmmanuel Vadot/*
498c9ccf3a3SEmmanuel Vadot * For ts_i2c
499c9ccf3a3SEmmanuel Vadot *
500c9ccf3a3SEmmanuel Vadot * Technically this i2c bus actually leaves the Qcard, but it leaves directly
501c9ccf3a3SEmmanuel Vadot * via the eDP connector (it doesn't hit the baseboard). The external pulls
502c9ccf3a3SEmmanuel Vadot * are on Qcard.
503c9ccf3a3SEmmanuel Vadot */
504c9ccf3a3SEmmanuel Vadot&qup_i2c13_data_clk {
505c9ccf3a3SEmmanuel Vadot	/* Has external pull */
506c9ccf3a3SEmmanuel Vadot	bias-disable;
507c9ccf3a3SEmmanuel Vadot	drive-strength = <2>;
508c9ccf3a3SEmmanuel Vadot};
509c9ccf3a3SEmmanuel Vadot
510c9ccf3a3SEmmanuel Vadot/* For mos_bt_uart */
511c9ccf3a3SEmmanuel Vadot&qup_uart7_cts {
512d5b0e70fSEmmanuel Vadot	/*
513d5b0e70fSEmmanuel Vadot	 * Configure a bias-bus-hold on CTS to lower power
514d5b0e70fSEmmanuel Vadot	 * usage when Bluetooth is turned off. Bus hold will
515d5b0e70fSEmmanuel Vadot	 * maintain a low power state regardless of whether
516d5b0e70fSEmmanuel Vadot	 * the Bluetooth module drives the pin in either
517d5b0e70fSEmmanuel Vadot	 * direction or leaves the pin fully unpowered.
518d5b0e70fSEmmanuel Vadot	 */
519d5b0e70fSEmmanuel Vadot	bias-bus-hold;
520c9ccf3a3SEmmanuel Vadot};
521c9ccf3a3SEmmanuel Vadot
522c9ccf3a3SEmmanuel Vadot/* For mos_bt_uart */
523c9ccf3a3SEmmanuel Vadot&qup_uart7_rts {
524c9ccf3a3SEmmanuel Vadot	/* We'll drive RTS, so no pull */
525c9ccf3a3SEmmanuel Vadot	bias-disable;
526c9ccf3a3SEmmanuel Vadot	drive-strength = <2>;
527c9ccf3a3SEmmanuel Vadot};
528c9ccf3a3SEmmanuel Vadot
529c9ccf3a3SEmmanuel Vadot/* For mos_bt_uart */
530c9ccf3a3SEmmanuel Vadot&qup_uart7_tx {
531c9ccf3a3SEmmanuel Vadot	/* We'll drive TX, so no pull */
532c9ccf3a3SEmmanuel Vadot	bias-disable;
533c9ccf3a3SEmmanuel Vadot	drive-strength = <2>;
534c9ccf3a3SEmmanuel Vadot};
535c9ccf3a3SEmmanuel Vadot
536c9ccf3a3SEmmanuel Vadot/* For mos_bt_uart */
537c9ccf3a3SEmmanuel Vadot&qup_uart7_rx {
538c9ccf3a3SEmmanuel Vadot	/*
539c9ccf3a3SEmmanuel Vadot	 * Configure a pull-up on RX. This is needed to avoid
540c9ccf3a3SEmmanuel Vadot	 * garbage data when the TX pin of the Bluetooth module is
541c9ccf3a3SEmmanuel Vadot	 * in tri-state (module powered off or not driving the
542c9ccf3a3SEmmanuel Vadot	 * signal yet).
543c9ccf3a3SEmmanuel Vadot	 */
544c9ccf3a3SEmmanuel Vadot	bias-pull-up;
545c9ccf3a3SEmmanuel Vadot};
546c9ccf3a3SEmmanuel Vadot
547c9ccf3a3SEmmanuel Vadot/* eMMC, if stuffed, is straight on the Qcard */
548c9ccf3a3SEmmanuel Vadot&sdc1_clk {
549c9ccf3a3SEmmanuel Vadot	bias-disable;
550c9ccf3a3SEmmanuel Vadot	drive-strength = <16>;
551c9ccf3a3SEmmanuel Vadot};
552c9ccf3a3SEmmanuel Vadot
553c9ccf3a3SEmmanuel Vadot&sdc1_cmd {
554c9ccf3a3SEmmanuel Vadot	bias-pull-up;
555c9ccf3a3SEmmanuel Vadot	drive-strength = <10>;
556c9ccf3a3SEmmanuel Vadot};
557c9ccf3a3SEmmanuel Vadot
558c9ccf3a3SEmmanuel Vadot&sdc1_data {
559c9ccf3a3SEmmanuel Vadot	bias-pull-up;
560c9ccf3a3SEmmanuel Vadot	drive-strength = <10>;
561c9ccf3a3SEmmanuel Vadot};
562c9ccf3a3SEmmanuel Vadot
563c9ccf3a3SEmmanuel Vadot&sdc1_rclk {
564c9ccf3a3SEmmanuel Vadot	bias-pull-down;
565c9ccf3a3SEmmanuel Vadot};
566c9ccf3a3SEmmanuel Vadot
567c9ccf3a3SEmmanuel Vadot/*
568c9ccf3a3SEmmanuel Vadot * PINCTRL - QCARD
569c9ccf3a3SEmmanuel Vadot *
570c9ccf3a3SEmmanuel Vadot * This has entries that are defined by Qcard even if they go to the main
571c9ccf3a3SEmmanuel Vadot * board. In cases where the pulls may be board dependent we defer those
572c9ccf3a3SEmmanuel Vadot * settings to the board device tree. Drive strengths tend to be assinged here
573c9ccf3a3SEmmanuel Vadot * but could conceivably be overwridden by board device trees.
574c9ccf3a3SEmmanuel Vadot */
575c9ccf3a3SEmmanuel Vadot
576c9ccf3a3SEmmanuel Vadot&pm8350c_gpios {
577b97ee269SEmmanuel Vadot	pmic_edp_bl_en: pmic-edp-bl-en-state {
578c9ccf3a3SEmmanuel Vadot		pins = "gpio7";
579c9ccf3a3SEmmanuel Vadot		function = "normal";
580c9ccf3a3SEmmanuel Vadot		bias-disable;
581c9ccf3a3SEmmanuel Vadot		qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
582c9ccf3a3SEmmanuel Vadot
583c9ccf3a3SEmmanuel Vadot		/* Force backlight to be disabled to match state at boot. */
584c9ccf3a3SEmmanuel Vadot		output-low;
585c9ccf3a3SEmmanuel Vadot	};
586c9ccf3a3SEmmanuel Vadot
587b97ee269SEmmanuel Vadot	pmic_edp_bl_pwm: pmic-edp-bl-pwm-state {
588c9ccf3a3SEmmanuel Vadot		pins = "gpio8";
589c9ccf3a3SEmmanuel Vadot		function = "func1";
590c9ccf3a3SEmmanuel Vadot		bias-disable;
591c9ccf3a3SEmmanuel Vadot		qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
592c9ccf3a3SEmmanuel Vadot		output-low;
593c9ccf3a3SEmmanuel Vadot		power-source = <0>;
594c9ccf3a3SEmmanuel Vadot	};
595c9ccf3a3SEmmanuel Vadot};
596c9ccf3a3SEmmanuel Vadot
597c9ccf3a3SEmmanuel Vadot&tlmm {
598*8bab661aSEmmanuel Vadot	mos_bt_en: mos-bt-en-state {
599c9ccf3a3SEmmanuel Vadot		pins = "gpio85";
600c9ccf3a3SEmmanuel Vadot		function = "gpio";
601c9ccf3a3SEmmanuel Vadot		drive-strength = <2>;
602c9ccf3a3SEmmanuel Vadot		output-low;
603c9ccf3a3SEmmanuel Vadot	};
604c9ccf3a3SEmmanuel Vadot
605c9ccf3a3SEmmanuel Vadot	/* For mos_bt_uart */
606*8bab661aSEmmanuel Vadot	qup_uart7_sleep_cts: qup-uart7-sleep-cts-state {
607c9ccf3a3SEmmanuel Vadot		pins = "gpio28";
608c9ccf3a3SEmmanuel Vadot		function = "gpio";
609c9ccf3a3SEmmanuel Vadot		/*
610d5b0e70fSEmmanuel Vadot		 * Configure a bias-bus-hold on CTS to lower power
611d5b0e70fSEmmanuel Vadot		 * usage when Bluetooth is turned off. Bus hold will
612d5b0e70fSEmmanuel Vadot		 * maintain a low power state regardless of whether
613d5b0e70fSEmmanuel Vadot		 * the Bluetooth module drives the pin in either
614d5b0e70fSEmmanuel Vadot		 * direction or leaves the pin fully unpowered.
615c9ccf3a3SEmmanuel Vadot		 */
616d5b0e70fSEmmanuel Vadot		bias-bus-hold;
617c9ccf3a3SEmmanuel Vadot	};
618c9ccf3a3SEmmanuel Vadot
619c9ccf3a3SEmmanuel Vadot	/* For mos_bt_uart */
620*8bab661aSEmmanuel Vadot	qup_uart7_sleep_rts: qup-uart7-sleep-rts-state {
621c9ccf3a3SEmmanuel Vadot		pins = "gpio29";
622c9ccf3a3SEmmanuel Vadot		function = "gpio";
623c9ccf3a3SEmmanuel Vadot		/*
624c9ccf3a3SEmmanuel Vadot		 * Configure pull-down on RTS. As RTS is active low
625c9ccf3a3SEmmanuel Vadot		 * signal, pull it low to indicate the BT SoC that it
626c9ccf3a3SEmmanuel Vadot		 * can wakeup the system anytime from suspend state by
627c9ccf3a3SEmmanuel Vadot		 * pulling RX low (by sending wakeup bytes).
628c9ccf3a3SEmmanuel Vadot		 */
629c9ccf3a3SEmmanuel Vadot		bias-pull-down;
630c9ccf3a3SEmmanuel Vadot	};
631c9ccf3a3SEmmanuel Vadot
632c9ccf3a3SEmmanuel Vadot	/* For mos_bt_uart */
633*8bab661aSEmmanuel Vadot	qup_uart7_sleep_rx: qup-uart7-sleep-rx-state {
634c9ccf3a3SEmmanuel Vadot		pins = "gpio31";
635c9ccf3a3SEmmanuel Vadot		function = "gpio";
636c9ccf3a3SEmmanuel Vadot		/*
637c9ccf3a3SEmmanuel Vadot		 * Configure a pull-up on RX. This is needed to avoid
638c9ccf3a3SEmmanuel Vadot		 * garbage data when the TX pin of the Bluetooth module
639c9ccf3a3SEmmanuel Vadot		 * is floating which may cause spurious wakeups.
640c9ccf3a3SEmmanuel Vadot		 */
641c9ccf3a3SEmmanuel Vadot		bias-pull-up;
642c9ccf3a3SEmmanuel Vadot	};
643c9ccf3a3SEmmanuel Vadot
644c9ccf3a3SEmmanuel Vadot	/* For mos_bt_uart */
645*8bab661aSEmmanuel Vadot	qup_uart7_sleep_tx: qup-uart7-sleep-tx-state {
646c9ccf3a3SEmmanuel Vadot		pins = "gpio30";
647c9ccf3a3SEmmanuel Vadot		function = "gpio";
648c9ccf3a3SEmmanuel Vadot		/*
649c9ccf3a3SEmmanuel Vadot		 * Configure pull-up on TX when it isn't actively driven
650c9ccf3a3SEmmanuel Vadot		 * to prevent BT SoC from receiving garbage during sleep.
651c9ccf3a3SEmmanuel Vadot		 */
652c9ccf3a3SEmmanuel Vadot		bias-pull-up;
653c9ccf3a3SEmmanuel Vadot	};
654c9ccf3a3SEmmanuel Vadot
655*8bab661aSEmmanuel Vadot	ts_int_conn: ts-int-conn-state {
656c9ccf3a3SEmmanuel Vadot		pins = "gpio55";
657c9ccf3a3SEmmanuel Vadot		function = "gpio";
658c9ccf3a3SEmmanuel Vadot		bias-pull-up;
659c9ccf3a3SEmmanuel Vadot	};
660c9ccf3a3SEmmanuel Vadot
661*8bab661aSEmmanuel Vadot	ts_rst_conn: ts-rst-conn-state {
662c9ccf3a3SEmmanuel Vadot		pins = "gpio54";
663c9ccf3a3SEmmanuel Vadot		function = "gpio";
664c9ccf3a3SEmmanuel Vadot		drive-strength = <2>;
665c9ccf3a3SEmmanuel Vadot	};
6667ef62cebSEmmanuel Vadot
667*8bab661aSEmmanuel Vadot	us_euro_hs_sel: us-euro-hs-sel-state {
6687ef62cebSEmmanuel Vadot		pins = "gpio81";
6697ef62cebSEmmanuel Vadot		function = "gpio";
6707ef62cebSEmmanuel Vadot		bias-pull-down;
6717ef62cebSEmmanuel Vadot		drive-strength = <2>;
6727ef62cebSEmmanuel Vadot	};
6737ef62cebSEmmanuel Vadot
674*8bab661aSEmmanuel Vadot	wcd_reset_n: wcd-reset-n-state {
6757ef62cebSEmmanuel Vadot		pins = "gpio83";
6767ef62cebSEmmanuel Vadot		function = "gpio";
6777ef62cebSEmmanuel Vadot		drive-strength = <8>;
6787ef62cebSEmmanuel Vadot	};
6797ef62cebSEmmanuel Vadot
680*8bab661aSEmmanuel Vadot	wcd_reset_n_sleep: wcd-reset-n-sleep-state {
6817ef62cebSEmmanuel Vadot		pins = "gpio83";
6827ef62cebSEmmanuel Vadot		function = "gpio";
6837ef62cebSEmmanuel Vadot		drive-strength = <8>;
6847ef62cebSEmmanuel Vadot		bias-disable;
6857ef62cebSEmmanuel Vadot	};
686c9ccf3a3SEmmanuel Vadot};
687