160378f1aSVenkata Narendra Kumar Gutta// SPDX-License-Identifier: BSD-3-Clause
260378f1aSVenkata Narendra Kumar Gutta/*
360378f1aSVenkata Narendra Kumar Gutta * Copyright (c) 2020, The Linux Foundation. All rights reserved.
460378f1aSVenkata Narendra Kumar Gutta */
560378f1aSVenkata Narendra Kumar Gutta
660378f1aSVenkata Narendra Kumar Gutta/dts-v1/;
760378f1aSVenkata Narendra Kumar Gutta
8ec13d5c2SBryan O'Donoghue#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
95a263cf6SSrinivas Kandagatla#include <dt-bindings/sound/qcom,q6afe.h>
105a263cf6SSrinivas Kandagatla#include <dt-bindings/sound/qcom,q6asm.h>
115a263cf6SSrinivas Kandagatla#include <dt-bindings/gpio/gpio.h>
1260378f1aSVenkata Narendra Kumar Gutta#include "sm8250.dtsi"
136304b5e9SDmitry Baryshkov#include "pm8150.dtsi"
146304b5e9SDmitry Baryshkov#include "pm8150b.dtsi"
156304b5e9SDmitry Baryshkov#include "pm8150l.dtsi"
166304b5e9SDmitry Baryshkov#include "pm8009.dtsi"
1760378f1aSVenkata Narendra Kumar Gutta
1860378f1aSVenkata Narendra Kumar Gutta/ {
1960378f1aSVenkata Narendra Kumar Gutta	model = "Qualcomm Technologies, Inc. SM8250 MTP";
20d371a931SDmitry Baryshkov	compatible = "qcom,sm8250-mtp", "qcom,sm8250";
2160378f1aSVenkata Narendra Kumar Gutta
2260378f1aSVenkata Narendra Kumar Gutta	aliases {
23bb1dfb4dSManivannan Sadhasivam		serial0 = &uart12;
2460378f1aSVenkata Narendra Kumar Gutta	};
2560378f1aSVenkata Narendra Kumar Gutta
2674d6ed03SJohan Hovold	wcd938x: audio-codec {
27e5b8c082SKrzysztof Kozlowski		compatible = "qcom,wcd9380-codec";
2874d6ed03SJohan Hovold
29e5b8c082SKrzysztof Kozlowski		reset-gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
3074d6ed03SJohan Hovold
31e5b8c082SKrzysztof Kozlowski		vdd-buck-supply = <&vreg_s4a_1p8>;
32e5b8c082SKrzysztof Kozlowski		vdd-rxtx-supply = <&vreg_s4a_1p8>;
33e5b8c082SKrzysztof Kozlowski		vdd-io-supply = <&vreg_s4a_1p8>;
34e5b8c082SKrzysztof Kozlowski		vdd-mic-bias-supply = <&vreg_bob>;
3574d6ed03SJohan Hovold
36e5b8c082SKrzysztof Kozlowski		qcom,micbias1-microvolt = <1800000>;
37e5b8c082SKrzysztof Kozlowski		qcom,micbias2-microvolt = <1800000>;
38e5b8c082SKrzysztof Kozlowski		qcom,micbias3-microvolt = <1800000>;
39e5b8c082SKrzysztof Kozlowski		qcom,micbias4-microvolt = <1800000>;
40e5b8c082SKrzysztof Kozlowski		qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>;
41e5b8c082SKrzysztof Kozlowski		qcom,mbhc-headset-vthreshold-microvolt = <1700000>;
42e5b8c082SKrzysztof Kozlowski		qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
43e5b8c082SKrzysztof Kozlowski		qcom,rx-device = <&wcd_rx>;
44e5b8c082SKrzysztof Kozlowski		qcom,tx-device = <&wcd_tx>;
4574d6ed03SJohan Hovold
4674d6ed03SJohan Hovold		#sound-dai-cells = <1>;
4774d6ed03SJohan Hovold	};
4874d6ed03SJohan Hovold
4974d6ed03SJohan Hovold	chosen {
5074d6ed03SJohan Hovold		stdout-path = "serial0:115200n8";
51e5b8c082SKrzysztof Kozlowski	};
52e5b8c082SKrzysztof Kozlowski
53681db16aSDmitry Baryshkov	thermal-zones {
54681db16aSDmitry Baryshkov		camera-thermal {
55681db16aSDmitry Baryshkov			polling-delay-passive = <0>;
56681db16aSDmitry Baryshkov			polling-delay = <0>;
57681db16aSDmitry Baryshkov			thermal-sensors = <&pm8150l_adc_tm 0>;
58681db16aSDmitry Baryshkov
59681db16aSDmitry Baryshkov			trips {
60681db16aSDmitry Baryshkov				active-config0 {
61681db16aSDmitry Baryshkov					temperature = <125000>;
62681db16aSDmitry Baryshkov					hysteresis = <1000>;
63681db16aSDmitry Baryshkov					type = "passive";
64681db16aSDmitry Baryshkov				};
65681db16aSDmitry Baryshkov			};
66681db16aSDmitry Baryshkov		};
67681db16aSDmitry Baryshkov
68681db16aSDmitry Baryshkov		conn-thermal {
69681db16aSDmitry Baryshkov			polling-delay-passive = <0>;
70681db16aSDmitry Baryshkov			polling-delay = <0>;
71681db16aSDmitry Baryshkov			thermal-sensors = <&pm8150b_adc_tm 0>;
72681db16aSDmitry Baryshkov
73681db16aSDmitry Baryshkov			trips {
74681db16aSDmitry Baryshkov				active-config0 {
75681db16aSDmitry Baryshkov					temperature = <125000>;
76681db16aSDmitry Baryshkov					hysteresis = <1000>;
77681db16aSDmitry Baryshkov					type = "passive";
78681db16aSDmitry Baryshkov				};
79681db16aSDmitry Baryshkov			};
80681db16aSDmitry Baryshkov		};
81681db16aSDmitry Baryshkov
82681db16aSDmitry Baryshkov		mmw-pa1-thermal {
83681db16aSDmitry Baryshkov			polling-delay-passive = <0>;
84681db16aSDmitry Baryshkov			polling-delay = <0>;
85681db16aSDmitry Baryshkov			thermal-sensors = <&pm8150_adc_tm 2>;
86681db16aSDmitry Baryshkov
87681db16aSDmitry Baryshkov			trips {
88681db16aSDmitry Baryshkov				active-config0 {
89681db16aSDmitry Baryshkov					temperature = <125000>;
90681db16aSDmitry Baryshkov					hysteresis = <1000>;
91681db16aSDmitry Baryshkov					type = "passive";
92681db16aSDmitry Baryshkov				};
93681db16aSDmitry Baryshkov			};
94681db16aSDmitry Baryshkov		};
95681db16aSDmitry Baryshkov
96681db16aSDmitry Baryshkov		mmw-pa2-thermal {
97681db16aSDmitry Baryshkov			polling-delay-passive = <0>;
98681db16aSDmitry Baryshkov			polling-delay = <0>;
99681db16aSDmitry Baryshkov			thermal-sensors = <&pm8150l_adc_tm 2>;
100681db16aSDmitry Baryshkov
101681db16aSDmitry Baryshkov			trips {
102681db16aSDmitry Baryshkov				active-config0 {
103681db16aSDmitry Baryshkov					temperature = <125000>;
104681db16aSDmitry Baryshkov					hysteresis = <1000>;
105681db16aSDmitry Baryshkov					type = "passive";
106681db16aSDmitry Baryshkov				};
107681db16aSDmitry Baryshkov			};
108681db16aSDmitry Baryshkov		};
109681db16aSDmitry Baryshkov
110681db16aSDmitry Baryshkov		skin-msm-thermal {
111681db16aSDmitry Baryshkov			polling-delay-passive = <0>;
112681db16aSDmitry Baryshkov			polling-delay = <0>;
113681db16aSDmitry Baryshkov			thermal-sensors = <&pm8150l_adc_tm 1>;
114681db16aSDmitry Baryshkov
115681db16aSDmitry Baryshkov			trips {
116681db16aSDmitry Baryshkov				active-config0 {
117681db16aSDmitry Baryshkov					temperature = <125000>;
118681db16aSDmitry Baryshkov					hysteresis = <1000>;
119681db16aSDmitry Baryshkov					type = "passive";
120681db16aSDmitry Baryshkov				};
121681db16aSDmitry Baryshkov			};
122681db16aSDmitry Baryshkov		};
123681db16aSDmitry Baryshkov
124681db16aSDmitry Baryshkov		skin-thermal {
125681db16aSDmitry Baryshkov			polling-delay-passive = <0>;
126681db16aSDmitry Baryshkov			polling-delay = <0>;
127681db16aSDmitry Baryshkov			thermal-sensors = <&pm8150_adc_tm 1>;
128681db16aSDmitry Baryshkov
129681db16aSDmitry Baryshkov			trips {
130681db16aSDmitry Baryshkov				active-config0 {
131681db16aSDmitry Baryshkov					temperature = <125000>;
132681db16aSDmitry Baryshkov					hysteresis = <1000>;
133681db16aSDmitry Baryshkov					type = "passive";
134681db16aSDmitry Baryshkov				};
135681db16aSDmitry Baryshkov			};
136681db16aSDmitry Baryshkov		};
137681db16aSDmitry Baryshkov
138681db16aSDmitry Baryshkov		xo-thermal {
139681db16aSDmitry Baryshkov			polling-delay-passive = <0>;
140681db16aSDmitry Baryshkov			polling-delay = <0>;
141681db16aSDmitry Baryshkov			thermal-sensors = <&pm8150_adc_tm 0>;
142681db16aSDmitry Baryshkov
143681db16aSDmitry Baryshkov			trips {
144681db16aSDmitry Baryshkov				active-config0 {
145681db16aSDmitry Baryshkov					temperature = <125000>;
146681db16aSDmitry Baryshkov					hysteresis = <1000>;
147681db16aSDmitry Baryshkov					type = "passive";
148681db16aSDmitry Baryshkov				};
149681db16aSDmitry Baryshkov			};
150681db16aSDmitry Baryshkov		};
151681db16aSDmitry Baryshkov	};
152681db16aSDmitry Baryshkov
153ec13d5c2SBryan O'Donoghue	vph_pwr: vph-pwr-regulator {
154ec13d5c2SBryan O'Donoghue		compatible = "regulator-fixed";
155ec13d5c2SBryan O'Donoghue		regulator-name = "vph_pwr";
156ec13d5c2SBryan O'Donoghue		regulator-min-microvolt = <3700000>;
157ec13d5c2SBryan O'Donoghue		regulator-max-microvolt = <3700000>;
158ec13d5c2SBryan O'Donoghue	};
159ec13d5c2SBryan O'Donoghue
160ec13d5c2SBryan O'Donoghue	vreg_s4a_1p8: pm8150-s4 {
161ec13d5c2SBryan O'Donoghue		compatible = "regulator-fixed";
162ec13d5c2SBryan O'Donoghue		regulator-name = "vreg_s4a_1p8";
163ec13d5c2SBryan O'Donoghue
164ec13d5c2SBryan O'Donoghue		regulator-min-microvolt = <1800000>;
165ec13d5c2SBryan O'Donoghue		regulator-max-microvolt = <1800000>;
166ec13d5c2SBryan O'Donoghue
167ec13d5c2SBryan O'Donoghue		regulator-always-on;
168ec13d5c2SBryan O'Donoghue		regulator-boot-on;
169ec13d5c2SBryan O'Donoghue
170ec13d5c2SBryan O'Donoghue		vin-supply = <&vph_pwr>;
171ec13d5c2SBryan O'Donoghue	};
172ec13d5c2SBryan O'Donoghue
173ec13d5c2SBryan O'Donoghue	vreg_s6c_0p88: smpc6-regulator {
174ec13d5c2SBryan O'Donoghue		compatible = "regulator-fixed";
175ec13d5c2SBryan O'Donoghue		regulator-name = "vreg_s6c_0p88";
176ec13d5c2SBryan O'Donoghue
177ec13d5c2SBryan O'Donoghue		regulator-min-microvolt = <880000>;
178ec13d5c2SBryan O'Donoghue		regulator-max-microvolt = <880000>;
179ec13d5c2SBryan O'Donoghue		regulator-always-on;
180ec13d5c2SBryan O'Donoghue		vin-supply = <&vph_pwr>;
181ec13d5c2SBryan O'Donoghue	};
182ec13d5c2SBryan O'Donoghue};
183ec13d5c2SBryan O'Donoghue
18423a89037SBjorn Andersson&adsp {
18523a89037SBjorn Andersson	status = "okay";
18623a89037SBjorn Andersson	firmware-name = "qcom/sm8250/adsp.mbn";
18723a89037SBjorn Andersson};
18823a89037SBjorn Andersson
189ec13d5c2SBryan O'Donoghue&apps_rsc {
190537f572bSKrzysztof Kozlowski	regulators-0 {
191ec13d5c2SBryan O'Donoghue		compatible = "qcom,pm8150-rpmh-regulators";
192ec13d5c2SBryan O'Donoghue		qcom,pmic-id = "a";
193ec13d5c2SBryan O'Donoghue
194ec13d5c2SBryan O'Donoghue		vdd-s1-supply = <&vph_pwr>;
195ec13d5c2SBryan O'Donoghue		vdd-s2-supply = <&vph_pwr>;
196ec13d5c2SBryan O'Donoghue		vdd-s3-supply = <&vph_pwr>;
197ec13d5c2SBryan O'Donoghue		vdd-s4-supply = <&vph_pwr>;
198ec13d5c2SBryan O'Donoghue		vdd-s5-supply = <&vph_pwr>;
199ec13d5c2SBryan O'Donoghue		vdd-s6-supply = <&vph_pwr>;
200ec13d5c2SBryan O'Donoghue		vdd-s7-supply = <&vph_pwr>;
201ec13d5c2SBryan O'Donoghue		vdd-s8-supply = <&vph_pwr>;
202ec13d5c2SBryan O'Donoghue		vdd-s9-supply = <&vph_pwr>;
203ec13d5c2SBryan O'Donoghue		vdd-s10-supply = <&vph_pwr>;
204ec13d5c2SBryan O'Donoghue		vdd-l1-l8-l11-supply = <&vreg_s6c_0p88>;
205ec13d5c2SBryan O'Donoghue		vdd-l2-l10-supply = <&vreg_bob>;
206ec13d5c2SBryan O'Donoghue		vdd-l3-l4-l5-l18-supply = <&vreg_s6a_0p95>;
207ec13d5c2SBryan O'Donoghue		vdd-l6-l9-supply = <&vreg_s8c_1p3>;
208ec13d5c2SBryan O'Donoghue		vdd-l7-l12-l14-l15-supply = <&vreg_s5a_1p9>;
209ec13d5c2SBryan O'Donoghue		vdd-l13-l16-l17-supply = <&vreg_bob>;
210ec13d5c2SBryan O'Donoghue
211ec13d5c2SBryan O'Donoghue		vreg_s5a_1p9: smps5 {
212ec13d5c2SBryan O'Donoghue			regulator-name = "vreg_s5a_1p9";
213ec13d5c2SBryan O'Donoghue			regulator-min-microvolt = <1904000>;
214ec13d5c2SBryan O'Donoghue			regulator-max-microvolt = <2000000>;
215ec13d5c2SBryan O'Donoghue			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
216ec13d5c2SBryan O'Donoghue		};
217ec13d5c2SBryan O'Donoghue
218ec13d5c2SBryan O'Donoghue		vreg_s6a_0p95: smps6 {
219ec13d5c2SBryan O'Donoghue			regulator-name = "vreg_s6a_0p95";
220ec13d5c2SBryan O'Donoghue			regulator-min-microvolt = <920000>;
221ec13d5c2SBryan O'Donoghue			regulator-max-microvolt = <1128000>;
222ec13d5c2SBryan O'Donoghue			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
223ec13d5c2SBryan O'Donoghue		};
224ec13d5c2SBryan O'Donoghue
225ec13d5c2SBryan O'Donoghue		vreg_l2a_3p1: ldo2 {
226ec13d5c2SBryan O'Donoghue			regulator-name = "vreg_l2a_3p1";
227ec13d5c2SBryan O'Donoghue			regulator-min-microvolt = <3072000>;
228ec13d5c2SBryan O'Donoghue			regulator-max-microvolt = <3072000>;
229ec13d5c2SBryan O'Donoghue			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
230ec13d5c2SBryan O'Donoghue		};
231ec13d5c2SBryan O'Donoghue
232ec13d5c2SBryan O'Donoghue		vreg_l3a_0p9: ldo3 {
233ec13d5c2SBryan O'Donoghue			regulator-name = "vreg_l3a_0p9";
234ec13d5c2SBryan O'Donoghue			regulator-min-microvolt = <928000>;
235ec13d5c2SBryan O'Donoghue			regulator-max-microvolt = <932000>;
236ec13d5c2SBryan O'Donoghue			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
237ec13d5c2SBryan O'Donoghue		};
238ec13d5c2SBryan O'Donoghue
239ec13d5c2SBryan O'Donoghue		vreg_l5a_0p875: ldo5 {
240ec13d5c2SBryan O'Donoghue			regulator-name = "vreg_l5a_0p875";
241ec13d5c2SBryan O'Donoghue			regulator-min-microvolt = <880000>;
242ec13d5c2SBryan O'Donoghue			regulator-max-microvolt = <880000>;
243ec13d5c2SBryan O'Donoghue			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
244ec13d5c2SBryan O'Donoghue		};
245ec13d5c2SBryan O'Donoghue
246ec13d5c2SBryan O'Donoghue		vreg_l6a_1p2: ldo6 {
247ec13d5c2SBryan O'Donoghue			regulator-name = "vreg_l6a_1p2";
248ec13d5c2SBryan O'Donoghue			regulator-min-microvolt = <1200000>;
249ec13d5c2SBryan O'Donoghue			regulator-max-microvolt = <1200000>;
250ec13d5c2SBryan O'Donoghue			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
251ec13d5c2SBryan O'Donoghue		};
252ec13d5c2SBryan O'Donoghue
253ec13d5c2SBryan O'Donoghue		vreg_l7a_1p7: ldo7 {
254ec13d5c2SBryan O'Donoghue			regulator-name = "vreg_l7a_1p7";
255ec13d5c2SBryan O'Donoghue			regulator-min-microvolt = <1704000>;
256ec13d5c2SBryan O'Donoghue			regulator-max-microvolt = <1800000>;
257ec13d5c2SBryan O'Donoghue			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
258ec13d5c2SBryan O'Donoghue		};
259ec13d5c2SBryan O'Donoghue
260ec13d5c2SBryan O'Donoghue		vreg_l9a_1p2: ldo9 {
261ec13d5c2SBryan O'Donoghue			regulator-name = "vreg_l9a_1p2";
262ec13d5c2SBryan O'Donoghue			regulator-min-microvolt = <1200000>;
263ec13d5c2SBryan O'Donoghue			regulator-max-microvolt = <1200000>;
264ec13d5c2SBryan O'Donoghue			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
265ec13d5c2SBryan O'Donoghue		};
266ec13d5c2SBryan O'Donoghue
267ec13d5c2SBryan O'Donoghue		vreg_l10a_1p8: ldo10 {
268ec13d5c2SBryan O'Donoghue			regulator-name = "vreg_l10a_1p8";
269ec13d5c2SBryan O'Donoghue			regulator-min-microvolt = <1800000>;
270ec13d5c2SBryan O'Donoghue			regulator-max-microvolt = <1800000>;
271ec13d5c2SBryan O'Donoghue			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
272ec13d5c2SBryan O'Donoghue		};
273ec13d5c2SBryan O'Donoghue
274ec13d5c2SBryan O'Donoghue		vreg_l12a_1p8: ldo12 {
275ec13d5c2SBryan O'Donoghue			regulator-name = "vreg_l12a_1p8";
276ec13d5c2SBryan O'Donoghue			regulator-min-microvolt = <1800000>;
277ec13d5c2SBryan O'Donoghue			regulator-max-microvolt = <1800000>;
278ec13d5c2SBryan O'Donoghue			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
279ec13d5c2SBryan O'Donoghue		};
280ec13d5c2SBryan O'Donoghue
281ec13d5c2SBryan O'Donoghue		vreg_l13a_ts_3p0: ldo13 {
282ec13d5c2SBryan O'Donoghue			regulator-name = "vreg_l13a_ts_3p0";
283ec13d5c2SBryan O'Donoghue			regulator-min-microvolt = <3008000>;
284ec13d5c2SBryan O'Donoghue			regulator-max-microvolt = <3008000>;
285ec13d5c2SBryan O'Donoghue			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
286ec13d5c2SBryan O'Donoghue		};
287ec13d5c2SBryan O'Donoghue
288ec13d5c2SBryan O'Donoghue		vreg_l14a_1p8: ldo14 {
289ec13d5c2SBryan O'Donoghue			regulator-name = "vreg_l14a_1p8";
290ec13d5c2SBryan O'Donoghue			regulator-min-microvolt = <1800000>;
291ec13d5c2SBryan O'Donoghue			regulator-max-microvolt = <1880000>;
292ec13d5c2SBryan O'Donoghue			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
293ec13d5c2SBryan O'Donoghue		};
294ec13d5c2SBryan O'Donoghue
295ec13d5c2SBryan O'Donoghue		vreg_l15a_11ad_io_1p8: ldo15 {
296ec13d5c2SBryan O'Donoghue			regulator-name = "vreg_l15a_11ad_io_1p8";
297ec13d5c2SBryan O'Donoghue			regulator-min-microvolt = <1800000>;
298ec13d5c2SBryan O'Donoghue			regulator-max-microvolt = <1800000>;
299ec13d5c2SBryan O'Donoghue			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
300ec13d5c2SBryan O'Donoghue		};
301ec13d5c2SBryan O'Donoghue
302ec13d5c2SBryan O'Donoghue		vreg_l16a_2p7: ldo16 {
303ec13d5c2SBryan O'Donoghue			regulator-name = "vreg_l16a_2p7";
304ec13d5c2SBryan O'Donoghue			regulator-min-microvolt = <2704000>;
305ec13d5c2SBryan O'Donoghue			regulator-max-microvolt = <2960000>;
306ec13d5c2SBryan O'Donoghue			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
307ec13d5c2SBryan O'Donoghue		};
308ec13d5c2SBryan O'Donoghue
309ec13d5c2SBryan O'Donoghue		vreg_l17a_3p0: ldo17 {
310ec13d5c2SBryan O'Donoghue			regulator-name = "vreg_l17a_3p0";
311ec13d5c2SBryan O'Donoghue			regulator-min-microvolt = <2856000>;
312ec13d5c2SBryan O'Donoghue			regulator-max-microvolt = <3008000>;
313ec13d5c2SBryan O'Donoghue			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
314ec13d5c2SBryan O'Donoghue		};
315221f0ef3SDmitry Baryshkov
316221f0ef3SDmitry Baryshkov		vreg_l18a_0p9: ldo18 {
317221f0ef3SDmitry Baryshkov			regulator-name = "vreg_l18a_0p9";
318221f0ef3SDmitry Baryshkov			regulator-min-microvolt = <912000>;
319221f0ef3SDmitry Baryshkov			regulator-max-microvolt = <912000>;
320221f0ef3SDmitry Baryshkov			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
321221f0ef3SDmitry Baryshkov		};
322ec13d5c2SBryan O'Donoghue	};
323ec13d5c2SBryan O'Donoghue
324537f572bSKrzysztof Kozlowski	regulators-1 {
325ec13d5c2SBryan O'Donoghue		compatible = "qcom,pm8150l-rpmh-regulators";
326ec13d5c2SBryan O'Donoghue		qcom,pmic-id = "c";
327ec13d5c2SBryan O'Donoghue
328ec13d5c2SBryan O'Donoghue		vdd-s1-supply = <&vph_pwr>;
329ec13d5c2SBryan O'Donoghue		vdd-s2-supply = <&vph_pwr>;
330ec13d5c2SBryan O'Donoghue		vdd-s3-supply = <&vph_pwr>;
331ec13d5c2SBryan O'Donoghue		vdd-s4-supply = <&vph_pwr>;
332ec13d5c2SBryan O'Donoghue		vdd-s5-supply = <&vph_pwr>;
333ec13d5c2SBryan O'Donoghue		vdd-s6-supply = <&vph_pwr>;
334ec13d5c2SBryan O'Donoghue		vdd-s7-supply = <&vph_pwr>;
335ec13d5c2SBryan O'Donoghue		vdd-s8-supply = <&vph_pwr>;
336ec13d5c2SBryan O'Donoghue		vdd-l1-l8-supply = <&vreg_s4a_1p8>;
337ec13d5c2SBryan O'Donoghue		vdd-l2-l3-supply = <&vreg_s8c_1p3>;
338ec13d5c2SBryan O'Donoghue		vdd-l4-l5-l6-supply = <&vreg_bob>;
339ec13d5c2SBryan O'Donoghue		vdd-l7-l11-supply = <&vreg_bob>;
340ec13d5c2SBryan O'Donoghue		vdd-l9-l10-supply = <&vreg_bob>;
341ec13d5c2SBryan O'Donoghue		vdd-bob-supply = <&vph_pwr>;
342ec13d5c2SBryan O'Donoghue
343ec13d5c2SBryan O'Donoghue		vreg_bob: bob {
344ec13d5c2SBryan O'Donoghue			regulator-name = "vreg_bob";
345ec13d5c2SBryan O'Donoghue			regulator-min-microvolt = <3008000>;
346ec13d5c2SBryan O'Donoghue			regulator-max-microvolt = <4000000>;
347ec13d5c2SBryan O'Donoghue			regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>;
348ec13d5c2SBryan O'Donoghue		};
349ec13d5c2SBryan O'Donoghue
350ec13d5c2SBryan O'Donoghue		vreg_s8c_1p3: smps8 {
351ec13d5c2SBryan O'Donoghue			regulator-name = "vreg_s8c_1p3";
352ec13d5c2SBryan O'Donoghue			regulator-min-microvolt = <1352000>;
353ec13d5c2SBryan O'Donoghue			regulator-max-microvolt = <1352000>;
354ec13d5c2SBryan O'Donoghue			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
355ec13d5c2SBryan O'Donoghue		};
356ec13d5c2SBryan O'Donoghue
357ec13d5c2SBryan O'Donoghue		vreg_l1c_1p8: ldo1 {
358ec13d5c2SBryan O'Donoghue			regulator-name = "vreg_l1c_1p8";
359ec13d5c2SBryan O'Donoghue			regulator-min-microvolt = <1800000>;
360ec13d5c2SBryan O'Donoghue			regulator-max-microvolt = <1800000>;
361ec13d5c2SBryan O'Donoghue			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
362ec13d5c2SBryan O'Donoghue		};
363ec13d5c2SBryan O'Donoghue
364ec13d5c2SBryan O'Donoghue		vreg_l2c_1p2: ldo2 {
365ec13d5c2SBryan O'Donoghue			regulator-name = "vreg_l2c_1p2";
366ec13d5c2SBryan O'Donoghue			regulator-min-microvolt = <1200000>;
367ec13d5c2SBryan O'Donoghue			regulator-max-microvolt = <1200000>;
368ec13d5c2SBryan O'Donoghue			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
369ec13d5c2SBryan O'Donoghue		};
370ec13d5c2SBryan O'Donoghue
371ec13d5c2SBryan O'Donoghue		vreg_l3c_0p92: ldo3 {
372ec13d5c2SBryan O'Donoghue			regulator-name = "vreg_l3c_0p92";
373ec13d5c2SBryan O'Donoghue			regulator-min-microvolt = <920000>;
374ec13d5c2SBryan O'Donoghue			regulator-max-microvolt = <920000>;
375ec13d5c2SBryan O'Donoghue			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
376ec13d5c2SBryan O'Donoghue		};
377ec13d5c2SBryan O'Donoghue
378ec13d5c2SBryan O'Donoghue		vreg_l4c_1p7: ldo4 {
379ec13d5c2SBryan O'Donoghue			regulator-name = "vreg_l4c_1p7";
380ec13d5c2SBryan O'Donoghue			regulator-min-microvolt = <1704000>;
381ec13d5c2SBryan O'Donoghue			regulator-max-microvolt = <2928000>;
382ec13d5c2SBryan O'Donoghue			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
383ec13d5c2SBryan O'Donoghue		};
384ec13d5c2SBryan O'Donoghue
385ec13d5c2SBryan O'Donoghue		vreg_l5c_1p8: ldo5 {
386ec13d5c2SBryan O'Donoghue			regulator-name = "vreg_l5c_1p8";
387ec13d5c2SBryan O'Donoghue			regulator-min-microvolt = <1800000>;
388ec13d5c2SBryan O'Donoghue			regulator-max-microvolt = <2928000>;
389ec13d5c2SBryan O'Donoghue			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
390ec13d5c2SBryan O'Donoghue		};
391ec13d5c2SBryan O'Donoghue
392ec13d5c2SBryan O'Donoghue		vreg_l6c_2p9: ldo6 {
393ec13d5c2SBryan O'Donoghue			regulator-name = "vreg_l6c_2p9";
394ec13d5c2SBryan O'Donoghue			regulator-min-microvolt = <1800000>;
395ec13d5c2SBryan O'Donoghue			regulator-max-microvolt = <2960000>;
396ec13d5c2SBryan O'Donoghue			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
397ec13d5c2SBryan O'Donoghue		};
398ec13d5c2SBryan O'Donoghue
399ec13d5c2SBryan O'Donoghue		vreg_l7c_cam_vcm0_2p85: ldo7 {
400ec13d5c2SBryan O'Donoghue			regulator-name = "vreg_l7c_cam_vcm0_2p85";
401ec13d5c2SBryan O'Donoghue			regulator-min-microvolt = <2856000>;
402ec13d5c2SBryan O'Donoghue			regulator-max-microvolt = <3104000>;
403ec13d5c2SBryan O'Donoghue			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
404ec13d5c2SBryan O'Donoghue		};
405ec13d5c2SBryan O'Donoghue
406ec13d5c2SBryan O'Donoghue		vreg_l8c_1p8: ldo8 {
407ec13d5c2SBryan O'Donoghue			regulator-name = "vreg_l8c_1p8";
408ec13d5c2SBryan O'Donoghue			regulator-min-microvolt = <1800000>;
409ec13d5c2SBryan O'Donoghue			regulator-max-microvolt = <1800000>;
410ec13d5c2SBryan O'Donoghue			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
411ec13d5c2SBryan O'Donoghue		};
412ec13d5c2SBryan O'Donoghue
413ec13d5c2SBryan O'Donoghue		vreg_l9c_2p9: ldo9 {
414ec13d5c2SBryan O'Donoghue			regulator-name = "vreg_l9c_2p9";
415ec13d5c2SBryan O'Donoghue			regulator-min-microvolt = <2704000>;
416ec13d5c2SBryan O'Donoghue			regulator-max-microvolt = <2960000>;
417ec13d5c2SBryan O'Donoghue			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
418ec13d5c2SBryan O'Donoghue		};
419ec13d5c2SBryan O'Donoghue
420ec13d5c2SBryan O'Donoghue		vreg_l10c_3p0: ldo10 {
421ec13d5c2SBryan O'Donoghue			regulator-name = "vreg_l10c_3p0";
422ec13d5c2SBryan O'Donoghue			regulator-min-microvolt = <3000000>;
423ec13d5c2SBryan O'Donoghue			regulator-max-microvolt = <3000000>;
424ec13d5c2SBryan O'Donoghue			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
425ec13d5c2SBryan O'Donoghue		};
426ec13d5c2SBryan O'Donoghue
427ec13d5c2SBryan O'Donoghue		vreg_l11c_3p3: ldo11 {
428ec13d5c2SBryan O'Donoghue			regulator-name = "vreg_l11c_3p3";
429ec13d5c2SBryan O'Donoghue			regulator-min-microvolt = <3000000>;
430ec13d5c2SBryan O'Donoghue			regulator-max-microvolt = <3312000>;
431ec13d5c2SBryan O'Donoghue			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
432ec13d5c2SBryan O'Donoghue		};
433ec13d5c2SBryan O'Donoghue	};
434ec13d5c2SBryan O'Donoghue
435537f572bSKrzysztof Kozlowski	regulators-2 {
436ec13d5c2SBryan O'Donoghue		compatible = "qcom,pm8009-rpmh-regulators";
437ec13d5c2SBryan O'Donoghue		qcom,pmic-id = "f";
438ec13d5c2SBryan O'Donoghue
439ec13d5c2SBryan O'Donoghue		vdd-s1-supply = <&vph_pwr>;
440ec13d5c2SBryan O'Donoghue		vdd-s2-supply = <&vreg_bob>;
441ec13d5c2SBryan O'Donoghue		vdd-l2-supply = <&vreg_s8c_1p3>;
442ec13d5c2SBryan O'Donoghue		vdd-l5-l6-supply = <&vreg_bob>;
443ec13d5c2SBryan O'Donoghue		vdd-l7-supply = <&vreg_s4a_1p8>;
444ec13d5c2SBryan O'Donoghue
445ec13d5c2SBryan O'Donoghue		vreg_l1f_cam_dvdd1_1p1: ldo1 {
446ec13d5c2SBryan O'Donoghue			regulator-name = "vreg_l1f_cam_dvdd1_1p1";
447ec13d5c2SBryan O'Donoghue			regulator-min-microvolt = <1104000>;
448ec13d5c2SBryan O'Donoghue			regulator-max-microvolt = <1104000>;
449ec13d5c2SBryan O'Donoghue			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
450ec13d5c2SBryan O'Donoghue		};
451ec13d5c2SBryan O'Donoghue
452ec13d5c2SBryan O'Donoghue		vreg_l2f_cam_dvdd0_1p2: ldo2 {
453ec13d5c2SBryan O'Donoghue			regulator-name = "vreg_l2f_cam_dvdd0_1p2";
454ec13d5c2SBryan O'Donoghue			regulator-min-microvolt = <1200000>;
455ec13d5c2SBryan O'Donoghue			regulator-max-microvolt = <1200000>;
456ec13d5c2SBryan O'Donoghue			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
457ec13d5c2SBryan O'Donoghue		};
458ec13d5c2SBryan O'Donoghue
459ec13d5c2SBryan O'Donoghue		vreg_l3f_cam_dvdd2_1p05: ldo3 {
460ec13d5c2SBryan O'Donoghue			regulator-name = "vreg_l3f_cam_dvdd2_1p05";
461ec13d5c2SBryan O'Donoghue			regulator-min-microvolt = <1056000>;
462ec13d5c2SBryan O'Donoghue			regulator-max-microvolt = <1056000>;
463ec13d5c2SBryan O'Donoghue			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
464ec13d5c2SBryan O'Donoghue		};
465ec13d5c2SBryan O'Donoghue
466ec13d5c2SBryan O'Donoghue		vreg_l5f_cam_avdd0_2p85: ldo5 {
467ec13d5c2SBryan O'Donoghue			regulator-name = "vreg_l5f_cam_avdd0_2p85";
468ec13d5c2SBryan O'Donoghue			regulator-min-microvolt = <2800000>;
469ec13d5c2SBryan O'Donoghue			regulator-max-microvolt = <2800000>;
470ec13d5c2SBryan O'Donoghue			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
471ec13d5c2SBryan O'Donoghue		};
472ec13d5c2SBryan O'Donoghue
473ec13d5c2SBryan O'Donoghue		vreg_l6f_cam_avdd1_2p85: ldo6 {
474ec13d5c2SBryan O'Donoghue			regulator-name = "vreg_l6f_cam_avdd1_2p85";
475ec13d5c2SBryan O'Donoghue			regulator-min-microvolt = <2856000>;
476ec13d5c2SBryan O'Donoghue			regulator-max-microvolt = <2856000>;
477ec13d5c2SBryan O'Donoghue			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
478ec13d5c2SBryan O'Donoghue		};
479ec13d5c2SBryan O'Donoghue
480ec13d5c2SBryan O'Donoghue		vreg_l7f_1p8: ldo7 {
481ec13d5c2SBryan O'Donoghue			regulator-name = "vreg_l7f_1p8";
482ec13d5c2SBryan O'Donoghue			regulator-min-microvolt = <1800000>;
483ec13d5c2SBryan O'Donoghue			regulator-max-microvolt = <1800000>;
484ec13d5c2SBryan O'Donoghue			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
485ec13d5c2SBryan O'Donoghue		};
486ec13d5c2SBryan O'Donoghue	};
48760378f1aSVenkata Narendra Kumar Gutta};
48860378f1aSVenkata Narendra Kumar Gutta
48923a89037SBjorn Andersson&cdsp {
49023a89037SBjorn Andersson	status = "okay";
49123a89037SBjorn Andersson	firmware-name = "qcom/sm8250/cdsp.mbn";
49223a89037SBjorn Andersson};
49323a89037SBjorn Andersson
494ece28cb5SKonrad Dybcio&gmu {
495ece28cb5SKonrad Dybcio	status = "okay";
496ece28cb5SKonrad Dybcio};
497ece28cb5SKonrad Dybcio
4989e301a54SDmitry Baryshkov&gpu {
499ece28cb5SKonrad Dybcio	status = "okay";
500ece28cb5SKonrad Dybcio
5019e301a54SDmitry Baryshkov	zap-shader {
5029e301a54SDmitry Baryshkov		memory-region = <&gpu_mem>;
5039e301a54SDmitry Baryshkov		firmware-name = "qcom/sm8250/a650_zap.mbn";
5049e301a54SDmitry Baryshkov	};
5059e301a54SDmitry Baryshkov};
5069e301a54SDmitry Baryshkov
507c0011172SDmitry Baryshkov&i2c1 {
508c0011172SDmitry Baryshkov	status = "okay";
509c0011172SDmitry Baryshkov	clock-frequency = <1000000>;
510c0011172SDmitry Baryshkov
511c0011172SDmitry Baryshkov	/* NQ NFC chip @28 */
512c0011172SDmitry Baryshkov};
513c0011172SDmitry Baryshkov
514c0011172SDmitry Baryshkov&i2c13 {
515c0011172SDmitry Baryshkov	status = "okay";
516c0011172SDmitry Baryshkov
517c0011172SDmitry Baryshkov	/* st,stmfts @ 49 */
518c0011172SDmitry Baryshkov};
519c0011172SDmitry Baryshkov
520c0011172SDmitry Baryshkov&i2c15 {
521c0011172SDmitry Baryshkov	status = "okay";
522c0011172SDmitry Baryshkov
523c0011172SDmitry Baryshkov	/* smb1390 @ 10 */
524c0011172SDmitry Baryshkov	/* rtc6226 @ 64 */
525c0011172SDmitry Baryshkov};
526c0011172SDmitry Baryshkov
527681db16aSDmitry Baryshkov&pm8150_adc {
528681db16aSDmitry Baryshkov	xo-therm@4c {
529681db16aSDmitry Baryshkov		reg = <ADC5_XO_THERM_100K_PU>;
530681db16aSDmitry Baryshkov		qcom,ratiometric;
531681db16aSDmitry Baryshkov		qcom,hw-settle-time = <200>;
532681db16aSDmitry Baryshkov	};
533681db16aSDmitry Baryshkov
534681db16aSDmitry Baryshkov	skin-therm@4d {
535681db16aSDmitry Baryshkov		reg = <ADC5_AMUX_THM1_100K_PU>;
536681db16aSDmitry Baryshkov		qcom,ratiometric;
537681db16aSDmitry Baryshkov		qcom,hw-settle-time = <200>;
538681db16aSDmitry Baryshkov	};
539681db16aSDmitry Baryshkov
540681db16aSDmitry Baryshkov	pa-therm1@4e {
541681db16aSDmitry Baryshkov		reg = <ADC5_AMUX_THM2_100K_PU>;
542681db16aSDmitry Baryshkov		qcom,ratiometric;
543681db16aSDmitry Baryshkov		qcom,hw-settle-time = <200>;
544681db16aSDmitry Baryshkov	};
545681db16aSDmitry Baryshkov};
546681db16aSDmitry Baryshkov
547681db16aSDmitry Baryshkov&pm8150_adc_tm {
548681db16aSDmitry Baryshkov	status = "okay";
549681db16aSDmitry Baryshkov
550681db16aSDmitry Baryshkov	xo-therm@0 {
551681db16aSDmitry Baryshkov		reg = <0>;
552681db16aSDmitry Baryshkov		io-channels = <&pm8150_adc ADC5_XO_THERM_100K_PU>;
553681db16aSDmitry Baryshkov		qcom,ratiometric;
554681db16aSDmitry Baryshkov		qcom,hw-settle-time-us = <200>;
555681db16aSDmitry Baryshkov	};
556681db16aSDmitry Baryshkov
557681db16aSDmitry Baryshkov	skin-therm@1 {
558681db16aSDmitry Baryshkov		reg = <1>;
559681db16aSDmitry Baryshkov		io-channels = <&pm8150_adc ADC5_AMUX_THM1_100K_PU>;
560681db16aSDmitry Baryshkov		qcom,ratiometric;
561681db16aSDmitry Baryshkov		qcom,hw-settle-time-us = <200>;
562681db16aSDmitry Baryshkov	};
563681db16aSDmitry Baryshkov
564681db16aSDmitry Baryshkov	pa-therm1@2 {
565681db16aSDmitry Baryshkov		reg = <2>;
566681db16aSDmitry Baryshkov		io-channels = <&pm8150_adc ADC5_AMUX_THM2_100K_PU>;
567681db16aSDmitry Baryshkov		qcom,ratiometric;
568681db16aSDmitry Baryshkov		qcom,hw-settle-time-us = <200>;
569681db16aSDmitry Baryshkov	};
570681db16aSDmitry Baryshkov};
571681db16aSDmitry Baryshkov
572681db16aSDmitry Baryshkov&pm8150b_adc {
573681db16aSDmitry Baryshkov	conn-therm@4f {
574681db16aSDmitry Baryshkov		reg = <ADC5_AMUX_THM3_100K_PU>;
575681db16aSDmitry Baryshkov		qcom,ratiometric;
576681db16aSDmitry Baryshkov		qcom,hw-settle-time = <200>;
577681db16aSDmitry Baryshkov	};
578681db16aSDmitry Baryshkov};
579681db16aSDmitry Baryshkov
580681db16aSDmitry Baryshkov&pm8150b_adc_tm {
581681db16aSDmitry Baryshkov	status = "okay";
582681db16aSDmitry Baryshkov
583681db16aSDmitry Baryshkov	conn-therm@0 {
584681db16aSDmitry Baryshkov		reg = <0>;
585681db16aSDmitry Baryshkov		io-channels = <&pm8150b_adc ADC5_AMUX_THM3_100K_PU>;
586681db16aSDmitry Baryshkov		qcom,ratiometric;
587681db16aSDmitry Baryshkov		qcom,hw-settle-time-us = <200>;
588681db16aSDmitry Baryshkov	};
589681db16aSDmitry Baryshkov};
590681db16aSDmitry Baryshkov
591681db16aSDmitry Baryshkov&pm8150l_adc_tm {
592681db16aSDmitry Baryshkov	status = "okay";
593681db16aSDmitry Baryshkov
594681db16aSDmitry Baryshkov	camera-flash-therm@0 {
595681db16aSDmitry Baryshkov		reg = <0>;
596681db16aSDmitry Baryshkov		io-channels = <&pm8150l_adc ADC5_AMUX_THM1_100K_PU>;
597681db16aSDmitry Baryshkov		qcom,ratiometric;
598681db16aSDmitry Baryshkov		qcom,hw-settle-time-us = <200>;
599681db16aSDmitry Baryshkov	};
600681db16aSDmitry Baryshkov
601681db16aSDmitry Baryshkov	skin-msm-therm@1 {
602681db16aSDmitry Baryshkov		reg = <1>;
603681db16aSDmitry Baryshkov		io-channels = <&pm8150l_adc ADC5_AMUX_THM2_100K_PU>;
604681db16aSDmitry Baryshkov		qcom,ratiometric;
605681db16aSDmitry Baryshkov		qcom,hw-settle-time-us = <200>;
606681db16aSDmitry Baryshkov	};
607681db16aSDmitry Baryshkov
608681db16aSDmitry Baryshkov	pa-therm2@2 {
609681db16aSDmitry Baryshkov		reg = <2>;
610681db16aSDmitry Baryshkov		io-channels = <&pm8150l_adc ADC5_AMUX_THM3_100K_PU>;
611681db16aSDmitry Baryshkov		qcom,ratiometric;
612681db16aSDmitry Baryshkov		qcom,hw-settle-time-us = <200>;
613681db16aSDmitry Baryshkov	};
614681db16aSDmitry Baryshkov};
615681db16aSDmitry Baryshkov
616681db16aSDmitry Baryshkov&pm8150l_adc {
617681db16aSDmitry Baryshkov	camera-flash-therm@4d {
618681db16aSDmitry Baryshkov		reg = <ADC5_AMUX_THM1_100K_PU>;
619681db16aSDmitry Baryshkov		qcom,ratiometric;
620681db16aSDmitry Baryshkov		qcom,hw-settle-time = <200>;
621681db16aSDmitry Baryshkov	};
622681db16aSDmitry Baryshkov
623681db16aSDmitry Baryshkov	skin-msm-therm@4e {
624681db16aSDmitry Baryshkov		reg = <ADC5_AMUX_THM2_100K_PU>;
625681db16aSDmitry Baryshkov		qcom,ratiometric;
626681db16aSDmitry Baryshkov		qcom,hw-settle-time = <200>;
627681db16aSDmitry Baryshkov	};
628681db16aSDmitry Baryshkov
629681db16aSDmitry Baryshkov	pa-therm2@4f {
630681db16aSDmitry Baryshkov		reg = <ADC5_AMUX_THM3_100K_PU>;
631681db16aSDmitry Baryshkov		qcom,ratiometric;
632681db16aSDmitry Baryshkov		qcom,hw-settle-time = <200>;
633681db16aSDmitry Baryshkov	};
634681db16aSDmitry Baryshkov};
635681db16aSDmitry Baryshkov
636c0011172SDmitry Baryshkov&qupv3_id_0 {
637c0011172SDmitry Baryshkov	status = "okay";
638c0011172SDmitry Baryshkov};
639c0011172SDmitry Baryshkov
64060378f1aSVenkata Narendra Kumar Gutta&qupv3_id_1 {
64160378f1aSVenkata Narendra Kumar Gutta	status = "okay";
64260378f1aSVenkata Narendra Kumar Gutta};
64360378f1aSVenkata Narendra Kumar Gutta
644c0011172SDmitry Baryshkov&qupv3_id_2 {
645c0011172SDmitry Baryshkov	status = "okay";
646c0011172SDmitry Baryshkov};
647c0011172SDmitry Baryshkov
64818019eb6SDmitry Baryshkov&rxmacro {
64918019eb6SDmitry Baryshkov	status = "okay";
65018019eb6SDmitry Baryshkov};
65118019eb6SDmitry Baryshkov
65223a89037SBjorn Andersson&slpi {
65323a89037SBjorn Andersson	status = "okay";
65423a89037SBjorn Andersson	firmware-name = "qcom/sm8250/slpi.mbn";
65523a89037SBjorn Andersson};
65623a89037SBjorn Andersson
657fa244dcaSSrinivas Kandagatla&sound {
658fa244dcaSSrinivas Kandagatla	compatible = "qcom,sm8250-sndcard";
659fa244dcaSSrinivas Kandagatla	model = "SM8250-MTP-WCD9380-WSA8810-VA-DMIC";
660fa244dcaSSrinivas Kandagatla	audio-routing =
661fa244dcaSSrinivas Kandagatla		"SpkrLeft IN", "WSA_SPK1 OUT",
662fa244dcaSSrinivas Kandagatla		"SpkrRight IN", "WSA_SPK2 OUT",
663fa244dcaSSrinivas Kandagatla		"IN1_HPHL", "HPHL_OUT",
664fa244dcaSSrinivas Kandagatla		"IN2_HPHR", "HPHR_OUT",
665fa244dcaSSrinivas Kandagatla		"AMIC1", "MIC BIAS1",
666fa244dcaSSrinivas Kandagatla		"AMIC2", "MIC BIAS2",
667fa244dcaSSrinivas Kandagatla		"AMIC3", "MIC BIAS3",
668fa244dcaSSrinivas Kandagatla		"AMIC4", "MIC BIAS3",
669fa244dcaSSrinivas Kandagatla		"AMIC5", "MIC BIAS4",
670fa244dcaSSrinivas Kandagatla		"TX SWR_ADC0", "ADC1_OUTPUT",
671fa244dcaSSrinivas Kandagatla		"TX SWR_ADC1", "ADC2_OUTPUT",
672fa244dcaSSrinivas Kandagatla		"TX SWR_ADC2", "ADC3_OUTPUT",
673fa244dcaSSrinivas Kandagatla		"TX SWR_ADC3", "ADC4_OUTPUT",
674fa244dcaSSrinivas Kandagatla		"TX SWR_DMIC0", "DMIC1_OUTPUT",
675fa244dcaSSrinivas Kandagatla		"TX SWR_DMIC1", "DMIC2_OUTPUT",
676fa244dcaSSrinivas Kandagatla		"TX SWR_DMIC2", "DMIC3_OUTPUT",
677fa244dcaSSrinivas Kandagatla		"TX SWR_DMIC3", "DMIC4_OUTPUT",
678fa244dcaSSrinivas Kandagatla		"TX SWR_DMIC4", "DMIC5_OUTPUT",
679fa244dcaSSrinivas Kandagatla		"TX SWR_DMIC5", "DMIC6_OUTPUT",
680fa244dcaSSrinivas Kandagatla		"TX SWR_DMIC6", "DMIC7_OUTPUT",
681fa244dcaSSrinivas Kandagatla		"TX SWR_DMIC7", "DMIC8_OUTPUT";
682fa244dcaSSrinivas Kandagatla
683fa244dcaSSrinivas Kandagatla	mm1-dai-link {
684fa244dcaSSrinivas Kandagatla		link-name = "MultiMedia1";
685fa244dcaSSrinivas Kandagatla		cpu {
686fa244dcaSSrinivas Kandagatla			sound-dai = <&q6asmdai  MSM_FRONTEND_DAI_MULTIMEDIA1>;
687fa244dcaSSrinivas Kandagatla		};
688fa244dcaSSrinivas Kandagatla	};
689fa244dcaSSrinivas Kandagatla
690fa244dcaSSrinivas Kandagatla	mm2-dai-link {
691fa244dcaSSrinivas Kandagatla		link-name = "MultiMedia2";
692fa244dcaSSrinivas Kandagatla		cpu {
693fa244dcaSSrinivas Kandagatla			sound-dai = <&q6asmdai  MSM_FRONTEND_DAI_MULTIMEDIA2>;
694fa244dcaSSrinivas Kandagatla		};
695fa244dcaSSrinivas Kandagatla	};
696fa244dcaSSrinivas Kandagatla
697fa244dcaSSrinivas Kandagatla	mm3-dai-link {
698fa244dcaSSrinivas Kandagatla		link-name = "MultiMedia3";
699fa244dcaSSrinivas Kandagatla		cpu {
700fa244dcaSSrinivas Kandagatla			sound-dai = <&q6asmdai  MSM_FRONTEND_DAI_MULTIMEDIA3>;
701fa244dcaSSrinivas Kandagatla		};
702fa244dcaSSrinivas Kandagatla	};
703fa244dcaSSrinivas Kandagatla
704fa244dcaSSrinivas Kandagatla	wcd-playback-dai-link {
705fa244dcaSSrinivas Kandagatla		link-name = "WCD Playback";
706fa244dcaSSrinivas Kandagatla		cpu {
707fa244dcaSSrinivas Kandagatla			sound-dai = <&q6afedai RX_CODEC_DMA_RX_0>;
708fa244dcaSSrinivas Kandagatla		};
709fa244dcaSSrinivas Kandagatla		codec {
710fa244dcaSSrinivas Kandagatla			sound-dai = <&wcd938x 0>, <&swr1 0>, <&rxmacro 0>;
711fa244dcaSSrinivas Kandagatla		};
712fa244dcaSSrinivas Kandagatla		platform {
713fa244dcaSSrinivas Kandagatla			sound-dai = <&q6routing>;
714fa244dcaSSrinivas Kandagatla		};
715fa244dcaSSrinivas Kandagatla	};
716fa244dcaSSrinivas Kandagatla
717fa244dcaSSrinivas Kandagatla	wcd-capture-dai-link {
718fa244dcaSSrinivas Kandagatla		link-name = "WCD Capture";
719fa244dcaSSrinivas Kandagatla		cpu {
720fa244dcaSSrinivas Kandagatla			sound-dai = <&q6afedai TX_CODEC_DMA_TX_3>;
721fa244dcaSSrinivas Kandagatla		};
722fa244dcaSSrinivas Kandagatla
723fa244dcaSSrinivas Kandagatla		codec {
724fa244dcaSSrinivas Kandagatla			sound-dai = <&wcd938x 1>, <&swr2 0>, <&txmacro 0>;
725fa244dcaSSrinivas Kandagatla		};
726fa244dcaSSrinivas Kandagatla		platform {
727fa244dcaSSrinivas Kandagatla			sound-dai = <&q6routing>;
728fa244dcaSSrinivas Kandagatla		};
729fa244dcaSSrinivas Kandagatla	};
730fa244dcaSSrinivas Kandagatla
731fa244dcaSSrinivas Kandagatla	wsa-dai-link {
732fa244dcaSSrinivas Kandagatla		link-name = "WSA Playback";
733fa244dcaSSrinivas Kandagatla		cpu {
734fa244dcaSSrinivas Kandagatla			sound-dai = <&q6afedai WSA_CODEC_DMA_RX_0>;
735fa244dcaSSrinivas Kandagatla		};
736fa244dcaSSrinivas Kandagatla
737fa244dcaSSrinivas Kandagatla		codec {
738fa244dcaSSrinivas Kandagatla			sound-dai = <&left_spkr>, <&right_spkr>, <&swr0 0>, <&wsamacro 0>;
739fa244dcaSSrinivas Kandagatla		};
740fa244dcaSSrinivas Kandagatla		platform {
741fa244dcaSSrinivas Kandagatla			sound-dai = <&q6routing>;
742fa244dcaSSrinivas Kandagatla		};
743fa244dcaSSrinivas Kandagatla	};
744fa244dcaSSrinivas Kandagatla
745fa244dcaSSrinivas Kandagatla	va-dai-link {
746fa244dcaSSrinivas Kandagatla		link-name = "VA Capture";
747fa244dcaSSrinivas Kandagatla		cpu {
748fa244dcaSSrinivas Kandagatla			sound-dai = <&q6afedai VA_CODEC_DMA_TX_0>;
749fa244dcaSSrinivas Kandagatla		};
750fa244dcaSSrinivas Kandagatla
751fa244dcaSSrinivas Kandagatla		platform {
752fa244dcaSSrinivas Kandagatla			sound-dai = <&q6routing>;
753fa244dcaSSrinivas Kandagatla		};
754fa244dcaSSrinivas Kandagatla
755fa244dcaSSrinivas Kandagatla		codec {
756fa244dcaSSrinivas Kandagatla			sound-dai = <&vamacro 0>;
757fa244dcaSSrinivas Kandagatla		};
758fa244dcaSSrinivas Kandagatla	};
759fa244dcaSSrinivas Kandagatla};
760fa244dcaSSrinivas Kandagatla
7616fcda0b5SSrinivas Kandagatla&swr0 {
762ba23455eSKonrad Dybcio	status = "okay";
763ba23455eSKonrad Dybcio
764bd35f4b0SSrinivasa Rao Mandadapu	left_spkr: speaker@0,3 {
7656fcda0b5SSrinivas Kandagatla		compatible = "sdw10217211000";
7666fcda0b5SSrinivas Kandagatla		reg = <0 3>;
767*4ded9153SKrzysztof Kozlowski		powerdown-gpios = <&tlmm 26 GPIO_ACTIVE_LOW>;
7686fcda0b5SSrinivas Kandagatla		#thermal-sensor-cells = <0>;
7696fcda0b5SSrinivas Kandagatla		sound-name-prefix = "SpkrLeft";
7706fcda0b5SSrinivas Kandagatla		#sound-dai-cells = <0>;
7716fcda0b5SSrinivas Kandagatla	};
7726fcda0b5SSrinivas Kandagatla
773bd35f4b0SSrinivasa Rao Mandadapu	right_spkr: speaker@0,4 {
7746fcda0b5SSrinivas Kandagatla		compatible = "sdw10217211000";
7756fcda0b5SSrinivas Kandagatla		reg = <0 4>;
776*4ded9153SKrzysztof Kozlowski		powerdown-gpios = <&tlmm 127 GPIO_ACTIVE_LOW>;
7776fcda0b5SSrinivas Kandagatla		#thermal-sensor-cells = <0>;
7786fcda0b5SSrinivas Kandagatla		sound-name-prefix = "SpkrRight";
7796fcda0b5SSrinivas Kandagatla		#sound-dai-cells = <0>;
7806fcda0b5SSrinivas Kandagatla	};
7816fcda0b5SSrinivas Kandagatla};
7826fcda0b5SSrinivas Kandagatla
7835a263cf6SSrinivas Kandagatla&swr1 {
78418019eb6SDmitry Baryshkov	status = "okay";
78518019eb6SDmitry Baryshkov
7865a263cf6SSrinivas Kandagatla	wcd_rx: wcd9380-rx@0,4 {
7875a263cf6SSrinivas Kandagatla		compatible = "sdw20217010d00";
7885a263cf6SSrinivas Kandagatla		reg = <0 4>;
7895a263cf6SSrinivas Kandagatla		qcom,rx-port-mapping = <1 2 3 4 5>;
7905a263cf6SSrinivas Kandagatla	};
7915a263cf6SSrinivas Kandagatla};
7925a263cf6SSrinivas Kandagatla
7935a263cf6SSrinivas Kandagatla&swr2 {
79418019eb6SDmitry Baryshkov	status = "okay";
79518019eb6SDmitry Baryshkov
7965a263cf6SSrinivas Kandagatla	wcd_tx: wcd9380-tx@0,3 {
7975a263cf6SSrinivas Kandagatla		compatible = "sdw20217010d00";
7985a263cf6SSrinivas Kandagatla		reg = <0 3>;
7995a263cf6SSrinivas Kandagatla		qcom,tx-port-mapping = <2 3 4 5>;
8005a263cf6SSrinivas Kandagatla	};
8015a263cf6SSrinivas Kandagatla};
8025a263cf6SSrinivas Kandagatla
80316951b49SBjorn Andersson&tlmm {
80416951b49SBjorn Andersson	gpio-reserved-ranges = <28 4>, <40 4>;
8055a263cf6SSrinivas Kandagatla
806f7636174SKrzysztof Kozlowski	wcd938x_reset_default: wcd938x-reset-default-state {
8075a263cf6SSrinivas Kandagatla		pins = "gpio32";
8085a263cf6SSrinivas Kandagatla		function = "gpio";
8095a263cf6SSrinivas Kandagatla		drive-strength = <16>;
8105a263cf6SSrinivas Kandagatla		output-high;
8115a263cf6SSrinivas Kandagatla	};
8125a263cf6SSrinivas Kandagatla
813f7636174SKrzysztof Kozlowski	wcd938x_reset_sleep: wcd938x-reset-sleep-state {
8145a263cf6SSrinivas Kandagatla		pins = "gpio32";
8155a263cf6SSrinivas Kandagatla		function = "gpio";
8165a263cf6SSrinivas Kandagatla		drive-strength = <16>;
8175a263cf6SSrinivas Kandagatla		bias-disable;
8185a263cf6SSrinivas Kandagatla		output-low;
8195a263cf6SSrinivas Kandagatla	};
8205a263cf6SSrinivas Kandagatla};
82116951b49SBjorn Andersson
82218019eb6SDmitry Baryshkov&txmacro {
82318019eb6SDmitry Baryshkov	status = "okay";
82418019eb6SDmitry Baryshkov};
82518019eb6SDmitry Baryshkov
826bb1dfb4dSManivannan Sadhasivam&uart12 {
82760378f1aSVenkata Narendra Kumar Gutta	status = "okay";
82860378f1aSVenkata Narendra Kumar Gutta};
829b7e2fba0SBryan O'Donoghue
830b7e2fba0SBryan O'Donoghue&ufs_mem_hc {
831b7e2fba0SBryan O'Donoghue	status = "okay";
832b7e2fba0SBryan O'Donoghue
833b7e2fba0SBryan O'Donoghue	vcc-supply = <&vreg_l17a_3p0>;
834b7e2fba0SBryan O'Donoghue	vcc-max-microamp = <750000>;
835b7e2fba0SBryan O'Donoghue	vccq-supply = <&vreg_l6a_1p2>;
836b7e2fba0SBryan O'Donoghue	vccq-max-microamp = <700000>;
837b7e2fba0SBryan O'Donoghue	vccq2-supply = <&vreg_s4a_1p8>;
838b7e2fba0SBryan O'Donoghue	vccq2-max-microamp = <750000>;
839b7e2fba0SBryan O'Donoghue};
840b7e2fba0SBryan O'Donoghue
841b7e2fba0SBryan O'Donoghue&ufs_mem_phy {
842b7e2fba0SBryan O'Donoghue	status = "okay";
843b7e2fba0SBryan O'Donoghue
844b7e2fba0SBryan O'Donoghue	vdda-phy-supply = <&vreg_l5a_0p875>;
845b7e2fba0SBryan O'Donoghue	vdda-pll-supply = <&vreg_l9a_1p2>;
846b7e2fba0SBryan O'Donoghue};
847221f0ef3SDmitry Baryshkov
848221f0ef3SDmitry Baryshkov&usb_1 {
849221f0ef3SDmitry Baryshkov	status = "okay";
850221f0ef3SDmitry Baryshkov};
851221f0ef3SDmitry Baryshkov
852221f0ef3SDmitry Baryshkov&usb_1_dwc3 {
853221f0ef3SDmitry Baryshkov	dr_mode = "host";
854221f0ef3SDmitry Baryshkov};
855221f0ef3SDmitry Baryshkov
856221f0ef3SDmitry Baryshkov&usb_1_hsphy {
857221f0ef3SDmitry Baryshkov	status = "okay";
858221f0ef3SDmitry Baryshkov
859221f0ef3SDmitry Baryshkov	vdda-pll-supply = <&vreg_l5a_0p875>;
860221f0ef3SDmitry Baryshkov	vdda18-supply = <&vreg_l12a_1p8>;
861221f0ef3SDmitry Baryshkov	vdda33-supply = <&vreg_l2a_3p1>;
862221f0ef3SDmitry Baryshkov};
863221f0ef3SDmitry Baryshkov
864221f0ef3SDmitry Baryshkov&usb_1_qmpphy {
865221f0ef3SDmitry Baryshkov	status = "okay";
866221f0ef3SDmitry Baryshkov
867221f0ef3SDmitry Baryshkov	vdda-phy-supply = <&vreg_l9a_1p2>;
868221f0ef3SDmitry Baryshkov	vdda-pll-supply = <&vreg_l18a_0p9>;
869221f0ef3SDmitry Baryshkov};
870221f0ef3SDmitry Baryshkov
871221f0ef3SDmitry Baryshkov&usb_2 {
872221f0ef3SDmitry Baryshkov	status = "okay";
873221f0ef3SDmitry Baryshkov};
874221f0ef3SDmitry Baryshkov
875221f0ef3SDmitry Baryshkov&usb_2_dwc3 {
876221f0ef3SDmitry Baryshkov	dr_mode = "host";
877221f0ef3SDmitry Baryshkov};
878221f0ef3SDmitry Baryshkov
879221f0ef3SDmitry Baryshkov&usb_2_hsphy {
880221f0ef3SDmitry Baryshkov	status = "okay";
881221f0ef3SDmitry Baryshkov
882221f0ef3SDmitry Baryshkov	vdda-pll-supply = <&vreg_l5a_0p875>;
883221f0ef3SDmitry Baryshkov	vdda18-supply = <&vreg_l12a_1p8>;
884221f0ef3SDmitry Baryshkov	vdda33-supply = <&vreg_l2a_3p1>;
885221f0ef3SDmitry Baryshkov};
886221f0ef3SDmitry Baryshkov
887221f0ef3SDmitry Baryshkov&usb_2_qmpphy {
888221f0ef3SDmitry Baryshkov	status = "okay";
889221f0ef3SDmitry Baryshkov
890221f0ef3SDmitry Baryshkov	vdda-phy-supply = <&vreg_l9a_1p2>;
891221f0ef3SDmitry Baryshkov	vdda-pll-supply = <&vreg_l18a_0p9>;
892221f0ef3SDmitry Baryshkov};
893ece28cb5SKonrad Dybcio
894ece28cb5SKonrad Dybcio&venus {
895ece28cb5SKonrad Dybcio	status = "okay";
896ece28cb5SKonrad Dybcio};
897ba23455eSKonrad Dybcio
898ba23455eSKonrad Dybcio&wsamacro {
899ba23455eSKonrad Dybcio	status = "okay";
900ba23455eSKonrad Dybcio};
901