1 // SPDX-License-Identifier: GPL-2.0
2 #include "qcom-msm8974pro.dtsi"
3 #include "qcom-pma8084.dtsi"
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
6 #include <dt-bindings/leds/common.h>
9 model = "Samsung Galaxy S5";
10 compatible = "samsung,klte", "qcom,msm8974pro", "qcom,msm8974";
11 chassis-type = "handset";
14 serial0 = &blsp1_uart1;
15 mmc0 = &sdhc_1; /* SDC1 eMMC slot */
16 mmc1 = &sdhc_3; /* SDC2 SD card slot */
20 stdout-path = "serial0:115200n8";
24 compatible = "gpio-keys";
26 pinctrl-names = "default";
27 pinctrl-0 = <&gpio_keys_pin_a>;
30 label = "volume_down";
31 gpios = <&pma8084_gpios 2 GPIO_ACTIVE_LOW>;
32 linux,input-type = <1>;
33 linux,code = <KEY_VOLUMEDOWN>;
34 debounce-interval = <15>;
39 gpios = <&pma8084_gpios 3 GPIO_ACTIVE_LOW>;
40 linux,input-type = <1>;
41 linux,code = <KEY_HOMEPAGE>;
43 debounce-interval = <15>;
48 gpios = <&pma8084_gpios 5 GPIO_ACTIVE_LOW>;
49 linux,input-type = <1>;
50 linux,code = <KEY_VOLUMEUP>;
51 debounce-interval = <15>;
56 compatible = "i2c-gpio";
59 sda-gpios = <&tlmm 95 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
60 scl-gpios = <&tlmm 96 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
61 pinctrl-names = "default";
62 pinctrl-0 = <&i2c_touchkey_pins>;
65 compatible = "cypress,tm2-touchkey";
68 interrupt-parent = <&pma8084_gpios>;
69 interrupts = <6 IRQ_TYPE_EDGE_FALLING>;
70 pinctrl-names = "default";
71 pinctrl-0 = <&touchkey_pin>;
73 vcc-supply = <&max77826_ldo15>;
74 vdd-supply = <&pma8084_l19>;
76 linux,keycodes = <KEY_APPSELECT KEY_BACK>;
81 compatible = "i2c-gpio";
84 scl-gpios = <&tlmm 121 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
85 sda-gpios = <&tlmm 120 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
86 pinctrl-names = "default";
87 pinctrl-0 = <&i2c_led_gpioex_pins>;
89 i2c-gpio,delay-us = <2>;
91 gpio_expander: gpio@20 {
92 compatible = "nxp,pcal6416";
98 vcc-supply = <&pma8084_s4>;
100 pinctrl-names = "default";
101 pinctrl-0 = <&gpioex_pin>;
103 reset-gpios = <&tlmm 145 GPIO_ACTIVE_LOW>;
107 compatible = "panasonic,an30259a";
110 #address-cells = <1>;
115 function = LED_FUNCTION_STATUS;
116 color = <LED_COLOR_ID_RED>;
121 function = LED_FUNCTION_STATUS;
122 color = <LED_COLOR_ID_GREEN>;
127 function = LED_FUNCTION_STATUS;
128 color = <LED_COLOR_ID_BLUE>;
133 vreg_wlan: wlan-regulator {
134 compatible = "regulator-fixed";
136 regulator-name = "wl-reg";
137 regulator-min-microvolt = <3300000>;
138 regulator-max-microvolt = <3300000>;
140 gpio = <&gpio_expander 8 GPIO_ACTIVE_HIGH>;
144 vreg_panel: panel-regulator {
145 compatible = "regulator-fixed";
147 pinctrl-names = "default";
148 pinctrl-0 = <&panel_en_pin>;
150 regulator-name = "panel-vddr-reg";
151 regulator-min-microvolt = <1500000>;
152 regulator-max-microvolt = <1500000>;
154 gpio = <&pma8084_gpios 14 GPIO_ACTIVE_HIGH>;
158 /delete-node/ vreg-boost;
165 compatible = "syna,rmi4-i2c";
168 interrupt-parent = <&pma8084_gpios>;
169 interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
171 vdd-supply = <&max77826_ldo13>;
172 vio-supply = <&pma8084_lvs2>;
174 pinctrl-names = "default";
175 pinctrl-0 = <&touch_pin>;
177 syna,startup-delay-ms = <100>;
179 #address-cells = <1>;
184 syna,nosleep-mode = <1>;
189 syna,sensor-type = <1>;
199 compatible = "maxim,max77826";
202 max77826_ldo1: LDO1 {
203 regulator-min-microvolt = <1200000>;
204 regulator-max-microvolt = <1200000>;
207 max77826_ldo2: LDO2 {
208 regulator-min-microvolt = <1000000>;
209 regulator-max-microvolt = <1000000>;
212 max77826_ldo3: LDO3 {
213 regulator-min-microvolt = <1200000>;
214 regulator-max-microvolt = <1200000>;
217 max77826_ldo4: LDO4 {
218 regulator-min-microvolt = <1800000>;
219 regulator-max-microvolt = <1800000>;
222 max77826_ldo5: LDO5 {
223 regulator-min-microvolt = <1800000>;
224 regulator-max-microvolt = <1800000>;
227 max77826_ldo6: LDO6 {
228 regulator-min-microvolt = <1800000>;
229 regulator-max-microvolt = <3300000>;
232 max77826_ldo7: LDO7 {
233 regulator-min-microvolt = <1800000>;
234 regulator-max-microvolt = <1800000>;
237 max77826_ldo8: LDO8 {
238 regulator-min-microvolt = <1800000>;
239 regulator-max-microvolt = <3300000>;
242 max77826_ldo9: LDO9 {
243 regulator-min-microvolt = <1800000>;
244 regulator-max-microvolt = <1800000>;
247 max77826_ldo10: LDO10 {
248 regulator-min-microvolt = <2800000>;
249 regulator-max-microvolt = <2950000>;
252 max77826_ldo11: LDO11 {
253 regulator-min-microvolt = <2700000>;
254 regulator-max-microvolt = <2950000>;
257 max77826_ldo12: LDO12 {
258 regulator-min-microvolt = <2500000>;
259 regulator-max-microvolt = <3300000>;
262 max77826_ldo13: LDO13 {
263 regulator-min-microvolt = <3300000>;
264 regulator-max-microvolt = <3300000>;
267 max77826_ldo14: LDO14 {
268 regulator-min-microvolt = <3300000>;
269 regulator-max-microvolt = <3300000>;
272 max77826_ldo15: LDO15 {
273 regulator-min-microvolt = <1800000>;
274 regulator-max-microvolt = <1800000>;
277 max77826_buck: BUCK {
278 regulator-min-microvolt = <1225000>;
279 regulator-max-microvolt = <1225000>;
282 max77826_buckboost: BUCKBOOST {
283 regulator-min-microvolt = <3400000>;
284 regulator-max-microvolt = <3400000>;
298 compatible = "maxim,max17048";
302 maxim,rcomp = /bits/ 8 <0x56>;
304 interrupt-parent = <&pma8084_gpios>;
305 interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
307 pinctrl-names = "default";
308 pinctrl-0 = <&fuelgauge_pin>;
315 pinctrl-names = "default", "sleep";
316 pinctrl-0 = <&blsp2_uart2_pins_active>;
317 pinctrl-1 = <&blsp2_uart2_pins_sleep>;
320 compatible = "brcm,bcm43540-bt";
321 max-speed = <3000000>;
322 pinctrl-names = "default";
323 pinctrl-0 = <&bt_pins>;
324 device-wakeup-gpios = <&tlmm 91 GPIO_ACTIVE_HIGH>;
325 shutdown-gpios = <&gpio_expander 9 GPIO_ACTIVE_HIGH>;
326 interrupt-parent = <&tlmm>;
327 interrupts = <75 IRQ_TYPE_LEVEL_HIGH>;
328 interrupt-names = "host-wakeup";
343 vdda-supply = <&pma8084_l2>;
344 vdd-supply = <&pma8084_l22>;
345 vddio-supply = <&pma8084_l12>;
349 compatible = "samsung,s6e3fa2";
351 pinctrl-names = "default";
352 pinctrl-0 = <&panel_te_pin &panel_rst_pin>;
354 iovdd-supply = <&pma8084_lvs4>;
355 vddr-supply = <&vreg_panel>;
357 reset-gpios = <&pma8084_gpios 17 GPIO_ACTIVE_LOW>;
358 te-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
362 remote-endpoint = <&mdss_dsi0_out>;
369 remote-endpoint = <&panel_in>;
370 data-lanes = <0 1 2 3>;
376 vddio-supply = <&pma8084_l12>;
380 gpio_keys_pin_a: gpio-keys-active-state {
381 pins = "gpio2", "gpio3", "gpio5";
385 power-source = <PMA8084_GPIO_S4>;
388 touchkey_pin: touchkey-int-state {
393 power-source = <PMA8084_GPIO_S4>;
396 touch_pin: touchscreen-int-state {
401 power-source = <PMA8084_GPIO_S4>;
404 panel_en_pin: panel-en-state {
408 power-source = <PMA8084_GPIO_S4>;
409 qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
412 wlan_sleep_clk_pin: wlan-sleep-clk-state {
417 power-source = <PMA8084_GPIO_S4>;
418 qcom,drive-strength = <PMIC_GPIO_STRENGTH_HIGH>;
421 panel_rst_pin: panel-rst-state {
425 power-source = <PMA8084_GPIO_S4>;
426 qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
429 fuelgauge_pin: fuelgauge-int-state {
434 power-source = <PMA8084_GPIO_S4>;
440 cx-supply = <&pma8084_s2>;
445 cx-supply = <&pma8084_s2>;
446 mss-supply = <&pma8084_s6>;
447 mx-supply = <&pma8084_s1>;
448 pll-supply = <&pma8084_l12>;
453 compatible = "qcom,rpm-pma8084-regulators";
456 regulator-min-microvolt = <675000>;
457 regulator-max-microvolt = <1050000>;
462 regulator-min-microvolt = <500000>;
463 regulator-max-microvolt = <1050000>;
467 regulator-min-microvolt = <1300000>;
468 regulator-max-microvolt = <1300000>;
472 regulator-min-microvolt = <1800000>;
473 regulator-max-microvolt = <1800000>;
477 regulator-min-microvolt = <2150000>;
478 regulator-max-microvolt = <2150000>;
482 regulator-min-microvolt = <1050000>;
483 regulator-max-microvolt = <1050000>;
487 regulator-min-microvolt = <1225000>;
488 regulator-max-microvolt = <1225000>;
492 regulator-min-microvolt = <1200000>;
493 regulator-max-microvolt = <1200000>;
497 regulator-min-microvolt = <1050000>;
498 regulator-max-microvolt = <1200000>;
502 regulator-min-microvolt = <1200000>;
503 regulator-max-microvolt = <1225000>;
507 regulator-min-microvolt = <1800000>;
508 regulator-max-microvolt = <1800000>;
512 regulator-min-microvolt = <1800000>;
513 regulator-max-microvolt = <1800000>;
517 regulator-min-microvolt = <1800000>;
518 regulator-max-microvolt = <1800000>;
522 regulator-min-microvolt = <1800000>;
523 regulator-max-microvolt = <1800000>;
527 regulator-min-microvolt = <1800000>;
528 regulator-max-microvolt = <2950000>;
532 regulator-min-microvolt = <1800000>;
533 regulator-max-microvolt = <2950000>;
537 regulator-min-microvolt = <1300000>;
538 regulator-max-microvolt = <1300000>;
542 regulator-min-microvolt = <1800000>;
543 regulator-max-microvolt = <1800000>;
548 regulator-min-microvolt = <1800000>;
549 regulator-max-microvolt = <2950000>;
553 regulator-min-microvolt = <1800000>;
554 regulator-max-microvolt = <1800000>;
558 regulator-min-microvolt = <2050000>;
559 regulator-max-microvolt = <2050000>;
563 regulator-min-microvolt = <2700000>;
564 regulator-max-microvolt = <2700000>;
568 regulator-min-microvolt = <2850000>;
569 regulator-max-microvolt = <2850000>;
573 regulator-min-microvolt = <2850000>;
574 regulator-max-microvolt = <2850000>;
578 regulator-min-microvolt = <3300000>;
579 regulator-max-microvolt = <3300000>;
583 regulator-min-microvolt = <2950000>;
584 regulator-max-microvolt = <2950000>;
585 regulator-system-load = <200000>;
586 regulator-allow-set-load;
590 regulator-min-microvolt = <2950000>;
591 regulator-max-microvolt = <2950000>;
592 regulator-system-load = <200000>;
593 regulator-allow-set-load;
597 regulator-min-microvolt = <3000000>;
598 regulator-max-microvolt = <3300000>;
602 regulator-min-microvolt = <3000000>;
603 regulator-max-microvolt = <3000000>;
607 regulator-min-microvolt = <3075000>;
608 regulator-max-microvolt = <3075000>;
612 regulator-min-microvolt = <2100000>;
613 regulator-max-microvolt = <2100000>;
617 regulator-min-microvolt = <1800000>;
618 regulator-max-microvolt = <2050000>;
622 regulator-min-microvolt = <1000000>;
623 regulator-max-microvolt = <1225000>;
626 pma8084_lvs1: lvs1 {};
627 pma8084_lvs2: lvs2 {};
628 pma8084_lvs3: lvs3 {};
629 pma8084_lvs4: lvs4 {};
631 pma8084_5vs1: 5vs1 {};
638 vmmc-supply = <&pma8084_l20>;
639 vqmmc-supply = <&pma8084_s4>;
641 pinctrl-names = "default", "sleep";
642 pinctrl-0 = <&sdc1_on>;
643 pinctrl-1 = <&sdc1_off>;
648 max-frequency = <100000000>;
649 vmmc-supply = <&vreg_wlan>;
650 vqmmc-supply = <&pma8084_s4>;
653 pinctrl-names = "default", "sleep";
654 pinctrl-0 = <&sdc2_on>;
655 pinctrl-1 = <&sdc2_off>;
659 compatible = "brcm,bcm4329-fmac";
661 interrupt-parent = <&tlmm>;
662 interrupts = <92 IRQ_TYPE_LEVEL_HIGH>;
663 interrupt-names = "host-wake";
665 pinctrl-names = "default";
666 pinctrl-0 = <&wlan_sleep_clk_pin &wifi_pin>;
672 max-frequency = <100000000>;
673 vmmc-supply = <&pma8084_l21>;
674 vqmmc-supply = <&pma8084_l13>;
677 * cd-gpio is intentionally disabled. If enabled, an SD card
678 * present during boot is not initialized correctly. Without
679 * cd-gpios the driver resorts to polling, so hotplug works.
681 pinctrl-names = "default";
682 pinctrl-0 = <&sdc3_on /* &sdhc3_cd_pin */>;
683 /* cd-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>; */
687 /* This seems suspicious, but somebody with this device should look into it. */
688 blsp2_uart2_pins_active: blsp2-uart2-pins-active-state {
689 pins = "gpio45", "gpio46", "gpio47", "gpio48";
690 function = "blsp_uart8";
691 drive-strength = <8>;
695 blsp2_uart2_pins_sleep: blsp2-uart2-pins-sleep-state {
696 pins = "gpio45", "gpio46", "gpio47", "gpio48";
698 drive-strength = <2>;
702 bt_pins: bt-pins-state {
706 drive-strength = <16>;
712 drive-strength = <2>;
716 sdc1_on: sdhc1-on-state {
719 drive-strength = <4>;
724 pins = "sdc1_cmd", "sdc1_data";
725 drive-strength = <4>;
730 sdc3_on: sdc3-on-state {
731 pins = "gpio35", "gpio36", "gpio37", "gpio38", "gpio39", "gpio40";
733 drive-strength = <8>;
737 sdhc3_cd_pin: sdc3-cd-on-state {
741 drive-strength = <2>;
745 sdc2_on: sdhc2-on-state {
748 drive-strength = <6>;
753 pins = "sdc2_cmd", "sdc2_data";
754 drive-strength = <6>;
759 i2c_touchkey_pins: i2c-touchkey-state {
760 pins = "gpio95", "gpio96";
765 i2c_led_gpioex_pins: i2c-led-gpioex-state {
766 pins = "gpio120", "gpio121";
771 gpioex_pin: gpioex-state {
775 drive-strength = <2>;
778 wifi_pin: wifi-state {
784 panel_te_pin: panel-state {
786 function = "mdp_vsync";
787 drive-strength = <2>;
795 phys = <&usb_hs1_phy>;
796 phy-select = <&tcsr 0xb000 0>;
806 v1p8-supply = <&pma8084_l6>;
807 v3p3-supply = <&pma8084_l24>;
809 qcom,init-seq = /bits/ 8 <0x1 0x64>;