xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/sdm845-samsung-starqltechn.dts (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
1*8bab661aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2*8bab661aSEmmanuel Vadot/*
3*8bab661aSEmmanuel Vadot * SDM845 Samsung S9 (SM-G9600) (starqltechn / star2qltechn) common device tree source
4*8bab661aSEmmanuel Vadot *
5*8bab661aSEmmanuel Vadot * Copyright (c) 2020, The Linux Foundation. All rights reserved.
6*8bab661aSEmmanuel Vadot */
7*8bab661aSEmmanuel Vadot
8*8bab661aSEmmanuel Vadot/dts-v1/;
9*8bab661aSEmmanuel Vadot
10*8bab661aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
11*8bab661aSEmmanuel Vadot#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
12*8bab661aSEmmanuel Vadot#include "sdm845.dtsi"
13*8bab661aSEmmanuel Vadot
14*8bab661aSEmmanuel Vadot/ {
15*8bab661aSEmmanuel Vadot	chassis-type = "handset";
16*8bab661aSEmmanuel Vadot	model = "Samsung Galaxy S9 SM-G9600";
17*8bab661aSEmmanuel Vadot	compatible = "samsung,starqltechn", "qcom,sdm845";
18*8bab661aSEmmanuel Vadot
19*8bab661aSEmmanuel Vadot	chosen {
20*8bab661aSEmmanuel Vadot		#address-cells = <2>;
21*8bab661aSEmmanuel Vadot		#size-cells = <2>;
22*8bab661aSEmmanuel Vadot		ranges;
23*8bab661aSEmmanuel Vadot		framebuffer: framebuffer@9d400000 {
24*8bab661aSEmmanuel Vadot			compatible = "simple-framebuffer";
25*8bab661aSEmmanuel Vadot			reg = <0 0x9d400000 0 (2960 * 1440 * 4)>;//2400000
26*8bab661aSEmmanuel Vadot			width = <1440>;
27*8bab661aSEmmanuel Vadot			height = <2960>;
28*8bab661aSEmmanuel Vadot			stride = <(1440 * 4)>;
29*8bab661aSEmmanuel Vadot			format = "a8r8g8b8";
30*8bab661aSEmmanuel Vadot		};
31*8bab661aSEmmanuel Vadot	};
32*8bab661aSEmmanuel Vadot
33*8bab661aSEmmanuel Vadot	vph_pwr: vph-pwr-regulator {
34*8bab661aSEmmanuel Vadot		compatible = "regulator-fixed";
35*8bab661aSEmmanuel Vadot		regulator-name = "vph_pwr";
36*8bab661aSEmmanuel Vadot		regulator-min-microvolt = <3700000>;
37*8bab661aSEmmanuel Vadot		regulator-max-microvolt = <3700000>;
38*8bab661aSEmmanuel Vadot	};
39*8bab661aSEmmanuel Vadot
40*8bab661aSEmmanuel Vadot	/*
41*8bab661aSEmmanuel Vadot	 * Apparently RPMh does not provide support for PM8998 S4 because it
42*8bab661aSEmmanuel Vadot	 * is always-on; model it as a fixed regulator.
43*8bab661aSEmmanuel Vadot	 */
44*8bab661aSEmmanuel Vadot	vreg_s4a_1p8: pm8998-smps4 {
45*8bab661aSEmmanuel Vadot		compatible = "regulator-fixed";
46*8bab661aSEmmanuel Vadot		regulator-name = "vreg_s4a_1p8";
47*8bab661aSEmmanuel Vadot
48*8bab661aSEmmanuel Vadot		regulator-min-microvolt = <1800000>;
49*8bab661aSEmmanuel Vadot		regulator-max-microvolt = <1800000>;
50*8bab661aSEmmanuel Vadot
51*8bab661aSEmmanuel Vadot		regulator-always-on;
52*8bab661aSEmmanuel Vadot		regulator-boot-on;
53*8bab661aSEmmanuel Vadot
54*8bab661aSEmmanuel Vadot		vin-supply = <&vph_pwr>;
55*8bab661aSEmmanuel Vadot	};
56*8bab661aSEmmanuel Vadot
57*8bab661aSEmmanuel Vadot	reserved-memory {
58*8bab661aSEmmanuel Vadot		memory@9d400000 {
59*8bab661aSEmmanuel Vadot			reg = <0x0 0x9d400000 0x0 0x02400000>;
60*8bab661aSEmmanuel Vadot			no-map;
61*8bab661aSEmmanuel Vadot		};
62*8bab661aSEmmanuel Vadot
63*8bab661aSEmmanuel Vadot		memory@a1300000 {
64*8bab661aSEmmanuel Vadot			compatible = "ramoops";
65*8bab661aSEmmanuel Vadot			reg = <0x0 0xa1300000 0x0 0x100000>;
66*8bab661aSEmmanuel Vadot			record-size = <0x40000>;
67*8bab661aSEmmanuel Vadot			console-size = <0x40000>;
68*8bab661aSEmmanuel Vadot			ftrace-size = <0x40000>;
69*8bab661aSEmmanuel Vadot			pmsg-size = <0x40000>;
70*8bab661aSEmmanuel Vadot		};
71*8bab661aSEmmanuel Vadot	};
72*8bab661aSEmmanuel Vadot};
73*8bab661aSEmmanuel Vadot
74*8bab661aSEmmanuel Vadot
75*8bab661aSEmmanuel Vadot&apps_rsc {
76*8bab661aSEmmanuel Vadot	pm8998-rpmh-regulators {
77*8bab661aSEmmanuel Vadot		compatible = "qcom,pm8998-rpmh-regulators";
78*8bab661aSEmmanuel Vadot		qcom,pmic-id = "a";
79*8bab661aSEmmanuel Vadot
80*8bab661aSEmmanuel Vadot		vdd-s1-supply = <&vph_pwr>;
81*8bab661aSEmmanuel Vadot		vdd-s2-supply = <&vph_pwr>;
82*8bab661aSEmmanuel Vadot		vdd-s3-supply = <&vph_pwr>;
83*8bab661aSEmmanuel Vadot		vdd-s4-supply = <&vph_pwr>;
84*8bab661aSEmmanuel Vadot		vdd-s5-supply = <&vph_pwr>;
85*8bab661aSEmmanuel Vadot		vdd-s6-supply = <&vph_pwr>;
86*8bab661aSEmmanuel Vadot		vdd-s7-supply = <&vph_pwr>;
87*8bab661aSEmmanuel Vadot		vdd-s8-supply = <&vph_pwr>;
88*8bab661aSEmmanuel Vadot		vdd-s9-supply = <&vph_pwr>;
89*8bab661aSEmmanuel Vadot		vdd-s10-supply = <&vph_pwr>;
90*8bab661aSEmmanuel Vadot		vdd-s11-supply = <&vph_pwr>;
91*8bab661aSEmmanuel Vadot		vdd-s12-supply = <&vph_pwr>;
92*8bab661aSEmmanuel Vadot		vdd-s13-supply = <&vph_pwr>;
93*8bab661aSEmmanuel Vadot		vdd-l1-l27-supply = <&vreg_s7a_1p025>;
94*8bab661aSEmmanuel Vadot		vdd-l2-l8-l17-supply = <&vreg_s3a_1p35>;
95*8bab661aSEmmanuel Vadot		vdd-l3-l11-supply = <&vreg_s7a_1p025>;
96*8bab661aSEmmanuel Vadot		vdd-l4-l5-supply = <&vreg_s7a_1p025>;
97*8bab661aSEmmanuel Vadot		vdd-l6-supply = <&vph_pwr>;
98*8bab661aSEmmanuel Vadot		vdd-l7-l12-l14-l15-supply = <&vreg_s5a_2p04>;
99*8bab661aSEmmanuel Vadot		vdd-l26-supply = <&vreg_s3a_1p35>;
100*8bab661aSEmmanuel Vadot		vin-lvs-1-2-supply = <&vreg_s4a_1p8>;
101*8bab661aSEmmanuel Vadot
102*8bab661aSEmmanuel Vadot		vreg_s2a_1p125: smps2 {
103*8bab661aSEmmanuel Vadot			regulator-min-microvolt = <1100000>;
104*8bab661aSEmmanuel Vadot			regulator-max-microvolt = <1100000>;
105*8bab661aSEmmanuel Vadot		};
106*8bab661aSEmmanuel Vadot
107*8bab661aSEmmanuel Vadot		vreg_s3a_1p35: smps3 {
108*8bab661aSEmmanuel Vadot			regulator-min-microvolt = <1352000>;
109*8bab661aSEmmanuel Vadot			regulator-max-microvolt = <1352000>;
110*8bab661aSEmmanuel Vadot		};
111*8bab661aSEmmanuel Vadot
112*8bab661aSEmmanuel Vadot		vreg_s5a_2p04: smps5 {
113*8bab661aSEmmanuel Vadot			regulator-min-microvolt = <1904000>;
114*8bab661aSEmmanuel Vadot			regulator-max-microvolt = <2040000>;
115*8bab661aSEmmanuel Vadot		};
116*8bab661aSEmmanuel Vadot
117*8bab661aSEmmanuel Vadot		vreg_s7a_1p025: smps7 {
118*8bab661aSEmmanuel Vadot			regulator-min-microvolt = <900000>;
119*8bab661aSEmmanuel Vadot			regulator-max-microvolt = <1028000>;
120*8bab661aSEmmanuel Vadot		};
121*8bab661aSEmmanuel Vadot
122*8bab661aSEmmanuel Vadot		vdd_qusb_hs0:
123*8bab661aSEmmanuel Vadot		vdda_hp_pcie_core:
124*8bab661aSEmmanuel Vadot		vdda_mipi_csi0_0p9:
125*8bab661aSEmmanuel Vadot		vdda_mipi_csi1_0p9:
126*8bab661aSEmmanuel Vadot		vdda_mipi_csi2_0p9:
127*8bab661aSEmmanuel Vadot		vdda_mipi_dsi0_pll:
128*8bab661aSEmmanuel Vadot		vdda_mipi_dsi1_pll:
129*8bab661aSEmmanuel Vadot		vdda_qlink_lv:
130*8bab661aSEmmanuel Vadot		vdda_qlink_lv_ck:
131*8bab661aSEmmanuel Vadot		vdda_qrefs_0p875:
132*8bab661aSEmmanuel Vadot		vdda_pcie_core:
133*8bab661aSEmmanuel Vadot		vdda_pll_cc_ebi01:
134*8bab661aSEmmanuel Vadot		vdda_pll_cc_ebi23:
135*8bab661aSEmmanuel Vadot		vdda_sp_sensor:
136*8bab661aSEmmanuel Vadot		vdda_ufs1_core:
137*8bab661aSEmmanuel Vadot		vdda_ufs2_core:
138*8bab661aSEmmanuel Vadot		vdda_usb1_ss_core:
139*8bab661aSEmmanuel Vadot		vdda_usb2_ss_core:
140*8bab661aSEmmanuel Vadot		vreg_l1a_0p875: ldo1 {
141*8bab661aSEmmanuel Vadot			regulator-min-microvolt = <880000>;
142*8bab661aSEmmanuel Vadot			regulator-max-microvolt = <880000>;
143*8bab661aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
144*8bab661aSEmmanuel Vadot		};
145*8bab661aSEmmanuel Vadot
146*8bab661aSEmmanuel Vadot		vddpx_10:
147*8bab661aSEmmanuel Vadot		vreg_l2a_1p2: ldo2 {
148*8bab661aSEmmanuel Vadot			regulator-min-microvolt = <1200000>;
149*8bab661aSEmmanuel Vadot			regulator-max-microvolt = <1200000>;
150*8bab661aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
151*8bab661aSEmmanuel Vadot			regulator-always-on;
152*8bab661aSEmmanuel Vadot		};
153*8bab661aSEmmanuel Vadot
154*8bab661aSEmmanuel Vadot		vreg_l3a_1p0: ldo3 {
155*8bab661aSEmmanuel Vadot			regulator-min-microvolt = <1000000>;
156*8bab661aSEmmanuel Vadot			regulator-max-microvolt = <1000000>;
157*8bab661aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
158*8bab661aSEmmanuel Vadot		};
159*8bab661aSEmmanuel Vadot
160*8bab661aSEmmanuel Vadot		vdd_wcss_cx:
161*8bab661aSEmmanuel Vadot		vdd_wcss_mx:
162*8bab661aSEmmanuel Vadot		vdda_wcss_pll:
163*8bab661aSEmmanuel Vadot		vreg_l5a_0p8: ldo5 {
164*8bab661aSEmmanuel Vadot			regulator-min-microvolt = <800000>;
165*8bab661aSEmmanuel Vadot			regulator-max-microvolt = <800000>;
166*8bab661aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
167*8bab661aSEmmanuel Vadot		};
168*8bab661aSEmmanuel Vadot
169*8bab661aSEmmanuel Vadot		vddpx_13:
170*8bab661aSEmmanuel Vadot		vreg_l6a_1p8: ldo6 {
171*8bab661aSEmmanuel Vadot			regulator-min-microvolt = <1856000>;
172*8bab661aSEmmanuel Vadot			regulator-max-microvolt = <1856000>;
173*8bab661aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
174*8bab661aSEmmanuel Vadot		};
175*8bab661aSEmmanuel Vadot
176*8bab661aSEmmanuel Vadot		vreg_l7a_1p8: ldo7 {
177*8bab661aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
178*8bab661aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
179*8bab661aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
180*8bab661aSEmmanuel Vadot		};
181*8bab661aSEmmanuel Vadot
182*8bab661aSEmmanuel Vadot		vreg_l8a_1p2: ldo8 {
183*8bab661aSEmmanuel Vadot			regulator-min-microvolt = <1200000>;
184*8bab661aSEmmanuel Vadot			regulator-max-microvolt = <1248000>;
185*8bab661aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
186*8bab661aSEmmanuel Vadot		};
187*8bab661aSEmmanuel Vadot
188*8bab661aSEmmanuel Vadot		vreg_l9a_1p8: ldo9 {
189*8bab661aSEmmanuel Vadot			regulator-min-microvolt = <1704000>;
190*8bab661aSEmmanuel Vadot			regulator-max-microvolt = <2928000>;
191*8bab661aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
192*8bab661aSEmmanuel Vadot		};
193*8bab661aSEmmanuel Vadot
194*8bab661aSEmmanuel Vadot		vreg_l10a_1p8: ldo10 {
195*8bab661aSEmmanuel Vadot			regulator-min-microvolt = <1704000>;
196*8bab661aSEmmanuel Vadot			regulator-max-microvolt = <2928000>;
197*8bab661aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
198*8bab661aSEmmanuel Vadot		};
199*8bab661aSEmmanuel Vadot
200*8bab661aSEmmanuel Vadot		vreg_l11a_1p0: ldo11 {
201*8bab661aSEmmanuel Vadot			regulator-min-microvolt = <1000000>;
202*8bab661aSEmmanuel Vadot			regulator-max-microvolt = <1048000>;
203*8bab661aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
204*8bab661aSEmmanuel Vadot		};
205*8bab661aSEmmanuel Vadot
206*8bab661aSEmmanuel Vadot		vdd_qfprom:
207*8bab661aSEmmanuel Vadot		vdd_qfprom_sp:
208*8bab661aSEmmanuel Vadot		vdda_apc1_cs_1p8:
209*8bab661aSEmmanuel Vadot		vdda_gfx_cs_1p8:
210*8bab661aSEmmanuel Vadot		vdda_qrefs_1p8:
211*8bab661aSEmmanuel Vadot		vdda_qusb_hs0_1p8:
212*8bab661aSEmmanuel Vadot		vddpx_11:
213*8bab661aSEmmanuel Vadot		vreg_l12a_1p8: ldo12 {
214*8bab661aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
215*8bab661aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
216*8bab661aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
217*8bab661aSEmmanuel Vadot		};
218*8bab661aSEmmanuel Vadot
219*8bab661aSEmmanuel Vadot		vddpx_2:
220*8bab661aSEmmanuel Vadot		vreg_l13a_2p95: ldo13 {
221*8bab661aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
222*8bab661aSEmmanuel Vadot			regulator-max-microvolt = <2960000>;
223*8bab661aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
224*8bab661aSEmmanuel Vadot		};
225*8bab661aSEmmanuel Vadot
226*8bab661aSEmmanuel Vadot		vreg_l14a_1p88: ldo14 {
227*8bab661aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
228*8bab661aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
229*8bab661aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
230*8bab661aSEmmanuel Vadot		};
231*8bab661aSEmmanuel Vadot
232*8bab661aSEmmanuel Vadot		vreg_l15a_1p8: ldo15 {
233*8bab661aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
234*8bab661aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
235*8bab661aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
236*8bab661aSEmmanuel Vadot		};
237*8bab661aSEmmanuel Vadot
238*8bab661aSEmmanuel Vadot		vreg_l16a_2p7: ldo16 {
239*8bab661aSEmmanuel Vadot			regulator-min-microvolt = <2704000>;
240*8bab661aSEmmanuel Vadot			regulator-max-microvolt = <2704000>;
241*8bab661aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
242*8bab661aSEmmanuel Vadot		};
243*8bab661aSEmmanuel Vadot
244*8bab661aSEmmanuel Vadot		vreg_l17a_1p3: ldo17 {
245*8bab661aSEmmanuel Vadot			regulator-min-microvolt = <1304000>;
246*8bab661aSEmmanuel Vadot			regulator-max-microvolt = <1304000>;
247*8bab661aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
248*8bab661aSEmmanuel Vadot		};
249*8bab661aSEmmanuel Vadot
250*8bab661aSEmmanuel Vadot		vreg_l18a_2p7: ldo18 {
251*8bab661aSEmmanuel Vadot			regulator-min-microvolt = <2704000>;
252*8bab661aSEmmanuel Vadot			regulator-max-microvolt = <2960000>;
253*8bab661aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
254*8bab661aSEmmanuel Vadot		};
255*8bab661aSEmmanuel Vadot
256*8bab661aSEmmanuel Vadot		vreg_l19a_3p0: ldo19 {
257*8bab661aSEmmanuel Vadot			regulator-min-microvolt = <2856000>;
258*8bab661aSEmmanuel Vadot			regulator-max-microvolt = <3104000>;
259*8bab661aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
260*8bab661aSEmmanuel Vadot		};
261*8bab661aSEmmanuel Vadot
262*8bab661aSEmmanuel Vadot		vreg_l20a_2p95: ldo20 {
263*8bab661aSEmmanuel Vadot			regulator-min-microvolt = <2704000>;
264*8bab661aSEmmanuel Vadot			regulator-max-microvolt = <2960000>;
265*8bab661aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
266*8bab661aSEmmanuel Vadot		};
267*8bab661aSEmmanuel Vadot
268*8bab661aSEmmanuel Vadot		vreg_l21a_2p95: ldo21 {
269*8bab661aSEmmanuel Vadot			regulator-min-microvolt = <2704000>;
270*8bab661aSEmmanuel Vadot			regulator-max-microvolt = <2960000>;
271*8bab661aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
272*8bab661aSEmmanuel Vadot		};
273*8bab661aSEmmanuel Vadot
274*8bab661aSEmmanuel Vadot		vreg_l22a_2p85: ldo22 {
275*8bab661aSEmmanuel Vadot			regulator-min-microvolt = <2864000>;
276*8bab661aSEmmanuel Vadot			regulator-max-microvolt = <3312000>;
277*8bab661aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
278*8bab661aSEmmanuel Vadot		};
279*8bab661aSEmmanuel Vadot
280*8bab661aSEmmanuel Vadot		vreg_l23a_3p3: ldo23 {
281*8bab661aSEmmanuel Vadot			regulator-min-microvolt = <3000000>;
282*8bab661aSEmmanuel Vadot			regulator-max-microvolt = <3312000>;
283*8bab661aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
284*8bab661aSEmmanuel Vadot		};
285*8bab661aSEmmanuel Vadot
286*8bab661aSEmmanuel Vadot		vdda_qusb_hs0_3p1:
287*8bab661aSEmmanuel Vadot		vreg_l24a_3p075: ldo24 {
288*8bab661aSEmmanuel Vadot			regulator-min-microvolt = <3088000>;
289*8bab661aSEmmanuel Vadot			regulator-max-microvolt = <3088000>;
290*8bab661aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
291*8bab661aSEmmanuel Vadot		};
292*8bab661aSEmmanuel Vadot
293*8bab661aSEmmanuel Vadot		vreg_l25a_3p3: ldo25 {
294*8bab661aSEmmanuel Vadot			regulator-min-microvolt = <3300000>;
295*8bab661aSEmmanuel Vadot			regulator-max-microvolt = <3312000>;
296*8bab661aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
297*8bab661aSEmmanuel Vadot		};
298*8bab661aSEmmanuel Vadot
299*8bab661aSEmmanuel Vadot		vdda_hp_pcie_1p2:
300*8bab661aSEmmanuel Vadot		vdda_hv_ebi0:
301*8bab661aSEmmanuel Vadot		vdda_hv_ebi1:
302*8bab661aSEmmanuel Vadot		vdda_hv_ebi2:
303*8bab661aSEmmanuel Vadot		vdda_hv_ebi3:
304*8bab661aSEmmanuel Vadot		vdda_mipi_csi_1p25:
305*8bab661aSEmmanuel Vadot		vdda_mipi_dsi0_1p2:
306*8bab661aSEmmanuel Vadot		vdda_mipi_dsi1_1p2:
307*8bab661aSEmmanuel Vadot		vdda_pcie_1p2:
308*8bab661aSEmmanuel Vadot		vdda_ufs1_1p2:
309*8bab661aSEmmanuel Vadot		vdda_ufs2_1p2:
310*8bab661aSEmmanuel Vadot		vdda_usb1_ss_1p2:
311*8bab661aSEmmanuel Vadot		vdda_usb2_ss_1p2:
312*8bab661aSEmmanuel Vadot		vreg_l26a_1p2: ldo26 {
313*8bab661aSEmmanuel Vadot			regulator-min-microvolt = <1200000>;
314*8bab661aSEmmanuel Vadot			regulator-max-microvolt = <1200000>;
315*8bab661aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
316*8bab661aSEmmanuel Vadot		};
317*8bab661aSEmmanuel Vadot
318*8bab661aSEmmanuel Vadot		vreg_l28a_3p0: ldo28 {
319*8bab661aSEmmanuel Vadot			regulator-min-microvolt = <2856000>;
320*8bab661aSEmmanuel Vadot			regulator-max-microvolt = <3008000>;
321*8bab661aSEmmanuel Vadot			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
322*8bab661aSEmmanuel Vadot		};
323*8bab661aSEmmanuel Vadot
324*8bab661aSEmmanuel Vadot		vreg_lvs1a_1p8: lvs1 {
325*8bab661aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
326*8bab661aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
327*8bab661aSEmmanuel Vadot		};
328*8bab661aSEmmanuel Vadot
329*8bab661aSEmmanuel Vadot		vreg_lvs2a_1p8: lvs2 {
330*8bab661aSEmmanuel Vadot			regulator-min-microvolt = <1800000>;
331*8bab661aSEmmanuel Vadot			regulator-max-microvolt = <1800000>;
332*8bab661aSEmmanuel Vadot		};
333*8bab661aSEmmanuel Vadot	};
334*8bab661aSEmmanuel Vadot
335*8bab661aSEmmanuel Vadot	pm8005-rpmh-regulators {
336*8bab661aSEmmanuel Vadot		compatible = "qcom,pm8005-rpmh-regulators";
337*8bab661aSEmmanuel Vadot		qcom,pmic-id = "c";
338*8bab661aSEmmanuel Vadot
339*8bab661aSEmmanuel Vadot		vdd-s1-supply = <&vph_pwr>;
340*8bab661aSEmmanuel Vadot		vdd-s2-supply = <&vph_pwr>;
341*8bab661aSEmmanuel Vadot		vdd-s3-supply = <&vph_pwr>;
342*8bab661aSEmmanuel Vadot		vdd-s4-supply = <&vph_pwr>;
343*8bab661aSEmmanuel Vadot
344*8bab661aSEmmanuel Vadot		vreg_s3c_0p6: smps3 {
345*8bab661aSEmmanuel Vadot			regulator-min-microvolt = <600000>;
346*8bab661aSEmmanuel Vadot			regulator-max-microvolt = <600000>;
347*8bab661aSEmmanuel Vadot		};
348*8bab661aSEmmanuel Vadot	};
349*8bab661aSEmmanuel Vadot};
350*8bab661aSEmmanuel Vadot
351*8bab661aSEmmanuel Vadot&gcc {
352*8bab661aSEmmanuel Vadot	protected-clocks = <GCC_QSPI_CORE_CLK>,
353*8bab661aSEmmanuel Vadot				<GCC_QSPI_CORE_CLK_SRC>,
354*8bab661aSEmmanuel Vadot				<GCC_QSPI_CNOC_PERIPH_AHB_CLK>,
355*8bab661aSEmmanuel Vadot				<GCC_LPASS_Q6_AXI_CLK>,
356*8bab661aSEmmanuel Vadot				<GCC_LPASS_SWAY_CLK>;
357*8bab661aSEmmanuel Vadot};
358*8bab661aSEmmanuel Vadot
359*8bab661aSEmmanuel Vadot&i2c10 {
360*8bab661aSEmmanuel Vadot	clock-frequency = <400000>;
361*8bab661aSEmmanuel Vadot	status = "okay";
362*8bab661aSEmmanuel Vadot};
363*8bab661aSEmmanuel Vadot
364*8bab661aSEmmanuel Vadot&qupv3_id_1 {
365*8bab661aSEmmanuel Vadot	status = "okay";
366*8bab661aSEmmanuel Vadot};
367*8bab661aSEmmanuel Vadot
368*8bab661aSEmmanuel Vadot&uart9 {
369*8bab661aSEmmanuel Vadot	status = "okay";
370*8bab661aSEmmanuel Vadot};
371*8bab661aSEmmanuel Vadot
372*8bab661aSEmmanuel Vadot&ufs_mem_hc {
373*8bab661aSEmmanuel Vadot	reset-gpios = <&tlmm 150 GPIO_ACTIVE_LOW>;
374*8bab661aSEmmanuel Vadot	vcc-supply = <&vreg_l20a_2p95>;
375*8bab661aSEmmanuel Vadot	vcc-max-microamp = <600000>;
376*8bab661aSEmmanuel Vadot	status = "okay";
377*8bab661aSEmmanuel Vadot};
378*8bab661aSEmmanuel Vadot
379*8bab661aSEmmanuel Vadot&ufs_mem_phy {
380*8bab661aSEmmanuel Vadot	vdda-phy-supply = <&vdda_ufs1_core>;
381*8bab661aSEmmanuel Vadot	vdda-pll-supply = <&vdda_ufs1_1p2>;
382*8bab661aSEmmanuel Vadot	status = "okay";
383*8bab661aSEmmanuel Vadot};
384*8bab661aSEmmanuel Vadot
385*8bab661aSEmmanuel Vadot&sdhc_2 {
386*8bab661aSEmmanuel Vadot	pinctrl-names = "default";
387*8bab661aSEmmanuel Vadot	pinctrl-0 = <&sdc2_clk_state &sdc2_cmd_state &sdc2_data_state &sd_card_det_n_state>;
388*8bab661aSEmmanuel Vadot	cd-gpios = <&tlmm 126 GPIO_ACTIVE_LOW>;
389*8bab661aSEmmanuel Vadot	vmmc-supply = <&vreg_l21a_2p95>;
390*8bab661aSEmmanuel Vadot	vqmmc-supply = <&vddpx_2>;
391*8bab661aSEmmanuel Vadot	status = "okay";
392*8bab661aSEmmanuel Vadot};
393*8bab661aSEmmanuel Vadot
394*8bab661aSEmmanuel Vadot&usb_1 {
395*8bab661aSEmmanuel Vadot	status = "okay";
396*8bab661aSEmmanuel Vadot};
397*8bab661aSEmmanuel Vadot
398*8bab661aSEmmanuel Vadot&usb_1_dwc3 {
399*8bab661aSEmmanuel Vadot	/* Until we have Type C hooked up we'll force this as peripheral. */
400*8bab661aSEmmanuel Vadot	dr_mode = "peripheral";
401*8bab661aSEmmanuel Vadot};
402*8bab661aSEmmanuel Vadot
403*8bab661aSEmmanuel Vadot&usb_1_hsphy {
404*8bab661aSEmmanuel Vadot	vdd-supply = <&vdda_usb1_ss_core>;
405*8bab661aSEmmanuel Vadot	vdda-pll-supply = <&vdda_qusb_hs0_1p8>;
406*8bab661aSEmmanuel Vadot	vdda-phy-dpdm-supply = <&vdda_qusb_hs0_3p1>;
407*8bab661aSEmmanuel Vadot
408*8bab661aSEmmanuel Vadot	qcom,imp-res-offset-value = <8>;
409*8bab661aSEmmanuel Vadot	qcom,hstx-trim-value = <QUSB2_V2_HSTX_TRIM_21_6_MA>;
410*8bab661aSEmmanuel Vadot	qcom,preemphasis-level = <QUSB2_V2_PREEMPHASIS_5_PERCENT>;
411*8bab661aSEmmanuel Vadot	qcom,preemphasis-width = <QUSB2_V2_PREEMPHASIS_WIDTH_HALF_BIT>;
412*8bab661aSEmmanuel Vadot	status = "okay";
413*8bab661aSEmmanuel Vadot};
414*8bab661aSEmmanuel Vadot
415*8bab661aSEmmanuel Vadot&usb_1_qmpphy {
416*8bab661aSEmmanuel Vadot	vdda-phy-supply = <&vdda_usb1_ss_1p2>;
417*8bab661aSEmmanuel Vadot	vdda-pll-supply = <&vdda_usb1_ss_core>;
418*8bab661aSEmmanuel Vadot	status = "okay";
419*8bab661aSEmmanuel Vadot};
420*8bab661aSEmmanuel Vadot
421*8bab661aSEmmanuel Vadot&wifi {
422*8bab661aSEmmanuel Vadot	vdd-0.8-cx-mx-supply = <&vreg_l5a_0p8>;
423*8bab661aSEmmanuel Vadot	vdd-1.8-xo-supply = <&vreg_l7a_1p8>;
424*8bab661aSEmmanuel Vadot	vdd-1.3-rfa-supply = <&vreg_l17a_1p3>;
425*8bab661aSEmmanuel Vadot	vdd-3.3-ch0-supply = <&vreg_l25a_3p3>;
426*8bab661aSEmmanuel Vadot	status = "okay";
427*8bab661aSEmmanuel Vadot};
428*8bab661aSEmmanuel Vadot
429*8bab661aSEmmanuel Vadot&tlmm {
430*8bab661aSEmmanuel Vadot	gpio-reserved-ranges = <0 4>, <27 4>, <81 4>, <85 4>;
431*8bab661aSEmmanuel Vadot
432*8bab661aSEmmanuel Vadot	sdc2_clk_state: sdc2-clk-state {
433*8bab661aSEmmanuel Vadot		pins = "sdc2_clk";
434*8bab661aSEmmanuel Vadot		bias-disable;
435*8bab661aSEmmanuel Vadot
436*8bab661aSEmmanuel Vadot		/*
437*8bab661aSEmmanuel Vadot		 * It seems that mmc_test reports errors if drive
438*8bab661aSEmmanuel Vadot		 * strength is not 16 on clk, cmd, and data pins.
439*8bab661aSEmmanuel Vadot		 */
440*8bab661aSEmmanuel Vadot		drive-strength = <16>;
441*8bab661aSEmmanuel Vadot	};
442*8bab661aSEmmanuel Vadot
443*8bab661aSEmmanuel Vadot	sdc2_cmd_state: sdc2-cmd-state {
444*8bab661aSEmmanuel Vadot		pins = "sdc2_cmd";
445*8bab661aSEmmanuel Vadot		bias-pull-up;
446*8bab661aSEmmanuel Vadot		drive-strength = <16>;
447*8bab661aSEmmanuel Vadot	};
448*8bab661aSEmmanuel Vadot
449*8bab661aSEmmanuel Vadot	sdc2_data_state: sdc2-data-state {
450*8bab661aSEmmanuel Vadot		pins = "sdc2_data";
451*8bab661aSEmmanuel Vadot		bias-pull-up;
452*8bab661aSEmmanuel Vadot		drive-strength = <16>;
453*8bab661aSEmmanuel Vadot	};
454*8bab661aSEmmanuel Vadot
455*8bab661aSEmmanuel Vadot	sd_card_det_n_state: sd-card-det-n-state {
456*8bab661aSEmmanuel Vadot		pins = "gpio126";
457*8bab661aSEmmanuel Vadot		function = "gpio";
458*8bab661aSEmmanuel Vadot		bias-pull-up;
459*8bab661aSEmmanuel Vadot	};
460*8bab661aSEmmanuel Vadot};
461