Debian Codegraph @

arch/arm/boot/dts/qcom/qcom-msm8974-samsung-hlte.dts

raw
1 // SPDX-License-Identifier: GPL-2.0
2 #include "qcom-msm8974.dtsi"
3 #include "pm8841.dtsi"
4 #include "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 model = "Samsung Galaxy Note 3";
11 compatible = "samsung,hlte", "qcom,msm8974";
12 chassis-type = "handset";
13
14 aliases {
15 mmc0 = &sdhc_1; /* SDC1 eMMC slot */
16 mmc1 = &sdhc_3; /* SDC3 SD card slot */
17 serial0 = &blsp1_uart1;
18 };
19
20 chosen {
21 stdout-path = "serial0:115200n8";
22 };
23
24 gpio-keys {
25 compatible = "gpio-keys";
26
27 pinctrl-0 = <&gpio_keys_pin_a>;
28 pinctrl-names = "default";
29
30 key-home {
31 label = "Home Key";
32 gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>;
33 linux,code = <KEY_HOMEPAGE>;
34 wakeup-source;
35 debounce-interval = <15>;
36 };
37
38 key-volume-down {
39 label = "Volume Down";
40 gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_VOLUMEDOWN>;
42 debounce-interval = <15>;
43 };
44
45 key-volume-up {
46 label = "Volume Up";
47 gpios = <&pm8941_gpios 5 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_VOLUMEUP>;
49 debounce-interval = <15>;
50 };
51 };
52
53 i2c-touchkey {
54 compatible = "i2c-gpio";
55
56 sda-gpios = <&tlmm 95 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
57 scl-gpios = <&tlmm 96 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
58
59 pinctrl-0 = <&i2c_touchkey_pins>;
60 pinctrl-names = "default";
61
62 #address-cells = <1>;
63 #size-cells = <0>;
64
65 touchkey@20 {
66 compatible = "cypress,midas-touchkey";
67 reg = <0x20>;
68
69 interrupts-extended = <&pm8941_gpios 29 IRQ_TYPE_EDGE_FALLING>;
70
71 pinctrl-0 = <&touchkey_pin>;
72 pinctrl-names = "default";
73
74 vcc-supply = <&pm8941_lvs3>;
75 vdd-supply = <&pm8941_l13>;
76
77 linux,keycodes = <KEY_APPSELECT KEY_BACK>;
78 };
79 };
80
81 touch_ldo: regulator-touch {
82 compatible = "regulator-fixed";
83 regulator-name = "touch-ldo";
84
85 gpio = <&pm8941_gpios 9 GPIO_ACTIVE_HIGH>;
86 enable-active-high;
87 regulator-boot-on;
88
89 pinctrl-0 = <&touch_ldo_pin>;
90 pinctrl-names = "default";
91 };
92 };
93
94 &blsp1_i2c2 {
95 status = "okay";
96
97 touchscreen@20 {
98 compatible = "syna,rmi4-i2c";
99 reg = <0x20>;
100
101 interrupt-parent = <&pm8941_gpios>;
102 interrupts = <30 IRQ_TYPE_EDGE_FALLING>;
103
104 vdd-supply = <&pm8941_l10>;
105 vio-supply = <&touch_ldo>;
106
107 pinctrl-0 = <&touch_pin>;
108 pinctrl-names = "default";
109
110 syna,startup-delay-ms = <100>;
111
112 #address-cells = <1>;
113 #size-cells = <0>;
114
115 rmi4-f01@1 {
116 reg = <0x1>;
117 syna,nosleep-mode = <1>;
118 };
119
120 rmi4-f12@12 {
121 reg = <0x12>;
122 syna,sensor-type = <1>;
123 };
124 };
125 };
126
127 &blsp2_i2c6 {
128 status = "okay";
129
130 fuelgauge@36 {
131 compatible = "maxim,max17048";
132 reg = <0x36>;
133
134 maxim,double-soc;
135 maxim,rcomp = /bits/ 8 <0x56>;
136
137 interrupt-parent = <&pm8941_gpios>;
138 interrupts = <26 IRQ_TYPE_EDGE_FALLING>;
139
140 pinctrl-0 = <&fuelgauge_pin>;
141 pinctrl-names = "default";
142 };
143 };
144
145 &blsp1_uart2 {
146 status = "okay";
147 };
148
149 &pm8941_gpios {
150 gpio_keys_pin_a: gpio-keys-active-state {
151 pins = "gpio2", "gpio3", "gpio5";
152 function = "normal";
153 bias-pull-up;
154 power-source = <PM8941_GPIO_S3>;
155 };
156
157 fuelgauge_pin: fuelgauge-int-state {
158 pins = "gpio26";
159 function = "normal";
160 bias-disable;
161 input-enable;
162 power-source = <PM8941_GPIO_S3>;
163 };
164
165 touch_pin: touchscreen-int-state {
166 pins = "gpio30";
167 function = "normal";
168 bias-disable;
169 input-enable;
170 power-source = <PM8941_GPIO_S3>;
171 };
172
173 touch_ldo_pin: touchscreen-ldo-state {
174 pins = "gpio9";
175 function = "normal";
176 output-high;
177 power-source = <PM8941_GPIO_S3>;
178 qcom,drive-strength = <PMIC_GPIO_STRENGTH_HIGH>;
179 };
180
181 touchkey_pin: touchkey-int-state {
182 pins = "gpio29";
183 function = "normal";
184 bias-disable;
185 input-enable;
186 power-source = <PM8941_GPIO_S3>;
187 };
188 };
189
190 &remoteproc_adsp {
191 status = "okay";
192 };
193
194 &remoteproc_mss {
195 mss-supply = <&pm8841_s3>;
196 mx-supply = <&pm8841_s1>;
197 pll-supply = <&pm8941_l12>;
198 status = "okay";
199 };
200
201 &rpm_requests {
202 regulators-0 {
203 compatible = "qcom,rpm-pm8841-regulators";
204
205 pm8841_s1: s1 {
206 regulator-min-microvolt = <675000>;
207 regulator-max-microvolt = <1050000>;
208 };
209
210 pm8841_s3: s3 {
211 regulator-min-microvolt = <1050000>;
212 regulator-max-microvolt = <1050000>;
213 };
214 };
215
216 regulators-1 {
217 compatible = "qcom,rpm-pm8941-regulators";
218
219 pm8941_s1: s1 {
220 regulator-min-microvolt = <1300000>;
221 regulator-max-microvolt = <1300000>;
222 regulator-always-on;
223 };
224
225 pm8941_s2: s2 {
226 regulator-min-microvolt = <2150000>;
227 regulator-max-microvolt = <2150000>;
228 };
229
230 pm8941_s3: s3 {
231 regulator-min-microvolt = <1800000>;
232 regulator-max-microvolt = <1800000>;
233 };
234
235 pm8941_l1: l1 {
236 regulator-min-microvolt = <1200000>;
237 regulator-max-microvolt = <1200000>;
238 };
239
240 pm8941_l2: l2 {
241 regulator-min-microvolt = <1200000>;
242 regulator-max-microvolt = <1200000>;
243 };
244
245 pm8941_l3: l3 {
246 regulator-min-microvolt = <1050000>;
247 regulator-max-microvolt = <1225000>;
248 };
249
250 pm8941_l4: l4 {
251 regulator-min-microvolt = <1225000>;
252 regulator-max-microvolt = <1225000>;
253 };
254
255 pm8941_l5: l5 {
256 regulator-min-microvolt = <1800000>;
257 regulator-max-microvolt = <1800000>;
258 };
259
260 pm8941_l6: l6 {
261 regulator-min-microvolt = <1800000>;
262 regulator-max-microvolt = <1800000>;
263 };
264
265 pm8941_l7: l7 {
266 regulator-min-microvolt = <1800000>;
267 regulator-max-microvolt = <1800000>;
268 };
269
270 pm8941_l8: l8 {
271 regulator-min-microvolt = <1800000>;
272 regulator-max-microvolt = <1800000>;
273 };
274
275 pm8941_l9: l9 {
276 regulator-min-microvolt = <1800000>;
277 regulator-max-microvolt = <2950000>;
278 };
279
280 pm8941_l10: l10 {
281 regulator-min-microvolt = <1800000>;
282 regulator-max-microvolt = <1800000>;
283 };
284
285 pm8941_l11: l11 {
286 regulator-min-microvolt = <1200000>;
287 regulator-max-microvolt = <1350000>;
288 };
289
290 pm8941_l12: l12 {
291 regulator-min-microvolt = <1800000>;
292 regulator-max-microvolt = <1800000>;
293 regulator-always-on;
294 };
295
296 pm8941_l13: l13 {
297 regulator-min-microvolt = <1800000>;
298 regulator-max-microvolt = <3300000>;
299 };
300
301 pm8941_l14: l14 {
302 regulator-min-microvolt = <1800000>;
303 regulator-max-microvolt = <1800000>;
304 };
305
306 pm8941_l15: l15 {
307 regulator-min-microvolt = <2050000>;
308 regulator-max-microvolt = <2050000>;
309 };
310
311 pm8941_l16: l16 {
312 regulator-min-microvolt = <2700000>;
313 regulator-max-microvolt = <2700000>;
314 };
315
316 pm8941_l17: l17 {
317 regulator-min-microvolt = <2850000>;
318 regulator-max-microvolt = <3000000>;
319 };
320
321 pm8941_l18: l18 {
322 regulator-min-microvolt = <2850000>;
323 regulator-max-microvolt = <2850000>;
324 };
325
326 pm8941_l19: l19 {
327 regulator-min-microvolt = <2900000>;
328 regulator-max-microvolt = <3350000>;
329 };
330
331 pm8941_l20: l20 {
332 regulator-min-microvolt = <2950000>;
333 regulator-max-microvolt = <2950000>;
334 regulator-system-load = <200000>;
335 regulator-allow-set-load;
336 };
337
338 pm8941_l21: l21 {
339 regulator-min-microvolt = <2950000>;
340 regulator-max-microvolt = <2950000>;
341 regulator-system-load = <200000>;
342 regulator-allow-set-load;
343 };
344
345 pm8941_l22: l22 {
346 regulator-min-microvolt = <2500000>;
347 regulator-max-microvolt = <3000000>;
348 };
349
350 pm8941_l23: l23 {
351 regulator-min-microvolt = <2400000>;
352 regulator-max-microvolt = <3300000>;
353 };
354
355 pm8941_l24: l24 {
356 regulator-min-microvolt = <3075000>;
357 regulator-max-microvolt = <3075000>;
358 };
359
360 pm8941_lvs1: lvs1 {};
361 pm8941_lvs3: lvs3 {};
362 };
363 };
364
365 &sdhc_1 {
366 vmmc-supply = <&pm8941_l20>;
367 vqmmc-supply = <&pm8941_s3>;
368
369 pinctrl-0 = <&sdhc1_pin_a>;
370 pinctrl-names = "default";
371
372 status = "okay";
373 };
374
375 &sdhc_3 {
376 max-frequency = <100000000>;
377
378 vmmc-supply = <&pm8941_l21>;
379 vqmmc-supply = <&pm8941_l21>;
380
381 pinctrl-0 = <&sdhc3_pin_a>;
382 pinctrl-names = "default";
383
384 status = "okay";
385 };
386
387 &tlmm {
388 sdhc1_pin_a: sdhc1-pin-active-state {
389 clk-pins {
390 pins = "sdc1_clk";
391 drive-strength = <4>;
392 bias-disable;
393 };
394
395 cmd-data-pins {
396 pins = "sdc1_cmd", "sdc1_data";
397 drive-strength = <4>;
398 bias-pull-up;
399 };
400 };
401
402 sdhc3_pin_a: sdhc3-pin-active-state {
403 pins = "gpio35", "gpio36", "gpio37", "gpio38", "gpio39", "gpio40";
404 function = "sdc3";
405 drive-strength = <8>;
406 bias-disable;
407 };
408
409 i2c_touchkey_pins: i2c-touchkey-state {
410 pins = "gpio95", "gpio96";
411 function = "gpio";
412 bias-pull-up;
413 };
414 };
415
416 &usb {
417 phys = <&usb_hs1_phy>;
418 phy-select = <&tcsr 0xb000 0>;
419
420 hnp-disable;
421 srp-disable;
422 adp-disable;
423
424 status = "okay";
425 };
426
427 &usb_hs1_phy {
428 v1p8-supply = <&pm8941_l6>;
429 v3p3-supply = <&pm8941_l24>;
430
431 qcom,init-seq = /bits/ 8 <0x1 0x64>;
432
433 status = "okay";
434 };