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/gpio/gpio.h>
6 #include <dt-bindings/input/input.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_uart10;
19 stdout-path = "serial0:115200n8";
27 regulator-min-microvolt = <675000>;
28 regulator-max-microvolt = <1050000>;
32 regulator-min-microvolt = <500000>;
33 regulator-max-microvolt = <1050000>;
37 regulator-min-microvolt = <1050000>;
38 regulator-max-microvolt = <1050000>;
42 regulator-min-microvolt = <815000>;
43 regulator-max-microvolt = <900000>;
48 vdd_l1_l3-supply = <&pm8941_s1>;
49 vdd_l2_lvs1_2_3-supply = <&pm8941_s3>;
50 vdd_l4_l11-supply = <&pm8941_s1>;
51 vdd_l5_l7-supply = <&pm8941_s2>;
52 vdd_l6_l12_l14_l15-supply = <&pm8941_s2>;
53 vdd_l8_l16_l18_l19-supply = <&vreg_vph_pwr>;
54 vdd_l9_l10_l17_l22-supply = <&vreg_boost>;
55 vdd_l13_l20_l23_l24-supply = <&vreg_boost>;
56 vdd_l21-supply = <&vreg_boost>;
59 regulator-min-microvolt = <1300000>;
60 regulator-max-microvolt = <1300000>;
67 regulator-min-microvolt = <2150000>;
68 regulator-max-microvolt = <2150000>;
74 regulator-min-microvolt = <1800000>;
75 regulator-max-microvolt = <1800000>;
82 regulator-min-microvolt = <1225000>;
83 regulator-max-microvolt = <1225000>;
90 regulator-min-microvolt = <1200000>;
91 regulator-max-microvolt = <1200000>;
95 regulator-min-microvolt = <1225000>;
96 regulator-max-microvolt = <1225000>;
100 regulator-min-microvolt = <1225000>;
101 regulator-max-microvolt = <1225000>;
105 regulator-min-microvolt = <1800000>;
106 regulator-max-microvolt = <1800000>;
110 regulator-min-microvolt = <1800000>;
111 regulator-max-microvolt = <1800000>;
117 regulator-min-microvolt = <1800000>;
118 regulator-max-microvolt = <1800000>;
124 regulator-min-microvolt = <1800000>;
125 regulator-max-microvolt = <1800000>;
129 regulator-min-microvolt = <1800000>;
130 regulator-max-microvolt = <2950000>;
134 regulator-min-microvolt = <1800000>;
135 regulator-max-microvolt = <2950000>;
139 regulator-min-microvolt = <1300000>;
140 regulator-max-microvolt = <1300000>;
144 regulator-min-microvolt = <1800000>;
145 regulator-max-microvolt = <1800000>;
152 regulator-min-microvolt = <1800000>;
153 regulator-max-microvolt = <2950000>;
159 regulator-min-microvolt = <1800000>;
160 regulator-max-microvolt = <1800000>;
164 regulator-min-microvolt = <2050000>;
165 regulator-max-microvolt = <2050000>;
169 regulator-min-microvolt = <2700000>;
170 regulator-max-microvolt = <2700000>;
174 regulator-min-microvolt = <2850000>;
175 regulator-max-microvolt = <2850000>;
179 regulator-min-microvolt = <2850000>;
180 regulator-max-microvolt = <2850000>;
184 regulator-min-microvolt = <3000000>;
185 regulator-max-microvolt = <3300000>;
189 regulator-min-microvolt = <2950000>;
190 regulator-max-microvolt = <2950000>;
193 regulator-system-load = <200000>;
194 regulator-allow-set-load;
198 regulator-min-microvolt = <2950000>;
199 regulator-max-microvolt = <2950000>;
205 regulator-min-microvolt = <3000000>;
206 regulator-max-microvolt = <3300000>;
210 regulator-min-microvolt = <3000000>;
211 regulator-max-microvolt = <3000000>;
215 regulator-min-microvolt = <3075000>;
216 regulator-max-microvolt = <3075000>;
225 vreg_wlan: wlan-regulator {
226 compatible = "regulator-fixed";
228 regulator-name = "wl-reg";
229 regulator-min-microvolt = <3300000>;
230 regulator-max-microvolt = <3300000>;
232 gpio = <&msmgpio 26 GPIO_ACTIVE_HIGH>;
235 pinctrl-names = "default";
236 pinctrl-0 = <&wlan_regulator_pin>;
246 sdhc1_pin_a: sdhc1-pin-active {
249 drive-strength = <16>;
254 pins = "sdc1_cmd", "sdc1_data";
255 drive-strength = <10>;
260 sdhc2_pin_a: sdhc2-pin-active {
263 drive-strength = <6>;
268 pins = "sdc2_cmd", "sdc2_data";
269 drive-strength = <6>;
276 pins = "gpio2", "gpio3";
277 function = "blsp_i2c1";
279 drive-strength = <2>;
286 pins = "gpio6", "gpio7";
287 function = "blsp_i2c2";
289 drive-strength = <2>;
296 pins = "gpio10", "gpio11";
297 function = "blsp_i2c3";
298 drive-strength = <2>;
305 pins = "gpio83", "gpio84";
306 function = "blsp_i2c11";
308 drive-strength = <2>;
315 pins = "gpio87", "gpio88";
316 function = "blsp_i2c12";
317 drive-strength = <2>;
322 mpu6515_pin: mpu6515 {
336 drive-strength = <2>;
345 drive-strength = <2>;
353 function = "mdp_vsync";
355 drive-strength = <2>;
377 blsp2_uart10_pin_a: blsp2-uart10-pin-active {
380 function = "blsp_uart10";
382 drive-strength = <2>;
388 function = "blsp_uart10";
390 drive-strength = <2>;
396 function = "blsp_uart10";
398 drive-strength = <2>;
404 function = "blsp_uart10";
406 drive-strength = <2>;
415 vmmc-supply = <&pm8941_l20>;
416 vqmmc-supply = <&pm8941_s3>;
421 pinctrl-names = "default";
422 pinctrl-0 = <&sdhc1_pin_a>;
428 max-frequency = <100000000>;
431 vmmc-supply = <&vreg_wlan>;
432 vqmmc-supply = <&pm8941_s3>;
434 pinctrl-names = "default";
435 pinctrl-0 = <&sdhc2_pin_a>;
437 #address-cells = <1>;
441 compatible = "brcm,bcm4339-fmac", "brcm,bcm4329-fmac";
444 brcm,drive-strength = <10>;
446 pinctrl-names = "default";
447 pinctrl-0 = <&wlan_sleep_clk_pin>;
452 compatible = "gpio-keys";
453 input-name = "gpio-keys";
455 pinctrl-names = "default";
456 pinctrl-0 = <&gpio_keys_pin_a>;
460 gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>;
461 linux,input-type = <1>;
462 linux,code = <KEY_VOLUMEUP>;
466 label = "volume_down";
467 gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>;
468 linux,input-type = <1>;
469 linux,code = <KEY_VOLUMEDOWN>;
476 pinctrl-names = "default";
477 pinctrl-0 = <&blsp2_uart10_pin_a>;
480 compatible = "brcm,bcm43438-bt";
481 max-speed = <3000000>;
483 pinctrl-names = "default";
484 pinctrl-0 = <&bt_pin>;
486 host-wakeup-gpios = <&msmgpio 42 GPIO_ACTIVE_HIGH>;
487 device-wakeup-gpios = <&msmgpio 62 GPIO_ACTIVE_HIGH>;
488 shutdown-gpios = <&msmgpio 41 GPIO_ACTIVE_HIGH>;
494 pinctrl-names = "default";
495 pinctrl-0 = <&i2c11_pins>;
496 clock-frequency = <355000>;
497 qcom,src-freq = <50000000>;
500 compatible = "ti,lm3630a";
504 #address-cells = <1>;
510 label = "lcd-backlight";
511 default-brightness = <200>;
518 pinctrl-names = "default";
519 pinctrl-0 = <&i2c12_pins>;
520 clock-frequency = <100000>;
521 qcom,src-freq = <50000000>;
524 compatible = "invensense,mpu6515";
526 interrupts-extended = <&msmgpio 73 IRQ_TYPE_EDGE_FALLING>;
527 vddio-supply = <&pm8941_lvs1>;
529 pinctrl-names = "default";
530 pinctrl-0 = <&mpu6515_pin>;
533 #address-cells = <1>;
536 compatible = "asahi-kasei,ak8963";
538 gpios = <&msmgpio 67 0>;
539 vid-supply = <&pm8941_lvs1>;
540 vdd-supply = <&pm8941_l17>;
544 compatible = "bosch,bmp280";
546 vdda-supply = <&pm8941_lvs1>;
547 vddd-supply = <&pm8941_l17>;
555 pinctrl-names = "default";
556 pinctrl-0 = <&i2c1_pins>;
557 clock-frequency = <100000>;
558 qcom,src-freq = <50000000>;
560 charger: bq24192@6b {
561 compatible = "ti,bq24192";
563 interrupts-extended = <&spmi_bus 0 0xd5 0 IRQ_TYPE_EDGE_FALLING>;
567 usb_otg_vbus: usb-otg-vbus { };
570 fuelgauge: max17048@36 {
571 compatible = "maxim,max17048";
575 maxim,rcomp = /bits/ 8 <0x4d>;
577 interrupt-parent = <&msmgpio>;
578 interrupts = <9 IRQ_TYPE_EDGE_FALLING>;
580 pinctrl-names = "default";
581 pinctrl-0 = <&fuelgauge_pin>;
583 maxim,alert-low-soc-level = <2>;
590 clock-frequency = <355000>;
591 qcom,src-freq = <50000000>;
593 pinctrl-names = "default";
594 pinctrl-0 = <&i2c2_pins>;
597 compatible = "syna,rmi4-i2c";
600 interrupts-extended = <&msmgpio 5 IRQ_TYPE_EDGE_FALLING>;
601 vdd-supply = <&pm8941_l22>;
602 vio-supply = <&pm8941_lvs3>;
604 pinctrl-names = "default";
605 pinctrl-0 = <&touch_pin>;
607 #address-cells = <1>;
612 syna,nosleep-mode = <1>;
617 syna,sensor-type = <1>;
624 pinctrl-names = "default";
625 pinctrl-0 = <&i2c3_pins>;
626 clock-frequency = <100000>;
627 qcom,src-freq = <50000000>;
630 compatible = "avago,apds9930";
632 interrupts-extended = <&msmgpio 61 IRQ_TYPE_EDGE_FALLING>;
633 vdd-supply = <&pm8941_l17>;
634 vddio-supply = <&pm8941_lvs1>;
635 led-max-microamp = <100000>;
636 amstaos,proximity-diodes = <0>;
643 phys = <&usb_hs1_phy>;
644 phy-select = <&tcsr 0xb000 0>;
646 extcon = <&charger>, <&usb_id>;
647 vbus-supply = <&usb_otg_vbus>;
657 v1p8-supply = <&pm8941_l6>;
658 v3p3-supply = <&pm8941_l24>;
660 qcom,init-seq = /bits/ 8 <0x1 0x64>;
675 vdda-supply = <&pm8941_l2>;
676 vdd-supply = <&pm8941_lvs3>;
677 vddio-supply = <&pm8941_l12>;
679 #address-cells = <1>;
685 remote-endpoint = <&panel_in>;
686 data-lanes = <0 1 2 3>;
693 compatible = "lg,acx467akm-7";
695 pinctrl-names = "default";
696 pinctrl-0 = <&panel_pin>;
700 remote-endpoint = <&dsi0_out>;
709 vddio-supply = <&pm8941_l12>;
717 gpio_keys_pin_a: gpio-keys-active {
718 pins = "gpio2", "gpio3";
722 power-source = <PM8941_GPIO_S3>;
725 fuelgauge_pin: fuelgauge-int {
731 power-source = <PM8941_GPIO_S3>;
734 wlan_sleep_clk_pin: wl-sleep-clk {
739 power-source = <PM8941_GPIO_S3>;
742 wlan_regulator_pin: wl-reg-active {
747 power-source = <PM8941_GPIO_S3>;
752 gpios = <35 GPIO_ACTIVE_HIGH>;
754 line-name = "otg-gpio";