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 mmc0 = &sdhc_1; /* SDC1 eMMC slot */
16 mmc1 = &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>;
37 regulator-min-microvolt = <500000>;
38 regulator-max-microvolt = <1050000>;
42 regulator-min-microvolt = <1300000>;
43 regulator-max-microvolt = <1300000>;
47 regulator-min-microvolt = <1800000>;
48 regulator-max-microvolt = <1800000>;
52 regulator-min-microvolt = <2150000>;
53 regulator-max-microvolt = <2150000>;
57 regulator-min-microvolt = <1050000>;
58 regulator-max-microvolt = <1050000>;
62 regulator-min-microvolt = <1225000>;
63 regulator-max-microvolt = <1225000>;
67 regulator-min-microvolt = <1200000>;
68 regulator-max-microvolt = <1200000>;
72 regulator-min-microvolt = <1050000>;
73 regulator-max-microvolt = <1200000>;
77 regulator-min-microvolt = <1200000>;
78 regulator-max-microvolt = <1225000>;
82 regulator-min-microvolt = <1800000>;
83 regulator-max-microvolt = <1800000>;
87 regulator-min-microvolt = <1800000>;
88 regulator-max-microvolt = <1800000>;
92 regulator-min-microvolt = <1800000>;
93 regulator-max-microvolt = <1800000>;
97 regulator-min-microvolt = <1800000>;
98 regulator-max-microvolt = <1800000>;
102 regulator-min-microvolt = <1800000>;
103 regulator-max-microvolt = <2950000>;
107 regulator-min-microvolt = <1800000>;
108 regulator-max-microvolt = <2950000>;
112 regulator-min-microvolt = <1300000>;
113 regulator-max-microvolt = <1300000>;
117 regulator-min-microvolt = <1800000>;
118 regulator-max-microvolt = <1800000>;
123 regulator-min-microvolt = <1800000>;
124 regulator-max-microvolt = <2950000>;
128 regulator-min-microvolt = <1800000>;
129 regulator-max-microvolt = <1800000>;
133 regulator-min-microvolt = <2050000>;
134 regulator-max-microvolt = <2050000>;
138 regulator-min-microvolt = <2700000>;
139 regulator-max-microvolt = <2700000>;
143 regulator-min-microvolt = <2850000>;
144 regulator-max-microvolt = <2850000>;
148 regulator-min-microvolt = <2850000>;
149 regulator-max-microvolt = <2850000>;
153 regulator-min-microvolt = <3300000>;
154 regulator-max-microvolt = <3300000>;
158 regulator-min-microvolt = <2950000>;
159 regulator-max-microvolt = <2950000>;
161 regulator-allow-set-load;
162 regulator-system-load = <200000>;
166 regulator-min-microvolt = <2950000>;
167 regulator-max-microvolt = <2950000>;
169 regulator-allow-set-load;
170 regulator-system-load = <200000>;
174 regulator-min-microvolt = <3000000>;
175 regulator-max-microvolt = <3300000>;
179 regulator-min-microvolt = <3000000>;
180 regulator-max-microvolt = <3000000>;
184 regulator-min-microvolt = <3075000>;
185 regulator-max-microvolt = <3075000>;
189 regulator-min-microvolt = <2100000>;
190 regulator-max-microvolt = <2100000>;
194 regulator-min-microvolt = <1800000>;
195 regulator-max-microvolt = <2050000>;
199 regulator-min-microvolt = <1000000>;
200 regulator-max-microvolt = <1225000>;
203 pma8084_lvs1: lvs1 {};
204 pma8084_lvs2: lvs2 {};
205 pma8084_lvs3: lvs3 {};
206 pma8084_lvs4: lvs4 {};
208 pma8084_5vs1: 5vs1 {};
215 compatible = "i2c-gpio";
216 #address-cells = <1>;
218 sda-gpios = <&msmgpio 95 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
219 scl-gpios = <&msmgpio 96 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
220 pinctrl-names = "default";
221 pinctrl-0 = <&i2c_touchkey_pins>;
224 compatible = "cypress,tm2-touchkey";
227 interrupt-parent = <&pma8084_gpios>;
228 interrupts = <6 IRQ_TYPE_EDGE_FALLING>;
229 pinctrl-names = "default";
230 pinctrl-0 = <&touchkey_pin>;
232 vcc-supply = <&max77826_ldo15>;
233 vdd-supply = <&pma8084_l19>;
235 linux,keycodes = <KEY_APPSELECT KEY_BACK>;
240 compatible = "i2c-gpio";
241 #address-cells = <1>;
243 scl-gpios = <&msmgpio 121 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
244 sda-gpios = <&msmgpio 120 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
245 pinctrl-names = "default";
246 pinctrl-0 = <&i2c_led_gpioex_pins>;
248 i2c-gpio,delay-us = <2>;
250 gpio_expander: gpio@20 {
251 compatible = "nxp,pcal6416";
257 vcc-supply = <&pma8084_s4>;
259 pinctrl-names = "default";
260 pinctrl-0 = <&gpioex_pin>;
262 reset-gpios = <&msmgpio 145 GPIO_ACTIVE_LOW>;
266 compatible = "panasonic,an30259a";
269 #address-cells = <1>;
274 function = LED_FUNCTION_STATUS;
275 color = <LED_COLOR_ID_RED>;
280 function = LED_FUNCTION_STATUS;
281 color = <LED_COLOR_ID_GREEN>;
286 function = LED_FUNCTION_STATUS;
287 color = <LED_COLOR_ID_BLUE>;
292 vreg_wlan: wlan-regulator {
293 compatible = "regulator-fixed";
295 regulator-name = "wl-reg";
296 regulator-min-microvolt = <3300000>;
297 regulator-max-microvolt = <3300000>;
299 gpio = <&gpio_expander 8 GPIO_ACTIVE_HIGH>;
303 vreg_panel: panel-regulator {
304 compatible = "regulator-fixed";
306 pinctrl-names = "default";
307 pinctrl-0 = <&panel_en_pin>;
309 regulator-name = "panel-vddr-reg";
310 regulator-min-microvolt = <1500000>;
311 regulator-max-microvolt = <1500000>;
313 gpio = <&pma8084_gpios 14 GPIO_ACTIVE_HIGH>;
317 /delete-node/ vreg-boost;
329 pinctrl-names = "default", "sleep";
330 pinctrl-0 = <&blsp2_uart8_pins_active>;
331 pinctrl-1 = <&blsp2_uart8_pins_sleep>;
334 compatible = "brcm,bcm43540-bt";
335 max-speed = <3000000>;
336 pinctrl-names = "default";
337 pinctrl-0 = <&bt_pins>;
338 device-wakeup-gpios = <&msmgpio 91 GPIO_ACTIVE_HIGH>;
339 shutdown-gpios = <&gpio_expander 9 GPIO_ACTIVE_HIGH>;
340 interrupt-parent = <&msmgpio>;
341 interrupts = <75 IRQ_TYPE_LEVEL_HIGH>;
342 interrupt-names = "host-wakeup";
347 compatible = "gpio-keys";
348 input-name = "gpio-keys";
350 pinctrl-names = "default";
351 pinctrl-0 = <&gpio_keys_pin_a>;
354 label = "volume_down";
355 gpios = <&pma8084_gpios 2 GPIO_ACTIVE_LOW>;
356 linux,input-type = <1>;
357 linux,code = <KEY_VOLUMEDOWN>;
358 debounce-interval = <15>;
363 gpios = <&pma8084_gpios 3 GPIO_ACTIVE_LOW>;
364 linux,input-type = <1>;
365 linux,code = <KEY_HOMEPAGE>;
367 debounce-interval = <15>;
372 gpios = <&pma8084_gpios 5 GPIO_ACTIVE_LOW>;
373 linux,input-type = <1>;
374 linux,code = <KEY_VOLUMEUP>;
375 debounce-interval = <15>;
380 blsp2_uart8_pins_active: blsp2-uart8-pins-active {
381 pins = "gpio45", "gpio46", "gpio47", "gpio48";
382 function = "blsp_uart8";
383 drive-strength = <8>;
387 blsp2_uart8_pins_sleep: blsp2-uart8-pins-sleep {
388 pins = "gpio45", "gpio46", "gpio47", "gpio48";
390 drive-strength = <2>;
398 drive-strength = <16>;
405 drive-strength = <2>;
409 sdhc1_pin_a: sdhc1-pin-active {
412 drive-strength = <4>;
417 pins = "sdc1_cmd", "sdc1_data";
418 drive-strength = <4>;
423 sdhc2_pin_a: sdhc2-pin-active {
425 pins = "gpio35", "gpio36", "gpio37", "gpio38",
428 drive-strength = <8>;
433 sdhc2_cd_pin: sdhc2-cd {
437 drive-strength = <2>;
441 sdhc3_pin_a: sdhc3-pin-active {
444 drive-strength = <6>;
449 pins = "sdc2_cmd", "sdc2_data";
450 drive-strength = <6>;
457 pins = "gpio6", "gpio7";
458 function = "blsp_i2c2";
460 drive-strength = <2>;
467 pins = "gpio29", "gpio30";
468 function = "blsp_i2c6";
470 drive-strength = <2>;
477 pins = "gpio87", "gpio88";
478 function = "blsp_i2c12";
480 drive-strength = <2>;
485 i2c_touchkey_pins: i2c-touchkey {
487 pins = "gpio95", "gpio96";
494 i2c_led_gpioex_pins: i2c-led-gpioex {
496 pins = "gpio120", "gpio121";
509 drive-strength = <2>;
523 panel_te_pin: panel {
526 function = "mdp_vsync";
528 drive-strength = <2>;
534 sdhc_1: sdhci@f9824900 {
537 vmmc-supply = <&pma8084_l20>;
538 vqmmc-supply = <&pma8084_s4>;
543 pinctrl-names = "default";
544 pinctrl-0 = <&sdhc1_pin_a>;
547 sdhc_2: sdhci@f9864900 {
550 max-frequency = <100000000>;
552 vmmc-supply = <&pma8084_l21>;
553 vqmmc-supply = <&pma8084_l13>;
557 /* cd-gpio is intentionally disabled. If enabled, an SD card
558 * present during boot is not initialized correctly. Without
559 * cd-gpios the driver resorts to polling, so hotplug works.
561 pinctrl-names = "default";
562 pinctrl-0 = <&sdhc2_pin_a /* &sdhc2_cd_pin */>;
563 // cd-gpios = <&msmgpio 62 GPIO_ACTIVE_LOW>;
569 #address-cells = <1>;
572 max-frequency = <100000000>;
574 pinctrl-names = "default";
575 pinctrl-0 = <&sdhc3_pin_a>;
577 vmmc-supply = <&vreg_wlan>;
578 vqmmc-supply = <&pma8084_s4>;
585 compatible = "brcm,bcm4329-fmac";
587 interrupt-parent = <&msmgpio>;
588 interrupts = <92 IRQ_TYPE_LEVEL_HIGH>;
589 interrupt-names = "host-wake";
591 pinctrl-names = "default";
592 pinctrl-0 = <&wlan_sleep_clk_pin &wifi_pin>;
599 phys = <&usb_hs1_phy>;
600 phy-select = <&tcsr 0xb000 0>;
601 /*extcon = <&smbb>, <&usb_id>;*/
602 /*vbus-supply = <&chg_otg>;*/
612 v1p8-supply = <&pma8084_l6>;
613 v3p3-supply = <&pma8084_l24>;
615 /*extcon = <&smbb>;*/
616 qcom,init-seq = /bits/ 8 <0x1 0x64>;
624 pinctrl-names = "default";
625 pinctrl-0 = <&i2c2_pins>;
628 compatible = "syna,rmi4-i2c";
631 interrupt-parent = <&pma8084_gpios>;
632 interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
634 vdd-supply = <&max77826_ldo13>;
635 vio-supply = <&pma8084_lvs2>;
637 pinctrl-names = "default";
638 pinctrl-0 = <&touch_pin>;
640 syna,startup-delay-ms = <100>;
642 #address-cells = <1>;
647 syna,nosleep-mode = <1>;
652 syna,sensor-type = <1>;
660 pinctrl-names = "default";
661 pinctrl-0 = <&i2c6_pins>;
665 compatible = "maxim,max77826";
668 max77826_ldo1: LDO1 {
669 regulator-min-microvolt = <1200000>;
670 regulator-max-microvolt = <1200000>;
673 max77826_ldo2: LDO2 {
674 regulator-min-microvolt = <1000000>;
675 regulator-max-microvolt = <1000000>;
678 max77826_ldo3: LDO3 {
679 regulator-min-microvolt = <1200000>;
680 regulator-max-microvolt = <1200000>;
683 max77826_ldo4: LDO4 {
684 regulator-min-microvolt = <1800000>;
685 regulator-max-microvolt = <1800000>;
688 max77826_ldo5: LDO5 {
689 regulator-min-microvolt = <1800000>;
690 regulator-max-microvolt = <1800000>;
693 max77826_ldo6: LDO6 {
694 regulator-min-microvolt = <1800000>;
695 regulator-max-microvolt = <3300000>;
698 max77826_ldo7: LDO7 {
699 regulator-min-microvolt = <1800000>;
700 regulator-max-microvolt = <1800000>;
703 max77826_ldo8: LDO8 {
704 regulator-min-microvolt = <1800000>;
705 regulator-max-microvolt = <3300000>;
708 max77826_ldo9: LDO9 {
709 regulator-min-microvolt = <1800000>;
710 regulator-max-microvolt = <1800000>;
713 max77826_ldo10: LDO10 {
714 regulator-min-microvolt = <2800000>;
715 regulator-max-microvolt = <2950000>;
718 max77826_ldo11: LDO11 {
719 regulator-min-microvolt = <2700000>;
720 regulator-max-microvolt = <2950000>;
723 max77826_ldo12: LDO12 {
724 regulator-min-microvolt = <2500000>;
725 regulator-max-microvolt = <3300000>;
728 max77826_ldo13: LDO13 {
729 regulator-min-microvolt = <3300000>;
730 regulator-max-microvolt = <3300000>;
733 max77826_ldo14: LDO14 {
734 regulator-min-microvolt = <3300000>;
735 regulator-max-microvolt = <3300000>;
738 max77826_ldo15: LDO15 {
739 regulator-min-microvolt = <1800000>;
740 regulator-max-microvolt = <1800000>;
743 max77826_buck: BUCK {
744 regulator-min-microvolt = <1225000>;
745 regulator-max-microvolt = <1225000>;
748 max77826_buckboost: BUCKBOOST {
749 regulator-min-microvolt = <3400000>;
750 regulator-max-microvolt = <3400000>;
759 pinctrl-names = "default";
760 pinctrl-0 = <&i2c12_pins>;
763 compatible = "maxim,max17048";
767 maxim,rcomp = /bits/ 8 <0x56>;
769 interrupt-parent = <&pma8084_gpios>;
770 interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
772 pinctrl-names = "default";
773 pinctrl-0 = <&fuelgauge_pin>;
791 vdda-supply = <&pma8084_l2>;
792 vdd-supply = <&pma8084_l22>;
793 vddio-supply = <&pma8084_l12>;
795 #address-cells = <1>;
801 remote-endpoint = <&panel_in>;
802 data-lanes = <0 1 2 3>;
809 compatible = "samsung,s6e3fa2";
811 pinctrl-names = "default";
812 pinctrl-0 = <&panel_te_pin &panel_rst_pin>;
814 iovdd-supply = <&pma8084_lvs4>;
815 vddr-supply = <&vreg_panel>;
817 reset-gpios = <&pma8084_gpios 17 GPIO_ACTIVE_LOW>;
818 te-gpios = <&msmgpio 12 GPIO_ACTIVE_HIGH>;
822 remote-endpoint = <&dsi0_out>;
831 vddio-supply = <&pma8084_l12>;
839 gpio_keys_pin_a: gpio-keys-active {
840 pins = "gpio2", "gpio3", "gpio5";
844 power-source = <PMA8084_GPIO_S4>;
847 touchkey_pin: touchkey-int-pin {
852 power-source = <PMA8084_GPIO_S4>;
855 touch_pin: touchscreen-int-pin {
860 power-source = <PMA8084_GPIO_S4>;
863 panel_en_pin: panel-en-pin {
867 power-source = <PMA8084_GPIO_S4>;
868 qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
871 wlan_sleep_clk_pin: wlan-sleep-clk-pin {
876 power-source = <PMA8084_GPIO_S4>;
877 qcom,drive-strength = <PMIC_GPIO_STRENGTH_HIGH>;
880 panel_rst_pin: panel-rst-pin {
884 power-source = <PMA8084_GPIO_S4>;
885 qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
889 fuelgauge_pin: fuelgauge-int-pin {
894 power-source = <PMA8084_GPIO_S4>;