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