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>
8
9/ {
10	model = "Samsung Galaxy S5";
11	compatible = "samsung,klte", "qcom,msm8974";
12
13	aliases {
14		serial0 = &blsp1_uart1;
15		mmc0 = &sdhc_1; /* SDC1 eMMC slot */
16		mmc1 = &sdhc_2; /* SDC2 SD card slot */
17	};
18
19	chosen {
20		stdout-path = "serial0:115200n8";
21	};
22
23	smd {
24		rpm {
25			rpm_requests {
26				pma8084-regulators {
27					compatible = "qcom,rpm-pma8084-regulators";
28					status = "okay";
29
30					pma8084_s1: s1 {
31						regulator-min-microvolt = <675000>;
32						regulator-max-microvolt = <1050000>;
33						regulator-always-on;
34					};
35
36					pma8084_s2: s2 {
37						regulator-min-microvolt = <500000>;
38						regulator-max-microvolt = <1050000>;
39					};
40
41					pma8084_s3: s3 {
42						regulator-min-microvolt = <1300000>;
43						regulator-max-microvolt = <1300000>;
44					};
45
46					pma8084_s4: s4 {
47						regulator-min-microvolt = <1800000>;
48						regulator-max-microvolt = <1800000>;
49					};
50
51					pma8084_s5: s5 {
52						regulator-min-microvolt = <2150000>;
53						regulator-max-microvolt = <2150000>;
54					};
55
56					pma8084_s6: s6 {
57						regulator-min-microvolt = <1050000>;
58						regulator-max-microvolt = <1050000>;
59					};
60
61					pma8084_l1: l1 {
62						regulator-min-microvolt = <1225000>;
63						regulator-max-microvolt = <1225000>;
64					};
65
66					pma8084_l2: l2 {
67						regulator-min-microvolt = <1200000>;
68						regulator-max-microvolt = <1200000>;
69					};
70
71					pma8084_l3: l3 {
72						regulator-min-microvolt = <1050000>;
73						regulator-max-microvolt = <1200000>;
74					};
75
76					pma8084_l4: l4 {
77						regulator-min-microvolt = <1200000>;
78						regulator-max-microvolt = <1225000>;
79					};
80
81					pma8084_l5: l5 {
82						regulator-min-microvolt = <1800000>;
83						regulator-max-microvolt = <1800000>;
84					};
85
86					pma8084_l6: l6 {
87						regulator-min-microvolt = <1800000>;
88						regulator-max-microvolt = <1800000>;
89					};
90
91					pma8084_l7: l7 {
92						regulator-min-microvolt = <1800000>;
93						regulator-max-microvolt = <1800000>;
94					};
95
96					pma8084_l8: l8 {
97						regulator-min-microvolt = <1800000>;
98						regulator-max-microvolt = <1800000>;
99					};
100
101					pma8084_l9: l9 {
102						regulator-min-microvolt = <1800000>;
103						regulator-max-microvolt = <2950000>;
104					};
105
106					pma8084_l10: l10 {
107						regulator-min-microvolt = <1800000>;
108						regulator-max-microvolt = <2950000>;
109					};
110
111					pma8084_l11: l11 {
112						regulator-min-microvolt = <1300000>;
113						regulator-max-microvolt = <1300000>;
114					};
115
116					pma8084_l12: l12 {
117						regulator-min-microvolt = <1800000>;
118						regulator-max-microvolt = <1800000>;
119						regulator-always-on;
120					};
121
122					pma8084_l13: l13 {
123						regulator-min-microvolt = <1800000>;
124						regulator-max-microvolt = <2950000>;
125					};
126
127					pma8084_l14: l14 {
128						regulator-min-microvolt = <1800000>;
129						regulator-max-microvolt = <1800000>;
130					};
131
132					pma8084_l15: l15 {
133						regulator-min-microvolt = <2050000>;
134						regulator-max-microvolt = <2050000>;
135					};
136
137					pma8084_l16: l16 {
138						regulator-min-microvolt = <2700000>;
139						regulator-max-microvolt = <2700000>;
140					};
141
142					pma8084_l17: l17 {
143						regulator-min-microvolt = <2850000>;
144						regulator-max-microvolt = <2850000>;
145					};
146
147					pma8084_l18: l18 {
148						regulator-min-microvolt = <2850000>;
149						regulator-max-microvolt = <2850000>;
150					};
151
152					pma8084_l19: l19 {
153						regulator-min-microvolt = <3300000>;
154						regulator-max-microvolt = <3300000>;
155					};
156
157					pma8084_l20: l20 {
158						regulator-min-microvolt = <2950000>;
159						regulator-max-microvolt = <2950000>;
160
161						regulator-allow-set-load;
162						regulator-system-load = <200000>;
163					};
164
165					pma8084_l21: l21 {
166						regulator-min-microvolt = <2950000>;
167						regulator-max-microvolt = <2950000>;
168
169						regulator-allow-set-load;
170						regulator-system-load = <200000>;
171					};
172
173					pma8084_l22: l22 {
174						regulator-min-microvolt = <3000000>;
175						regulator-max-microvolt = <3300000>;
176					};
177
178					pma8084_l23: l23 {
179						regulator-min-microvolt = <3000000>;
180						regulator-max-microvolt = <3000000>;
181					};
182
183					pma8084_l24: l24 {
184						regulator-min-microvolt = <3075000>;
185						regulator-max-microvolt = <3075000>;
186					};
187
188					pma8084_l25: l25 {
189						regulator-min-microvolt = <2100000>;
190						regulator-max-microvolt = <2100000>;
191					};
192
193					pma8084_l26: l26 {
194						regulator-min-microvolt = <1800000>;
195						regulator-max-microvolt = <2050000>;
196					};
197
198					pma8084_l27: l27 {
199						regulator-min-microvolt = <1000000>;
200						regulator-max-microvolt = <1225000>;
201					};
202
203					pma8084_lvs1: lvs1 {};
204					pma8084_lvs2: lvs2 {};
205					pma8084_lvs3: lvs3 {};
206					pma8084_lvs4: lvs4 {};
207
208					pma8084_5vs1: 5vs1 {};
209				};
210			};
211		};
212	};
213
214	i2c-gpio-touchkey {
215		compatible = "i2c-gpio";
216		#address-cells = <1>;
217		#size-cells = <0>;
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>;
222
223		touchkey@20 {
224			compatible = "cypress,tm2-touchkey";
225			reg = <0x20>;
226
227			interrupt-parent = <&pma8084_gpios>;
228			interrupts = <6 IRQ_TYPE_EDGE_FALLING>;
229			pinctrl-names = "default";
230			pinctrl-0 = <&touchkey_pin>;
231
232			vcc-supply = <&max77826_ldo15>;
233			vdd-supply = <&pma8084_l19>;
234
235			linux,keycodes = <KEY_APPSELECT KEY_BACK>;
236		};
237	};
238
239	i2c-gpio-led {
240		compatible = "i2c-gpio";
241		#address-cells = <1>;
242		#size-cells = <0>;
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>;
247
248		i2c-gpio,delay-us = <2>;
249
250		gpio_expander: gpio@20 {
251			compatible = "nxp,pcal6416";
252			reg = <0x20>;
253
254			gpio-controller;
255			#gpio-cells = <2>;
256
257			vcc-supply = <&pma8084_s4>;
258
259			pinctrl-names = "default";
260			pinctrl-0 = <&gpioex_pin>;
261
262			reset-gpios = <&msmgpio 145 GPIO_ACTIVE_LOW>;
263		};
264
265		led-controller@30 {
266			compatible = "panasonic,an30259a";
267			reg = <0x30>;
268
269			#address-cells = <1>;
270			#size-cells = <0>;
271
272			led@1 {
273				reg = <1>;
274				function = LED_FUNCTION_STATUS;
275				color = <LED_COLOR_ID_RED>;
276			};
277
278			led@2 {
279				reg = <2>;
280				function = LED_FUNCTION_STATUS;
281				color = <LED_COLOR_ID_GREEN>;
282			};
283
284			led@3 {
285				reg = <3>;
286				function = LED_FUNCTION_STATUS;
287				color = <LED_COLOR_ID_BLUE>;
288			};
289		};
290	};
291
292	vreg_wlan: wlan-regulator {
293		compatible = "regulator-fixed";
294
295		regulator-name = "wl-reg";
296		regulator-min-microvolt = <3300000>;
297		regulator-max-microvolt = <3300000>;
298
299		gpio = <&gpio_expander 8 GPIO_ACTIVE_HIGH>;
300		enable-active-high;
301	};
302
303	vreg_panel: panel-regulator {
304		compatible = "regulator-fixed";
305
306		pinctrl-names = "default";
307		pinctrl-0 = <&panel_en_pin>;
308
309		regulator-name = "panel-vddr-reg";
310		regulator-min-microvolt = <1500000>;
311		regulator-max-microvolt = <1500000>;
312
313		gpio = <&pma8084_gpios 14 GPIO_ACTIVE_HIGH>;
314		enable-active-high;
315	};
316
317	/delete-node/ vreg-boost;
318
319	adsp-pil {
320		cx-supply = <&pma8084_s2>;
321	};
322};
323
324&soc {
325	serial@f991e000 {
326		status = "okay";
327	};
328
329	/* blsp2_uart8 */
330	serial@f995e000 {
331		status = "okay";
332
333		pinctrl-names = "default", "sleep";
334		pinctrl-0 = <&blsp2_uart8_pins_active>;
335		pinctrl-1 = <&blsp2_uart8_pins_sleep>;
336
337		bluetooth {
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";
347		};
348	};
349
350	gpio-keys {
351		compatible = "gpio-keys";
352		input-name = "gpio-keys";
353
354		pinctrl-names = "default";
355		pinctrl-0 = <&gpio_keys_pin_a>;
356
357		volume-down {
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>;
363		};
364
365		home-key {
366			label = "home_key";
367			gpios = <&pma8084_gpios 3 GPIO_ACTIVE_LOW>;
368			linux,input-type = <1>;
369			linux,code = <KEY_HOMEPAGE>;
370			wakeup-source;
371			debounce-interval = <15>;
372		};
373
374		volume-up {
375			label = "volume_up";
376			gpios = <&pma8084_gpios 5 GPIO_ACTIVE_LOW>;
377			linux,input-type = <1>;
378			linux,code = <KEY_VOLUMEUP>;
379			debounce-interval = <15>;
380		};
381	};
382
383	pinctrl@fd510000 {
384		blsp2_uart8_pins_active: blsp2-uart8-pins-active {
385			pins = "gpio45", "gpio46", "gpio47", "gpio48";
386			function = "blsp_uart8";
387			drive-strength = <8>;
388			bias-disable;
389		};
390
391		blsp2_uart8_pins_sleep: blsp2-uart8-pins-sleep {
392			pins = "gpio45", "gpio46", "gpio47", "gpio48";
393			function = "gpio";
394			drive-strength = <2>;
395			bias-pull-down;
396		};
397
398		bt_pins: bt-pins {
399			hostwake {
400				pins = "gpio75";
401				function = "gpio";
402				drive-strength = <16>;
403				input-enable;
404			};
405
406			devwake {
407				pins = "gpio91";
408				function = "gpio";
409				drive-strength = <2>;
410			};
411		};
412
413		sdhc1_pin_a: sdhc1-pin-active {
414			clk {
415				pins = "sdc1_clk";
416				drive-strength = <4>;
417				bias-disable;
418			};
419
420			cmd-data {
421				pins = "sdc1_cmd", "sdc1_data";
422				drive-strength = <4>;
423				bias-pull-up;
424			};
425		};
426
427		sdhc2_pin_a: sdhc2-pin-active {
428			clk-cmd-data {
429				pins = "gpio35", "gpio36", "gpio37", "gpio38",
430					"gpio39", "gpio40";
431				function = "sdc3";
432				drive-strength = <8>;
433				bias-disable;
434			};
435		};
436
437		sdhc2_cd_pin: sdhc2-cd {
438			pins = "gpio62";
439			function = "gpio";
440
441			drive-strength = <2>;
442			bias-disable;
443		};
444
445		sdhc3_pin_a: sdhc3-pin-active {
446			clk {
447				pins = "sdc2_clk";
448				drive-strength = <6>;
449				bias-disable;
450			};
451
452			cmd-data {
453				pins = "sdc2_cmd", "sdc2_data";
454				drive-strength = <6>;
455				bias-pull-up;
456			};
457		};
458
459		i2c2_pins: i2c2 {
460			mux {
461				pins = "gpio6", "gpio7";
462				function = "blsp_i2c2";
463
464				drive-strength = <2>;
465				bias-disable;
466			};
467		};
468
469		i2c6_pins: i2c6 {
470			mux {
471				pins = "gpio29", "gpio30";
472				function = "blsp_i2c6";
473
474				drive-strength = <2>;
475				bias-disable;
476			};
477		};
478
479		i2c12_pins: i2c12 {
480			mux {
481				pins = "gpio87", "gpio88";
482				function = "blsp_i2c12";
483
484				drive-strength = <2>;
485				bias-disable;
486			};
487		};
488
489		i2c_touchkey_pins: i2c-touchkey {
490			mux {
491				pins = "gpio95", "gpio96";
492				function = "gpio";
493				input-enable;
494				bias-pull-up;
495			};
496		};
497
498		i2c_led_gpioex_pins: i2c-led-gpioex {
499			mux {
500				pins = "gpio120", "gpio121";
501				function = "gpio";
502				input-enable;
503				bias-pull-down;
504			};
505		};
506
507		gpioex_pin: gpioex {
508			res {
509				pins = "gpio145";
510				function = "gpio";
511
512				bias-pull-up;
513				drive-strength = <2>;
514			};
515		};
516
517		wifi_pin: wifi {
518			int {
519				pins = "gpio92";
520				function = "gpio";
521
522				input-enable;
523				bias-pull-down;
524			};
525		};
526
527		panel_te_pin: panel {
528			te {
529				pins = "gpio12";
530				function = "mdp_vsync";
531
532				drive-strength = <2>;
533				bias-disable;
534			};
535		};
536	};
537
538	sdhc_1: sdhci@f9824900 {
539		status = "okay";
540
541		vmmc-supply = <&pma8084_l20>;
542		vqmmc-supply = <&pma8084_s4>;
543
544		bus-width = <8>;
545		non-removable;
546
547		pinctrl-names = "default";
548		pinctrl-0 = <&sdhc1_pin_a>;
549	};
550
551	sdhc_2: sdhci@f9864900 {
552		status = "okay";
553
554		max-frequency = <100000000>;
555
556		vmmc-supply = <&pma8084_l21>;
557		vqmmc-supply = <&pma8084_l13>;
558
559		bus-width = <4>;
560
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.
564		 */
565		pinctrl-names = "default";
566		pinctrl-0 = <&sdhc2_pin_a /* &sdhc2_cd_pin */>;
567		// cd-gpios = <&msmgpio 62 GPIO_ACTIVE_LOW>;
568	};
569
570	sdhci@f98a4900 {
571		status = "okay";
572
573		#address-cells = <1>;
574		#size-cells = <0>;
575
576		max-frequency = <100000000>;
577
578		pinctrl-names = "default";
579		pinctrl-0 = <&sdhc3_pin_a>;
580
581		vmmc-supply = <&vreg_wlan>;
582		vqmmc-supply = <&pma8084_s4>;
583
584		bus-width = <4>;
585		non-removable;
586
587		wifi@1 {
588			reg = <1>;
589			compatible = "brcm,bcm4329-fmac";
590
591			interrupt-parent = <&msmgpio>;
592			interrupts = <92 IRQ_TYPE_LEVEL_HIGH>;
593			interrupt-names = "host-wake";
594
595			pinctrl-names = "default";
596			pinctrl-0 = <&wlan_sleep_clk_pin &wifi_pin>;
597		};
598	};
599
600	usb@f9a55000 {
601		status = "okay";
602
603		phys = <&usb_hs1_phy>;
604		phy-select = <&tcsr 0xb000 0>;
605		/*extcon = <&smbb>, <&usb_id>;*/
606		/*vbus-supply = <&chg_otg>;*/
607
608		hnp-disable;
609		srp-disable;
610		adp-disable;
611
612		ulpi {
613			phy@a {
614				status = "okay";
615
616				v1p8-supply = <&pma8084_l6>;
617				v3p3-supply = <&pma8084_l24>;
618
619				/*extcon = <&smbb>;*/
620				qcom,init-seq = /bits/ 8 <0x1 0x64>;
621			};
622		};
623	};
624
625	i2c@f9924000 {
626		status = "okay";
627
628		pinctrl-names = "default";
629		pinctrl-0 = <&i2c2_pins>;
630
631		touchscreen@20 {
632			compatible = "syna,rmi4-i2c";
633			reg = <0x20>;
634
635			interrupt-parent = <&pma8084_gpios>;
636			interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
637
638			vdd-supply = <&max77826_ldo13>;
639			vio-supply = <&pma8084_lvs2>;
640
641			pinctrl-names = "default";
642			pinctrl-0 = <&touch_pin>;
643
644			syna,startup-delay-ms = <100>;
645
646			#address-cells = <1>;
647			#size-cells = <0>;
648
649			rmi4-f01@1 {
650				reg = <0x1>;
651				syna,nosleep-mode = <1>;
652			};
653
654			rmi4-f12@12 {
655				reg = <0x12>;
656				syna,sensor-type = <1>;
657			};
658		};
659	};
660
661	i2c@f9928000 {
662		status = "okay";
663
664		pinctrl-names = "default";
665		pinctrl-0 = <&i2c6_pins>;
666
667		pmic@60 {
668			reg = <0x60>;
669			compatible = "maxim,max77826";
670
671			regulators {
672				max77826_ldo1: LDO1 {
673					regulator-min-microvolt = <1200000>;
674					regulator-max-microvolt = <1200000>;
675				};
676
677				max77826_ldo2: LDO2 {
678					regulator-min-microvolt = <1000000>;
679					regulator-max-microvolt = <1000000>;
680				};
681
682				max77826_ldo3: LDO3 {
683					regulator-min-microvolt = <1200000>;
684					regulator-max-microvolt = <1200000>;
685				};
686
687				max77826_ldo4: LDO4 {
688					regulator-min-microvolt = <1800000>;
689					regulator-max-microvolt = <1800000>;
690				};
691
692				max77826_ldo5: LDO5 {
693					regulator-min-microvolt = <1800000>;
694					regulator-max-microvolt = <1800000>;
695				};
696
697				max77826_ldo6: LDO6 {
698					regulator-min-microvolt = <1800000>;
699					regulator-max-microvolt = <3300000>;
700				};
701
702				max77826_ldo7: LDO7 {
703					regulator-min-microvolt = <1800000>;
704					regulator-max-microvolt = <1800000>;
705				};
706
707				max77826_ldo8: LDO8 {
708					regulator-min-microvolt = <1800000>;
709					regulator-max-microvolt = <3300000>;
710				};
711
712				max77826_ldo9: LDO9 {
713					regulator-min-microvolt = <1800000>;
714					regulator-max-microvolt = <1800000>;
715				};
716
717				max77826_ldo10: LDO10 {
718					regulator-min-microvolt = <2800000>;
719					regulator-max-microvolt = <2950000>;
720				};
721
722				max77826_ldo11: LDO11 {
723					regulator-min-microvolt = <2700000>;
724					regulator-max-microvolt = <2950000>;
725				};
726
727				max77826_ldo12: LDO12 {
728					regulator-min-microvolt = <2500000>;
729					regulator-max-microvolt = <3300000>;
730				};
731
732				max77826_ldo13: LDO13 {
733					regulator-min-microvolt = <3300000>;
734					regulator-max-microvolt = <3300000>;
735				};
736
737				max77826_ldo14: LDO14 {
738					regulator-min-microvolt = <3300000>;
739					regulator-max-microvolt = <3300000>;
740				};
741
742				max77826_ldo15: LDO15 {
743					regulator-min-microvolt = <1800000>;
744					regulator-max-microvolt = <1800000>;
745				};
746
747				max77826_buck: BUCK {
748					regulator-min-microvolt = <1225000>;
749					regulator-max-microvolt = <1225000>;
750				};
751
752				max77826_buckboost: BUCKBOOST {
753					regulator-min-microvolt = <3400000>;
754					regulator-max-microvolt = <3400000>;
755				};
756			};
757		};
758	};
759
760	i2c@f9968000 {
761		status = "okay";
762
763		pinctrl-names = "default";
764		pinctrl-0 = <&i2c12_pins>;
765
766		fuelgauge@36 {
767			compatible = "maxim,max17048";
768			reg = <0x36>;
769
770			maxim,double-soc;
771			maxim,rcomp = /bits/ 8 <0x56>;
772
773			interrupt-parent = <&pma8084_gpios>;
774			interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
775
776			pinctrl-names = "default";
777			pinctrl-0 = <&fuelgauge_pin>;
778		};
779	};
780
781	adreno@fdb00000 {
782		status = "ok";
783	};
784
785	mdss@fd900000 {
786		status = "ok";
787
788		mdp@fd900000 {
789			status = "ok";
790		};
791
792		dsi@fd922800 {
793			status = "ok";
794
795			vdda-supply = <&pma8084_l2>;
796			vdd-supply = <&pma8084_l22>;
797			vddio-supply = <&pma8084_l12>;
798
799			#address-cells = <1>;
800			#size-cells = <0>;
801
802			ports {
803				port@1 {
804					endpoint {
805						remote-endpoint = <&panel_in>;
806						data-lanes = <0 1 2 3>;
807					};
808				};
809			};
810
811			panel: panel@0 {
812				reg = <0>;
813				compatible = "samsung,s6e3fa2";
814
815				pinctrl-names = "default";
816				pinctrl-0 = <&panel_te_pin &panel_rst_pin>;
817
818				iovdd-supply = <&pma8084_lvs4>;
819				vddr-supply = <&vreg_panel>;
820
821				reset-gpios = <&pma8084_gpios 17 GPIO_ACTIVE_LOW>;
822				te-gpios = <&msmgpio 12 GPIO_ACTIVE_HIGH>;
823
824				port {
825					panel_in: endpoint {
826						remote-endpoint = <&dsi0_out>;
827					};
828				};
829			};
830		};
831
832		dsi-phy@fd922a00 {
833			status = "ok";
834
835			vddio-supply = <&pma8084_l12>;
836		};
837	};
838
839	remoteproc@fc880000 {
840		cx-supply = <&pma8084_s2>;
841		mss-supply = <&pma8084_s6>;
842		mx-supply = <&pma8084_s1>;
843		pll-supply = <&pma8084_l12>;
844	};
845};
846
847&spmi_bus {
848	pma8084@0 {
849		gpios@c000 {
850			gpio_keys_pin_a: gpio-keys-active {
851				pins = "gpio2", "gpio3", "gpio5";
852				function = "normal";
853
854				bias-pull-up;
855				power-source = <PMA8084_GPIO_S4>;
856			};
857
858			touchkey_pin: touchkey-int-pin {
859				pins = "gpio6";
860				function = "normal";
861				bias-disable;
862				input-enable;
863				power-source = <PMA8084_GPIO_S4>;
864			};
865
866			touch_pin: touchscreen-int-pin {
867				pins = "gpio8";
868				function = "normal";
869				bias-disable;
870				input-enable;
871				power-source = <PMA8084_GPIO_S4>;
872			};
873
874			panel_en_pin: panel-en-pin {
875				pins = "gpio14";
876				function = "normal";
877				bias-pull-up;
878				power-source = <PMA8084_GPIO_S4>;
879				qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
880			};
881
882			wlan_sleep_clk_pin: wlan-sleep-clk-pin {
883				pins = "gpio16";
884				function = "func2";
885
886				output-high;
887				power-source = <PMA8084_GPIO_S4>;
888				qcom,drive-strength = <PMIC_GPIO_STRENGTH_HIGH>;
889			};
890
891			panel_rst_pin: panel-rst-pin {
892				pins = "gpio17";
893				function = "normal";
894				bias-disable;
895				power-source = <PMA8084_GPIO_S4>;
896				qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
897			};
898
899
900			fuelgauge_pin: fuelgauge-int-pin {
901				pins = "gpio21";
902				function = "normal";
903				bias-disable;
904				input-enable;
905				power-source = <PMA8084_GPIO_S4>;
906			};
907		};
908	};
909};
910