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 = "gpio10", "gpio11";
286 function = "blsp_i2c3";
287 drive-strength = <2>;
294 pins = "gpio87", "gpio88";
295 function = "blsp_i2c12";
296 drive-strength = <2>;
301 mpu6515_pin: mpu6515 {
314 vmmc-supply = <&pm8941_l20>;
315 vqmmc-supply = <&pm8941_s3>;
320 pinctrl-names = "default";
321 pinctrl-0 = <&sdhc1_pin_a>;
327 max-frequency = <100000000>;
330 vmmc-supply = <&vreg_wlan>;
331 vqmmc-supply = <&pm8941_s3>;
333 pinctrl-names = "default";
334 pinctrl-0 = <&sdhc2_pin_a>;
336 #address-cells = <1>;
340 compatible = "brcm,bcm4339-fmac", "brcm,bcm4329-fmac";
343 brcm,drive-strength = <10>;
345 pinctrl-names = "default";
346 pinctrl-0 = <&wlan_sleep_clk_pin>;
351 compatible = "gpio-keys";
352 input-name = "gpio-keys";
354 pinctrl-names = "default";
355 pinctrl-0 = <&gpio_keys_pin_a>;
359 gpios = <&pm8941_gpios 2 GPIO_ACTIVE_LOW>;
360 linux,input-type = <1>;
361 linux,code = <KEY_VOLUMEUP>;
365 label = "volume_down";
366 gpios = <&pm8941_gpios 3 GPIO_ACTIVE_LOW>;
367 linux,input-type = <1>;
368 linux,code = <KEY_VOLUMEDOWN>;
374 pinctrl-names = "default";
375 pinctrl-0 = <&i2c12_pins>;
376 clock-frequency = <100000>;
377 qcom,src-freq = <50000000>;
380 compatible = "invensense,mpu6515";
382 interrupts-extended = <&msmgpio 73 IRQ_TYPE_EDGE_FALLING>;
383 vddio-supply = <&pm8941_lvs1>;
385 pinctrl-names = "default";
386 pinctrl-0 = <&mpu6515_pin>;
389 #address-cells = <1>;
392 compatible = "asahi-kasei,ak8963";
394 gpios = <&msmgpio 67 0>;
395 vid-supply = <&pm8941_lvs1>;
396 vdd-supply = <&pm8941_l17>;
400 compatible = "bosch,bmp280";
402 vdda-supply = <&pm8941_lvs1>;
403 vddd-supply = <&pm8941_l17>;
411 pinctrl-names = "default";
412 pinctrl-0 = <&i2c1_pins>;
413 clock-frequency = <100000>;
414 qcom,src-freq = <50000000>;
416 charger: bq24192@6b {
417 compatible = "ti,bq24192";
419 interrupts-extended = <&spmi_bus 0 0xd5 0 IRQ_TYPE_EDGE_FALLING>;
423 usb_otg_vbus: usb-otg-vbus { };
429 pinctrl-names = "default";
430 pinctrl-0 = <&i2c3_pins>;
431 clock-frequency = <100000>;
432 qcom,src-freq = <50000000>;
435 compatible = "avago,apds9930";
437 interrupts-extended = <&msmgpio 61 IRQ_TYPE_EDGE_FALLING>;
438 vdd-supply = <&pm8941_l17>;
439 vddio-supply = <&pm8941_lvs1>;
440 led-max-microamp = <100000>;
441 amstaos,proximity-diodes = <0>;
448 phys = <&usb_hs1_phy>;
449 phy-select = <&tcsr 0xb000 0>;
451 extcon = <&charger>, <&usb_id>;
452 vbus-supply = <&usb_otg_vbus>;
462 v1p8-supply = <&pm8941_l6>;
463 v3p3-supply = <&pm8941_l24>;
465 qcom,init-seq = /bits/ 8 <0x1 0x64>;
474 gpio_keys_pin_a: gpio-keys-active {
475 pins = "gpio2", "gpio3";
479 power-source = <PM8941_GPIO_S3>;
482 wlan_sleep_clk_pin: wl-sleep-clk {
487 power-source = <PM8941_GPIO_S3>;
490 wlan_regulator_pin: wl-reg-active {
495 power-source = <PM8941_GPIO_S3>;
500 gpios = <35 GPIO_ACTIVE_HIGH>;
502 line-name = "otg-gpio";