Loading...
Note: File does not exist in v5.4.
1// SPDX-License-Identifier: GPL-2.0
2#include "qcom-msm8974.dtsi"
3#include "qcom-pm8841.dtsi"
4#include "qcom-pm8941.dtsi"
5#include <dt-bindings/input/input.h>
6#include <dt-bindings/leds/common.h>
7#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
8
9/ {
10 aliases {
11 serial0 = &blsp1_uart2;
12 };
13
14 chosen {
15 stdout-path = "serial0:115200n8";
16 };
17
18 gpio-keys {
19 compatible = "gpio-keys";
20
21 pinctrl-names = "default";
22 pinctrl-0 = <&gpio_keys_pin_a>;
23
24 key-volume-down {
25 label = "volume_down";
26 gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>;
27 linux,input-type = <1>;
28 linux,code = <KEY_VOLUMEDOWN>;
29 };
30
31 key-camera-snapshot {
32 label = "camera_snapshot";
33 gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>;
34 linux,input-type = <1>;
35 linux,code = <KEY_CAMERA>;
36 };
37
38 key-camera-focus {
39 label = "camera_focus";
40 gpios = <&pm8941_gpios 4 GPIO_ACTIVE_LOW>;
41 linux,input-type = <1>;
42 linux,code = <KEY_CAMERA_FOCUS>;
43 };
44
45 key-volume-up {
46 label = "volume_up";
47 gpios = <&pm8941_gpios 5 GPIO_ACTIVE_LOW>;
48 linux,input-type = <1>;
49 linux,code = <KEY_VOLUMEUP>;
50 };
51 };
52
53 reserved-memory {
54 #address-cells = <1>;
55 #size-cells = <1>;
56 ranges;
57
58 ramoops@3e8e0000 {
59 compatible = "ramoops";
60 reg = <0x3e8e0000 0x200000>;
61
62 console-size = <0x100000>;
63 record-size = <0x10000>;
64 ftrace-size = <0x10000>;
65 pmsg-size = <0x80000>;
66 };
67 };
68};
69
70&blsp1_i2c2 {
71 status = "okay";
72 clock-frequency = <355000>;
73
74 synaptics@2c {
75 compatible = "syna,rmi4-i2c";
76 reg = <0x2c>;
77
78 interrupts-extended = <&tlmm 61 IRQ_TYPE_EDGE_FALLING>;
79
80 #address-cells = <1>;
81 #size-cells = <0>;
82
83 vdd-supply = <&pm8941_l22>;
84 vio-supply = <&pm8941_lvs3>;
85
86 pinctrl-names = "default";
87 pinctrl-0 = <&ts_int_pin>;
88
89 syna,startup-delay-ms = <10>;
90
91 rmi4-f01@1 {
92 reg = <0x1>;
93 syna,nosleep-mode = <1>;
94 };
95
96 rmi4-f11@11 {
97 reg = <0x11>;
98 touchscreen-inverted-x;
99 syna,sensor-type = <1>;
100 };
101 };
102};
103
104&blsp1_i2c6 {
105 status = "okay";
106 clock-frequency = <355000>;
107
108 nfc@28 {
109 compatible = "nxp,pn544-i2c";
110 reg = <0x28>;
111
112 interrupt-parent = <&tlmm>;
113 interrupts = <59 IRQ_TYPE_EDGE_RISING>;
114
115 enable-gpios = <&pm8941_gpios 23 GPIO_ACTIVE_HIGH>;
116 firmware-gpios = <&tlmm 77 GPIO_ACTIVE_HIGH>;
117 };
118};
119
120&blsp1_uart2 {
121 status = "okay";
122};
123
124&blsp2_dma {
125 qcom,controlled-remotely;
126};
127
128&blsp2_i2c5 {
129 status = "okay";
130 clock-frequency = <355000>;
131
132 /* sii8334 MHL HDMI bridge */
133};
134
135&pm8941_coincell {
136 status = "okay";
137 qcom,rset-ohms = <2100>;
138 qcom,vset-millivolts = <3000>;
139};
140
141&pm8941_gpios {
142 gpio_keys_pin_a: gpio-keys-active-state {
143 pins = "gpio2", "gpio3", "gpio4", "gpio5";
144 function = "normal";
145
146 bias-pull-up;
147 power-source = <PM8941_GPIO_S3>;
148 };
149};
150
151&pm8941_lpg {
152 status = "okay";
153
154 qcom,power-source = <1>;
155
156 multi-led {
157 color = <LED_COLOR_ID_RGB>;
158 function = LED_FUNCTION_STATUS;
159
160 #address-cells = <1>;
161 #size-cells = <0>;
162
163 led@5 {
164 reg = <5>;
165 color = <LED_COLOR_ID_BLUE>;
166 };
167
168 led@6 {
169 reg = <6>;
170 color = <LED_COLOR_ID_GREEN>;
171 };
172
173 led@7 {
174 reg = <7>;
175 color = <LED_COLOR_ID_RED>;
176 };
177 };
178};
179
180&pm8941_wled {
181 status = "okay";
182
183 qcom,cs-out;
184 qcom,current-limit = <20>;
185 qcom,current-boost-limit = <805>;
186 qcom,switching-freq = <1600>;
187 qcom,ovp = <29>;
188 qcom,num-strings = <2>;
189};
190
191&rpm_requests {
192 regulators-0 {
193 compatible = "qcom,rpm-pm8841-regulators";
194
195 pm8841_s1: s1 {
196 regulator-min-microvolt = <675000>;
197 regulator-max-microvolt = <1050000>;
198 };
199
200 pm8841_s2: s2 {
201 regulator-min-microvolt = <500000>;
202 regulator-max-microvolt = <1050000>;
203 };
204
205 pm8841_s3: s3 {
206 regulator-min-microvolt = <500000>;
207 regulator-max-microvolt = <1050000>;
208 };
209
210 pm8841_s4: s4 {
211 regulator-min-microvolt = <500000>;
212 regulator-max-microvolt = <1050000>;
213 };
214 };
215
216 regulators-1 {
217 compatible = "qcom,rpm-pm8941-regulators";
218
219 vdd_l1_l3-supply = <&pm8941_s1>;
220 vdd_l2_lvs1_2_3-supply = <&pm8941_s3>;
221 vdd_l4_l11-supply = <&pm8941_s1>;
222 vdd_l5_l7-supply = <&pm8941_s2>;
223 vdd_l6_l12_l14_l15-supply = <&pm8941_s2>;
224 vdd_l9_l10_l17_l22-supply = <&vreg_boost>;
225 vdd_l13_l20_l23_l24-supply = <&vreg_boost>;
226 vdd_l21-supply = <&vreg_boost>;
227
228 pm8941_s1: s1 {
229 regulator-min-microvolt = <1300000>;
230 regulator-max-microvolt = <1300000>;
231 regulator-always-on;
232 regulator-boot-on;
233 };
234
235 pm8941_s2: s2 {
236 regulator-min-microvolt = <2150000>;
237 regulator-max-microvolt = <2150000>;
238 regulator-boot-on;
239 };
240
241 pm8941_s3: s3 {
242 regulator-min-microvolt = <1800000>;
243 regulator-max-microvolt = <1800000>;
244 regulator-always-on;
245 regulator-boot-on;
246 };
247
248 pm8941_s4: s4 {
249 regulator-min-microvolt = <5000000>;
250 regulator-max-microvolt = <5000000>;
251 };
252
253 pm8941_l1: l1 {
254 regulator-min-microvolt = <1225000>;
255 regulator-max-microvolt = <1225000>;
256 regulator-always-on;
257 regulator-boot-on;
258 };
259
260 pm8941_l2: l2 {
261 regulator-min-microvolt = <1200000>;
262 regulator-max-microvolt = <1200000>;
263 };
264
265 pm8941_l3: l3 {
266 regulator-min-microvolt = <1200000>;
267 regulator-max-microvolt = <1200000>;
268 };
269
270 pm8941_l4: l4 {
271 regulator-min-microvolt = <1225000>;
272 regulator-max-microvolt = <1225000>;
273 };
274
275 pm8941_l5: l5 {
276 regulator-min-microvolt = <1800000>;
277 regulator-max-microvolt = <1800000>;
278 };
279
280 pm8941_l6: l6 {
281 regulator-min-microvolt = <1800000>;
282 regulator-max-microvolt = <1800000>;
283 regulator-boot-on;
284 };
285
286 pm8941_l7: l7 {
287 regulator-min-microvolt = <1800000>;
288 regulator-max-microvolt = <1800000>;
289 regulator-boot-on;
290 };
291
292 pm8941_l8: l8 {
293 regulator-min-microvolt = <1800000>;
294 regulator-max-microvolt = <1800000>;
295 };
296
297 pm8941_l9: l9 {
298 regulator-min-microvolt = <1800000>;
299 regulator-max-microvolt = <2950000>;
300 };
301
302 pm8941_l11: l11 {
303 regulator-min-microvolt = <1300000>;
304 regulator-max-microvolt = <1350000>;
305 };
306
307 pm8941_l12: l12 {
308 regulator-min-microvolt = <1800000>;
309 regulator-max-microvolt = <1800000>;
310 regulator-always-on;
311 regulator-boot-on;
312 };
313
314 pm8941_l13: l13 {
315 regulator-min-microvolt = <1800000>;
316 regulator-max-microvolt = <2950000>;
317 regulator-boot-on;
318 };
319
320 pm8941_l14: l14 {
321 regulator-min-microvolt = <1800000>;
322 regulator-max-microvolt = <1800000>;
323 };
324
325 pm8941_l15: l15 {
326 regulator-min-microvolt = <2050000>;
327 regulator-max-microvolt = <2050000>;
328 };
329
330 pm8941_l16: l16 {
331 regulator-min-microvolt = <2700000>;
332 regulator-max-microvolt = <2700000>;
333 };
334
335 pm8941_l17: l17 {
336 regulator-min-microvolt = <2700000>;
337 regulator-max-microvolt = <2700000>;
338 };
339
340 pm8941_l18: l18 {
341 regulator-min-microvolt = <2850000>;
342 regulator-max-microvolt = <2850000>;
343 };
344
345 pm8941_l19: l19 {
346 regulator-min-microvolt = <3300000>;
347 regulator-max-microvolt = <3300000>;
348 };
349
350 pm8941_l20: l20 {
351 regulator-min-microvolt = <2950000>;
352 regulator-max-microvolt = <2950000>;
353 regulator-system-load = <200000>;
354 regulator-allow-set-load;
355 regulator-boot-on;
356 };
357
358 pm8941_l21: l21 {
359 regulator-min-microvolt = <2950000>;
360 regulator-max-microvolt = <2950000>;
361 regulator-boot-on;
362 };
363
364 pm8941_l22: l22 {
365 regulator-min-microvolt = <3000000>;
366 regulator-max-microvolt = <3000000>;
367 };
368
369 pm8941_l23: l23 {
370 regulator-min-microvolt = <2800000>;
371 regulator-max-microvolt = <2800000>;
372 };
373
374 pm8941_l24: l24 {
375 regulator-min-microvolt = <3075000>;
376 regulator-max-microvolt = <3075000>;
377 regulator-boot-on;
378 };
379
380 pm8941_lvs3: lvs3 {};
381 };
382};
383
384&sdhc_1 {
385 status = "okay";
386
387 vmmc-supply = <&pm8941_l20>;
388 vqmmc-supply = <&pm8941_s3>;
389
390 pinctrl-names = "default", "sleep";
391 pinctrl-0 = <&sdc1_on>;
392 pinctrl-1 = <&sdc1_off>;
393};
394
395&sdhc_2 {
396 status = "okay";
397
398 vmmc-supply = <&pm8941_l21>;
399 vqmmc-supply = <&pm8941_l13>;
400
401 cd-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>;
402
403 pinctrl-names = "default", "sleep";
404 pinctrl-0 = <&sdc2_on>;
405 pinctrl-1 = <&sdc2_off>;
406};
407
408&smbb {
409 qcom,fast-charge-safe-current = <1500000>;
410 qcom,fast-charge-current-limit = <1500000>;
411 qcom,dc-current-limit = <1800000>;
412 qcom,fast-charge-safe-voltage = <4400000>;
413 qcom,fast-charge-high-threshold-voltage = <4350000>;
414 qcom,fast-charge-low-threshold-voltage = <3400000>;
415 qcom,auto-recharge-threshold-voltage = <4200000>;
416 qcom,minimum-input-voltage = <4300000>;
417};
418
419&tlmm {
420 ts_int_pin: touch-int-state {
421 pins = "gpio61";
422 function = "gpio";
423 drive-strength = <2>;
424 bias-disable;
425 input-enable;
426 };
427
428 sdc1_on: sdc1-on-state {
429 clk-pins {
430 pins = "sdc1_clk";
431 drive-strength = <16>;
432 bias-disable;
433 };
434
435 cmd-data-pins {
436 pins = "sdc1_cmd", "sdc1_data";
437 drive-strength = <10>;
438 bias-pull-up;
439 };
440 };
441
442 sdc2_on: sdc-on-state {
443 clk-pins {
444 pins = "sdc2_clk";
445 drive-strength = <10>;
446 bias-disable;
447 };
448
449 cmd-data-pins {
450 pins = "sdc2_cmd", "sdc2_data";
451 drive-strength = <6>;
452 bias-pull-up;
453 };
454
455 cd-pins {
456 pins = "gpio62";
457 function = "gpio";
458 drive-strength = <2>;
459 bias-disable;
460 };
461 };
462};
463
464&usb {
465 status = "okay";
466
467 phys = <&usb_hs1_phy>;
468 phy-select = <&tcsr 0xb000 0>;
469 extcon = <&smbb>, <&usb_id>;
470 vbus-supply = <&chg_otg>;
471
472 hnp-disable;
473 srp-disable;
474 adp-disable;
475};
476
477&usb_hs1_phy {
478 status = "okay";
479
480 v1p8-supply = <&pm8941_l6>;
481 v3p3-supply = <&pm8941_l24>;
482
483 extcon = <&smbb>;
484 qcom,init-seq = /bits/ 8 <0x1 0x64>;
485};