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";
12 chassis-type = "handset";
15 serial0 = &blsp1_uart1;
16 serial1 = &blsp2_uart4;
20 stdout-path = "serial0:115200n8";
24 compatible = "gpio-keys";
26 pinctrl-names = "default";
27 pinctrl-0 = <&gpio_keys_pin_a>;
31 gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>;
32 linux,input-type = <1>;
33 linux,code = <KEY_VOLUMEUP>;
37 label = "volume_down";
38 gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>;
39 linux,input-type = <1>;
40 linux,code = <KEY_VOLUMEDOWN>;
45 compatible = "clk-pwm";
46 clocks = <&mmcc CAMSS_GP1_CLK>;
48 pinctrl-0 = <&vibrator_pin>;
49 pinctrl-names = "default";
55 compatible = "pwm-vibrator";
56 pwms = <&clk_pwm 0 100000>;
59 vcc-supply = <&pm8941_l19>;
60 enable-gpios = <&tlmm 60 GPIO_ACTIVE_HIGH>;
63 vreg_wlan: wlan-regulator {
64 compatible = "regulator-fixed";
66 regulator-name = "wl-reg";
67 regulator-min-microvolt = <3300000>;
68 regulator-max-microvolt = <3300000>;
70 gpio = <&tlmm 26 GPIO_ACTIVE_HIGH>;
73 pinctrl-names = "default";
74 pinctrl-0 = <&wlan_regulator_pin>;
80 clock-frequency = <100000>;
83 compatible = "ti,bq24192";
85 interrupts-extended = <&spmi_bus 0 0xd5 0 IRQ_TYPE_EDGE_FALLING>;
89 usb_otg_vbus: usb-otg-vbus { };
92 fuelgauge: max17048@36 {
93 compatible = "maxim,max17048";
97 maxim,rcomp = /bits/ 8 <0x4d>;
99 interrupt-parent = <&tlmm>;
100 interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
102 pinctrl-names = "default";
103 pinctrl-0 = <&fuelgauge_pin>;
105 maxim,alert-low-soc-level = <2>;
111 clock-frequency = <355000>;
114 compatible = "syna,rmi4-i2c";
117 interrupts-extended = <&tlmm 5 IRQ_TYPE_EDGE_FALLING>;
118 vdd-supply = <&pm8941_l22>;
119 vio-supply = <&pm8941_lvs3>;
121 pinctrl-names = "default";
122 pinctrl-0 = <&touch_pin>;
124 #address-cells = <1>;
129 syna,nosleep-mode = <1>;
134 syna,sensor-type = <1>;
141 clock-frequency = <100000>;
144 compatible = "avago,apds9930";
146 interrupts-extended = <&tlmm 61 IRQ_TYPE_EDGE_FALLING>;
147 vdd-supply = <&pm8941_l17>;
148 vddio-supply = <&pm8941_lvs1>;
149 led-max-microamp = <100000>;
150 amstaos,proximity-diodes = <0>;
156 clock-frequency = <355000>;
159 compatible = "ti,lm3630a";
163 #address-cells = <1>;
169 label = "lcd-backlight";
170 default-brightness = <200>;
177 clock-frequency = <100000>;
180 compatible = "invensense,mpu6515";
182 interrupts-extended = <&tlmm 73 IRQ_TYPE_EDGE_FALLING>;
183 vddio-supply = <&pm8941_lvs1>;
185 pinctrl-names = "default";
186 pinctrl-0 = <&mpu6515_pin>;
188 mount-matrix = "0", "-1", "0",
193 #address-cells = <1>;
196 compatible = "asahi-kasei,ak8963";
198 gpios = <&tlmm 67 GPIO_ACTIVE_HIGH>;
199 vid-supply = <&pm8941_lvs1>;
200 vdd-supply = <&pm8941_l17>;
204 compatible = "bosch,bmp280";
206 vdda-supply = <&pm8941_lvs1>;
207 vddd-supply = <&pm8941_l17>;
221 compatible = "brcm,bcm43438-bt";
222 max-speed = <3000000>;
224 pinctrl-names = "default";
225 pinctrl-0 = <&bt_pin>;
227 host-wakeup-gpios = <&tlmm 42 GPIO_ACTIVE_HIGH>;
228 device-wakeup-gpios = <&tlmm 62 GPIO_ACTIVE_HIGH>;
229 shutdown-gpios = <&tlmm 41 GPIO_ACTIVE_HIGH>;
240 vdda-supply = <&pm8941_l2>;
241 vdd-supply = <&pm8941_lvs3>;
242 vddio-supply = <&pm8941_l12>;
246 compatible = "lg,acx467akm-7";
248 pinctrl-names = "default";
249 pinctrl-0 = <&panel_pin>;
253 remote-endpoint = <&mdss_dsi0_out>;
260 remote-endpoint = <&panel_in>;
261 data-lanes = <0 1 2 3>;
267 vddio-supply = <&pm8941_l12>;
271 gpio_keys_pin_a: gpio-keys-active-state {
272 pins = "gpio2", "gpio3";
276 power-source = <PM8941_GPIO_S3>;
279 fuelgauge_pin: fuelgauge-int-state {
285 power-source = <PM8941_GPIO_S3>;
288 wlan_sleep_clk_pin: wl-sleep-clk-state {
293 power-source = <PM8941_GPIO_S3>;
296 wlan_regulator_pin: wl-reg-active-state {
301 power-source = <PM8941_GPIO_S3>;
306 gpios = <35 GPIO_ACTIVE_HIGH>;
308 line-name = "otg-gpio";
315 qcom,power-source = <1>;
318 color = <LED_COLOR_ID_RGB>;
319 function = LED_FUNCTION_STATUS;
321 #address-cells = <1>;
326 color = <LED_COLOR_ID_RED>;
331 color = <LED_COLOR_ID_GREEN>;
336 color = <LED_COLOR_ID_BLUE>;
342 cx-supply = <&pm8841_s2>;
346 cx-supply = <&pm8841_s2>;
347 mss-supply = <&pm8841_s3>;
348 mx-supply = <&pm8841_s1>;
349 pll-supply = <&pm8941_l12>;
354 compatible = "qcom,rpm-pm8841-regulators";
357 regulator-min-microvolt = <675000>;
358 regulator-max-microvolt = <1050000>;
362 regulator-min-microvolt = <500000>;
363 regulator-max-microvolt = <1050000>;
367 regulator-min-microvolt = <1050000>;
368 regulator-max-microvolt = <1050000>;
372 regulator-min-microvolt = <815000>;
373 regulator-max-microvolt = <900000>;
378 compatible = "qcom,rpm-pm8941-regulators";
380 vdd_l1_l3-supply = <&pm8941_s1>;
381 vdd_l2_lvs1_2_3-supply = <&pm8941_s3>;
382 vdd_l4_l11-supply = <&pm8941_s1>;
383 vdd_l5_l7-supply = <&pm8941_s2>;
384 vdd_l6_l12_l14_l15-supply = <&pm8941_s2>;
385 vdd_l8_l16_l18_l19-supply = <&vreg_vph_pwr>;
386 vdd_l9_l10_l17_l22-supply = <&vreg_boost>;
387 vdd_l13_l20_l23_l24-supply = <&vreg_boost>;
388 vdd_l21-supply = <&vreg_boost>;
391 regulator-min-microvolt = <1300000>;
392 regulator-max-microvolt = <1300000>;
398 regulator-min-microvolt = <2150000>;
399 regulator-max-microvolt = <2150000>;
404 regulator-min-microvolt = <1800000>;
405 regulator-max-microvolt = <1800000>;
411 regulator-min-microvolt = <1225000>;
412 regulator-max-microvolt = <1225000>;
418 regulator-min-microvolt = <1200000>;
419 regulator-max-microvolt = <1200000>;
423 regulator-min-microvolt = <1225000>;
424 regulator-max-microvolt = <1225000>;
428 regulator-min-microvolt = <1225000>;
429 regulator-max-microvolt = <1225000>;
433 regulator-min-microvolt = <1800000>;
434 regulator-max-microvolt = <1800000>;
438 regulator-min-microvolt = <1800000>;
439 regulator-max-microvolt = <1800000>;
444 regulator-min-microvolt = <1800000>;
445 regulator-max-microvolt = <1800000>;
450 regulator-min-microvolt = <1800000>;
451 regulator-max-microvolt = <1800000>;
455 regulator-min-microvolt = <1800000>;
456 regulator-max-microvolt = <2950000>;
460 regulator-min-microvolt = <1800000>;
461 regulator-max-microvolt = <2950000>;
465 regulator-min-microvolt = <1300000>;
466 regulator-max-microvolt = <1300000>;
470 regulator-min-microvolt = <1800000>;
471 regulator-max-microvolt = <1800000>;
477 regulator-min-microvolt = <1800000>;
478 regulator-max-microvolt = <2950000>;
483 regulator-min-microvolt = <1800000>;
484 regulator-max-microvolt = <1800000>;
488 regulator-min-microvolt = <2050000>;
489 regulator-max-microvolt = <2050000>;
493 regulator-min-microvolt = <2700000>;
494 regulator-max-microvolt = <2700000>;
498 regulator-min-microvolt = <2850000>;
499 regulator-max-microvolt = <2850000>;
503 regulator-min-microvolt = <2850000>;
504 regulator-max-microvolt = <2850000>;
508 regulator-min-microvolt = <3000000>;
509 regulator-max-microvolt = <3300000>;
513 regulator-min-microvolt = <2950000>;
514 regulator-max-microvolt = <2950000>;
515 regulator-system-load = <200000>;
516 regulator-allow-set-load;
521 regulator-min-microvolt = <2950000>;
522 regulator-max-microvolt = <2950000>;
527 regulator-min-microvolt = <3000000>;
528 regulator-max-microvolt = <3300000>;
532 regulator-min-microvolt = <3000000>;
533 regulator-max-microvolt = <3000000>;
537 regulator-min-microvolt = <3075000>;
538 regulator-max-microvolt = <3075000>;
542 pm8941_lvs1: lvs1 {};
543 pm8941_lvs3: lvs3 {};
550 vmmc-supply = <&pm8941_l20>;
551 vqmmc-supply = <&pm8941_s3>;
553 pinctrl-names = "default", "sleep";
554 pinctrl-0 = <&sdc1_on>;
555 pinctrl-1 = <&sdc1_off>;
561 max-frequency = <100000000>;
562 vmmc-supply = <&vreg_wlan>;
563 vqmmc-supply = <&pm8941_s3>;
566 pinctrl-names = "default", "sleep";
567 pinctrl-0 = <&sdc2_on>;
568 pinctrl-1 = <&sdc2_off>;
571 compatible = "brcm,bcm4339-fmac", "brcm,bcm4329-fmac";
574 brcm,drive-strength = <10>;
576 pinctrl-names = "default";
577 pinctrl-0 = <&wlan_sleep_clk_pin>;
582 sdc1_on: sdc1-on-state {
585 drive-strength = <16>;
590 pins = "sdc1_cmd", "sdc1_data";
591 drive-strength = <10>;
596 sdc2_on: sdc2-on-state {
599 drive-strength = <6>;
604 pins = "sdc2_cmd", "sdc2_data";
605 drive-strength = <6>;
610 mpu6515_pin: mpu6515-state {
616 touch_pin: touch-state {
621 drive-strength = <2>;
629 drive-strength = <2>;
634 panel_pin: panel-state {
636 function = "mdp_vsync";
637 drive-strength = <2>;
658 vibrator_pin: vibrator-state {
661 function = "gp1_clk";
662 drive-strength = <6>;
669 drive-strength = <2>;
678 phys = <&usb_hs1_phy>;
679 phy-select = <&tcsr 0xb000 0>;
681 extcon = <&charger>, <&usb_id>;
682 vbus-supply = <&usb_otg_vbus>;
692 v1p8-supply = <&pm8941_l6>;
693 v3p3-supply = <&pm8941_l24>;
695 qcom,init-seq = /bits/ 8 <0x1 0x64>;