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;
18 stdout-path = "serial0:115200n8";
26 regulator-min-microvolt = <675000>;
27 regulator-max-microvolt = <1050000>;
31 regulator-min-microvolt = <500000>;
32 regulator-max-microvolt = <1050000>;
36 regulator-min-microvolt = <1050000>;
37 regulator-max-microvolt = <1050000>;
41 regulator-min-microvolt = <815000>;
42 regulator-max-microvolt = <900000>;
47 vdd_l1_l3-supply = <&pm8941_s1>;
48 vdd_l2_lvs1_2_3-supply = <&pm8941_s3>;
49 vdd_l4_l11-supply = <&pm8941_s1>;
50 vdd_l5_l7-supply = <&pm8941_s2>;
51 vdd_l6_l12_l14_l15-supply = <&pm8941_s2>;
52 vdd_l8_l16_l18_l19-supply = <&vreg_vph_pwr>;
53 vdd_l9_l10_l17_l22-supply = <&vreg_boost>;
54 vdd_l13_l20_l23_l24-supply = <&vreg_boost>;
55 vdd_l21-supply = <&vreg_boost>;
58 regulator-min-microvolt = <1300000>;
59 regulator-max-microvolt = <1300000>;
66 regulator-min-microvolt = <2150000>;
67 regulator-max-microvolt = <2150000>;
73 regulator-min-microvolt = <1800000>;
74 regulator-max-microvolt = <1800000>;
81 regulator-min-microvolt = <1225000>;
82 regulator-max-microvolt = <1225000>;
89 regulator-min-microvolt = <1200000>;
90 regulator-max-microvolt = <1200000>;
94 regulator-min-microvolt = <1225000>;
95 regulator-max-microvolt = <1225000>;
99 regulator-min-microvolt = <1225000>;
100 regulator-max-microvolt = <1225000>;
104 regulator-min-microvolt = <1800000>;
105 regulator-max-microvolt = <1800000>;
109 regulator-min-microvolt = <1800000>;
110 regulator-max-microvolt = <1800000>;
116 regulator-min-microvolt = <1800000>;
117 regulator-max-microvolt = <1800000>;
123 regulator-min-microvolt = <1800000>;
124 regulator-max-microvolt = <1800000>;
128 regulator-min-microvolt = <1800000>;
129 regulator-max-microvolt = <2950000>;
133 regulator-min-microvolt = <1800000>;
134 regulator-max-microvolt = <2950000>;
138 regulator-min-microvolt = <1300000>;
139 regulator-max-microvolt = <1300000>;
143 regulator-min-microvolt = <1800000>;
144 regulator-max-microvolt = <1800000>;
151 regulator-min-microvolt = <1800000>;
152 regulator-max-microvolt = <2950000>;
158 regulator-min-microvolt = <1800000>;
159 regulator-max-microvolt = <1800000>;
163 regulator-min-microvolt = <2050000>;
164 regulator-max-microvolt = <2050000>;
168 regulator-min-microvolt = <2700000>;
169 regulator-max-microvolt = <2700000>;
173 regulator-min-microvolt = <2850000>;
174 regulator-max-microvolt = <2850000>;
178 regulator-min-microvolt = <2850000>;
179 regulator-max-microvolt = <2850000>;
183 regulator-min-microvolt = <3000000>;
184 regulator-max-microvolt = <3300000>;
188 regulator-min-microvolt = <2950000>;
189 regulator-max-microvolt = <2950000>;
192 regulator-system-load = <200000>;
193 regulator-allow-set-load;
197 regulator-min-microvolt = <2950000>;
198 regulator-max-microvolt = <2950000>;
204 regulator-min-microvolt = <3000000>;
205 regulator-max-microvolt = <3300000>;
209 regulator-min-microvolt = <3000000>;
210 regulator-max-microvolt = <3000000>;
214 regulator-min-microvolt = <3075000>;
215 regulator-max-microvolt = <3075000>;
224 vreg_wlan: wlan-regulator {
225 compatible = "regulator-fixed";
227 regulator-name = "wl-reg";
228 regulator-min-microvolt = <3300000>;
229 regulator-max-microvolt = <3300000>;
231 gpio = <&msmgpio 26 GPIO_ACTIVE_HIGH>;
234 pinctrl-names = "default";
235 pinctrl-0 = <&wlan_regulator_pin>;
245 sdhc1_pin_a: sdhc1-pin-active {
248 drive-strength = <16>;
253 pins = "sdc1_cmd", "sdc1_data";
254 drive-strength = <10>;
259 sdhc2_pin_a: sdhc2-pin-active {
262 drive-strength = <6>;
267 pins = "sdc2_cmd", "sdc2_data";
268 drive-strength = <6>;
275 pins = "gpio2", "gpio3";
276 function = "blsp_i2c1";
278 drive-strength = <2>;
285 pins = "gpio6", "gpio7";
286 function = "blsp_i2c2";
288 drive-strength = <2>;
295 pins = "gpio10", "gpio11";
296 function = "blsp_i2c3";
297 drive-strength = <2>;
304 pins = "gpio83", "gpio84";
305 function = "blsp_i2c11";
307 drive-strength = <2>;
314 pins = "gpio87", "gpio88";
315 function = "blsp_i2c12";
316 drive-strength = <2>;
321 mpu6515_pin: mpu6515 {
335 drive-strength = <2>;
344 drive-strength = <2>;
352 function = "mdp_vsync";
354 drive-strength = <2>;
363 vmmc-supply = <&pm8941_l20>;
364 vqmmc-supply = <&pm8941_s3>;
369 pinctrl-names = "default";
370 pinctrl-0 = <&sdhc1_pin_a>;
376 max-frequency = <100000000>;
379 vmmc-supply = <&vreg_wlan>;
380 vqmmc-supply = <&pm8941_s3>;
382 pinctrl-names = "default";
383 pinctrl-0 = <&sdhc2_pin_a>;
385 #address-cells = <1>;
389 compatible = "brcm,bcm4339-fmac", "brcm,bcm4329-fmac";
392 brcm,drive-strength = <10>;
394 pinctrl-names = "default";
395 pinctrl-0 = <&wlan_sleep_clk_pin>;
400 compatible = "gpio-keys";
401 input-name = "gpio-keys";
403 pinctrl-names = "default";
404 pinctrl-0 = <&gpio_keys_pin_a>;
408 gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>;
409 linux,input-type = <1>;
410 linux,code = <KEY_VOLUMEUP>;
414 label = "volume_down";
415 gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>;
416 linux,input-type = <1>;
417 linux,code = <KEY_VOLUMEDOWN>;
423 pinctrl-names = "default";
424 pinctrl-0 = <&i2c11_pins>;
425 clock-frequency = <355000>;
426 qcom,src-freq = <50000000>;
429 compatible = "ti,lm3630a";
433 #address-cells = <1>;
439 label = "lcd-backlight";
440 default-brightness = <200>;
447 pinctrl-names = "default";
448 pinctrl-0 = <&i2c12_pins>;
449 clock-frequency = <100000>;
450 qcom,src-freq = <50000000>;
453 compatible = "invensense,mpu6515";
455 interrupts-extended = <&msmgpio 73 IRQ_TYPE_EDGE_FALLING>;
456 vddio-supply = <&pm8941_lvs1>;
458 pinctrl-names = "default";
459 pinctrl-0 = <&mpu6515_pin>;
462 #address-cells = <1>;
465 compatible = "asahi-kasei,ak8963";
467 gpios = <&msmgpio 67 0>;
468 vid-supply = <&pm8941_lvs1>;
469 vdd-supply = <&pm8941_l17>;
473 compatible = "bosch,bmp280";
475 vdda-supply = <&pm8941_lvs1>;
476 vddd-supply = <&pm8941_l17>;
484 pinctrl-names = "default";
485 pinctrl-0 = <&i2c1_pins>;
486 clock-frequency = <100000>;
487 qcom,src-freq = <50000000>;
489 charger: bq24192@6b {
490 compatible = "ti,bq24192";
492 interrupts-extended = <&spmi_bus 0 0xd5 0 IRQ_TYPE_EDGE_FALLING>;
496 usb_otg_vbus: usb-otg-vbus { };
503 clock-frequency = <355000>;
504 qcom,src-freq = <50000000>;
506 pinctrl-names = "default";
507 pinctrl-0 = <&i2c2_pins>;
510 compatible = "syna,rmi4-i2c";
513 interrupts-extended = <&msmgpio 5 IRQ_TYPE_EDGE_FALLING>;
514 vdd-supply = <&pm8941_l22>;
515 vio-supply = <&pm8941_lvs3>;
517 pinctrl-names = "default";
518 pinctrl-0 = <&touch_pin>;
520 #address-cells = <1>;
525 syna,nosleep-mode = <1>;
530 syna,sensor-type = <1>;
537 pinctrl-names = "default";
538 pinctrl-0 = <&i2c3_pins>;
539 clock-frequency = <100000>;
540 qcom,src-freq = <50000000>;
543 compatible = "avago,apds9930";
545 interrupts-extended = <&msmgpio 61 IRQ_TYPE_EDGE_FALLING>;
546 vdd-supply = <&pm8941_l17>;
547 vddio-supply = <&pm8941_lvs1>;
548 led-max-microamp = <100000>;
549 amstaos,proximity-diodes = <0>;
556 phys = <&usb_hs1_phy>;
557 phy-select = <&tcsr 0xb000 0>;
559 extcon = <&charger>, <&usb_id>;
560 vbus-supply = <&usb_otg_vbus>;
570 v1p8-supply = <&pm8941_l6>;
571 v3p3-supply = <&pm8941_l24>;
573 qcom,init-seq = /bits/ 8 <0x1 0x64>;
588 vdda-supply = <&pm8941_l2>;
589 vdd-supply = <&pm8941_lvs3>;
590 vddio-supply = <&pm8941_l12>;
592 #address-cells = <1>;
598 remote-endpoint = <&panel_in>;
599 data-lanes = <0 1 2 3>;
606 compatible = "lg,acx467akm-7";
608 pinctrl-names = "default";
609 pinctrl-0 = <&panel_pin>;
613 remote-endpoint = <&dsi0_out>;
622 vddio-supply = <&pm8941_l12>;
630 gpio_keys_pin_a: gpio-keys-active {
631 pins = "gpio2", "gpio3";
635 power-source = <PM8941_GPIO_S3>;
638 wlan_sleep_clk_pin: wl-sleep-clk {
643 power-source = <PM8941_GPIO_S3>;
646 wlan_regulator_pin: wl-reg-active {
651 power-source = <PM8941_GPIO_S3>;
656 gpios = <35 GPIO_ACTIVE_HIGH>;
658 line-name = "otg-gpio";