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,msm8974";
13 serial0 = &blsp1_uart1;
14 mmc0 = &sdhc_1; /* SDC1 eMMC slot */
15 mmc1 = &sdhc_3; /* SDC2 SD card slot */
19 stdout-path = "serial0:115200n8";
23 compatible = "gpio-keys";
25 pinctrl-names = "default";
26 pinctrl-0 = <&gpio_keys_pin_a>;
29 label = "volume_down";
30 gpios = <&pma8084_gpios 2 GPIO_ACTIVE_LOW>;
31 linux,input-type = <1>;
32 linux,code = <KEY_VOLUMEDOWN>;
33 debounce-interval = <15>;
38 gpios = <&pma8084_gpios 3 GPIO_ACTIVE_LOW>;
39 linux,input-type = <1>;
40 linux,code = <KEY_HOMEPAGE>;
42 debounce-interval = <15>;
47 gpios = <&pma8084_gpios 5 GPIO_ACTIVE_LOW>;
48 linux,input-type = <1>;
49 linux,code = <KEY_VOLUMEUP>;
50 debounce-interval = <15>;
55 compatible = "i2c-gpio";
58 sda-gpios = <&tlmm 95 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
59 scl-gpios = <&tlmm 96 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
60 pinctrl-names = "default";
61 pinctrl-0 = <&i2c_touchkey_pins>;
64 compatible = "cypress,tm2-touchkey";
67 interrupt-parent = <&pma8084_gpios>;
68 interrupts = <6 IRQ_TYPE_EDGE_FALLING>;
69 pinctrl-names = "default";
70 pinctrl-0 = <&touchkey_pin>;
72 vcc-supply = <&max77826_ldo15>;
73 vdd-supply = <&pma8084_l19>;
75 linux,keycodes = <KEY_APPSELECT KEY_BACK>;
80 compatible = "i2c-gpio";
83 scl-gpios = <&tlmm 121 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
84 sda-gpios = <&tlmm 120 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
85 pinctrl-names = "default";
86 pinctrl-0 = <&i2c_led_gpioex_pins>;
88 i2c-gpio,delay-us = <2>;
90 gpio_expander: gpio@20 {
91 compatible = "nxp,pcal6416";
97 vcc-supply = <&pma8084_s4>;
99 pinctrl-names = "default";
100 pinctrl-0 = <&gpioex_pin>;
102 reset-gpios = <&tlmm 145 GPIO_ACTIVE_LOW>;
106 compatible = "panasonic,an30259a";
109 #address-cells = <1>;
114 function = LED_FUNCTION_STATUS;
115 color = <LED_COLOR_ID_RED>;
120 function = LED_FUNCTION_STATUS;
121 color = <LED_COLOR_ID_GREEN>;
126 function = LED_FUNCTION_STATUS;
127 color = <LED_COLOR_ID_BLUE>;
132 vreg_wlan: wlan-regulator {
133 compatible = "regulator-fixed";
135 regulator-name = "wl-reg";
136 regulator-min-microvolt = <3300000>;
137 regulator-max-microvolt = <3300000>;
139 gpio = <&gpio_expander 8 GPIO_ACTIVE_HIGH>;
143 vreg_panel: panel-regulator {
144 compatible = "regulator-fixed";
146 pinctrl-names = "default";
147 pinctrl-0 = <&panel_en_pin>;
149 regulator-name = "panel-vddr-reg";
150 regulator-min-microvolt = <1500000>;
151 regulator-max-microvolt = <1500000>;
153 gpio = <&pma8084_gpios 14 GPIO_ACTIVE_HIGH>;
157 /delete-node/ vreg-boost;
164 compatible = "syna,rmi4-i2c";
167 interrupt-parent = <&pma8084_gpios>;
168 interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
170 vdd-supply = <&max77826_ldo13>;
171 vio-supply = <&pma8084_lvs2>;
173 pinctrl-names = "default";
174 pinctrl-0 = <&touch_pin>;
176 syna,startup-delay-ms = <100>;
178 #address-cells = <1>;
183 syna,nosleep-mode = <1>;
188 syna,sensor-type = <1>;
198 compatible = "maxim,max77826";
201 max77826_ldo1: LDO1 {
202 regulator-min-microvolt = <1200000>;
203 regulator-max-microvolt = <1200000>;
206 max77826_ldo2: LDO2 {
207 regulator-min-microvolt = <1000000>;
208 regulator-max-microvolt = <1000000>;
211 max77826_ldo3: LDO3 {
212 regulator-min-microvolt = <1200000>;
213 regulator-max-microvolt = <1200000>;
216 max77826_ldo4: LDO4 {
217 regulator-min-microvolt = <1800000>;
218 regulator-max-microvolt = <1800000>;
221 max77826_ldo5: LDO5 {
222 regulator-min-microvolt = <1800000>;
223 regulator-max-microvolt = <1800000>;
226 max77826_ldo6: LDO6 {
227 regulator-min-microvolt = <1800000>;
228 regulator-max-microvolt = <3300000>;
231 max77826_ldo7: LDO7 {
232 regulator-min-microvolt = <1800000>;
233 regulator-max-microvolt = <1800000>;
236 max77826_ldo8: LDO8 {
237 regulator-min-microvolt = <1800000>;
238 regulator-max-microvolt = <3300000>;
241 max77826_ldo9: LDO9 {
242 regulator-min-microvolt = <1800000>;
243 regulator-max-microvolt = <1800000>;
246 max77826_ldo10: LDO10 {
247 regulator-min-microvolt = <2800000>;
248 regulator-max-microvolt = <2950000>;
251 max77826_ldo11: LDO11 {
252 regulator-min-microvolt = <2700000>;
253 regulator-max-microvolt = <2950000>;
256 max77826_ldo12: LDO12 {
257 regulator-min-microvolt = <2500000>;
258 regulator-max-microvolt = <3300000>;
261 max77826_ldo13: LDO13 {
262 regulator-min-microvolt = <3300000>;
263 regulator-max-microvolt = <3300000>;
266 max77826_ldo14: LDO14 {
267 regulator-min-microvolt = <3300000>;
268 regulator-max-microvolt = <3300000>;
271 max77826_ldo15: LDO15 {
272 regulator-min-microvolt = <1800000>;
273 regulator-max-microvolt = <1800000>;
276 max77826_buck: BUCK {
277 regulator-min-microvolt = <1225000>;
278 regulator-max-microvolt = <1225000>;
281 max77826_buckboost: BUCKBOOST {
282 regulator-min-microvolt = <3400000>;
283 regulator-max-microvolt = <3400000>;
297 compatible = "maxim,max17048";
301 maxim,rcomp = /bits/ 8 <0x56>;
303 interrupt-parent = <&pma8084_gpios>;
304 interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
306 pinctrl-names = "default";
307 pinctrl-0 = <&fuelgauge_pin>;
314 pinctrl-names = "default", "sleep";
315 pinctrl-0 = <&blsp2_uart2_pins_active>;
316 pinctrl-1 = <&blsp2_uart2_pins_sleep>;
319 compatible = "brcm,bcm43540-bt";
320 max-speed = <3000000>;
321 pinctrl-names = "default";
322 pinctrl-0 = <&bt_pins>;
323 device-wakeup-gpios = <&tlmm 91 GPIO_ACTIVE_HIGH>;
324 shutdown-gpios = <&gpio_expander 9 GPIO_ACTIVE_HIGH>;
325 interrupt-parent = <&tlmm>;
326 interrupts = <75 IRQ_TYPE_LEVEL_HIGH>;
327 interrupt-names = "host-wakeup";
334 vdda-supply = <&pma8084_l2>;
335 vdd-supply = <&pma8084_l22>;
336 vddio-supply = <&pma8084_l12>;
340 compatible = "samsung,s6e3fa2";
342 pinctrl-names = "default";
343 pinctrl-0 = <&panel_te_pin &panel_rst_pin>;
345 iovdd-supply = <&pma8084_lvs4>;
346 vddr-supply = <&vreg_panel>;
348 reset-gpios = <&pma8084_gpios 17 GPIO_ACTIVE_LOW>;
349 te-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
353 remote-endpoint = <&dsi0_out>;
360 remote-endpoint = <&panel_in>;
361 data-lanes = <0 1 2 3>;
367 vddio-supply = <&pma8084_l12>;
381 phys = <&usb_hs1_phy>;
382 phy-select = <&tcsr 0xb000 0>;
392 v1p8-supply = <&pma8084_l6>;
393 v3p3-supply = <&pma8084_l24>;
395 qcom,init-seq = /bits/ 8 <0x1 0x64>;
401 gpio_keys_pin_a: gpio-keys-active {
402 pins = "gpio2", "gpio3", "gpio5";
406 power-source = <PMA8084_GPIO_S4>;
409 touchkey_pin: touchkey-int-pin {
414 power-source = <PMA8084_GPIO_S4>;
417 touch_pin: touchscreen-int-pin {
422 power-source = <PMA8084_GPIO_S4>;
425 panel_en_pin: panel-en-pin {
429 power-source = <PMA8084_GPIO_S4>;
430 qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
433 wlan_sleep_clk_pin: wlan-sleep-clk-pin {
438 power-source = <PMA8084_GPIO_S4>;
439 qcom,drive-strength = <PMIC_GPIO_STRENGTH_HIGH>;
442 panel_rst_pin: panel-rst-pin {
446 power-source = <PMA8084_GPIO_S4>;
447 qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
450 fuelgauge_pin: fuelgauge-int-pin {
455 power-source = <PMA8084_GPIO_S4>;
460 cx-supply = <&pma8084_s2>;
464 cx-supply = <&pma8084_s2>;
465 mss-supply = <&pma8084_s6>;
466 mx-supply = <&pma8084_s1>;
467 pll-supply = <&pma8084_l12>;
472 compatible = "qcom,rpm-pma8084-regulators";
475 regulator-min-microvolt = <675000>;
476 regulator-max-microvolt = <1050000>;
481 regulator-min-microvolt = <500000>;
482 regulator-max-microvolt = <1050000>;
486 regulator-min-microvolt = <1300000>;
487 regulator-max-microvolt = <1300000>;
491 regulator-min-microvolt = <1800000>;
492 regulator-max-microvolt = <1800000>;
496 regulator-min-microvolt = <2150000>;
497 regulator-max-microvolt = <2150000>;
501 regulator-min-microvolt = <1050000>;
502 regulator-max-microvolt = <1050000>;
506 regulator-min-microvolt = <1225000>;
507 regulator-max-microvolt = <1225000>;
511 regulator-min-microvolt = <1200000>;
512 regulator-max-microvolt = <1200000>;
516 regulator-min-microvolt = <1050000>;
517 regulator-max-microvolt = <1200000>;
521 regulator-min-microvolt = <1200000>;
522 regulator-max-microvolt = <1225000>;
526 regulator-min-microvolt = <1800000>;
527 regulator-max-microvolt = <1800000>;
531 regulator-min-microvolt = <1800000>;
532 regulator-max-microvolt = <1800000>;
536 regulator-min-microvolt = <1800000>;
537 regulator-max-microvolt = <1800000>;
541 regulator-min-microvolt = <1800000>;
542 regulator-max-microvolt = <1800000>;
546 regulator-min-microvolt = <1800000>;
547 regulator-max-microvolt = <2950000>;
551 regulator-min-microvolt = <1800000>;
552 regulator-max-microvolt = <2950000>;
556 regulator-min-microvolt = <1300000>;
557 regulator-max-microvolt = <1300000>;
561 regulator-min-microvolt = <1800000>;
562 regulator-max-microvolt = <1800000>;
567 regulator-min-microvolt = <1800000>;
568 regulator-max-microvolt = <2950000>;
572 regulator-min-microvolt = <1800000>;
573 regulator-max-microvolt = <1800000>;
577 regulator-min-microvolt = <2050000>;
578 regulator-max-microvolt = <2050000>;
582 regulator-min-microvolt = <2700000>;
583 regulator-max-microvolt = <2700000>;
587 regulator-min-microvolt = <2850000>;
588 regulator-max-microvolt = <2850000>;
592 regulator-min-microvolt = <2850000>;
593 regulator-max-microvolt = <2850000>;
597 regulator-min-microvolt = <3300000>;
598 regulator-max-microvolt = <3300000>;
602 regulator-min-microvolt = <2950000>;
603 regulator-max-microvolt = <2950000>;
604 regulator-system-load = <200000>;
605 regulator-allow-set-load;
609 regulator-min-microvolt = <2950000>;
610 regulator-max-microvolt = <2950000>;
611 regulator-system-load = <200000>;
612 regulator-allow-set-load;
616 regulator-min-microvolt = <3000000>;
617 regulator-max-microvolt = <3300000>;
621 regulator-min-microvolt = <3000000>;
622 regulator-max-microvolt = <3000000>;
626 regulator-min-microvolt = <3075000>;
627 regulator-max-microvolt = <3075000>;
631 regulator-min-microvolt = <2100000>;
632 regulator-max-microvolt = <2100000>;
636 regulator-min-microvolt = <1800000>;
637 regulator-max-microvolt = <2050000>;
641 regulator-min-microvolt = <1000000>;
642 regulator-max-microvolt = <1225000>;
645 pma8084_lvs1: lvs1 {};
646 pma8084_lvs2: lvs2 {};
647 pma8084_lvs3: lvs3 {};
648 pma8084_lvs4: lvs4 {};
650 pma8084_5vs1: 5vs1 {};
657 vmmc-supply = <&pma8084_l20>;
658 vqmmc-supply = <&pma8084_s4>;
660 pinctrl-names = "default", "sleep";
661 pinctrl-0 = <&sdc1_on>;
662 pinctrl-1 = <&sdc1_off>;
667 max-frequency = <100000000>;
668 vmmc-supply = <&vreg_wlan>;
669 vqmmc-supply = <&pma8084_s4>;
672 pinctrl-names = "default", "sleep";
673 pinctrl-0 = <&sdc2_on>;
674 pinctrl-1 = <&sdc2_off>;
678 compatible = "brcm,bcm4329-fmac";
680 interrupt-parent = <&tlmm>;
681 interrupts = <92 IRQ_TYPE_LEVEL_HIGH>;
682 interrupt-names = "host-wake";
684 pinctrl-names = "default";
685 pinctrl-0 = <&wlan_sleep_clk_pin &wifi_pin>;
691 max-frequency = <100000000>;
692 vmmc-supply = <&pma8084_l21>;
693 vqmmc-supply = <&pma8084_l13>;
696 * cd-gpio is intentionally disabled. If enabled, an SD card
697 * present during boot is not initialized correctly. Without
698 * cd-gpios the driver resorts to polling, so hotplug works.
700 pinctrl-names = "default";
701 pinctrl-0 = <&sdc3_on /* &sdhc3_cd_pin */>;
702 /* cd-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>; */
706 /* This seems suspicious, but somebody with this device should look into it. */
707 blsp2_uart2_pins_active: blsp2-uart2-pins-active {
708 pins = "gpio45", "gpio46", "gpio47", "gpio48";
709 function = "blsp_uart8";
710 drive-strength = <8>;
714 blsp2_uart2_pins_sleep: blsp2-uart2-pins-sleep {
715 pins = "gpio45", "gpio46", "gpio47", "gpio48";
717 drive-strength = <2>;
725 drive-strength = <16>;
732 drive-strength = <2>;
739 drive-strength = <4>;
744 pins = "sdc1_cmd", "sdc1_data";
745 drive-strength = <4>;
751 pins = "gpio35", "gpio36", "gpio37", "gpio38", "gpio39", "gpio40";
753 drive-strength = <8>;
757 sdhc3_cd_pin: sdc3-cd-on {
761 drive-strength = <2>;
768 drive-strength = <6>;
773 pins = "sdc2_cmd", "sdc2_data";
774 drive-strength = <6>;
779 i2c_touchkey_pins: i2c-touchkey {
780 pins = "gpio95", "gpio96";
786 i2c_led_gpioex_pins: i2c-led-gpioex {
787 pins = "gpio120", "gpio121";
797 drive-strength = <2>;
807 panel_te_pin: panel {
809 function = "mdp_vsync";
810 drive-strength = <2>;