xref: /freebsd/sys/contrib/device-tree/src/arm/qcom/qcom-msm8926-htc-memul.dts (revision 6549718b70f0e660a15685369afb4f9caf2215ce)
1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright (c) 2023, Luca Weiss <luca@z3ntu.xyz>
4 */
5
6/dts-v1/;
7
8#include "qcom-msm8226.dtsi"
9#include "pm8226.dtsi"
10
11/delete-node/ &adsp_region;
12/delete-node/ &smem_region;
13
14/ {
15	model = "HTC One Mini 2";
16	compatible = "htc,memul", "qcom,msm8926", "qcom,msm8226";
17	chassis-type = "handset";
18
19	aliases {
20		mmc1 = &sdhc_2; /* SDC2 SD card slot */
21	};
22
23	gpio-keys {
24		compatible = "gpio-keys";
25
26		key-power {
27			label = "Power";
28			gpios = <&tlmm 106 GPIO_ACTIVE_LOW>;
29			linux,code = <KEY_POWER>;
30			debounce-interval = <15>;
31		};
32
33		key-volume-down {
34			label = "Volume Down";
35			gpios = <&tlmm 107 GPIO_ACTIVE_LOW>;
36			linux,code = <KEY_VOLUMEDOWN>;
37			debounce-interval = <15>;
38		};
39
40		key-volume-up {
41			label = "Volume Up";
42			gpios = <&tlmm 108 GPIO_ACTIVE_LOW>;
43			linux,code = <KEY_VOLUMEUP>;
44			debounce-interval = <15>;
45		};
46	};
47
48	reserved-memory {
49		unknown@5b00000 {
50			reg = <0x05b00000 0x200000>;
51			no-map;
52		};
53
54		unknown@7500000 {
55			reg = <0x07500000 0xb00000>;
56			no-map;
57		};
58
59		mpss_region: mpss@8000000 {
60			reg = <0x08000000 0x4f00000>;
61			no-map;
62		};
63
64		unknown@cf00000 {
65			reg = <0x0cf00000 0x200000>;
66			no-map;
67		};
68
69		mba_region: mba@d100000 {
70			reg = <0x0d100000 0x3a000>;
71			no-map;
72		};
73
74		unknown@d13a000 {
75			reg = <0x0d13a000 0xc6000>;
76			no-map;
77		};
78
79		wcnss_region: wcnss@d200000 {
80			reg = <0x0d200000 0x650000>;
81			no-map;
82		};
83
84		unknown@d850000 {
85			reg = <0x0d850000 0x3b0000>;
86			no-map;
87		};
88
89		adsp_region: adsp@dc00000 {
90			reg = <0x0dc00000 0x1400000>;
91			no-map;
92		};
93
94		unknown@f000000 {
95			reg = <0x0f000000 0x500000>;
96			no-map;
97		};
98
99		venus_region: venus@f500000 {
100			reg = <0x0f500000 0x500000>;
101			no-map;
102		};
103
104		smem_region: smem@fa00000 {
105			reg = <0x0fa00000 0x100000>;
106			no-map;
107		};
108
109		unknown@fb00000 {
110			reg = <0x0fb00000 0x1b00000>;
111			no-map;
112		};
113	};
114};
115
116&adsp {
117	firmware-name = "qcom/msm8926/memul/adsp.mbn";
118	status = "okay";
119};
120
121&blsp1_i2c2 {
122	status = "okay";
123
124	magnetometer@d {
125		compatible = "asahi-kasei,ak8963";
126		reg = <0x0d>;
127		interrupts-extended = <&tlmm 66 IRQ_TYPE_EDGE_RISING>;
128		vdd-supply = <&pm8226_l19>;
129		vid-supply = <&pm8226_l28>;
130	};
131
132	accelerometer@18 {
133		compatible = "bosch,bma250e";
134		reg = <0x18>;
135		interrupts-extended = <&tlmm 63 IRQ_TYPE_EDGE_RISING>;
136		vdd-supply = <&pm8226_l19>;
137		vddio-supply = <&pm8226_l28>;
138	};
139};
140
141&blsp1_i2c4 {
142	status = "okay";
143
144	/* TFA9887 @ 34 */
145	/* TFA9887 @ 35 */
146};
147
148&blsp1_i2c5 {
149	status = "okay";
150
151	touchscreen@20 {
152		compatible = "syna,rmi4-i2c";
153		reg = <0x20>;
154
155		interrupts-extended = <&tlmm 17 IRQ_TYPE_EDGE_FALLING>;
156		vdd-supply = <&pm8226_l19>;
157
158		syna,startup-delay-ms = <160>;
159
160		#address-cells = <1>;
161		#size-cells = <0>;
162
163		rmi4-f01@1 {
164			reg = <0x1>;
165			syna,nosleep-mode = <1>;
166		};
167
168		rmi4-f12@12 {
169			reg = <0x12>;
170			syna,sensor-type = <1>;
171		};
172	};
173};
174
175&blsp1_i2c6 {
176	status = "okay";
177
178	/* NCP6924 Camera Regulators @ 10 */
179	/* PN544 NFC @ 28 */
180	/* TPS61310 Flash/Torch @ 33 */
181};
182
183&pm8226_vib {
184	status = "okay";
185};
186
187&rpm_requests {
188	regulators {
189		compatible = "qcom,rpm-pm8226-regulators";
190
191		pm8226_s3: s3 {
192			regulator-min-microvolt = <1200000>;
193			regulator-max-microvolt = <1350000>;
194		};
195
196		pm8226_s4: s4 {
197			regulator-min-microvolt = <1800000>;
198			regulator-max-microvolt = <2200000>;
199		};
200
201		pm8226_s5: s5 {
202			regulator-min-microvolt = <1150000>;
203			regulator-max-microvolt = <1150000>;
204		};
205
206		pm8226_l1: l1 {
207			regulator-min-microvolt = <1225000>;
208			regulator-max-microvolt = <1225000>;
209		};
210
211		pm8226_l2: l2 {
212			regulator-min-microvolt = <1200000>;
213			regulator-max-microvolt = <1200000>;
214		};
215
216		pm8226_l3: l3 {
217			regulator-min-microvolt = <750000>;
218			regulator-max-microvolt = <1337500>;
219		};
220
221		pm8226_l4: l4 {
222			regulator-min-microvolt = <1200000>;
223			regulator-max-microvolt = <1200000>;
224		};
225
226		pm8226_l5: l5 {
227			regulator-min-microvolt = <1200000>;
228			regulator-max-microvolt = <1200000>;
229		};
230
231		pm8226_l6: l6 {
232			regulator-min-microvolt = <1800000>;
233			regulator-max-microvolt = <1800000>;
234		};
235
236		pm8226_l7: l7 {
237			regulator-min-microvolt = <1850000>;
238			regulator-max-microvolt = <1850000>;
239		};
240
241		pm8226_l8: l8 {
242			regulator-min-microvolt = <1800000>;
243			regulator-max-microvolt = <1800000>;
244		};
245
246		pm8226_l9: l9 {
247			regulator-min-microvolt = <2050000>;
248			regulator-max-microvolt = <2050000>;
249		};
250
251		pm8226_l10: l10 {
252			regulator-min-microvolt = <1800000>;
253			regulator-max-microvolt = <1800000>;
254		};
255
256		pm8226_l12: l12 {
257			regulator-min-microvolt = <1800000>;
258			regulator-max-microvolt = <1800000>;
259		};
260
261		pm8226_l14: l14 {
262			regulator-min-microvolt = <2750000>;
263			regulator-max-microvolt = <2750000>;
264		};
265
266		pm8226_l15: l15 {
267			regulator-min-microvolt = <3000000>;
268			regulator-max-microvolt = <3000000>;
269		};
270
271		pm8226_l16: l16 {
272			regulator-min-microvolt = <3000000>;
273			regulator-max-microvolt = <3350000>;
274		};
275
276		pm8226_l17: l17 {
277			regulator-min-microvolt = <2950000>;
278			regulator-max-microvolt = <2950000>;
279		};
280
281		pm8226_l18: l18 {
282			regulator-min-microvolt = <2950000>;
283			regulator-max-microvolt = <2950000>;
284		};
285
286		pm8226_l19: l19 {
287			regulator-min-microvolt = <2850000>;
288			regulator-max-microvolt = <2850000>;
289		};
290
291		pm8226_l20: l20 {
292			regulator-min-microvolt = <3075000>;
293			regulator-max-microvolt = <3075000>;
294		};
295
296		pm8226_l21: l21 {
297			regulator-min-microvolt = <1800000>;
298			regulator-max-microvolt = <2950000>;
299			regulator-allow-set-load;
300		};
301
302		pm8226_l22: l22 {
303			regulator-min-microvolt = <1800000>;
304			regulator-max-microvolt = <2950000>;
305		};
306
307		pm8226_l23: l23 {
308			regulator-min-microvolt = <1800000>;
309			regulator-max-microvolt = <3000000>;
310		};
311
312		pm8226_l24: l24 {
313			regulator-min-microvolt = <1300000>;
314			regulator-max-microvolt = <1350000>;
315		};
316
317		pm8226_l25: l25 {
318			regulator-min-microvolt = <1775000>;
319			regulator-max-microvolt = <2125000>;
320		};
321
322		pm8226_l26: l26 {
323			regulator-min-microvolt = <1225000>;
324			regulator-max-microvolt = <1225000>;
325		};
326
327		pm8226_l27: l27 {
328			regulator-min-microvolt = <2050000>;
329			regulator-max-microvolt = <2050000>;
330		};
331
332		pm8226_l28: l28 {
333			regulator-min-microvolt = <1800000>;
334			regulator-max-microvolt = <1800000>;
335		};
336
337		pm8226_lvs1: lvs1 {};
338	};
339};
340
341&sdhc_2 {
342	vmmc-supply = <&pm8226_l18>;
343	vqmmc-supply = <&pm8226_l21>;
344
345	bus-width = <4>;
346	cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>;
347
348	status = "okay";
349};
350
351&smbb {
352	qcom,fast-charge-safe-current = <1750000>;
353	qcom,fast-charge-current-limit = <1750000>;
354	qcom,fast-charge-safe-voltage = <4360000>;
355	qcom,fast-charge-high-threshold-voltage = <4350000>;
356	qcom,auto-recharge-threshold-voltage = <4300000>;
357	qcom,minimum-input-voltage = <4300000>;
358
359	status = "okay";
360};
361
362&usb {
363	extcon = <&smbb>;
364	dr_mode = "peripheral";
365	status = "okay";
366};
367
368&usb_hs_phy {
369	extcon = <&smbb>;
370	v1p8-supply = <&pm8226_l10>;
371	v3p3-supply = <&pm8226_l20>;
372};
373