1 // SPDX-License-Identifier: GPL-2.0
2 #include "qcom-msm8974pro.dtsi"
3 #include "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 vreg_vph_pwr: vreg-vph-pwr {
159 compatible = "regulator-fixed";
160 regulator-name = "vph-pwr";
162 regulator-min-microvolt = <3600000>;
163 regulator-max-microvolt = <3600000>;
173 compatible = "syna,rmi4-i2c";
176 interrupt-parent = <&pma8084_gpios>;
177 interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
179 vdd-supply = <&max77826_ldo13>;
180 vio-supply = <&pma8084_lvs2>;
182 pinctrl-names = "default";
183 pinctrl-0 = <&touch_pin>;
185 syna,startup-delay-ms = <100>;
187 #address-cells = <1>;
192 syna,nosleep-mode = <1>;
197 syna,sensor-type = <1>;
207 compatible = "maxim,max77826";
210 max77826_ldo1: LDO1 {
211 regulator-min-microvolt = <1200000>;
212 regulator-max-microvolt = <1200000>;
215 max77826_ldo2: LDO2 {
216 regulator-min-microvolt = <1000000>;
217 regulator-max-microvolt = <1000000>;
220 max77826_ldo3: LDO3 {
221 regulator-min-microvolt = <1200000>;
222 regulator-max-microvolt = <1200000>;
225 max77826_ldo4: LDO4 {
226 regulator-min-microvolt = <1800000>;
227 regulator-max-microvolt = <1800000>;
230 max77826_ldo5: LDO5 {
231 regulator-min-microvolt = <1800000>;
232 regulator-max-microvolt = <1800000>;
235 max77826_ldo6: LDO6 {
236 regulator-min-microvolt = <1800000>;
237 regulator-max-microvolt = <3300000>;
240 max77826_ldo7: LDO7 {
241 regulator-min-microvolt = <1800000>;
242 regulator-max-microvolt = <1800000>;
245 max77826_ldo8: LDO8 {
246 regulator-min-microvolt = <1800000>;
247 regulator-max-microvolt = <3300000>;
250 max77826_ldo9: LDO9 {
251 regulator-min-microvolt = <1800000>;
252 regulator-max-microvolt = <1800000>;
255 max77826_ldo10: LDO10 {
256 regulator-min-microvolt = <2800000>;
257 regulator-max-microvolt = <2950000>;
260 max77826_ldo11: LDO11 {
261 regulator-min-microvolt = <2700000>;
262 regulator-max-microvolt = <2950000>;
265 max77826_ldo12: LDO12 {
266 regulator-min-microvolt = <2500000>;
267 regulator-max-microvolt = <3300000>;
270 max77826_ldo13: LDO13 {
271 regulator-min-microvolt = <3300000>;
272 regulator-max-microvolt = <3300000>;
275 max77826_ldo14: LDO14 {
276 regulator-min-microvolt = <3300000>;
277 regulator-max-microvolt = <3300000>;
280 max77826_ldo15: LDO15 {
281 regulator-min-microvolt = <1800000>;
282 regulator-max-microvolt = <1800000>;
285 max77826_buck: BUCK {
286 regulator-min-microvolt = <1225000>;
287 regulator-max-microvolt = <1225000>;
290 max77826_buckboost: BUCKBOOST {
291 regulator-min-microvolt = <3400000>;
292 regulator-max-microvolt = <3400000>;
306 compatible = "maxim,max17048";
310 maxim,rcomp = /bits/ 8 <0x56>;
312 interrupt-parent = <&pma8084_gpios>;
313 interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
315 pinctrl-names = "default";
316 pinctrl-0 = <&fuelgauge_pin>;
323 pinctrl-names = "default", "sleep";
324 pinctrl-0 = <&blsp2_uart2_pins_active>;
325 pinctrl-1 = <&blsp2_uart2_pins_sleep>;
328 compatible = "brcm,bcm43540-bt";
329 max-speed = <3000000>;
330 pinctrl-names = "default";
331 pinctrl-0 = <&bt_pins>;
332 device-wakeup-gpios = <&tlmm 91 GPIO_ACTIVE_HIGH>;
333 shutdown-gpios = <&gpio_expander 9 GPIO_ACTIVE_HIGH>;
334 interrupt-parent = <&tlmm>;
335 interrupts = <75 IRQ_TYPE_LEVEL_HIGH>;
336 interrupt-names = "host-wakeup";
351 vdda-supply = <&pma8084_l2>;
352 vdd-supply = <&pma8084_l22>;
353 vddio-supply = <&pma8084_l12>;
357 compatible = "samsung,s6e3fa2";
359 pinctrl-names = "default";
360 pinctrl-0 = <&panel_te_pin &panel_rst_pin>;
362 iovdd-supply = <&pma8084_lvs4>;
363 vddr-supply = <&vreg_panel>;
365 reset-gpios = <&pma8084_gpios 17 GPIO_ACTIVE_LOW>;
369 remote-endpoint = <&mdss_dsi0_out>;
376 remote-endpoint = <&panel_in>;
377 data-lanes = <0 1 2 3>;
383 vddio-supply = <&pma8084_l12>;
387 gpio_keys_pin_a: gpio-keys-active-state {
388 pins = "gpio2", "gpio3", "gpio5";
392 power-source = <PMA8084_GPIO_S4>;
395 touchkey_pin: touchkey-int-state {
400 power-source = <PMA8084_GPIO_S4>;
403 touch_pin: touchscreen-int-state {
408 power-source = <PMA8084_GPIO_S4>;
411 panel_en_pin: panel-en-state {
415 power-source = <PMA8084_GPIO_S4>;
416 qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
419 wlan_sleep_clk_pin: wlan-sleep-clk-state {
424 power-source = <PMA8084_GPIO_S4>;
425 qcom,drive-strength = <PMIC_GPIO_STRENGTH_HIGH>;
428 panel_rst_pin: panel-rst-state {
432 power-source = <PMA8084_GPIO_S4>;
433 qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
436 fuelgauge_pin: fuelgauge-int-state {
441 power-source = <PMA8084_GPIO_S4>;
447 cx-supply = <&pma8084_s2>;
452 cx-supply = <&pma8084_s2>;
453 mss-supply = <&pma8084_s6>;
454 mx-supply = <&pma8084_s1>;
455 pll-supply = <&pma8084_l12>;
460 compatible = "qcom,rpm-pma8084-regulators";
463 regulator-min-microvolt = <675000>;
464 regulator-max-microvolt = <1050000>;
469 regulator-min-microvolt = <500000>;
470 regulator-max-microvolt = <1050000>;
474 regulator-min-microvolt = <1300000>;
475 regulator-max-microvolt = <1300000>;
479 regulator-min-microvolt = <1800000>;
480 regulator-max-microvolt = <1800000>;
484 regulator-min-microvolt = <2150000>;
485 regulator-max-microvolt = <2150000>;
489 regulator-min-microvolt = <1050000>;
490 regulator-max-microvolt = <1050000>;
494 regulator-min-microvolt = <1225000>;
495 regulator-max-microvolt = <1225000>;
499 regulator-min-microvolt = <1200000>;
500 regulator-max-microvolt = <1200000>;
504 regulator-min-microvolt = <1050000>;
505 regulator-max-microvolt = <1200000>;
509 regulator-min-microvolt = <1200000>;
510 regulator-max-microvolt = <1225000>;
514 regulator-min-microvolt = <1800000>;
515 regulator-max-microvolt = <1800000>;
519 regulator-min-microvolt = <1800000>;
520 regulator-max-microvolt = <1800000>;
524 regulator-min-microvolt = <1800000>;
525 regulator-max-microvolt = <1800000>;
529 regulator-min-microvolt = <1800000>;
530 regulator-max-microvolt = <1800000>;
534 regulator-min-microvolt = <1800000>;
535 regulator-max-microvolt = <2950000>;
539 regulator-min-microvolt = <1800000>;
540 regulator-max-microvolt = <2950000>;
544 regulator-min-microvolt = <1300000>;
545 regulator-max-microvolt = <1300000>;
549 regulator-min-microvolt = <1800000>;
550 regulator-max-microvolt = <1800000>;
555 regulator-min-microvolt = <1800000>;
556 regulator-max-microvolt = <2950000>;
560 regulator-min-microvolt = <1800000>;
561 regulator-max-microvolt = <1800000>;
565 regulator-min-microvolt = <2050000>;
566 regulator-max-microvolt = <2050000>;
570 regulator-min-microvolt = <2700000>;
571 regulator-max-microvolt = <2700000>;
575 regulator-min-microvolt = <2850000>;
576 regulator-max-microvolt = <2850000>;
580 regulator-min-microvolt = <2850000>;
581 regulator-max-microvolt = <2850000>;
585 regulator-min-microvolt = <3300000>;
586 regulator-max-microvolt = <3300000>;
590 regulator-min-microvolt = <2950000>;
591 regulator-max-microvolt = <2950000>;
592 regulator-system-load = <200000>;
593 regulator-allow-set-load;
597 regulator-min-microvolt = <2950000>;
598 regulator-max-microvolt = <2950000>;
599 regulator-system-load = <200000>;
600 regulator-allow-set-load;
604 regulator-min-microvolt = <3000000>;
605 regulator-max-microvolt = <3300000>;
609 regulator-min-microvolt = <3000000>;
610 regulator-max-microvolt = <3000000>;
614 regulator-min-microvolt = <3075000>;
615 regulator-max-microvolt = <3075000>;
619 regulator-min-microvolt = <2100000>;
620 regulator-max-microvolt = <2100000>;
624 regulator-min-microvolt = <1800000>;
625 regulator-max-microvolt = <2050000>;
629 regulator-min-microvolt = <1000000>;
630 regulator-max-microvolt = <1225000>;
633 pma8084_lvs1: lvs1 {};
634 pma8084_lvs2: lvs2 {};
635 pma8084_lvs3: lvs3 {};
636 pma8084_lvs4: lvs4 {};
638 pma8084_5vs1: 5vs1 {};
645 vmmc-supply = <&pma8084_l20>;
646 vqmmc-supply = <&pma8084_s4>;
648 pinctrl-names = "default", "sleep";
649 pinctrl-0 = <&sdc1_on>;
650 pinctrl-1 = <&sdc1_off>;
655 max-frequency = <100000000>;
656 vmmc-supply = <&vreg_wlan>;
657 vqmmc-supply = <&pma8084_s4>;
660 pinctrl-names = "default", "sleep";
661 pinctrl-0 = <&sdc2_on>;
662 pinctrl-1 = <&sdc2_off>;
666 compatible = "brcm,bcm4329-fmac";
668 interrupt-parent = <&tlmm>;
669 interrupts = <92 IRQ_TYPE_LEVEL_HIGH>;
670 interrupt-names = "host-wake";
672 pinctrl-names = "default";
673 pinctrl-0 = <&wlan_sleep_clk_pin &wifi_pin>;
679 max-frequency = <100000000>;
680 vmmc-supply = <&pma8084_l21>;
681 vqmmc-supply = <&pma8084_l13>;
684 * cd-gpio is intentionally disabled. If enabled, an SD card
685 * present during boot is not initialized correctly. Without
686 * cd-gpios the driver resorts to polling, so hotplug works.
688 pinctrl-names = "default";
689 pinctrl-0 = <&sdc3_on /* &sdhc3_cd_pin */>;
690 /* cd-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>; */
694 /* This seems suspicious, but somebody with this device should look into it. */
695 blsp2_uart2_pins_active: blsp2-uart2-pins-active-state {
696 pins = "gpio45", "gpio46", "gpio47", "gpio48";
697 function = "blsp_uart8";
698 drive-strength = <8>;
702 blsp2_uart2_pins_sleep: blsp2-uart2-pins-sleep-state {
703 pins = "gpio45", "gpio46", "gpio47", "gpio48";
705 drive-strength = <2>;
709 bt_pins: bt-pins-state {
713 drive-strength = <16>;
719 drive-strength = <2>;
723 sdc1_on: sdhc1-on-state {
726 drive-strength = <4>;
731 pins = "sdc1_cmd", "sdc1_data";
732 drive-strength = <4>;
737 sdc3_on: sdc3-on-state {
738 pins = "gpio35", "gpio36", "gpio37", "gpio38", "gpio39", "gpio40";
740 drive-strength = <8>;
744 sdhc3_cd_pin: sdc3-cd-on-state {
748 drive-strength = <2>;
752 sdc2_on: sdhc2-on-state {
755 drive-strength = <6>;
760 pins = "sdc2_cmd", "sdc2_data";
761 drive-strength = <6>;
766 i2c_touchkey_pins: i2c-touchkey-state {
767 pins = "gpio95", "gpio96";
772 i2c_led_gpioex_pins: i2c-led-gpioex-state {
773 pins = "gpio120", "gpio121";
778 gpioex_pin: gpioex-state {
782 drive-strength = <2>;
785 wifi_pin: wifi-state {
791 panel_te_pin: panel-state {
793 function = "mdp_vsync";
794 drive-strength = <2>;
802 phys = <&usb_hs1_phy>;
803 phy-select = <&tcsr 0xb000 0>;
813 v1p8-supply = <&pma8084_l6>;
814 v3p3-supply = <&pma8084_l24>;
816 qcom,init-seq = /bits/ 8 <0x1 0x64>;