1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) 2020, Linaro Limited
4 */
5
6/dts-v1/;
7
8#include <dt-bindings/regulator/qcom,rpmh-regulator.h>
9#include "sm8350.dtsi"
10
11/ {
12	model = "Qualcomm Technologies, Inc. sm8350 MTP";
13	compatible = "qcom,sm8350-mtp", "qcom,sm8350";
14
15	aliases {
16		serial0 = &uart2;
17	};
18
19	chosen {
20		stdout-path = "serial0:115200n8";
21	};
22
23	vph_pwr: vph-pwr-regulator {
24		compatible = "regulator-fixed";
25		regulator-name = "vph_pwr";
26		regulator-min-microvolt = <3700000>;
27		regulator-max-microvolt = <3700000>;
28
29		regulator-always-on;
30		regulator-boot-on;
31	};
32};
33
34&apps_rsc {
35	pm8350-rpmh-regulators {
36		compatible = "qcom,pm8350-rpmh-regulators";
37		qcom,pmic-id = "b";
38
39		vdd-s1-supply = <&vph_pwr>;
40		vdd-s2-supply = <&vph_pwr>;
41		vdd-s3-supply = <&vph_pwr>;
42		vdd-s4-supply = <&vph_pwr>;
43		vdd-s5-supply = <&vph_pwr>;
44		vdd-s6-supply = <&vph_pwr>;
45		vdd-s7-supply = <&vph_pwr>;
46		vdd-s8-supply = <&vph_pwr>;
47		vdd-s9-supply = <&vph_pwr>;
48		vdd-s10-supply = <&vph_pwr>;
49		vdd-s11-supply = <&vph_pwr>;
50		vdd-s12-supply = <&vph_pwr>;
51
52		vdd-l1-l4-supply = <&vreg_s11b_0p95>;
53		vdd-l2-l7-supply = <&vreg_bob>;
54		vdd-l3-l5-supply = <&vreg_bob>;
55		vdd-l6-l9-l10-supply = <&vreg_s11b_0p95>;
56		vdd-l8-supply = <&vreg_s2c_0p8>;
57
58		vreg_s10b_1p8: smps10 {
59			regulator-min-microvolt = <1800000>;
60			regulator-max-microvolt = <1800000>;
61		};
62
63		vreg_s11b_0p95: smps11 {
64			regulator-min-microvolt = <752000>;
65			regulator-max-microvolt = <1000000>;
66		};
67
68		vreg_s12b_1p25: smps12 {
69			regulator-min-microvolt = <1224000>;
70			regulator-max-microvolt = <1360000>;
71		};
72
73		vreg_l1b_0p88: ldo1 {
74			regulator-min-microvolt = <912000>;
75			regulator-max-microvolt = <920000>;
76			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
77		};
78
79		vreg_l2b_3p07: ldo2 {
80			regulator-min-microvolt = <3072000>;
81			regulator-max-microvolt = <3072000>;
82			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
83		};
84
85		vreg_l3b_0p9: ldo3 {
86			regulator-min-microvolt = <904000>;
87			regulator-max-microvolt = <904000>;
88			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
89		};
90
91		vreg_l5b_0p88: ldo5 {
92			regulator-min-microvolt = <880000>;
93			regulator-max-microvolt = <888000>;
94			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
95		};
96
97		vreg_l6b_1p2: ldo6 {
98			regulator-min-microvolt = <1200000>;
99			regulator-max-microvolt = <1208000>;
100			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
101		};
102
103		vreg_l7b_2p96: ldo7 {
104			regulator-min-microvolt = <2400000>;
105			regulator-max-microvolt = <3008000>;
106			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
107		};
108
109		vreg_l9b_1p2: ldo9 {
110			regulator-min-microvolt = <1200000>;
111			regulator-max-microvolt = <1200000>;
112			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
113		};
114	};
115
116	pm8350c-rpmh-regulators {
117		compatible = "qcom,pm8350c-rpmh-regulators";
118		qcom,pmic-id = "c";
119
120		vdd-s1-supply = <&vph_pwr>;
121		vdd-s2-supply = <&vph_pwr>;
122		vdd-s3-supply = <&vph_pwr>;
123		vdd-s4-supply = <&vph_pwr>;
124		vdd-s5-supply = <&vph_pwr>;
125		vdd-s6-supply = <&vph_pwr>;
126		vdd-s7-supply = <&vph_pwr>;
127		vdd-s8-supply = <&vph_pwr>;
128		vdd-s9-supply = <&vph_pwr>;
129		vdd-s10-supply = <&vph_pwr>;
130
131		vdd-l1-l12-supply = <&vreg_s1c_1p86>;
132		vdd-l2-l8-supply = <&vreg_s1c_1p86>;
133		vdd-l3-l4-l5-l7-l13-supply = <&vreg_bob>;
134		vdd-l6-l9-l11-supply = <&vreg_bob>;
135		vdd-l10-supply = <&vreg_s12b_1p25>;
136
137		vdd-bob-supply = <&vph_pwr>;
138
139		vreg_s1c_1p86: smps1 {
140			regulator-min-microvolt = <1800000>;
141			regulator-max-microvolt = <1952000>;
142		};
143
144		vreg_s2c_0p8: smps2 {
145			regulator-min-microvolt = <640000>;
146			regulator-max-microvolt = <1000000>;
147		};
148
149		vreg_s10c_1p05: smps10 {
150			regulator-min-microvolt = <1048000>;
151			regulator-max-microvolt = <1128000>;
152		};
153
154		vreg_bob: bob {
155			regulator-min-microvolt = <3008000>;
156			regulator-max-microvolt = <3960000>;
157			regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>;
158		};
159
160		vreg_l1c_1p8: ldo1 {
161			regulator-min-microvolt = <1800000>;
162			regulator-max-microvolt = <1800000>;
163			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
164		};
165
166		vreg_l2c_1p8: ldo2 {
167			regulator-min-microvolt = <1800000>;
168			regulator-max-microvolt = <1800000>;
169			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
170		};
171
172		vreg_l3c_3p0: ldo3 {
173			regulator-min-microvolt = <3008000>;
174			regulator-max-microvolt = <3008000>;
175			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
176		};
177
178		vreg_l4c_uim1: ldo4 {
179			regulator-min-microvolt = <1704000>;
180			regulator-max-microvolt = <3000000>;
181			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
182		};
183
184		vreg_l5c_uim2: ldo5 {
185			regulator-min-microvolt = <1704000>;
186			regulator-max-microvolt = <3000000>;
187			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
188		};
189
190		vreg_l6c_1p8: ldo6 {
191			regulator-min-microvolt = <1800000>;
192			regulator-max-microvolt = <2960000>;
193			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
194		};
195
196		vreg_l7c_3p0: ldo7 {
197			regulator-min-microvolt = <3008000>;
198			regulator-max-microvolt = <3008000>;
199			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
200		};
201
202		vreg_l8c_1p8: ldo8 {
203			regulator-min-microvolt = <1800000>;
204			regulator-max-microvolt = <1800000>;
205			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
206		};
207
208		vreg_l9c_2p96: ldo9 {
209			regulator-min-microvolt = <2960000>;
210			regulator-max-microvolt = <3008000>;
211			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
212		};
213
214		vreg_l10c_1p2: ldo10 {
215			regulator-min-microvolt = <1200000>;
216			regulator-max-microvolt = <1200000>;
217			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
218		};
219
220		vreg_l11c_2p96: ldo11 {
221			regulator-min-microvolt = <2400000>;
222			regulator-max-microvolt = <3008000>;
223			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
224		};
225
226		vreg_l12c_1p8: ldo12 {
227			regulator-min-microvolt = <1800000>;
228			regulator-max-microvolt = <2000000>;
229			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
230		};
231
232		vreg_l13c_3p0: ldo13 {
233			regulator-min-microvolt = <3000000>;
234			regulator-max-microvolt = <3000000>;
235			regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
236		};
237	};
238};
239
240&qupv3_id_1 {
241	status = "okay";
242};
243
244&tlmm {
245	gpio-reserved-ranges = <52 8>;
246};
247
248&uart2 {
249	status = "okay";
250};
251