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>
11 serial0 = &blsp1_uart2;
15 stdout-path = "serial0:115200n8";
19 compatible = "gpio-keys";
21 pinctrl-names = "default";
22 pinctrl-0 = <&gpio_keys_pin_a>;
25 label = "volume_down";
26 gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>;
27 linux,input-type = <1>;
28 linux,code = <KEY_VOLUMEDOWN>;
32 label = "camera_snapshot";
33 gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>;
34 linux,input-type = <1>;
35 linux,code = <KEY_CAMERA>;
39 label = "camera_focus";
40 gpios = <&pm8941_gpios 4 GPIO_ACTIVE_LOW>;
41 linux,input-type = <1>;
42 linux,code = <KEY_CAMERA_FOCUS>;
47 gpios = <&pm8941_gpios 5 GPIO_ACTIVE_LOW>;
48 linux,input-type = <1>;
49 linux,code = <KEY_VOLUMEUP>;
59 compatible = "ramoops";
60 reg = <0x3e8e0000 0x200000>;
62 console-size = <0x100000>;
63 record-size = <0x10000>;
64 ftrace-size = <0x10000>;
65 pmsg-size = <0x80000>;
72 clock-frequency = <355000>;
75 compatible = "syna,rmi4-i2c";
78 interrupts-extended = <&tlmm 61 IRQ_TYPE_EDGE_FALLING>;
83 vdd-supply = <&pm8941_l22>;
84 vio-supply = <&pm8941_lvs3>;
86 pinctrl-names = "default";
87 pinctrl-0 = <&ts_int_pin>;
89 syna,startup-delay-ms = <10>;
93 syna,nosleep-mode = <1>;
98 touchscreen-inverted-x;
99 syna,sensor-type = <1>;
106 clock-frequency = <355000>;
109 compatible = "nxp,pn544-i2c";
112 interrupt-parent = <&tlmm>;
113 interrupts = <59 IRQ_TYPE_EDGE_RISING>;
115 enable-gpios = <&pm8941_gpios 23 GPIO_ACTIVE_HIGH>;
116 firmware-gpios = <&tlmm 77 GPIO_ACTIVE_HIGH>;
125 qcom,controlled-remotely;
130 clock-frequency = <355000>;
132 /* sii8334 MHL HDMI bridge */
138 phys = <&usb_hs1_phy>;
139 phy-select = <&tcsr 0xb000 0>;
140 extcon = <&smbb>, <&usb_id>;
141 vbus-supply = <&chg_otg>;
151 v1p8-supply = <&pm8941_l6>;
152 v3p3-supply = <&pm8941_l24>;
155 qcom,init-seq = /bits/ 8 <0x1 0x64>;
162 qcom,rset-ohms = <2100>;
163 qcom,vset-millivolts = <3000>;
167 gpio_keys_pin_a: gpio-keys-active-state {
168 pins = "gpio2", "gpio3", "gpio4", "gpio5";
172 power-source = <PM8941_GPIO_S3>;
179 qcom,power-source = <1>;
182 color = <LED_COLOR_ID_RGB>;
183 function = LED_FUNCTION_STATUS;
185 #address-cells = <1>;
190 color = <LED_COLOR_ID_BLUE>;
195 color = <LED_COLOR_ID_GREEN>;
200 color = <LED_COLOR_ID_RED>;
209 qcom,current-limit = <20>;
210 qcom,current-boost-limit = <805>;
211 qcom,switching-freq = <1600>;
213 qcom,num-strings = <2>;
218 compatible = "qcom,rpm-pm8841-regulators";
221 regulator-min-microvolt = <675000>;
222 regulator-max-microvolt = <1050000>;
226 regulator-min-microvolt = <500000>;
227 regulator-max-microvolt = <1050000>;
231 regulator-min-microvolt = <500000>;
232 regulator-max-microvolt = <1050000>;
236 regulator-min-microvolt = <500000>;
237 regulator-max-microvolt = <1050000>;
242 compatible = "qcom,rpm-pm8941-regulators";
244 vdd_l1_l3-supply = <&pm8941_s1>;
245 vdd_l2_lvs1_2_3-supply = <&pm8941_s3>;
246 vdd_l4_l11-supply = <&pm8941_s1>;
247 vdd_l5_l7-supply = <&pm8941_s2>;
248 vdd_l6_l12_l14_l15-supply = <&pm8941_s2>;
249 vdd_l9_l10_l17_l22-supply = <&vreg_boost>;
250 vdd_l13_l20_l23_l24-supply = <&vreg_boost>;
251 vdd_l21-supply = <&vreg_boost>;
254 regulator-min-microvolt = <1300000>;
255 regulator-max-microvolt = <1300000>;
261 regulator-min-microvolt = <2150000>;
262 regulator-max-microvolt = <2150000>;
267 regulator-min-microvolt = <1800000>;
268 regulator-max-microvolt = <1800000>;
274 regulator-min-microvolt = <5000000>;
275 regulator-max-microvolt = <5000000>;
279 regulator-min-microvolt = <1225000>;
280 regulator-max-microvolt = <1225000>;
286 regulator-min-microvolt = <1200000>;
287 regulator-max-microvolt = <1200000>;
291 regulator-min-microvolt = <1200000>;
292 regulator-max-microvolt = <1200000>;
296 regulator-min-microvolt = <1225000>;
297 regulator-max-microvolt = <1225000>;
301 regulator-min-microvolt = <1800000>;
302 regulator-max-microvolt = <1800000>;
306 regulator-min-microvolt = <1800000>;
307 regulator-max-microvolt = <1800000>;
312 regulator-min-microvolt = <1800000>;
313 regulator-max-microvolt = <1800000>;
318 regulator-min-microvolt = <1800000>;
319 regulator-max-microvolt = <1800000>;
323 regulator-min-microvolt = <1800000>;
324 regulator-max-microvolt = <2950000>;
328 regulator-min-microvolt = <1300000>;
329 regulator-max-microvolt = <1350000>;
333 regulator-min-microvolt = <1800000>;
334 regulator-max-microvolt = <1800000>;
340 regulator-min-microvolt = <1800000>;
341 regulator-max-microvolt = <2950000>;
346 regulator-min-microvolt = <1800000>;
347 regulator-max-microvolt = <1800000>;
351 regulator-min-microvolt = <2050000>;
352 regulator-max-microvolt = <2050000>;
356 regulator-min-microvolt = <2700000>;
357 regulator-max-microvolt = <2700000>;
361 regulator-min-microvolt = <2700000>;
362 regulator-max-microvolt = <2700000>;
366 regulator-min-microvolt = <2850000>;
367 regulator-max-microvolt = <2850000>;
371 regulator-min-microvolt = <3300000>;
372 regulator-max-microvolt = <3300000>;
376 regulator-min-microvolt = <2950000>;
377 regulator-max-microvolt = <2950000>;
378 regulator-system-load = <200000>;
379 regulator-allow-set-load;
384 regulator-min-microvolt = <2950000>;
385 regulator-max-microvolt = <2950000>;
390 regulator-min-microvolt = <3000000>;
391 regulator-max-microvolt = <3000000>;
395 regulator-min-microvolt = <2800000>;
396 regulator-max-microvolt = <2800000>;
400 regulator-min-microvolt = <3075000>;
401 regulator-max-microvolt = <3075000>;
405 pm8941_lvs3: lvs3 {};
412 vmmc-supply = <&pm8941_l20>;
413 vqmmc-supply = <&pm8941_s3>;
415 pinctrl-names = "default", "sleep";
416 pinctrl-0 = <&sdc1_on>;
417 pinctrl-1 = <&sdc1_off>;
423 vmmc-supply = <&pm8941_l21>;
424 vqmmc-supply = <&pm8941_l13>;
426 cd-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>;
428 pinctrl-names = "default", "sleep";
429 pinctrl-0 = <&sdc2_on>;
430 pinctrl-1 = <&sdc2_off>;
434 qcom,fast-charge-safe-current = <1500000>;
435 qcom,fast-charge-current-limit = <1500000>;
436 qcom,dc-current-limit = <1800000>;
437 qcom,fast-charge-safe-voltage = <4400000>;
438 qcom,fast-charge-high-threshold-voltage = <4350000>;
439 qcom,fast-charge-low-threshold-voltage = <3400000>;
440 qcom,auto-recharge-threshold-voltage = <4200000>;
441 qcom,minimum-input-voltage = <4300000>;
445 ts_int_pin: touch-int {
448 drive-strength = <2>;
456 drive-strength = <16>;
461 pins = "sdc1_cmd", "sdc1_data";
462 drive-strength = <10>;
470 drive-strength = <10>;
475 pins = "sdc2_cmd", "sdc2_data";
476 drive-strength = <6>;
483 drive-strength = <2>;