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;
320 cx-supply = <&pma8084_s2>;
333 pinctrl-names = "default", "sleep";
334 pinctrl-0 = <&blsp2_uart8_pins_active>;
335 pinctrl-1 = <&blsp2_uart8_pins_sleep>;
338 compatible = "brcm,bcm43540-bt";
339 max-speed = <3000000>;
340 pinctrl-names = "default";
341 pinctrl-0 = <&bt_pins>;
342 device-wakeup-gpios = <&msmgpio 91 GPIO_ACTIVE_HIGH>;
343 shutdown-gpios = <&gpio_expander 9 GPIO_ACTIVE_HIGH>;
344 interrupt-parent = <&msmgpio>;
345 interrupts = <75 IRQ_TYPE_LEVEL_HIGH>;
346 interrupt-names = "host-wakeup";
351 compatible = "gpio-keys";
352 input-name = "gpio-keys";
354 pinctrl-names = "default";
355 pinctrl-0 = <&gpio_keys_pin_a>;
358 label = "volume_down";
359 gpios = <&pma8084_gpios 2 GPIO_ACTIVE_LOW>;
360 linux,input-type = <1>;
361 linux,code = <KEY_VOLUMEDOWN>;
362 debounce-interval = <15>;
367 gpios = <&pma8084_gpios 3 GPIO_ACTIVE_LOW>;
368 linux,input-type = <1>;
369 linux,code = <KEY_HOMEPAGE>;
371 debounce-interval = <15>;
376 gpios = <&pma8084_gpios 5 GPIO_ACTIVE_LOW>;
377 linux,input-type = <1>;
378 linux,code = <KEY_VOLUMEUP>;
379 debounce-interval = <15>;
384 blsp2_uart8_pins_active: blsp2-uart8-pins-active {
385 pins = "gpio45", "gpio46", "gpio47", "gpio48";
386 function = "blsp_uart8";
387 drive-strength = <8>;
391 blsp2_uart8_pins_sleep: blsp2-uart8-pins-sleep {
392 pins = "gpio45", "gpio46", "gpio47", "gpio48";
394 drive-strength = <2>;
402 drive-strength = <16>;
409 drive-strength = <2>;
413 sdhc1_pin_a: sdhc1-pin-active {
416 drive-strength = <4>;
421 pins = "sdc1_cmd", "sdc1_data";
422 drive-strength = <4>;
427 sdhc2_pin_a: sdhc2-pin-active {
429 pins = "gpio35", "gpio36", "gpio37", "gpio38",
432 drive-strength = <8>;
437 sdhc2_cd_pin: sdhc2-cd {
441 drive-strength = <2>;
445 sdhc3_pin_a: sdhc3-pin-active {
448 drive-strength = <6>;
453 pins = "sdc2_cmd", "sdc2_data";
454 drive-strength = <6>;
461 pins = "gpio6", "gpio7";
462 function = "blsp_i2c2";
464 drive-strength = <2>;
471 pins = "gpio29", "gpio30";
472 function = "blsp_i2c6";
474 drive-strength = <2>;
481 pins = "gpio87", "gpio88";
482 function = "blsp_i2c12";
484 drive-strength = <2>;
489 i2c_touchkey_pins: i2c-touchkey {
491 pins = "gpio95", "gpio96";
498 i2c_led_gpioex_pins: i2c-led-gpioex {
500 pins = "gpio120", "gpio121";
513 drive-strength = <2>;
527 panel_te_pin: panel {
530 function = "mdp_vsync";
532 drive-strength = <2>;
538 sdhc_1: sdhci@f9824900 {
541 vmmc-supply = <&pma8084_l20>;
542 vqmmc-supply = <&pma8084_s4>;
547 pinctrl-names = "default";
548 pinctrl-0 = <&sdhc1_pin_a>;
551 sdhc_2: sdhci@f9864900 {
554 max-frequency = <100000000>;
556 vmmc-supply = <&pma8084_l21>;
557 vqmmc-supply = <&pma8084_l13>;
561 /* cd-gpio is intentionally disabled. If enabled, an SD card
562 * present during boot is not initialized correctly. Without
563 * cd-gpios the driver resorts to polling, so hotplug works.
565 pinctrl-names = "default";
566 pinctrl-0 = <&sdhc2_pin_a /* &sdhc2_cd_pin */>;
567 // cd-gpios = <&msmgpio 62 GPIO_ACTIVE_LOW>;
573 #address-cells = <1>;
576 max-frequency = <100000000>;
578 pinctrl-names = "default";
579 pinctrl-0 = <&sdhc3_pin_a>;
581 vmmc-supply = <&vreg_wlan>;
582 vqmmc-supply = <&pma8084_s4>;
589 compatible = "brcm,bcm4329-fmac";
591 interrupt-parent = <&msmgpio>;
592 interrupts = <92 IRQ_TYPE_LEVEL_HIGH>;
593 interrupt-names = "host-wake";
595 pinctrl-names = "default";
596 pinctrl-0 = <&wlan_sleep_clk_pin &wifi_pin>;
603 phys = <&usb_hs1_phy>;
604 phy-select = <&tcsr 0xb000 0>;
605 /*extcon = <&smbb>, <&usb_id>;*/
606 /*vbus-supply = <&chg_otg>;*/
616 v1p8-supply = <&pma8084_l6>;
617 v3p3-supply = <&pma8084_l24>;
619 /*extcon = <&smbb>;*/
620 qcom,init-seq = /bits/ 8 <0x1 0x64>;
628 pinctrl-names = "default";
629 pinctrl-0 = <&i2c2_pins>;
632 compatible = "syna,rmi4-i2c";
635 interrupt-parent = <&pma8084_gpios>;
636 interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
638 vdd-supply = <&max77826_ldo13>;
639 vio-supply = <&pma8084_lvs2>;
641 pinctrl-names = "default";
642 pinctrl-0 = <&touch_pin>;
644 syna,startup-delay-ms = <100>;
646 #address-cells = <1>;
651 syna,nosleep-mode = <1>;
656 syna,sensor-type = <1>;
664 pinctrl-names = "default";
665 pinctrl-0 = <&i2c6_pins>;
669 compatible = "maxim,max77826";
672 max77826_ldo1: LDO1 {
673 regulator-min-microvolt = <1200000>;
674 regulator-max-microvolt = <1200000>;
677 max77826_ldo2: LDO2 {
678 regulator-min-microvolt = <1000000>;
679 regulator-max-microvolt = <1000000>;
682 max77826_ldo3: LDO3 {
683 regulator-min-microvolt = <1200000>;
684 regulator-max-microvolt = <1200000>;
687 max77826_ldo4: LDO4 {
688 regulator-min-microvolt = <1800000>;
689 regulator-max-microvolt = <1800000>;
692 max77826_ldo5: LDO5 {
693 regulator-min-microvolt = <1800000>;
694 regulator-max-microvolt = <1800000>;
697 max77826_ldo6: LDO6 {
698 regulator-min-microvolt = <1800000>;
699 regulator-max-microvolt = <3300000>;
702 max77826_ldo7: LDO7 {
703 regulator-min-microvolt = <1800000>;
704 regulator-max-microvolt = <1800000>;
707 max77826_ldo8: LDO8 {
708 regulator-min-microvolt = <1800000>;
709 regulator-max-microvolt = <3300000>;
712 max77826_ldo9: LDO9 {
713 regulator-min-microvolt = <1800000>;
714 regulator-max-microvolt = <1800000>;
717 max77826_ldo10: LDO10 {
718 regulator-min-microvolt = <2800000>;
719 regulator-max-microvolt = <2950000>;
722 max77826_ldo11: LDO11 {
723 regulator-min-microvolt = <2700000>;
724 regulator-max-microvolt = <2950000>;
727 max77826_ldo12: LDO12 {
728 regulator-min-microvolt = <2500000>;
729 regulator-max-microvolt = <3300000>;
732 max77826_ldo13: LDO13 {
733 regulator-min-microvolt = <3300000>;
734 regulator-max-microvolt = <3300000>;
737 max77826_ldo14: LDO14 {
738 regulator-min-microvolt = <3300000>;
739 regulator-max-microvolt = <3300000>;
742 max77826_ldo15: LDO15 {
743 regulator-min-microvolt = <1800000>;
744 regulator-max-microvolt = <1800000>;
747 max77826_buck: BUCK {
748 regulator-min-microvolt = <1225000>;
749 regulator-max-microvolt = <1225000>;
752 max77826_buckboost: BUCKBOOST {
753 regulator-min-microvolt = <3400000>;
754 regulator-max-microvolt = <3400000>;
763 pinctrl-names = "default";
764 pinctrl-0 = <&i2c12_pins>;
767 compatible = "maxim,max17048";
771 maxim,rcomp = /bits/ 8 <0x56>;
773 interrupt-parent = <&pma8084_gpios>;
774 interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
776 pinctrl-names = "default";
777 pinctrl-0 = <&fuelgauge_pin>;
795 vdda-supply = <&pma8084_l2>;
796 vdd-supply = <&pma8084_l22>;
797 vddio-supply = <&pma8084_l12>;
799 #address-cells = <1>;
805 remote-endpoint = <&panel_in>;
806 data-lanes = <0 1 2 3>;
813 compatible = "samsung,s6e3fa2";
815 pinctrl-names = "default";
816 pinctrl-0 = <&panel_te_pin &panel_rst_pin>;
818 iovdd-supply = <&pma8084_lvs4>;
819 vddr-supply = <&vreg_panel>;
821 reset-gpios = <&pma8084_gpios 17 GPIO_ACTIVE_LOW>;
822 te-gpios = <&msmgpio 12 GPIO_ACTIVE_HIGH>;
826 remote-endpoint = <&dsi0_out>;
835 vddio-supply = <&pma8084_l12>;
839 remoteproc@fc880000 {
840 cx-supply = <&pma8084_s2>;
841 mss-supply = <&pma8084_s6>;
842 mx-supply = <&pma8084_s1>;
843 pll-supply = <&pma8084_l12>;
850 gpio_keys_pin_a: gpio-keys-active {
851 pins = "gpio2", "gpio3", "gpio5";
855 power-source = <PMA8084_GPIO_S4>;
858 touchkey_pin: touchkey-int-pin {
863 power-source = <PMA8084_GPIO_S4>;
866 touch_pin: touchscreen-int-pin {
871 power-source = <PMA8084_GPIO_S4>;
874 panel_en_pin: panel-en-pin {
878 power-source = <PMA8084_GPIO_S4>;
879 qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
882 wlan_sleep_clk_pin: wlan-sleep-clk-pin {
887 power-source = <PMA8084_GPIO_S4>;
888 qcom,drive-strength = <PMIC_GPIO_STRENGTH_HIGH>;
891 panel_rst_pin: panel-rst-pin {
895 power-source = <PMA8084_GPIO_S4>;
896 qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
900 fuelgauge_pin: fuelgauge-int-pin {
905 power-source = <PMA8084_GPIO_S4>;