xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/msm8992-bullhead-rev-101.dts (revision c7a063741720ef81d4caa4613242579d12f1d605)
1// SPDX-License-Identifier: GPL-2.0-only
2/* Copyright (c) 2015, LGE Inc. All rights reserved.
3 * Copyright (c) 2016, The Linux Foundation. All rights reserved.
4 * Copyright (c) 2021, Petr Vorel <petr.vorel@gmail.com>
5 */
6
7/dts-v1/;
8
9#include "msm8992.dtsi"
10#include "pm8994.dtsi"
11#include "pmi8994.dtsi"
12
13/* cont_splash_mem has different memory mapping */
14/delete-node/ &cont_splash_mem;
15
16/ {
17	model = "LG Nexus 5X";
18	compatible = "lg,bullhead", "qcom,msm8992";
19	chassis-type = "handset";
20
21	/* required for bootloader to select correct board */
22	qcom,msm-id = <251 0>, <252 0>;
23	qcom,board-id = <0xb64 0>;
24	qcom,pmic-id = <0x10009 0x1000A 0x0 0x0>;
25
26	/* Bullhead firmware doesn't support PSCI */
27	/delete-node/ psci;
28
29	aliases {
30		serial0 = &blsp1_uart2;
31	};
32
33	chosen {
34		stdout-path = "serial0:115200n8";
35	};
36
37	reserved-memory {
38		#address-cells = <2>;
39		#size-cells = <2>;
40		ranges;
41
42		ramoops@1ff00000 {
43			compatible = "ramoops";
44			reg = <0x0 0x1ff00000 0x0 0x40000>;
45			console-size = <0x10000>;
46			record-size = <0x10000>;
47			ftrace-size = <0x10000>;
48			pmsg-size = <0x20000>;
49		};
50
51		cont_splash_mem: memory@3400000 {
52			reg = <0 0x03400000 0 0x1200000>;
53			no-map;
54		};
55	};
56};
57
58&blsp1_uart2 {
59	status = "okay";
60};
61
62&rpm_requests {
63	pm8994_regulators: pm8994-regulators {
64		compatible = "qcom,rpm-pm8994-regulators";
65
66		vdd_l1-supply = <&pm8994_s1>;
67		vdd_l2_26_28-supply = <&pm8994_s3>;
68		vdd_l3_11-supply = <&pm8994_s3>;
69		vdd_l4_27_31-supply = <&pm8994_s3>;
70		vdd_l5_7-supply = <&pm8994_s3>;
71		vdd_l6_12_32-supply = <&pm8994_s5>;
72		vdd_l8_16_30-supply = <&vph_pwr>;
73		vdd_l9_10_18_22-supply = <&vph_pwr>;
74		vdd_l13_19_23_24-supply = <&vph_pwr>;
75		vdd_l14_15-supply = <&pm8994_s5>;
76		vdd_l17_29-supply = <&vph_pwr>;
77		vdd_l20_21-supply = <&vph_pwr>;
78		vdd_l25-supply = <&pm8994_s5>;
79		vdd_lvs1_2 = <&pm8994_s4>;
80
81		/* S1, S2, S6 and S12 are managed by RPMPD */
82
83		pm8994_s1: s1 {
84			regulator-min-microvolt = <800000>;
85			regulator-max-microvolt = <800000>;
86		};
87
88		pm8994_s2: s2 {
89			/* TODO */
90		};
91
92		pm8994_s3: s3 {
93			regulator-min-microvolt = <1300000>;
94			regulator-max-microvolt = <1300000>;
95		};
96
97		pm8994_s4: s4 {
98			regulator-min-microvolt = <1800000>;
99			regulator-max-microvolt = <1800000>;
100			regulator-allow-set-load;
101			regulator-system-load = <325000>;
102		};
103
104		pm8994_s5: s5 {
105			regulator-min-microvolt = <2150000>;
106			regulator-max-microvolt = <2150000>;
107		};
108
109		pm8994_s7: s7 {
110			regulator-min-microvolt = <1000000>;
111			regulator-max-microvolt = <1000000>;
112		};
113
114		/* S8, S9, S10 and S11 - SPMI-managed VDD_APC */
115
116		pm8994_l1: l1 {
117			regulator-min-microvolt = <1000000>;
118			regulator-max-microvolt = <1000000>;
119		};
120
121		pm8994_l2: l2 {
122			regulator-min-microvolt = <1250000>;
123			regulator-max-microvolt = <1250000>;
124		};
125
126		pm8994_l3: l3 {
127			regulator-min-microvolt = <1200000>;
128			regulator-max-microvolt = <1200000>;
129		};
130
131		pm8994_l4: l4 {
132			regulator-min-microvolt = <1225000>;
133			regulator-max-microvolt = <1225000>;
134		};
135
136		/* L5 is inaccessible from RPM */
137
138		pm8994_l6: l6 {
139			regulator-min-microvolt = <1800000>;
140			regulator-max-microvolt = <1800000>;
141		};
142
143		/* L7 is inaccessible from RPM */
144
145		pm8994_l8: l8 {
146			regulator-min-microvolt = <1800000>;
147			regulator-max-microvolt = <1800000>;
148		};
149
150		pm8994_l9: l9 {
151			regulator-min-microvolt = <1800000>;
152			regulator-max-microvolt = <1800000>;
153		};
154
155		pm8994_l10: l10 {
156			regulator-min-microvolt = <1800000>;
157			regulator-max-microvolt = <1800000>;
158		};
159
160		pm8994_l11: l11 {
161			regulator-min-microvolt = <1200000>;
162			regulator-max-microvolt = <1200000>;
163		};
164
165		pm8994_l12: l12 {
166			regulator-min-microvolt = <1800000>;
167			regulator-max-microvolt = <1800000>;
168		};
169
170		pm8994_l13: l13 {
171			regulator-min-microvolt = <1800000>;
172			regulator-max-microvolt = <2950000>;
173		};
174
175		pm8994_l14: l14 {
176			regulator-min-microvolt = <1200000>;
177			regulator-max-microvolt = <1200000>;
178		};
179
180		pm8994_l15: l15 {
181			regulator-min-microvolt = <1800000>;
182			regulator-max-microvolt = <1800000>;
183		};
184
185		pm8994_l16: l16 {
186			regulator-min-microvolt = <2700000>;
187			regulator-max-microvolt = <2700000>;
188		};
189
190		pm8994_l17: l17 {
191			regulator-min-microvolt = <2700000>;
192			regulator-max-microvolt = <2700000>;
193		};
194
195		pm8994_l18: l18 {
196			regulator-min-microvolt = <3000000>;
197			regulator-max-microvolt = <3000000>;
198		};
199
200		pm8994_l19: l19 {
201			regulator-min-microvolt = <1800000>;
202			regulator-max-microvolt = <1800000>;
203		};
204
205		pm8994_l20: l20 {
206			regulator-min-microvolt = <2950000>;
207			regulator-max-microvolt = <2950000>;
208			regulator-always-on;
209			regulator-boot-on;
210			regulator-allow-set-load;
211			regulator-system-load = <570000>;
212		};
213
214		pm8994_l21: l21 {
215			regulator-min-microvolt = <1800000>;
216			regulator-max-microvolt = <1800000>;
217			regulator-always-on;
218		};
219
220		pm8994_l22: l22 {
221			regulator-min-microvolt = <3100000>;
222			regulator-max-microvolt = <3100000>;
223		};
224
225		pm8994_l23: l23 {
226			regulator-min-microvolt = <2800000>;
227			regulator-max-microvolt = <2800000>;
228		};
229
230		pm8994_l24: l24 {
231			regulator-min-microvolt = <3075000>;
232			regulator-max-microvolt = <3150000>;
233		};
234
235		pm8994_l25: l25 {
236			regulator-min-microvolt = <1800000>;
237			regulator-max-microvolt = <1800000>;
238		};
239
240		pm8994_l26: l26 {
241			/* TODO: value from downstream
242			regulator-min-microvolt = <987500>;
243			fails to apply */
244		};
245
246		pm8994_l27: l27 {
247			regulator-min-microvolt = <1050000>;
248			regulator-max-microvolt = <1050000>;
249		};
250
251		pm8994_l28: l28 {
252			regulator-min-microvolt = <1000000>;
253			regulator-max-microvolt = <1000000>;
254		};
255
256		pm8994_l29: l29 {
257			/* TODO: Unsupported voltage range.
258			regulator-min-microvolt = <2800000>;
259			regulator-max-microvolt = <2800000>;
260			qcom,init-voltage = <2800000>;
261			*/
262		};
263
264		pm8994_l30: l30 {
265			/* TODO: get this verified
266			regulator-min-microvolt = <1800000>;
267			regulator-max-microvolt = <1800000>;
268			qcom,init-voltage = <1800000>;
269			*/
270		};
271
272		pm8994_l31: l31 {
273			regulator-min-microvolt = <1262500>;
274			regulator-max-microvolt = <1262500>;
275		};
276
277		pm8994_l32: l32 {
278			/* TODO: get this verified
279			regulator-min-microvolt = <1800000>;
280			regulator-max-microvolt = <1800000>;
281			qcom,init-voltage = <1800000>;
282			*/
283		};
284	};
285
286	pmi8994_regulators: pmi8994-regulators {
287		compatible = "qcom,rpm-pmi8994-regulators";
288
289		vdd_s1-supply = <&vph_pwr>;
290		vdd_bst_byp-supply = <&vph_pwr>;
291
292		pmi8994_s1: s1 {};
293
294		/* S2 & S3 - VDD_GFX */
295
296		pmi8994_bby: boost-bypass {};
297	};
298};
299
300&sdhc1 {
301	status = "okay";
302
303	mmc-hs400-1_8v;
304};
305