Merge tag 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm
[linux-2.6-microblaze.git] / arch / arm / boot / dts / qcom-msm8974-samsung-klte.dts
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
320 &soc {
321         serial@f991e000 {
322                 status = "okay";
323         };
324
325         /* blsp2_uart8 */
326         serial@f995e000 {
327                 status = "okay";
328
329                 pinctrl-names = "default", "sleep";
330                 pinctrl-0 = <&blsp2_uart8_pins_active>;
331                 pinctrl-1 = <&blsp2_uart8_pins_sleep>;
332
333                 bluetooth {
334                         compatible = "brcm,bcm43540-bt";
335                         max-speed = <3000000>;
336                         pinctrl-names = "default";
337                         pinctrl-0 = <&bt_pins>;
338                         device-wakeup-gpios = <&msmgpio 91 GPIO_ACTIVE_HIGH>;
339                         shutdown-gpios = <&gpio_expander 9 GPIO_ACTIVE_HIGH>;
340                         interrupt-parent = <&msmgpio>;
341                         interrupts = <75 IRQ_TYPE_LEVEL_HIGH>;
342                         interrupt-names = "host-wakeup";
343                 };
344         };
345
346         gpio-keys {
347                 compatible = "gpio-keys";
348                 input-name = "gpio-keys";
349
350                 pinctrl-names = "default";
351                 pinctrl-0 = <&gpio_keys_pin_a>;
352
353                 volume-down {
354                         label = "volume_down";
355                         gpios = <&pma8084_gpios 2 GPIO_ACTIVE_LOW>;
356                         linux,input-type = <1>;
357                         linux,code = <KEY_VOLUMEDOWN>;
358                         debounce-interval = <15>;
359                 };
360
361                 home-key {
362                         label = "home_key";
363                         gpios = <&pma8084_gpios 3 GPIO_ACTIVE_LOW>;
364                         linux,input-type = <1>;
365                         linux,code = <KEY_HOMEPAGE>;
366                         wakeup-source;
367                         debounce-interval = <15>;
368                 };
369
370                 volume-up {
371                         label = "volume_up";
372                         gpios = <&pma8084_gpios 5 GPIO_ACTIVE_LOW>;
373                         linux,input-type = <1>;
374                         linux,code = <KEY_VOLUMEUP>;
375                         debounce-interval = <15>;
376                 };
377         };
378
379         pinctrl@fd510000 {
380                 blsp2_uart8_pins_active: blsp2-uart8-pins-active {
381                         pins = "gpio45", "gpio46", "gpio47", "gpio48";
382                         function = "blsp_uart8";
383                         drive-strength = <8>;
384                         bias-disable;
385                 };
386
387                 blsp2_uart8_pins_sleep: blsp2-uart8-pins-sleep {
388                         pins = "gpio45", "gpio46", "gpio47", "gpio48";
389                         function = "gpio";
390                         drive-strength = <2>;
391                         bias-pull-down;
392                 };
393
394                 bt_pins: bt-pins {
395                         hostwake {
396                                 pins = "gpio75";
397                                 function = "gpio";
398                                 drive-strength = <16>;
399                                 input-enable;
400                         };
401
402                         devwake {
403                                 pins = "gpio91";
404                                 function = "gpio";
405                                 drive-strength = <2>;
406                         };
407                 };
408
409                 sdhc1_pin_a: sdhc1-pin-active {
410                         clk {
411                                 pins = "sdc1_clk";
412                                 drive-strength = <4>;
413                                 bias-disable;
414                         };
415
416                         cmd-data {
417                                 pins = "sdc1_cmd", "sdc1_data";
418                                 drive-strength = <4>;
419                                 bias-pull-up;
420                         };
421                 };
422
423                 sdhc2_pin_a: sdhc2-pin-active {
424                         clk-cmd-data {
425                                 pins = "gpio35", "gpio36", "gpio37", "gpio38",
426                                         "gpio39", "gpio40";
427                                 function = "sdc3";
428                                 drive-strength = <8>;
429                                 bias-disable;
430                         };
431                 };
432
433                 sdhc2_cd_pin: sdhc2-cd {
434                         pins = "gpio62";
435                         function = "gpio";
436
437                         drive-strength = <2>;
438                         bias-disable;
439                 };
440
441                 sdhc3_pin_a: sdhc3-pin-active {
442                         clk {
443                                 pins = "sdc2_clk";
444                                 drive-strength = <6>;
445                                 bias-disable;
446                         };
447
448                         cmd-data {
449                                 pins = "sdc2_cmd", "sdc2_data";
450                                 drive-strength = <6>;
451                                 bias-pull-up;
452                         };
453                 };
454
455                 i2c2_pins: i2c2 {
456                         mux {
457                                 pins = "gpio6", "gpio7";
458                                 function = "blsp_i2c2";
459
460                                 drive-strength = <2>;
461                                 bias-disable;
462                         };
463                 };
464
465                 i2c6_pins: i2c6 {
466                         mux {
467                                 pins = "gpio29", "gpio30";
468                                 function = "blsp_i2c6";
469
470                                 drive-strength = <2>;
471                                 bias-disable;
472                         };
473                 };
474
475                 i2c12_pins: i2c12 {
476                         mux {
477                                 pins = "gpio87", "gpio88";
478                                 function = "blsp_i2c12";
479
480                                 drive-strength = <2>;
481                                 bias-disable;
482                         };
483                 };
484
485                 i2c_touchkey_pins: i2c-touchkey {
486                         mux {
487                                 pins = "gpio95", "gpio96";
488                                 function = "gpio";
489                                 input-enable;
490                                 bias-pull-up;
491                         };
492                 };
493
494                 i2c_led_gpioex_pins: i2c-led-gpioex {
495                         mux {
496                                 pins = "gpio120", "gpio121";
497                                 function = "gpio";
498                                 input-enable;
499                                 bias-pull-down;
500                         };
501                 };
502
503                 gpioex_pin: gpioex {
504                         res {
505                                 pins = "gpio145";
506                                 function = "gpio";
507
508                                 bias-pull-up;
509                                 drive-strength = <2>;
510                         };
511                 };
512
513                 wifi_pin: wifi {
514                         int {
515                                 pins = "gpio92";
516                                 function = "gpio";
517
518                                 input-enable;
519                                 bias-pull-down;
520                         };
521                 };
522
523                 panel_te_pin: panel {
524                         te {
525                                 pins = "gpio12";
526                                 function = "mdp_vsync";
527
528                                 drive-strength = <2>;
529                                 bias-disable;
530                         };
531                 };
532         };
533
534         sdhc_1: sdhci@f9824900 {
535                 status = "okay";
536
537                 vmmc-supply = <&pma8084_l20>;
538                 vqmmc-supply = <&pma8084_s4>;
539
540                 bus-width = <8>;
541                 non-removable;
542
543                 pinctrl-names = "default";
544                 pinctrl-0 = <&sdhc1_pin_a>;
545         };
546
547         sdhc_2: sdhci@f9864900 {
548                 status = "okay";
549
550                 max-frequency = <100000000>;
551
552                 vmmc-supply = <&pma8084_l21>;
553                 vqmmc-supply = <&pma8084_l13>;
554
555                 bus-width = <4>;
556
557                 /* cd-gpio is intentionally disabled. If enabled, an SD card
558                  * present during boot is not initialized correctly. Without
559                  * cd-gpios the driver resorts to polling, so hotplug works.
560                  */
561                 pinctrl-names = "default";
562                 pinctrl-0 = <&sdhc2_pin_a /* &sdhc2_cd_pin */>;
563                 // cd-gpios = <&msmgpio 62 GPIO_ACTIVE_LOW>;
564         };
565
566         sdhci@f98a4900 {
567                 status = "okay";
568
569                 #address-cells = <1>;
570                 #size-cells = <0>;
571
572                 max-frequency = <100000000>;
573
574                 pinctrl-names = "default";
575                 pinctrl-0 = <&sdhc3_pin_a>;
576
577                 vmmc-supply = <&vreg_wlan>;
578                 vqmmc-supply = <&pma8084_s4>;
579
580                 bus-width = <4>;
581                 non-removable;
582
583                 wifi@1 {
584                         reg = <1>;
585                         compatible = "brcm,bcm4329-fmac";
586
587                         interrupt-parent = <&msmgpio>;
588                         interrupts = <92 IRQ_TYPE_LEVEL_HIGH>;
589                         interrupt-names = "host-wake";
590
591                         pinctrl-names = "default";
592                         pinctrl-0 = <&wlan_sleep_clk_pin &wifi_pin>;
593                 };
594         };
595
596         usb@f9a55000 {
597                 status = "okay";
598
599                 phys = <&usb_hs1_phy>;
600                 phy-select = <&tcsr 0xb000 0>;
601                 /*extcon = <&smbb>, <&usb_id>;*/
602                 /*vbus-supply = <&chg_otg>;*/
603
604                 hnp-disable;
605                 srp-disable;
606                 adp-disable;
607
608                 ulpi {
609                         phy@a {
610                                 status = "okay";
611
612                                 v1p8-supply = <&pma8084_l6>;
613                                 v3p3-supply = <&pma8084_l24>;
614
615                                 /*extcon = <&smbb>;*/
616                                 qcom,init-seq = /bits/ 8 <0x1 0x64>;
617                         };
618                 };
619         };
620
621         i2c@f9924000 {
622                 status = "okay";
623
624                 pinctrl-names = "default";
625                 pinctrl-0 = <&i2c2_pins>;
626
627                 touchscreen@20 {
628                         compatible = "syna,rmi4-i2c";
629                         reg = <0x20>;
630
631                         interrupt-parent = <&pma8084_gpios>;
632                         interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
633
634                         vdd-supply = <&max77826_ldo13>;
635                         vio-supply = <&pma8084_lvs2>;
636
637                         pinctrl-names = "default";
638                         pinctrl-0 = <&touch_pin>;
639
640                         syna,startup-delay-ms = <100>;
641
642                         #address-cells = <1>;
643                         #size-cells = <0>;
644
645                         rmi4-f01@1 {
646                                 reg = <0x1>;
647                                 syna,nosleep-mode = <1>;
648                         };
649
650                         rmi4-f12@12 {
651                                 reg = <0x12>;
652                                 syna,sensor-type = <1>;
653                         };
654                 };
655         };
656
657         i2c@f9928000 {
658                 status = "okay";
659
660                 pinctrl-names = "default";
661                 pinctrl-0 = <&i2c6_pins>;
662
663                 pmic@60 {
664                         reg = <0x60>;
665                         compatible = "maxim,max77826";
666
667                         regulators {
668                                 max77826_ldo1: LDO1 {
669                                         regulator-min-microvolt = <1200000>;
670                                         regulator-max-microvolt = <1200000>;
671                                 };
672
673                                 max77826_ldo2: LDO2 {
674                                         regulator-min-microvolt = <1000000>;
675                                         regulator-max-microvolt = <1000000>;
676                                 };
677
678                                 max77826_ldo3: LDO3 {
679                                         regulator-min-microvolt = <1200000>;
680                                         regulator-max-microvolt = <1200000>;
681                                 };
682
683                                 max77826_ldo4: LDO4 {
684                                         regulator-min-microvolt = <1800000>;
685                                         regulator-max-microvolt = <1800000>;
686                                 };
687
688                                 max77826_ldo5: LDO5 {
689                                         regulator-min-microvolt = <1800000>;
690                                         regulator-max-microvolt = <1800000>;
691                                 };
692
693                                 max77826_ldo6: LDO6 {
694                                         regulator-min-microvolt = <1800000>;
695                                         regulator-max-microvolt = <3300000>;
696                                 };
697
698                                 max77826_ldo7: LDO7 {
699                                         regulator-min-microvolt = <1800000>;
700                                         regulator-max-microvolt = <1800000>;
701                                 };
702
703                                 max77826_ldo8: LDO8 {
704                                         regulator-min-microvolt = <1800000>;
705                                         regulator-max-microvolt = <3300000>;
706                                 };
707
708                                 max77826_ldo9: LDO9 {
709                                         regulator-min-microvolt = <1800000>;
710                                         regulator-max-microvolt = <1800000>;
711                                 };
712
713                                 max77826_ldo10: LDO10 {
714                                         regulator-min-microvolt = <2800000>;
715                                         regulator-max-microvolt = <2950000>;
716                                 };
717
718                                 max77826_ldo11: LDO11 {
719                                         regulator-min-microvolt = <2700000>;
720                                         regulator-max-microvolt = <2950000>;
721                                 };
722
723                                 max77826_ldo12: LDO12 {
724                                         regulator-min-microvolt = <2500000>;
725                                         regulator-max-microvolt = <3300000>;
726                                 };
727
728                                 max77826_ldo13: LDO13 {
729                                         regulator-min-microvolt = <3300000>;
730                                         regulator-max-microvolt = <3300000>;
731                                 };
732
733                                 max77826_ldo14: LDO14 {
734                                         regulator-min-microvolt = <3300000>;
735                                         regulator-max-microvolt = <3300000>;
736                                 };
737
738                                 max77826_ldo15: LDO15 {
739                                         regulator-min-microvolt = <1800000>;
740                                         regulator-max-microvolt = <1800000>;
741                                 };
742
743                                 max77826_buck: BUCK {
744                                         regulator-min-microvolt = <1225000>;
745                                         regulator-max-microvolt = <1225000>;
746                                 };
747
748                                 max77826_buckboost: BUCKBOOST {
749                                         regulator-min-microvolt = <3400000>;
750                                         regulator-max-microvolt = <3400000>;
751                                 };
752                         };
753                 };
754         };
755
756         i2c@f9968000 {
757                 status = "okay";
758
759                 pinctrl-names = "default";
760                 pinctrl-0 = <&i2c12_pins>;
761
762                 fuelgauge@36 {
763                         compatible = "maxim,max17048";
764                         reg = <0x36>;
765
766                         maxim,double-soc;
767                         maxim,rcomp = /bits/ 8 <0x56>;
768
769                         interrupt-parent = <&pma8084_gpios>;
770                         interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
771
772                         pinctrl-names = "default";
773                         pinctrl-0 = <&fuelgauge_pin>;
774                 };
775         };
776
777         adreno@fdb00000 {
778                 status = "ok";
779         };
780
781         mdss@fd900000 {
782                 status = "ok";
783
784                 mdp@fd900000 {
785                         status = "ok";
786                 };
787
788                 dsi@fd922800 {
789                         status = "ok";
790
791                         vdda-supply = <&pma8084_l2>;
792                         vdd-supply = <&pma8084_l22>;
793                         vddio-supply = <&pma8084_l12>;
794
795                         #address-cells = <1>;
796                         #size-cells = <0>;
797
798                         ports {
799                                 port@1 {
800                                         endpoint {
801                                                 remote-endpoint = <&panel_in>;
802                                                 data-lanes = <0 1 2 3>;
803                                         };
804                                 };
805                         };
806
807                         panel: panel@0 {
808                                 reg = <0>;
809                                 compatible = "samsung,s6e3fa2";
810
811                                 pinctrl-names = "default";
812                                 pinctrl-0 = <&panel_te_pin &panel_rst_pin>;
813
814                                 iovdd-supply = <&pma8084_lvs4>;
815                                 vddr-supply = <&vreg_panel>;
816
817                                 reset-gpios = <&pma8084_gpios 17 GPIO_ACTIVE_LOW>;
818                                 te-gpios = <&msmgpio 12 GPIO_ACTIVE_HIGH>;
819
820                                 port {
821                                         panel_in: endpoint {
822                                                 remote-endpoint = <&dsi0_out>;
823                                         };
824                                 };
825                         };
826                 };
827
828                 dsi-phy@fd922a00 {
829                         status = "ok";
830
831                         vddio-supply = <&pma8084_l12>;
832                 };
833         };
834 };
835
836 &spmi_bus {
837         pma8084@0 {
838                 gpios@c000 {
839                         gpio_keys_pin_a: gpio-keys-active {
840                                 pins = "gpio2", "gpio3", "gpio5";
841                                 function = "normal";
842
843                                 bias-pull-up;
844                                 power-source = <PMA8084_GPIO_S4>;
845                         };
846
847                         touchkey_pin: touchkey-int-pin {
848                                 pins = "gpio6";
849                                 function = "normal";
850                                 bias-disable;
851                                 input-enable;
852                                 power-source = <PMA8084_GPIO_S4>;
853                         };
854
855                         touch_pin: touchscreen-int-pin {
856                                 pins = "gpio8";
857                                 function = "normal";
858                                 bias-disable;
859                                 input-enable;
860                                 power-source = <PMA8084_GPIO_S4>;
861                         };
862
863                         panel_en_pin: panel-en-pin {
864                                 pins = "gpio14";
865                                 function = "normal";
866                                 bias-pull-up;
867                                 power-source = <PMA8084_GPIO_S4>;
868                                 qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
869                         };
870
871                         wlan_sleep_clk_pin: wlan-sleep-clk-pin {
872                                 pins = "gpio16";
873                                 function = "func2";
874
875                                 output-high;
876                                 power-source = <PMA8084_GPIO_S4>;
877                                 qcom,drive-strength = <PMIC_GPIO_STRENGTH_HIGH>;
878                         };
879
880                         panel_rst_pin: panel-rst-pin {
881                                 pins = "gpio17";
882                                 function = "normal";
883                                 bias-disable;
884                                 power-source = <PMA8084_GPIO_S4>;
885                                 qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
886                         };
887
888
889                         fuelgauge_pin: fuelgauge-int-pin {
890                                 pins = "gpio21";
891                                 function = "normal";
892                                 bias-disable;
893                                 input-enable;
894                                 power-source = <PMA8084_GPIO_S4>;
895                         };
896                 };
897         };
898 };