1 // SPDX-License-Identifier: GPL-2.0
2 #include "qcom-msm8974pro.dtsi"
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/leds/common.h>
7 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
13 serial0 = &blsp1_uart2;
14 serial1 = &blsp2_uart1;
18 stdout-path = "serial0:115200n8";
22 compatible = "gpio-keys";
24 pinctrl-0 = <&gpio_keys_pin_a>;
25 pinctrl-names = "default";
28 label = "volume_down";
29 gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_VOLUMEDOWN>;
31 debounce-interval = <15>;
36 gpios = <&pm8941_gpios 5 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_VOLUMEUP>;
38 debounce-interval = <15>;
42 vreg_vsp: lcd-dcdc-regulator {
43 compatible = "regulator-fixed";
44 regulator-name = "vreg_vsp";
45 regulator-min-microvolt = <5600000>;
46 regulator-max-microvolt = <5600000>;
48 gpio = <&pm8941_gpios 20 GPIO_ACTIVE_HIGH>;
51 pinctrl-0 = <&lcd_dcdc_en_pin_a>;
52 pinctrl-names = "default";
55 vreg_boost: vreg-boost {
56 compatible = "regulator-fixed";
58 regulator-name = "vreg-boost";
59 regulator-min-microvolt = <3150000>;
60 regulator-max-microvolt = <3150000>;
65 gpio = <&pm8941_gpios 21 GPIO_ACTIVE_HIGH>;
68 pinctrl-names = "default";
69 pinctrl-0 = <&boost_bypass_n_pin>;
72 vreg_vph_pwr: vreg-vph-pwr {
73 compatible = "regulator-fixed";
74 regulator-name = "vph-pwr";
76 regulator-min-microvolt = <3600000>;
77 regulator-max-microvolt = <3600000>;
82 vreg_wlan: wlan-regulator {
83 compatible = "regulator-fixed";
85 regulator-name = "wl-reg";
86 regulator-min-microvolt = <3300000>;
87 regulator-max-microvolt = <3300000>;
89 gpio = <&pm8941_gpios 18 GPIO_ACTIVE_HIGH>;
92 pinctrl-0 = <&wlan_regulator_pin>;
93 pinctrl-names = "default";
102 clock-frequency = <355000>;
106 synaptics_touchscreen: synaptics@2c {
107 compatible = "syna,rmi4-i2c";
110 interrupt-parent = <&tlmm>;
111 interrupts = <86 IRQ_TYPE_EDGE_FALLING>;
113 #address-cells = <1>;
116 vdd-supply = <&pm8941_l22>;
117 /* vio-supply is set in dts */
119 pinctrl-0 = <&ts_int_pin>;
120 pinctrl-names = "default";
122 syna,startup-delay-ms = <100>;
126 syna,nosleep-mode = <1>;
131 syna,sensor-type = <1>;
132 touchscreen-inverted-x;
138 qcom,rset-ohms = <2100>;
139 qcom,vset-millivolts = <3000>;
145 gpio_keys_pin_a: gpio-keys-active-state {
146 pins = "gpio2", "gpio5";
149 power-source = <PM8941_GPIO_S3>;
152 wlan_sleep_clk_pin: wl-sleep-clk-state {
156 power-source = <PM8941_GPIO_S3>;
159 wlan_regulator_pin: wl-reg-active-state {
163 power-source = <PM8941_GPIO_S3>;
166 lcd_dcdc_en_pin_a: lcd-dcdc-en-active-state {
170 power-source = <PM8941_GPIO_S3>;
177 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>;
210 cx-supply = <&pm8841_s2>;
215 cx-supply = <&pm8841_s2>;
216 mss-supply = <&pm8841_s3>;
217 mx-supply = <&pm8841_s1>;
218 pll-supply = <&pm8941_l12>;
224 compatible = "qcom,rpm-pm8841-regulators";
227 regulator-min-microvolt = <675000>;
228 regulator-max-microvolt = <1050000>;
232 regulator-min-microvolt = <500000>;
233 regulator-max-microvolt = <1050000>;
237 regulator-min-microvolt = <500000>;
238 regulator-max-microvolt = <1050000>;
242 regulator-min-microvolt = <500000>;
243 regulator-max-microvolt = <1050000>;
248 compatible = "qcom,rpm-pm8941-regulators";
250 vdd_l1_l3-supply = <&pm8941_s1>;
251 vdd_l2_lvs1_2_3-supply = <&pm8941_s3>;
252 vdd_l4_l11-supply = <&pm8941_s1>;
253 vdd_l5_l7-supply = <&pm8941_s2>;
254 vdd_l6_l12_l14_l15-supply = <&pm8941_s2>;
255 vdd_l9_l10_l17_l22-supply = <&vreg_boost>;
256 vdd_l13_l20_l23_l24-supply = <&vreg_boost>;
257 vdd_l21-supply = <&vreg_boost>;
260 regulator-min-microvolt = <1300000>;
261 regulator-max-microvolt = <1300000>;
267 regulator-min-microvolt = <2150000>;
268 regulator-max-microvolt = <2150000>;
273 regulator-min-microvolt = <1800000>;
274 regulator-max-microvolt = <1800000>;
275 regulator-system-load = <154000>;
281 regulator-min-microvolt = <5000000>;
282 regulator-max-microvolt = <5000000>;
286 regulator-min-microvolt = <1225000>;
287 regulator-max-microvolt = <1225000>;
293 regulator-min-microvolt = <1200000>;
294 regulator-max-microvolt = <1200000>;
298 regulator-min-microvolt = <1200000>;
299 regulator-max-microvolt = <1200000>;
303 regulator-min-microvolt = <1225000>;
304 regulator-max-microvolt = <1225000>;
308 regulator-min-microvolt = <1800000>;
309 regulator-max-microvolt = <1800000>;
313 regulator-min-microvolt = <1800000>;
314 regulator-max-microvolt = <1800000>;
319 regulator-min-microvolt = <1800000>;
320 regulator-max-microvolt = <1800000>;
325 regulator-min-microvolt = <1800000>;
326 regulator-max-microvolt = <1800000>;
330 regulator-min-microvolt = <1800000>;
331 regulator-max-microvolt = <2950000>;
335 regulator-min-microvolt = <1800000>;
336 regulator-max-microvolt = <1800000>;
342 regulator-min-microvolt = <1800000>;
343 regulator-max-microvolt = <2950000>;
348 regulator-min-microvolt = <1800000>;
349 regulator-max-microvolt = <1800000>;
353 regulator-min-microvolt = <2050000>;
354 regulator-max-microvolt = <2050000>;
358 regulator-min-microvolt = <2700000>;
359 regulator-max-microvolt = <2700000>;
363 regulator-min-microvolt = <2700000>;
364 regulator-max-microvolt = <2700000>;
368 regulator-min-microvolt = <2850000>;
369 regulator-max-microvolt = <2850000>;
373 regulator-min-microvolt = <2950000>;
374 regulator-max-microvolt = <2950000>;
375 regulator-system-load = <500000>;
376 regulator-allow-set-load;
381 regulator-min-microvolt = <2950000>;
382 regulator-max-microvolt = <2950000>;
383 regulator-system-load = <500000>;
384 regulator-allow-set-load;
389 regulator-min-microvolt = <3000000>;
390 regulator-max-microvolt = <3000000>;
394 regulator-min-microvolt = <2800000>;
395 regulator-max-microvolt = <2800000>;
399 regulator-min-microvolt = <3075000>;
400 regulator-max-microvolt = <3075000>;
404 pm8941_lvs3: lvs3 {};
409 vmmc-supply = <&pm8941_l20>;
410 vqmmc-supply = <&pm8941_s3>;
412 pinctrl-0 = <&sdc1_on>;
413 pinctrl-1 = <&sdc1_off>;
414 pinctrl-names = "default", "sleep";
420 vmmc-supply = <&pm8941_l21>;
421 vqmmc-supply = <&pm8941_l13>;
423 cd-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>;
425 pinctrl-0 = <&sdc2_on>;
426 pinctrl-1 = <&sdc2_off>;
427 pinctrl-names = "default", "sleep";
433 max-frequency = <100000000>;
434 vmmc-supply = <&vreg_wlan>;
437 pinctrl-0 = <&sdc3_on>;
438 pinctrl-names = "default";
443 compatible = "brcm,bcm4339-fmac", "brcm,bcm4329-fmac";
446 brcm,drive-strength = <10>;
448 pinctrl-0 = <&wlan_sleep_clk_pin>;
449 pinctrl-names = "default";
454 sdc1_on: sdc1-on-state {
457 drive-strength = <16>;
462 pins = "sdc1_cmd", "sdc1_data";
463 drive-strength = <10>;
468 sdc2_on: sdc2-on-state {
471 drive-strength = <6>;
476 pins = "sdc2_cmd", "sdc2_data";
477 drive-strength = <6>;
484 drive-strength = <2>;
489 sdc3_on: sdc3-on-state {
493 drive-strength = <10>;
500 drive-strength = <10>;
505 pins = "gpio35", "gpio36", "gpio37", "gpio38";
507 drive-strength = <10>;
512 ts_int_pin: ts-int-pin-state {
515 drive-strength = <2>;
521 phys = <&usb_hs1_phy>;
522 phy-select = <&tcsr 0xb000 0>;
523 extcon = <&smbb>, <&usb_id>;
524 vbus-supply = <&chg_otg>;
534 v1p8-supply = <&pm8941_l6>;
535 v3p3-supply = <&pm8941_l24>;
538 qcom,init-seq = /bits/ 8 <0x1 0x64>;