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/pinctrl/qcom,pmic-gpio.h>
9 model = "LGE MSM 8974 HAMMERHEAD";
10 compatible = "lge,hammerhead", "qcom,msm8974";
13 serial0 = &blsp1_uart1;
14 serial1 = &blsp2_uart4;
18 stdout-path = "serial0:115200n8";
22 compatible = "gpio-keys";
24 pinctrl-names = "default";
25 pinctrl-0 = <&gpio_keys_pin_a>;
29 gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>;
30 linux,input-type = <1>;
31 linux,code = <KEY_VOLUMEUP>;
35 label = "volume_down";
36 gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>;
37 linux,input-type = <1>;
38 linux,code = <KEY_VOLUMEDOWN>;
42 vreg_wlan: wlan-regulator {
43 compatible = "regulator-fixed";
45 regulator-name = "wl-reg";
46 regulator-min-microvolt = <3300000>;
47 regulator-max-microvolt = <3300000>;
49 gpio = <&tlmm 26 GPIO_ACTIVE_HIGH>;
52 pinctrl-names = "default";
53 pinctrl-0 = <&wlan_regulator_pin>;
59 clock-frequency = <100000>;
62 compatible = "ti,bq24192";
64 interrupts-extended = <&spmi_bus 0 0xd5 0 IRQ_TYPE_EDGE_FALLING>;
68 usb_otg_vbus: usb-otg-vbus { };
71 fuelgauge: max17048@36 {
72 compatible = "maxim,max17048";
76 maxim,rcomp = /bits/ 8 <0x4d>;
78 interrupt-parent = <&tlmm>;
79 interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
81 pinctrl-names = "default";
82 pinctrl-0 = <&fuelgauge_pin>;
84 maxim,alert-low-soc-level = <2>;
90 clock-frequency = <355000>;
93 compatible = "syna,rmi4-i2c";
96 interrupts-extended = <&tlmm 5 IRQ_TYPE_EDGE_FALLING>;
97 vdd-supply = <&pm8941_l22>;
98 vio-supply = <&pm8941_lvs3>;
100 pinctrl-names = "default";
101 pinctrl-0 = <&touch_pin>;
103 #address-cells = <1>;
108 syna,nosleep-mode = <1>;
113 syna,sensor-type = <1>;
120 clock-frequency = <100000>;
123 compatible = "avago,apds9930";
125 interrupts-extended = <&tlmm 61 IRQ_TYPE_EDGE_FALLING>;
126 vdd-supply = <&pm8941_l17>;
127 vddio-supply = <&pm8941_lvs1>;
128 led-max-microamp = <100000>;
129 amstaos,proximity-diodes = <0>;
135 clock-frequency = <355000>;
138 compatible = "ti,lm3630a";
142 #address-cells = <1>;
148 label = "lcd-backlight";
149 default-brightness = <200>;
156 clock-frequency = <100000>;
159 compatible = "invensense,mpu6515";
161 interrupts-extended = <&tlmm 73 IRQ_TYPE_EDGE_FALLING>;
162 vddio-supply = <&pm8941_lvs1>;
164 pinctrl-names = "default";
165 pinctrl-0 = <&mpu6515_pin>;
167 mount-matrix = "0", "-1", "0",
172 #address-cells = <1>;
175 compatible = "asahi-kasei,ak8963";
177 gpios = <&tlmm 67 0>;
178 vid-supply = <&pm8941_lvs1>;
179 vdd-supply = <&pm8941_l17>;
183 compatible = "bosch,bmp280";
185 vdda-supply = <&pm8941_lvs1>;
186 vddd-supply = <&pm8941_l17>;
200 compatible = "brcm,bcm43438-bt";
201 max-speed = <3000000>;
203 pinctrl-names = "default";
204 pinctrl-0 = <&bt_pin>;
206 host-wakeup-gpios = <&tlmm 42 GPIO_ACTIVE_HIGH>;
207 device-wakeup-gpios = <&tlmm 62 GPIO_ACTIVE_HIGH>;
208 shutdown-gpios = <&tlmm 41 GPIO_ACTIVE_HIGH>;
215 vdda-supply = <&pm8941_l2>;
216 vdd-supply = <&pm8941_lvs3>;
217 vddio-supply = <&pm8941_l12>;
221 compatible = "lg,acx467akm-7";
223 pinctrl-names = "default";
224 pinctrl-0 = <&panel_pin>;
228 remote-endpoint = <&dsi0_out>;
235 remote-endpoint = <&panel_in>;
236 data-lanes = <0 1 2 3>;
242 vddio-supply = <&pm8941_l12>;
252 phys = <&usb_hs1_phy>;
253 phy-select = <&tcsr 0xb000 0>;
255 extcon = <&charger>, <&usb_id>;
256 vbus-supply = <&usb_otg_vbus>;
266 v1p8-supply = <&pm8941_l6>;
267 v3p3-supply = <&pm8941_l24>;
269 qcom,init-seq = /bits/ 8 <0x1 0x64>;
275 gpio_keys_pin_a: gpio-keys-active {
276 pins = "gpio2", "gpio3";
280 power-source = <PM8941_GPIO_S3>;
283 fuelgauge_pin: fuelgauge-int {
289 power-source = <PM8941_GPIO_S3>;
292 wlan_sleep_clk_pin: wl-sleep-clk {
297 power-source = <PM8941_GPIO_S3>;
300 wlan_regulator_pin: wl-reg-active {
305 power-source = <PM8941_GPIO_S3>;
310 gpios = <35 GPIO_ACTIVE_HIGH>;
312 line-name = "otg-gpio";
318 compatible = "qcom,rpm-pm8841-regulators";
321 regulator-min-microvolt = <675000>;
322 regulator-max-microvolt = <1050000>;
326 regulator-min-microvolt = <500000>;
327 regulator-max-microvolt = <1050000>;
331 regulator-min-microvolt = <1050000>;
332 regulator-max-microvolt = <1050000>;
336 regulator-min-microvolt = <815000>;
337 regulator-max-microvolt = <900000>;
342 compatible = "qcom,rpm-pm8941-regulators";
344 vdd_l1_l3-supply = <&pm8941_s1>;
345 vdd_l2_lvs1_2_3-supply = <&pm8941_s3>;
346 vdd_l4_l11-supply = <&pm8941_s1>;
347 vdd_l5_l7-supply = <&pm8941_s2>;
348 vdd_l6_l12_l14_l15-supply = <&pm8941_s2>;
349 vdd_l8_l16_l18_l19-supply = <&vreg_vph_pwr>;
350 vdd_l9_l10_l17_l22-supply = <&vreg_boost>;
351 vdd_l13_l20_l23_l24-supply = <&vreg_boost>;
352 vdd_l21-supply = <&vreg_boost>;
355 regulator-min-microvolt = <1300000>;
356 regulator-max-microvolt = <1300000>;
362 regulator-min-microvolt = <2150000>;
363 regulator-max-microvolt = <2150000>;
368 regulator-min-microvolt = <1800000>;
369 regulator-max-microvolt = <1800000>;
375 regulator-min-microvolt = <1225000>;
376 regulator-max-microvolt = <1225000>;
382 regulator-min-microvolt = <1200000>;
383 regulator-max-microvolt = <1200000>;
387 regulator-min-microvolt = <1225000>;
388 regulator-max-microvolt = <1225000>;
392 regulator-min-microvolt = <1225000>;
393 regulator-max-microvolt = <1225000>;
397 regulator-min-microvolt = <1800000>;
398 regulator-max-microvolt = <1800000>;
402 regulator-min-microvolt = <1800000>;
403 regulator-max-microvolt = <1800000>;
408 regulator-min-microvolt = <1800000>;
409 regulator-max-microvolt = <1800000>;
414 regulator-min-microvolt = <1800000>;
415 regulator-max-microvolt = <1800000>;
419 regulator-min-microvolt = <1800000>;
420 regulator-max-microvolt = <2950000>;
424 regulator-min-microvolt = <1800000>;
425 regulator-max-microvolt = <2950000>;
429 regulator-min-microvolt = <1300000>;
430 regulator-max-microvolt = <1300000>;
434 regulator-min-microvolt = <1800000>;
435 regulator-max-microvolt = <1800000>;
441 regulator-min-microvolt = <1800000>;
442 regulator-max-microvolt = <2950000>;
447 regulator-min-microvolt = <1800000>;
448 regulator-max-microvolt = <1800000>;
452 regulator-min-microvolt = <2050000>;
453 regulator-max-microvolt = <2050000>;
457 regulator-min-microvolt = <2700000>;
458 regulator-max-microvolt = <2700000>;
462 regulator-min-microvolt = <2850000>;
463 regulator-max-microvolt = <2850000>;
467 regulator-min-microvolt = <2850000>;
468 regulator-max-microvolt = <2850000>;
472 regulator-min-microvolt = <3000000>;
473 regulator-max-microvolt = <3300000>;
477 regulator-min-microvolt = <2950000>;
478 regulator-max-microvolt = <2950000>;
479 regulator-system-load = <200000>;
480 regulator-allow-set-load;
485 regulator-min-microvolt = <2950000>;
486 regulator-max-microvolt = <2950000>;
491 regulator-min-microvolt = <3000000>;
492 regulator-max-microvolt = <3300000>;
496 regulator-min-microvolt = <3000000>;
497 regulator-max-microvolt = <3000000>;
501 regulator-min-microvolt = <3075000>;
502 regulator-max-microvolt = <3075000>;
506 pm8941_lvs1: lvs1 {};
507 pm8941_lvs3: lvs3 {};
514 vmmc-supply = <&pm8941_l20>;
515 vqmmc-supply = <&pm8941_s3>;
517 pinctrl-names = "default", "sleep";
518 pinctrl-0 = <&sdc1_on>;
519 pinctrl-1 = <&sdc1_off>;
525 max-frequency = <100000000>;
526 vmmc-supply = <&vreg_wlan>;
527 vqmmc-supply = <&pm8941_s3>;
530 pinctrl-names = "default", "sleep";
531 pinctrl-0 = <&sdc2_on>;
532 pinctrl-1 = <&sdc2_off>;
535 compatible = "brcm,bcm4339-fmac", "brcm,bcm4329-fmac";
538 brcm,drive-strength = <10>;
540 pinctrl-names = "default";
541 pinctrl-0 = <&wlan_sleep_clk_pin>;
549 drive-strength = <16>;
554 pins = "sdc1_cmd", "sdc1_data";
555 drive-strength = <10>;
563 drive-strength = <6>;
568 pins = "sdc2_cmd", "sdc2_data";
569 drive-strength = <6>;
574 mpu6515_pin: mpu6515 {
586 drive-strength = <2>;
595 drive-strength = <2>;
602 function = "mdp_vsync";
603 drive-strength = <2>;