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>
10 model = "LGE MSM 8974 HAMMERHEAD";
11 compatible = "lge,hammerhead", "qcom,msm8974";
14 serial0 = &blsp1_uart1;
15 serial1 = &blsp2_uart4;
19 stdout-path = "serial0:115200n8";
23 compatible = "gpio-keys";
25 pinctrl-names = "default";
26 pinctrl-0 = <&gpio_keys_pin_a>;
30 gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>;
31 linux,input-type = <1>;
32 linux,code = <KEY_VOLUMEUP>;
36 label = "volume_down";
37 gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>;
38 linux,input-type = <1>;
39 linux,code = <KEY_VOLUMEDOWN>;
43 vreg_wlan: wlan-regulator {
44 compatible = "regulator-fixed";
46 regulator-name = "wl-reg";
47 regulator-min-microvolt = <3300000>;
48 regulator-max-microvolt = <3300000>;
50 gpio = <&tlmm 26 GPIO_ACTIVE_HIGH>;
53 pinctrl-names = "default";
54 pinctrl-0 = <&wlan_regulator_pin>;
60 clock-frequency = <100000>;
63 compatible = "ti,bq24192";
65 interrupts-extended = <&spmi_bus 0 0xd5 0 IRQ_TYPE_EDGE_FALLING>;
69 usb_otg_vbus: usb-otg-vbus { };
72 fuelgauge: max17048@36 {
73 compatible = "maxim,max17048";
77 maxim,rcomp = /bits/ 8 <0x4d>;
79 interrupt-parent = <&tlmm>;
80 interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
82 pinctrl-names = "default";
83 pinctrl-0 = <&fuelgauge_pin>;
85 maxim,alert-low-soc-level = <2>;
91 clock-frequency = <355000>;
94 compatible = "syna,rmi4-i2c";
97 interrupts-extended = <&tlmm 5 IRQ_TYPE_EDGE_FALLING>;
98 vdd-supply = <&pm8941_l22>;
99 vio-supply = <&pm8941_lvs3>;
101 pinctrl-names = "default";
102 pinctrl-0 = <&touch_pin>;
104 #address-cells = <1>;
109 syna,nosleep-mode = <1>;
114 syna,sensor-type = <1>;
121 clock-frequency = <100000>;
124 compatible = "avago,apds9930";
126 interrupts-extended = <&tlmm 61 IRQ_TYPE_EDGE_FALLING>;
127 vdd-supply = <&pm8941_l17>;
128 vddio-supply = <&pm8941_lvs1>;
129 led-max-microamp = <100000>;
130 amstaos,proximity-diodes = <0>;
136 clock-frequency = <355000>;
139 compatible = "ti,lm3630a";
143 #address-cells = <1>;
149 label = "lcd-backlight";
150 default-brightness = <200>;
157 clock-frequency = <100000>;
160 compatible = "invensense,mpu6515";
162 interrupts-extended = <&tlmm 73 IRQ_TYPE_EDGE_FALLING>;
163 vddio-supply = <&pm8941_lvs1>;
165 pinctrl-names = "default";
166 pinctrl-0 = <&mpu6515_pin>;
168 mount-matrix = "0", "-1", "0",
173 #address-cells = <1>;
176 compatible = "asahi-kasei,ak8963";
178 gpios = <&tlmm 67 GPIO_ACTIVE_HIGH>;
179 vid-supply = <&pm8941_lvs1>;
180 vdd-supply = <&pm8941_l17>;
184 compatible = "bosch,bmp280";
186 vdda-supply = <&pm8941_lvs1>;
187 vddd-supply = <&pm8941_l17>;
201 compatible = "brcm,bcm43438-bt";
202 max-speed = <3000000>;
204 pinctrl-names = "default";
205 pinctrl-0 = <&bt_pin>;
207 host-wakeup-gpios = <&tlmm 42 GPIO_ACTIVE_HIGH>;
208 device-wakeup-gpios = <&tlmm 62 GPIO_ACTIVE_HIGH>;
209 shutdown-gpios = <&tlmm 41 GPIO_ACTIVE_HIGH>;
216 vdda-supply = <&pm8941_l2>;
217 vdd-supply = <&pm8941_lvs3>;
218 vddio-supply = <&pm8941_l12>;
222 compatible = "lg,acx467akm-7";
224 pinctrl-names = "default";
225 pinctrl-0 = <&panel_pin>;
229 remote-endpoint = <&dsi0_out>;
236 remote-endpoint = <&panel_in>;
237 data-lanes = <0 1 2 3>;
243 vddio-supply = <&pm8941_l12>;
253 phys = <&usb_hs1_phy>;
254 phy-select = <&tcsr 0xb000 0>;
256 extcon = <&charger>, <&usb_id>;
257 vbus-supply = <&usb_otg_vbus>;
267 v1p8-supply = <&pm8941_l6>;
268 v3p3-supply = <&pm8941_l24>;
270 qcom,init-seq = /bits/ 8 <0x1 0x64>;
276 gpio_keys_pin_a: gpio-keys-active-state {
277 pins = "gpio2", "gpio3";
281 power-source = <PM8941_GPIO_S3>;
284 fuelgauge_pin: fuelgauge-int-state {
290 power-source = <PM8941_GPIO_S3>;
293 wlan_sleep_clk_pin: wl-sleep-clk-state {
298 power-source = <PM8941_GPIO_S3>;
301 wlan_regulator_pin: wl-reg-active-state {
306 power-source = <PM8941_GPIO_S3>;
311 gpios = <35 GPIO_ACTIVE_HIGH>;
313 line-name = "otg-gpio";
320 qcom,power-source = <1>;
323 color = <LED_COLOR_ID_RGB>;
324 function = LED_FUNCTION_STATUS;
326 #address-cells = <1>;
331 color = <LED_COLOR_ID_RED>;
336 color = <LED_COLOR_ID_GREEN>;
341 color = <LED_COLOR_ID_BLUE>;
348 compatible = "qcom,rpm-pm8841-regulators";
351 regulator-min-microvolt = <675000>;
352 regulator-max-microvolt = <1050000>;
356 regulator-min-microvolt = <500000>;
357 regulator-max-microvolt = <1050000>;
361 regulator-min-microvolt = <1050000>;
362 regulator-max-microvolt = <1050000>;
366 regulator-min-microvolt = <815000>;
367 regulator-max-microvolt = <900000>;
372 compatible = "qcom,rpm-pm8941-regulators";
374 vdd_l1_l3-supply = <&pm8941_s1>;
375 vdd_l2_lvs1_2_3-supply = <&pm8941_s3>;
376 vdd_l4_l11-supply = <&pm8941_s1>;
377 vdd_l5_l7-supply = <&pm8941_s2>;
378 vdd_l6_l12_l14_l15-supply = <&pm8941_s2>;
379 vdd_l8_l16_l18_l19-supply = <&vreg_vph_pwr>;
380 vdd_l9_l10_l17_l22-supply = <&vreg_boost>;
381 vdd_l13_l20_l23_l24-supply = <&vreg_boost>;
382 vdd_l21-supply = <&vreg_boost>;
385 regulator-min-microvolt = <1300000>;
386 regulator-max-microvolt = <1300000>;
392 regulator-min-microvolt = <2150000>;
393 regulator-max-microvolt = <2150000>;
398 regulator-min-microvolt = <1800000>;
399 regulator-max-microvolt = <1800000>;
405 regulator-min-microvolt = <1225000>;
406 regulator-max-microvolt = <1225000>;
412 regulator-min-microvolt = <1200000>;
413 regulator-max-microvolt = <1200000>;
417 regulator-min-microvolt = <1225000>;
418 regulator-max-microvolt = <1225000>;
422 regulator-min-microvolt = <1225000>;
423 regulator-max-microvolt = <1225000>;
427 regulator-min-microvolt = <1800000>;
428 regulator-max-microvolt = <1800000>;
432 regulator-min-microvolt = <1800000>;
433 regulator-max-microvolt = <1800000>;
438 regulator-min-microvolt = <1800000>;
439 regulator-max-microvolt = <1800000>;
444 regulator-min-microvolt = <1800000>;
445 regulator-max-microvolt = <1800000>;
449 regulator-min-microvolt = <1800000>;
450 regulator-max-microvolt = <2950000>;
454 regulator-min-microvolt = <1800000>;
455 regulator-max-microvolt = <2950000>;
459 regulator-min-microvolt = <1300000>;
460 regulator-max-microvolt = <1300000>;
464 regulator-min-microvolt = <1800000>;
465 regulator-max-microvolt = <1800000>;
471 regulator-min-microvolt = <1800000>;
472 regulator-max-microvolt = <2950000>;
477 regulator-min-microvolt = <1800000>;
478 regulator-max-microvolt = <1800000>;
482 regulator-min-microvolt = <2050000>;
483 regulator-max-microvolt = <2050000>;
487 regulator-min-microvolt = <2700000>;
488 regulator-max-microvolt = <2700000>;
492 regulator-min-microvolt = <2850000>;
493 regulator-max-microvolt = <2850000>;
497 regulator-min-microvolt = <2850000>;
498 regulator-max-microvolt = <2850000>;
502 regulator-min-microvolt = <3000000>;
503 regulator-max-microvolt = <3300000>;
507 regulator-min-microvolt = <2950000>;
508 regulator-max-microvolt = <2950000>;
509 regulator-system-load = <200000>;
510 regulator-allow-set-load;
515 regulator-min-microvolt = <2950000>;
516 regulator-max-microvolt = <2950000>;
521 regulator-min-microvolt = <3000000>;
522 regulator-max-microvolt = <3300000>;
526 regulator-min-microvolt = <3000000>;
527 regulator-max-microvolt = <3000000>;
531 regulator-min-microvolt = <3075000>;
532 regulator-max-microvolt = <3075000>;
536 pm8941_lvs1: lvs1 {};
537 pm8941_lvs3: lvs3 {};
544 vmmc-supply = <&pm8941_l20>;
545 vqmmc-supply = <&pm8941_s3>;
547 pinctrl-names = "default", "sleep";
548 pinctrl-0 = <&sdc1_on>;
549 pinctrl-1 = <&sdc1_off>;
555 max-frequency = <100000000>;
556 vmmc-supply = <&vreg_wlan>;
557 vqmmc-supply = <&pm8941_s3>;
560 pinctrl-names = "default", "sleep";
561 pinctrl-0 = <&sdc2_on>;
562 pinctrl-1 = <&sdc2_off>;
565 compatible = "brcm,bcm4339-fmac", "brcm,bcm4329-fmac";
568 brcm,drive-strength = <10>;
570 pinctrl-names = "default";
571 pinctrl-0 = <&wlan_sleep_clk_pin>;
579 drive-strength = <16>;
584 pins = "sdc1_cmd", "sdc1_data";
585 drive-strength = <10>;
593 drive-strength = <6>;
598 pins = "sdc2_cmd", "sdc2_data";
599 drive-strength = <6>;
604 mpu6515_pin: mpu6515 {
616 drive-strength = <2>;
625 drive-strength = <2>;
632 function = "mdp_vsync";
633 drive-strength = <2>;