1 // SPDX-License-Identifier: GPL-2.0
2 #include "qcom-msm8974pro.dtsi"
3 #include "qcom-pma8084.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
7 #include <dt-bindings/leds/common.h>
10 model = "Samsung Galaxy S5";
11 compatible = "samsung,klte", "qcom,msm8974";
14 serial0 = &blsp1_uart1;
15 sdhc1 = &sdhc_1; /* SDC1 eMMC slot */
16 sdhc2 = &sdhc_2; /* SDC2 SD card slot */
20 stdout-path = "serial0:115200n8";
27 compatible = "qcom,rpm-pma8084-regulators";
31 regulator-min-microvolt = <675000>;
32 regulator-max-microvolt = <1050000>;
36 regulator-min-microvolt = <500000>;
37 regulator-max-microvolt = <1050000>;
41 regulator-min-microvolt = <1300000>;
42 regulator-max-microvolt = <1300000>;
46 regulator-min-microvolt = <1800000>;
47 regulator-max-microvolt = <1800000>;
51 regulator-min-microvolt = <2150000>;
52 regulator-max-microvolt = <2150000>;
56 regulator-min-microvolt = <1050000>;
57 regulator-max-microvolt = <1050000>;
61 regulator-min-microvolt = <1225000>;
62 regulator-max-microvolt = <1225000>;
66 regulator-min-microvolt = <1200000>;
67 regulator-max-microvolt = <1200000>;
71 regulator-min-microvolt = <1050000>;
72 regulator-max-microvolt = <1200000>;
76 regulator-min-microvolt = <1200000>;
77 regulator-max-microvolt = <1225000>;
81 regulator-min-microvolt = <1800000>;
82 regulator-max-microvolt = <1800000>;
86 regulator-min-microvolt = <1800000>;
87 regulator-max-microvolt = <1800000>;
91 regulator-min-microvolt = <1800000>;
92 regulator-max-microvolt = <1800000>;
96 regulator-min-microvolt = <1800000>;
97 regulator-max-microvolt = <1800000>;
101 regulator-min-microvolt = <1800000>;
102 regulator-max-microvolt = <2950000>;
106 regulator-min-microvolt = <1800000>;
107 regulator-max-microvolt = <2950000>;
111 regulator-min-microvolt = <1300000>;
112 regulator-max-microvolt = <1300000>;
116 regulator-min-microvolt = <1800000>;
117 regulator-max-microvolt = <1800000>;
121 regulator-min-microvolt = <1800000>;
122 regulator-max-microvolt = <2950000>;
126 regulator-min-microvolt = <1800000>;
127 regulator-max-microvolt = <1800000>;
131 regulator-min-microvolt = <2050000>;
132 regulator-max-microvolt = <2050000>;
136 regulator-min-microvolt = <2700000>;
137 regulator-max-microvolt = <2700000>;
141 regulator-min-microvolt = <2850000>;
142 regulator-max-microvolt = <2850000>;
146 regulator-min-microvolt = <2850000>;
147 regulator-max-microvolt = <2850000>;
151 regulator-min-microvolt = <3300000>;
152 regulator-max-microvolt = <3300000>;
156 regulator-min-microvolt = <2950000>;
157 regulator-max-microvolt = <2950000>;
159 regulator-allow-set-load;
160 regulator-system-load = <200000>;
164 regulator-min-microvolt = <2950000>;
165 regulator-max-microvolt = <2950000>;
167 regulator-allow-set-load;
168 regulator-system-load = <200000>;
172 regulator-min-microvolt = <3000000>;
173 regulator-max-microvolt = <3300000>;
177 regulator-min-microvolt = <3000000>;
178 regulator-max-microvolt = <3000000>;
182 regulator-min-microvolt = <3075000>;
183 regulator-max-microvolt = <3075000>;
187 regulator-min-microvolt = <2100000>;
188 regulator-max-microvolt = <2100000>;
192 regulator-min-microvolt = <1800000>;
193 regulator-max-microvolt = <2050000>;
197 regulator-min-microvolt = <1000000>;
198 regulator-max-microvolt = <1225000>;
201 pma8084_lvs1: lvs1 {};
202 pma8084_lvs2: lvs2 {};
203 pma8084_lvs3: lvs3 {};
204 pma8084_lvs4: lvs4 {};
206 pma8084_5vs1: 5vs1 {};
213 compatible = "i2c-gpio";
214 #address-cells = <1>;
216 sda-gpios = <&msmgpio 95 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
217 scl-gpios = <&msmgpio 96 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
218 pinctrl-names = "default";
219 pinctrl-0 = <&i2c_touchkey_pins>;
222 compatible = "cypress,tm2-touchkey";
225 interrupt-parent = <&pma8084_gpios>;
226 interrupts = <6 IRQ_TYPE_EDGE_FALLING>;
227 pinctrl-names = "default";
228 pinctrl-0 = <&touchkey_pin>;
230 vcc-supply = <&max77826_ldo15>;
231 vdd-supply = <&pma8084_l19>;
233 linux,keycodes = <KEY_APPSELECT KEY_BACK>;
238 compatible = "i2c-gpio";
239 #address-cells = <1>;
241 scl-gpios = <&msmgpio 121 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
242 sda-gpios = <&msmgpio 120 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
243 pinctrl-names = "default";
244 pinctrl-0 = <&i2c_led_gpioex_pins>;
246 i2c-gpio,delay-us = <2>;
248 gpio_expander: gpio@20 {
249 compatible = "nxp,pcal6416";
255 vcc-supply = <&pma8084_s4>;
257 pinctrl-names = "default";
258 pinctrl-0 = <&gpioex_pin>;
260 reset-gpios = <&msmgpio 145 GPIO_ACTIVE_LOW>;
264 compatible = "panasonic,an30259a";
267 #address-cells = <1>;
272 function = LED_FUNCTION_STATUS;
273 color = <LED_COLOR_ID_RED>;
278 function = LED_FUNCTION_STATUS;
279 color = <LED_COLOR_ID_GREEN>;
284 function = LED_FUNCTION_STATUS;
285 color = <LED_COLOR_ID_BLUE>;
290 vreg_wlan: wlan-regulator {
291 compatible = "regulator-fixed";
293 regulator-name = "wl-reg";
294 regulator-min-microvolt = <3300000>;
295 regulator-max-microvolt = <3300000>;
297 gpio = <&gpio_expander 8 GPIO_ACTIVE_HIGH>;
301 /delete-node/ vreg-boost;
310 compatible = "gpio-keys";
311 input-name = "gpio-keys";
313 pinctrl-names = "default";
314 pinctrl-0 = <&gpio_keys_pin_a>;
317 label = "volume_down";
318 gpios = <&pma8084_gpios 2 GPIO_ACTIVE_LOW>;
319 linux,input-type = <1>;
320 linux,code = <KEY_VOLUMEDOWN>;
321 debounce-interval = <15>;
326 gpios = <&pma8084_gpios 3 GPIO_ACTIVE_LOW>;
327 linux,input-type = <1>;
328 linux,code = <KEY_HOMEPAGE>;
330 debounce-interval = <15>;
335 gpios = <&pma8084_gpios 5 GPIO_ACTIVE_LOW>;
336 linux,input-type = <1>;
337 linux,code = <KEY_VOLUMEUP>;
338 debounce-interval = <15>;
343 sdhc1_pin_a: sdhc1-pin-active {
346 drive-strength = <4>;
351 pins = "sdc1_cmd", "sdc1_data";
352 drive-strength = <4>;
357 sdhc2_pin_a: sdhc2-pin-active {
359 pins = "gpio35", "gpio36", "gpio37", "gpio38",
362 drive-strength = <8>;
367 sdhc2_cd_pin: sdhc2-cd {
371 drive-strength = <2>;
375 sdhc3_pin_a: sdhc3-pin-active {
378 drive-strength = <6>;
383 pins = "sdc2_cmd", "sdc2_data";
384 drive-strength = <6>;
391 pins = "gpio6", "gpio7";
392 function = "blsp_i2c2";
394 drive-strength = <2>;
401 pins = "gpio29", "gpio30";
402 function = "blsp_i2c6";
404 drive-strength = <2>;
411 pins = "gpio87", "gpio88";
412 function = "blsp_i2c12";
414 drive-strength = <2>;
419 i2c_touchkey_pins: i2c-touchkey {
421 pins = "gpio95", "gpio96";
428 i2c_led_gpioex_pins: i2c-led-gpioex {
430 pins = "gpio120", "gpio121";
443 drive-strength = <2>;
458 sdhc_1: sdhci@f9824900 {
461 vmmc-supply = <&pma8084_l20>;
462 vqmmc-supply = <&pma8084_s4>;
467 pinctrl-names = "default";
468 pinctrl-0 = <&sdhc1_pin_a>;
471 sdhc_2: sdhci@f9864900 {
474 max-frequency = <100000000>;
476 vmmc-supply = <&pma8084_l21>;
477 vqmmc-supply = <&pma8084_l13>;
481 /* cd-gpio is intentionally disabled. If enabled, an SD card
482 * present during boot is not initialized correctly. Without
483 * cd-gpios the driver resorts to polling, so hotplug works.
485 pinctrl-names = "default";
486 pinctrl-0 = <&sdhc2_pin_a /* &sdhc2_cd_pin */>;
487 // cd-gpios = <&msmgpio 62 GPIO_ACTIVE_LOW>;
493 #address-cells = <1>;
496 max-frequency = <100000000>;
498 pinctrl-names = "default";
499 pinctrl-0 = <&sdhc3_pin_a>;
501 vmmc-supply = <&vreg_wlan>;
502 vqmmc-supply = <&pma8084_s4>;
509 compatible = "brcm,bcm4329-fmac";
511 interrupt-parent = <&msmgpio>;
512 interrupts = <92 IRQ_TYPE_LEVEL_HIGH>;
513 interrupt-names = "host-wake";
515 pinctrl-names = "default";
516 pinctrl-0 = <&wlan_sleep_clk_pin &wifi_pin>;
523 phys = <&usb_hs1_phy>;
524 phy-select = <&tcsr 0xb000 0>;
525 /*extcon = <&smbb>, <&usb_id>;*/
526 /*vbus-supply = <&chg_otg>;*/
536 v1p8-supply = <&pma8084_l6>;
537 v3p3-supply = <&pma8084_l24>;
539 /*extcon = <&smbb>;*/
540 qcom,init-seq = /bits/ 8 <0x1 0x64>;
548 pinctrl-names = "default";
549 pinctrl-0 = <&i2c2_pins>;
552 compatible = "syna,rmi4-i2c";
555 interrupt-parent = <&pma8084_gpios>;
556 interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
558 vdd-supply = <&max77826_ldo13>;
559 vio-supply = <&pma8084_lvs2>;
561 pinctrl-names = "default";
562 pinctrl-0 = <&touch_pin>;
564 syna,startup-delay-ms = <100>;
566 #address-cells = <1>;
571 syna,nosleep-mode = <1>;
576 syna,sensor-type = <1>;
584 pinctrl-names = "default";
585 pinctrl-0 = <&i2c6_pins>;
589 compatible = "maxim,max77826";
592 max77826_ldo1: LDO1 {
593 regulator-min-microvolt = <1200000>;
594 regulator-max-microvolt = <1200000>;
597 max77826_ldo2: LDO2 {
598 regulator-min-microvolt = <1000000>;
599 regulator-max-microvolt = <1000000>;
602 max77826_ldo3: LDO3 {
603 regulator-min-microvolt = <1200000>;
604 regulator-max-microvolt = <1200000>;
607 max77826_ldo4: LDO4 {
608 regulator-min-microvolt = <1800000>;
609 regulator-max-microvolt = <1800000>;
612 max77826_ldo5: LDO5 {
613 regulator-min-microvolt = <1800000>;
614 regulator-max-microvolt = <1800000>;
617 max77826_ldo6: LDO6 {
618 regulator-min-microvolt = <1800000>;
619 regulator-max-microvolt = <3300000>;
622 max77826_ldo7: LDO7 {
623 regulator-min-microvolt = <1800000>;
624 regulator-max-microvolt = <1800000>;
627 max77826_ldo8: LDO8 {
628 regulator-min-microvolt = <1800000>;
629 regulator-max-microvolt = <3300000>;
632 max77826_ldo9: LDO9 {
633 regulator-min-microvolt = <1800000>;
634 regulator-max-microvolt = <1800000>;
637 max77826_ldo10: LDO10 {
638 regulator-min-microvolt = <2800000>;
639 regulator-max-microvolt = <2950000>;
642 max77826_ldo11: LDO11 {
643 regulator-min-microvolt = <2700000>;
644 regulator-max-microvolt = <2950000>;
647 max77826_ldo12: LDO12 {
648 regulator-min-microvolt = <2500000>;
649 regulator-max-microvolt = <3300000>;
652 max77826_ldo13: LDO13 {
653 regulator-min-microvolt = <3300000>;
654 regulator-max-microvolt = <3300000>;
657 max77826_ldo14: LDO14 {
658 regulator-min-microvolt = <3300000>;
659 regulator-max-microvolt = <3300000>;
662 max77826_ldo15: LDO15 {
663 regulator-min-microvolt = <1800000>;
664 regulator-max-microvolt = <1800000>;
667 max77826_buck: BUCK {
668 regulator-min-microvolt = <1225000>;
669 regulator-max-microvolt = <1225000>;
672 max77826_buckboost: BUCKBOOST {
673 regulator-min-microvolt = <3400000>;
674 regulator-max-microvolt = <3400000>;
683 pinctrl-names = "default";
684 pinctrl-0 = <&i2c12_pins>;
687 compatible = "maxim,max17048";
691 maxim,rcomp = /bits/ 8 <0x56>;
693 interrupt-parent = <&pma8084_gpios>;
694 interrupts = <21 IRQ_TYPE_EDGE_FALLING>;
696 pinctrl-names = "default";
697 pinctrl-0 = <&fuelgauge_pin>;
705 gpio_keys_pin_a: gpio-keys-active {
706 pins = "gpio2", "gpio3", "gpio5";
710 power-source = <PMA8084_GPIO_S4>;
713 touchkey_pin: touchkey-int-pin {
718 power-source = <PMA8084_GPIO_S4>;
721 touch_pin: touchscreen-int-pin {
726 power-source = <PMA8084_GPIO_S4>;
729 wlan_sleep_clk_pin: wlan-sleep-clk-pin {
734 power-source = <PMA8084_GPIO_S4>;
735 qcom,drive-strength = <PMIC_GPIO_STRENGTH_HIGH>;
738 fuelgauge_pin: fuelgauge-int-pin {
743 power-source = <PMA8084_GPIO_S4>;