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-state {
402 pins = "gpio2", "gpio3", "gpio5";
406 power-source = <PMA8084_GPIO_S4>;
409 touchkey_pin: touchkey-int-state {
414 power-source = <PMA8084_GPIO_S4>;
417 touch_pin: touchscreen-int-state {
422 power-source = <PMA8084_GPIO_S4>;
425 panel_en_pin: panel-en-state {
429 power-source = <PMA8084_GPIO_S4>;
430 qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
433 wlan_sleep_clk_pin: wlan-sleep-clk-state {
438 power-source = <PMA8084_GPIO_S4>;
439 qcom,drive-strength = <PMIC_GPIO_STRENGTH_HIGH>;
442 panel_rst_pin: panel-rst-state {
446 power-source = <PMA8084_GPIO_S4>;
447 qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
450 fuelgauge_pin: fuelgauge-int-state {
455 power-source = <PMA8084_GPIO_S4>;
461 cx-supply = <&pma8084_s2>;
466 cx-supply = <&pma8084_s2>;
467 mss-supply = <&pma8084_s6>;
468 mx-supply = <&pma8084_s1>;
469 pll-supply = <&pma8084_l12>;
474 compatible = "qcom,rpm-pma8084-regulators";
477 regulator-min-microvolt = <675000>;
478 regulator-max-microvolt = <1050000>;
483 regulator-min-microvolt = <500000>;
484 regulator-max-microvolt = <1050000>;
488 regulator-min-microvolt = <1300000>;
489 regulator-max-microvolt = <1300000>;
493 regulator-min-microvolt = <1800000>;
494 regulator-max-microvolt = <1800000>;
498 regulator-min-microvolt = <2150000>;
499 regulator-max-microvolt = <2150000>;
503 regulator-min-microvolt = <1050000>;
504 regulator-max-microvolt = <1050000>;
508 regulator-min-microvolt = <1225000>;
509 regulator-max-microvolt = <1225000>;
513 regulator-min-microvolt = <1200000>;
514 regulator-max-microvolt = <1200000>;
518 regulator-min-microvolt = <1050000>;
519 regulator-max-microvolt = <1200000>;
523 regulator-min-microvolt = <1200000>;
524 regulator-max-microvolt = <1225000>;
528 regulator-min-microvolt = <1800000>;
529 regulator-max-microvolt = <1800000>;
533 regulator-min-microvolt = <1800000>;
534 regulator-max-microvolt = <1800000>;
538 regulator-min-microvolt = <1800000>;
539 regulator-max-microvolt = <1800000>;
543 regulator-min-microvolt = <1800000>;
544 regulator-max-microvolt = <1800000>;
548 regulator-min-microvolt = <1800000>;
549 regulator-max-microvolt = <2950000>;
553 regulator-min-microvolt = <1800000>;
554 regulator-max-microvolt = <2950000>;
558 regulator-min-microvolt = <1300000>;
559 regulator-max-microvolt = <1300000>;
563 regulator-min-microvolt = <1800000>;
564 regulator-max-microvolt = <1800000>;
569 regulator-min-microvolt = <1800000>;
570 regulator-max-microvolt = <2950000>;
574 regulator-min-microvolt = <1800000>;
575 regulator-max-microvolt = <1800000>;
579 regulator-min-microvolt = <2050000>;
580 regulator-max-microvolt = <2050000>;
584 regulator-min-microvolt = <2700000>;
585 regulator-max-microvolt = <2700000>;
589 regulator-min-microvolt = <2850000>;
590 regulator-max-microvolt = <2850000>;
594 regulator-min-microvolt = <2850000>;
595 regulator-max-microvolt = <2850000>;
599 regulator-min-microvolt = <3300000>;
600 regulator-max-microvolt = <3300000>;
604 regulator-min-microvolt = <2950000>;
605 regulator-max-microvolt = <2950000>;
606 regulator-system-load = <200000>;
607 regulator-allow-set-load;
611 regulator-min-microvolt = <2950000>;
612 regulator-max-microvolt = <2950000>;
613 regulator-system-load = <200000>;
614 regulator-allow-set-load;
618 regulator-min-microvolt = <3000000>;
619 regulator-max-microvolt = <3300000>;
623 regulator-min-microvolt = <3000000>;
624 regulator-max-microvolt = <3000000>;
628 regulator-min-microvolt = <3075000>;
629 regulator-max-microvolt = <3075000>;
633 regulator-min-microvolt = <2100000>;
634 regulator-max-microvolt = <2100000>;
638 regulator-min-microvolt = <1800000>;
639 regulator-max-microvolt = <2050000>;
643 regulator-min-microvolt = <1000000>;
644 regulator-max-microvolt = <1225000>;
647 pma8084_lvs1: lvs1 {};
648 pma8084_lvs2: lvs2 {};
649 pma8084_lvs3: lvs3 {};
650 pma8084_lvs4: lvs4 {};
652 pma8084_5vs1: 5vs1 {};
659 vmmc-supply = <&pma8084_l20>;
660 vqmmc-supply = <&pma8084_s4>;
662 pinctrl-names = "default", "sleep";
663 pinctrl-0 = <&sdc1_on>;
664 pinctrl-1 = <&sdc1_off>;
669 max-frequency = <100000000>;
670 vmmc-supply = <&vreg_wlan>;
671 vqmmc-supply = <&pma8084_s4>;
674 pinctrl-names = "default", "sleep";
675 pinctrl-0 = <&sdc2_on>;
676 pinctrl-1 = <&sdc2_off>;
680 compatible = "brcm,bcm4329-fmac";
682 interrupt-parent = <&tlmm>;
683 interrupts = <92 IRQ_TYPE_LEVEL_HIGH>;
684 interrupt-names = "host-wake";
686 pinctrl-names = "default";
687 pinctrl-0 = <&wlan_sleep_clk_pin &wifi_pin>;
693 max-frequency = <100000000>;
694 vmmc-supply = <&pma8084_l21>;
695 vqmmc-supply = <&pma8084_l13>;
698 * cd-gpio is intentionally disabled. If enabled, an SD card
699 * present during boot is not initialized correctly. Without
700 * cd-gpios the driver resorts to polling, so hotplug works.
702 pinctrl-names = "default";
703 pinctrl-0 = <&sdc3_on /* &sdhc3_cd_pin */>;
704 /* cd-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>; */
708 /* This seems suspicious, but somebody with this device should look into it. */
709 blsp2_uart2_pins_active: blsp2-uart2-pins-active {
710 pins = "gpio45", "gpio46", "gpio47", "gpio48";
711 function = "blsp_uart8";
712 drive-strength = <8>;
716 blsp2_uart2_pins_sleep: blsp2-uart2-pins-sleep {
717 pins = "gpio45", "gpio46", "gpio47", "gpio48";
719 drive-strength = <2>;
727 drive-strength = <16>;
734 drive-strength = <2>;
741 drive-strength = <4>;
746 pins = "sdc1_cmd", "sdc1_data";
747 drive-strength = <4>;
753 pins = "gpio35", "gpio36", "gpio37", "gpio38", "gpio39", "gpio40";
755 drive-strength = <8>;
759 sdhc3_cd_pin: sdc3-cd-on {
763 drive-strength = <2>;
770 drive-strength = <6>;
775 pins = "sdc2_cmd", "sdc2_data";
776 drive-strength = <6>;
781 i2c_touchkey_pins: i2c-touchkey {
782 pins = "gpio95", "gpio96";
788 i2c_led_gpioex_pins: i2c-led-gpioex {
789 pins = "gpio120", "gpio121";
799 drive-strength = <2>;
809 panel_te_pin: panel {
811 function = "mdp_vsync";
812 drive-strength = <2>;