arm64: dts: qcom: apq8016-sbc: Clarify firmware-names
[linux-block.git] / arch / arm64 / boot / dts / qcom / apq8016-sbc.dtsi
CommitLineData
97fb5e8d 1// SPDX-License-Identifier: GPL-2.0-only
282703e8
KG
2/*
3 * Copyright (c) 2015, The Linux Foundation. All rights reserved.
282703e8
KG
4 */
5
bfe9d754 6#include "msm8916-pm8916.dtsi"
f953d999
II
7#include <dt-bindings/gpio/gpio.h>
8#include <dt-bindings/input/input.h>
756d534b
SG
9#include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
10#include <dt-bindings/pinctrl/qcom,pmic-mpp.h>
5582fcb3 11#include <dt-bindings/sound/apq8016-lpass.h>
282703e8
KG
12
13/ {
14 aliases {
15 serial0 = &blsp1_uart2;
9f43020d 16 serial1 = &blsp1_uart1;
2bce84c1 17 usid0 = &pm8916_0;
b98e6c76
SK
18 i2c0 = &blsp_i2c2;
19 i2c1 = &blsp_i2c6;
20 i2c3 = &blsp_i2c4;
09cbd8ed
SK
21 spi0 = &blsp_spi5;
22 spi1 = &blsp_spi3;
282703e8
KG
23 };
24
25 chosen {
26 stdout-path = "serial0";
27 };
28
e6717dba 29 camera_vdddo_1v8: camera-vdddo-1v8 {
39e0ce6c
LP
30 compatible = "regulator-fixed";
31 regulator-name = "camera_vdddo";
32 regulator-min-microvolt = <1800000>;
33 regulator-max-microvolt = <1800000>;
34 regulator-always-on;
35 };
36
e6717dba 37 camera_vdda_2v8: camera-vdda-2v8 {
39e0ce6c
LP
38 compatible = "regulator-fixed";
39 regulator-name = "camera_vdda";
40 regulator-min-microvolt = <2800000>;
41 regulator-max-microvolt = <2800000>;
42 regulator-always-on;
43 };
44
e6717dba 45 camera_vddd_1v5: camera-vddd-1v5 {
39e0ce6c
LP
46 compatible = "regulator-fixed";
47 regulator-name = "camera_vddd";
48 regulator-min-microvolt = <1500000>;
49 regulator-max-microvolt = <1500000>;
50 regulator-always-on;
51 };
52
1b0c105b 53 reserved-memory {
e2f6482a 54 ramoops@bff00000 {
1b0c105b
BA
55 compatible = "ramoops";
56 reg = <0x0 0xbff00000 0x0 0x100000>;
57
58 record-size = <0x20000>;
59 console-size = <0x20000>;
60 ftrace-size = <0x20000>;
61 };
62 };
63
dd8cdc9e
SK
64 usb2513 {
65 compatible = "smsc,usb3503";
66 reset-gpios = <&pm8916_gpios 3 GPIO_ACTIVE_LOW>;
67 initial-mode = <1>;
68 };
69
70 usb_id: usb-id {
71 compatible = "linux,extcon-usb-gpio";
4868f573 72 id-gpio = <&msmgpio 121 GPIO_ACTIVE_HIGH>;
dd8cdc9e
SK
73 pinctrl-names = "default";
74 pinctrl-0 = <&usb_id_default>;
0283687c 75 };
28546b09
AT
76
77 hdmi-out {
78 compatible = "hdmi-connector";
79 type = "a";
80
81 port {
82 hdmi_con: endpoint {
83 remote-endpoint = <&adv7533_out>;
84 };
85 };
86 };
f953d999 87
e6717dba 88 gpio-keys {
f953d999
II
89 compatible = "gpio-keys";
90 #address-cells = <1>;
91 #size-cells = <0>;
92 autorepeat;
93
94 pinctrl-names = "default";
95 pinctrl-0 = <&msm_key_volp_n_default>;
96
97 button@0 {
98 label = "Volume Up";
99 linux,code = <KEY_VOLUMEUP>;
100 gpios = <&msmgpio 107 GPIO_ACTIVE_LOW>;
101 };
102 };
48faf079
SG
103
104 leds {
105 pinctrl-names = "default";
106 pinctrl-0 = <&msmgpio_leds>,
107 <&pm8916_gpios_leds>,
108 <&pm8916_mpps_leds>;
109
110 compatible = "gpio-leds";
111
112 led@1 {
113 label = "apq8016-sbc:green:user1";
114 gpios = <&msmgpio 21 GPIO_ACTIVE_HIGH>;
115 linux,default-trigger = "heartbeat";
116 default-state = "off";
117 };
118
119 led@2 {
120 label = "apq8016-sbc:green:user2";
121 gpios = <&msmgpio 120 GPIO_ACTIVE_HIGH>;
122 linux,default-trigger = "mmc0";
123 default-state = "off";
124 };
125
126 led@3 {
127 label = "apq8016-sbc:green:user3";
128 gpios = <&pm8916_gpios 1 GPIO_ACTIVE_HIGH>;
129 linux,default-trigger = "mmc1";
130 default-state = "off";
131 };
132
133 led@4 {
134 label = "apq8016-sbc:green:user4";
135 gpios = <&pm8916_gpios 2 GPIO_ACTIVE_HIGH>;
136 linux,default-trigger = "none";
137 panic-indicator;
138 default-state = "off";
139 };
140
141 led@5 {
142 label = "apq8016-sbc:yellow:wlan";
143 gpios = <&pm8916_mpps 2 GPIO_ACTIVE_HIGH>;
144 linux,default-trigger = "phy0tx";
145 default-state = "off";
146 };
147
148 led@6 {
149 label = "apq8016-sbc:blue:bt";
150 gpios = <&pm8916_mpps 3 GPIO_ACTIVE_HIGH>;
151 linux,default-trigger = "bluetooth-power";
152 default-state = "off";
153 };
154 };
5941c9bb 155};
4c7d53d1 156
e2f6482a
SG
157&blsp_dma {
158 status = "okay";
159};
160
161&blsp_i2c2 {
162 /* On Low speed expansion */
163 status = "okay";
164 label = "LS-I2C0";
165};
166
167&blsp_i2c4 {
168 /* On High speed expansion */
169 status = "okay";
170 label = "HS-I2C2";
171
172 adv_bridge: bridge@39 {
173 status = "okay";
174
175 compatible = "adi,adv7533";
176 reg = <0x39>;
177
178 interrupt-parent = <&msmgpio>;
179 interrupts = <31 IRQ_TYPE_EDGE_FALLING>;
180
181 adi,dsi-lanes = <4>;
182 clocks = <&rpmcc RPM_SMD_BB_CLK2>;
183 clock-names = "cec";
184
185 pd-gpios = <&msmgpio 32 GPIO_ACTIVE_HIGH>;
186
187 avdd-supply = <&pm8916_l6>;
188 v1p2-supply = <&pm8916_l6>;
189 v3p3-supply = <&pm8916_l17>;
190
191 pinctrl-names = "default","sleep";
192 pinctrl-0 = <&adv7533_int_active &adv7533_switch_active>;
193 pinctrl-1 = <&adv7533_int_suspend &adv7533_switch_suspend>;
194 #sound-dai-cells = <1>;
195
196 ports {
197 #address-cells = <1>;
198 #size-cells = <0>;
199
200 port@0 {
201 reg = <0>;
202 adv7533_in: endpoint {
203 remote-endpoint = <&dsi0_out>;
204 };
205 };
206
207 port@1 {
208 reg = <1>;
209 adv7533_out: endpoint {
210 remote-endpoint = <&hdmi_con>;
211 };
212 };
213 };
214 };
215};
216
217&blsp_i2c6 {
218 /* On Low speed expansion */
219 status = "okay";
220 label = "LS-I2C1";
221};
222
223&blsp_spi3 {
224 /* On High speed expansion */
225 status = "okay";
226 label = "HS-SPI1";
227};
228
229&blsp_spi5 {
230 /* On Low speed expansion */
231 status = "okay";
232 label = "LS-SPI0";
233};
234
235&blsp1_uart1 {
236 status = "okay";
237 label = "LS-UART0";
e2f6482a
SG
238};
239
240&blsp1_uart2 {
241 status = "okay";
242 label = "LS-UART1";
e2f6482a
SG
243};
244
39e0ce6c 245&camss {
7a1dcc9d 246 status = "okay";
39e0ce6c 247 ports {
39e0ce6c
LP
248 port@0 {
249 reg = <0>;
250 csiphy0_ep: endpoint {
251 clock-lanes = <1>;
252 data-lanes = <0 2>;
253 remote-endpoint = <&ov5640_ep>;
254 status = "okay";
255 };
256 };
257 };
258};
259
260&cci {
7a1dcc9d 261 status = "okay";
39e0ce6c
LP
262};
263
264&cci_i2c0 {
265 camera_rear@3b {
266 compatible = "ovti,ov5640";
267 reg = <0x3b>;
268
269 enable-gpios = <&msmgpio 34 GPIO_ACTIVE_HIGH>;
270 reset-gpios = <&msmgpio 35 GPIO_ACTIVE_LOW>;
271 pinctrl-names = "default";
272 pinctrl-0 = <&camera_rear_default>;
273
274 clocks = <&gcc GCC_CAMSS_MCLK0_CLK>;
275 clock-names = "xclk";
276 clock-frequency = <23880000>;
277
278 vdddo-supply = <&camera_vdddo_1v8>;
279 vdda-supply = <&camera_vdda_2v8>;
280 vddd-supply = <&camera_vddd_1v5>;
281
282 /* No camera mezzanine by default */
283 status = "disabled";
284
285 port {
286 ov5640_ep: endpoint {
287 clock-lanes = <1>;
288 data-lanes = <0 2>;
289 remote-endpoint = <&csiphy0_ep>;
290 };
291 };
292 };
293};
294
b2106c67
SG
295&dsi0_out {
296 data-lanes = <0 1 2 3>;
297 remote-endpoint = <&adv7533_in>;
e2f6482a
SG
298};
299
e2f6482a
SG
300&lpass {
301 status = "okay";
302};
303
5f36d633
VK
304&mdss {
305 status = "okay";
306};
307
0f6b380d
BA
308&mpss {
309 status = "okay";
310
2533786f 311 firmware-name = "qcom/apq8016/mba.mbn", "qcom/apq8016/modem.mbn";
0f6b380d
BA
312};
313
4eb7b63d
SG
314&pm8916_resin {
315 status = "okay";
316 linux,code = <KEY_VOLUMEDOWN>;
317};
318
e2f6482a
SG
319&pronto {
320 status = "okay";
0f6b380d 321
2533786f 322 firmware-name = "qcom/apq8016/wcnss.mbn";
e2f6482a
SG
323};
324
325&sdhc_1 {
326 status = "okay";
327
e2f6482a
SG
328 pinctrl-names = "default", "sleep";
329 pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
330 pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
331};
332
333&sdhc_2 {
334 status = "okay";
335
e2f6482a
SG
336 pinctrl-names = "default", "sleep";
337 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>;
338 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>;
339
340 cd-gpios = <&msmgpio 38 GPIO_ACTIVE_LOW>;
341};
342
343&sound {
344 status = "okay";
345
346 pinctrl-0 = <&cdc_pdm_lines_act &ext_sec_tlmm_lines_act &ext_mclk_tlmm_lines_act>;
347 pinctrl-1 = <&cdc_pdm_lines_sus &ext_sec_tlmm_lines_sus &ext_mclk_tlmm_lines_sus>;
348 pinctrl-names = "default", "sleep";
349 qcom,model = "DB410c";
350 qcom,audio-routing =
351 "AMIC2", "MIC BIAS Internal2",
352 "AMIC3", "MIC BIAS External1";
353
354 external-dai-link@0 {
355 link-name = "ADV7533";
356 cpu {
357 sound-dai = <&lpass MI2S_QUATERNARY>;
358 };
359 codec {
360 sound-dai = <&adv_bridge 0>;
361 };
362 };
363
364 internal-codec-playback-dai-link@0 {
365 link-name = "WCD";
366 cpu {
367 sound-dai = <&lpass MI2S_PRIMARY>;
368 };
369 codec {
370 sound-dai = <&lpass_codec 0>, <&wcd_codec 0>;
371 };
372 };
373
374 internal-codec-capture-dai-link@0 {
375 link-name = "WCD-Capture";
376 cpu {
377 sound-dai = <&lpass MI2S_TERTIARY>;
378 };
379 codec {
380 sound-dai = <&lpass_codec 1>, <&wcd_codec 1>;
381 };
382 };
383};
384
e2f6482a
SG
385&usb {
386 status = "okay";
387 extcon = <&usb_id>, <&usb_id>;
e2f6482a
SG
388
389 pinctrl-names = "default", "device";
390 pinctrl-0 = <&usb_sw_sel_pm &usb_hub_reset_pm>;
391 pinctrl-1 = <&usb_sw_sel_pm_device &usb_hub_reset_pm_device>;
392};
393
394&usb_hs_phy {
e2f6482a
SG
395 extcon = <&usb_id>;
396};
397
5582fcb3 398&wcd_codec {
34da47b1
SG
399 clocks = <&gcc GCC_CODEC_DIGCODEC_CLK>;
400 clock-names = "mclk";
64c4d0a7
SK
401 qcom,mbhc-vthreshold-low = <75 150 237 450 500>;
402 qcom,mbhc-vthreshold-high = <75 150 237 450 500>;
5582fcb3
SK
403};
404
0f6b380d 405&wcnss_ctrl {
2533786f 406 firmware-name = "qcom/apq8016/WCNSS_qcom_wlan_nv_sbc.bin";
0f6b380d
BA
407};
408
e2f6482a
SG
409/* Enable CoreSight */
410&cti0 { status = "okay"; };
411&cti1 { status = "okay"; };
412&cti12 { status = "okay"; };
413&cti13 { status = "okay"; };
414&cti14 { status = "okay"; };
415&cti15 { status = "okay"; };
416&debug0 { status = "okay"; };
417&debug1 { status = "okay"; };
418&debug2 { status = "okay"; };
419&debug3 { status = "okay"; };
420&etf { status = "okay"; };
421&etm0 { status = "okay"; };
422&etm1 { status = "okay"; };
423&etm2 { status = "okay"; };
424&etm3 { status = "okay"; };
425&etr { status = "okay"; };
426&funnel0 { status = "okay"; };
427&funnel1 { status = "okay"; };
428&replicator { status = "okay"; };
98b43386 429&stm { status = "okay"; };
e2f6482a
SG
430&tpiu { status = "okay"; };
431
4c7d53d1
SK
432&smd_rpm_regulators {
433 vdd_l1_l2_l3-supply = <&pm8916_s3>;
4c7d53d1
SK
434 vdd_l4_l5_l6-supply = <&pm8916_s4>;
435 vdd_l7-supply = <&pm8916_s4>;
436
4c7d53d1
SK
437 s3 {
438 regulator-min-microvolt = <375000>;
439 regulator-max-microvolt = <1562000>;
440 };
441
442 s4 {
443 regulator-min-microvolt = <1800000>;
444 regulator-max-microvolt = <1800000>;
445
446 regulator-always-on;
447 regulator-boot-on;
448 };
449
450 l1 {
451 regulator-min-microvolt = <375000>;
452 regulator-max-microvolt = <1525000>;
453 };
454
455 l2 {
5c99bfdc
AT
456 regulator-min-microvolt = <1200000>;
457 regulator-max-microvolt = <1200000>;
4c7d53d1
SK
458 };
459
4c7d53d1
SK
460 l4 {
461 regulator-min-microvolt = <1750000>;
462 regulator-max-microvolt = <3337000>;
463 };
464
465 l5 {
466 regulator-min-microvolt = <1750000>;
467 regulator-max-microvolt = <3337000>;
468 };
469
470 l6 {
5c99bfdc
AT
471 regulator-min-microvolt = <1800000>;
472 regulator-max-microvolt = <1800000>;
4c7d53d1
SK
473 };
474
475 l7 {
476 regulator-min-microvolt = <1750000>;
477 regulator-max-microvolt = <3337000>;
478 };
479
480 l8 {
481 regulator-min-microvolt = <1750000>;
482 regulator-max-microvolt = <3337000>;
483 };
484
485 l9 {
486 regulator-min-microvolt = <1750000>;
487 regulator-max-microvolt = <3337000>;
488 };
489
490 l10 {
491 regulator-min-microvolt = <1750000>;
492 regulator-max-microvolt = <3337000>;
493 };
494
495 l11 {
496 regulator-min-microvolt = <1750000>;
497 regulator-max-microvolt = <3337000>;
af61bef5
LP
498 regulator-allow-set-load;
499 regulator-system-load = <200000>;
4c7d53d1
SK
500 };
501
502 l12 {
503 regulator-min-microvolt = <1750000>;
504 regulator-max-microvolt = <3337000>;
505 };
506
507 l13 {
508 regulator-min-microvolt = <1750000>;
509 regulator-max-microvolt = <3337000>;
510 };
511
512 l14 {
513 regulator-min-microvolt = <1750000>;
514 regulator-max-microvolt = <3337000>;
515 };
516
828dd5d6
SK
517 /**
518 * 1.8v required on LS expansion
519 * for mezzanine boards
520 */
4c7d53d1
SK
521 l15 {
522 regulator-min-microvolt = <1750000>;
523 regulator-max-microvolt = <3337000>;
828dd5d6 524 regulator-always-on;
4c7d53d1
SK
525 };
526
527 l16 {
528 regulator-min-microvolt = <1750000>;
529 regulator-max-microvolt = <3337000>;
530 };
531
532 l17 {
5c99bfdc
AT
533 regulator-min-microvolt = <3300000>;
534 regulator-max-microvolt = <3300000>;
4c7d53d1
SK
535 };
536
537 l18 {
538 regulator-min-microvolt = <1750000>;
539 regulator-max-microvolt = <3337000>;
540 };
541};
756d534b 542
4a1f08cb
SG
543/*
544 * 2mA drive strength is not enough when connecting multiple
545 * I2C devices with different pull up resistors.
546 */
547&i2c2_default {
548 drive-strength = <16>;
549};
550
551&i2c4_default {
552 drive-strength = <16>;
553};
554
555&i2c6_default {
556 drive-strength = <16>;
557};
558
e2f6482a
SG
559/*
560 * GPIO name legend: proper name = the GPIO line is used as GPIO
561 * NC = not connected (pin out but not routed from the chip to
562 * anything the board)
563 * "[PER]" = pin is muxed for [peripheral] (not GPIO)
564 * LSEC = Low Speed External Connector
565 * HSEC = High Speed External Connector
566 *
567 * Line names are taken from the schematic "DragonBoard410c"
568 * dated monday, august 31, 2015. Page 5 in particular.
569 *
570 * For the lines routed to the external connectors the
571 * lines are named after the 96Boards CE Specification 1.0,
572 * Appendix "Expansion Connector Signal Description".
573 *
574 * When the 96Board naming of a line and the schematic name of
575 * the same line are in conflict, the 96Board specification
576 * takes precedence, which means that the external UART on the
577 * LSEC is named UART0 while the schematic and SoC names this
578 * UART3. This is only for the informational lines i.e. "[FOO]",
579 * the GPIO named lines "GPIO-A" thru "GPIO-L" are the only
580 * ones actually used for GPIO.
581 */
582
756d534b 583&msmgpio {
e2f6482a
SG
584 gpio-line-names =
585 "[UART0_TX]", /* GPIO_0, LSEC pin 5 */
586 "[UART0_RX]", /* GPIO_1, LSEC pin 7 */
587 "[UART0_CTS_N]", /* GPIO_2, LSEC pin 3 */
588 "[UART0_RTS_N]", /* GPIO_3, LSEC pin 9 */
589 "[UART1_TX]", /* GPIO_4, LSEC pin 11 */
590 "[UART1_RX]", /* GPIO_5, LSEC pin 13 */
591 "[I2C0_SDA]", /* GPIO_8, LSEC pin 17 */
592 "[I2C0_SCL]", /* GPIO_7, LSEC pin 15 */
593 "[SPI1_DOUT]", /* SPI1_MOSI, HSEC pin 1 */
594 "[SPI1_DIN]", /* SPI1_MISO, HSEC pin 11 */
595 "[SPI1_CS]", /* SPI1_CS_N, HSEC pin 7 */
596 "[SPI1_SCLK]", /* SPI1_CLK, HSEC pin 9 */
597 "GPIO-B", /* LS_EXP_GPIO_B, LSEC pin 24 */
598 "GPIO-C", /* LS_EXP_GPIO_C, LSEC pin 25 */
599 "[I2C3_SDA]", /* HSEC pin 38 */
600 "[I2C3_SCL]", /* HSEC pin 36 */
601 "[SPI0_MOSI]", /* LSEC pin 14 */
602 "[SPI0_MISO]", /* LSEC pin 10 */
603 "[SPI0_CS_N]", /* LSEC pin 12 */
604 "[SPI0_CLK]", /* LSEC pin 8 */
605 "HDMI_HPD_N", /* GPIO 20 */
606 "USR_LED_1_CTRL",
607 "[I2C1_SDA]", /* GPIO_22, LSEC pin 21 */
608 "[I2C1_SCL]", /* GPIO_23, LSEC pin 19 */
609 "GPIO-G", /* LS_EXP_GPIO_G, LSEC pin 29 */
610 "GPIO-H", /* LS_EXP_GPIO_H, LSEC pin 30 */
611 "[CSI0_MCLK]", /* HSEC pin 15 */
612 "[CSI1_MCLK]", /* HSEC pin 17 */
613 "GPIO-K", /* LS_EXP_GPIO_K, LSEC pin 33 */
614 "[I2C2_SDA]", /* HSEC pin 34 */
615 "[I2C2_SCL]", /* HSEC pin 32 */
616 "DSI2HDMI_INT_N",
617 "DSI_SW_SEL_APQ",
618 "GPIO-L", /* LS_EXP_GPIO_L, LSEC pin 34 */
619 "GPIO-J", /* LS_EXP_GPIO_J, LSEC pin 32 */
620 "GPIO-I", /* LS_EXP_GPIO_I, LSEC pin 31 */
621 "GPIO-A", /* LS_EXP_GPIO_A, LSEC pin 23 */
622 "FORCED_USB_BOOT",
623 "SD_CARD_DET_N",
624 "[WCSS_BT_SSBI]",
625 "[WCSS_WLAN_DATA_2]", /* GPIO 40 */
626 "[WCSS_WLAN_DATA_1]",
627 "[WCSS_WLAN_DATA_0]",
628 "[WCSS_WLAN_SET]",
629 "[WCSS_WLAN_CLK]",
630 "[WCSS_FM_SSBI]",
631 "[WCSS_FM_SDI]",
632 "[WCSS_BT_DAT_CTL]",
633 "[WCSS_BT_DAT_STB]",
634 "NC",
635 "NC", /* GPIO 50 */
636 "NC",
637 "NC",
638 "NC",
639 "NC",
640 "NC",
641 "NC",
642 "NC",
643 "NC",
644 "NC",
645 "NC", /* GPIO 60 */
646 "NC",
647 "NC",
648 "[CDC_PDM0_CLK]",
649 "[CDC_PDM0_SYNC]",
650 "[CDC_PDM0_TX0]",
651 "[CDC_PDM0_RX0]",
652 "[CDC_PDM0_RX1]",
653 "[CDC_PDM0_RX2]",
654 "GPIO-D", /* LS_EXP_GPIO_D, LSEC pin 26 */
655 "NC", /* GPIO 70 */
656 "NC",
657 "NC",
658 "NC",
659 "NC", /* GPIO 74 */
660 "NC",
661 "NC",
662 "NC",
663 "NC",
664 "NC",
665 "BOOT_CONFIG_0", /* GPIO 80 */
666 "BOOT_CONFIG_1",
667 "BOOT_CONFIG_2",
668 "BOOT_CONFIG_3",
669 "NC",
670 "NC",
671 "BOOT_CONFIG_5",
672 "NC",
673 "NC",
674 "NC",
675 "NC", /* GPIO 90 */
676 "NC",
677 "NC",
678 "NC",
679 "NC",
680 "NC",
681 "NC",
682 "NC",
683 "NC",
684 "NC",
685 "NC", /* GPIO 100 */
686 "NC",
687 "NC",
688 "NC",
689 "SSBI_GPS",
690 "NC",
691 "NC",
692 "KEY_VOLP_N",
693 "NC",
694 "NC",
695 "[LS_EXP_MI2S_WS]", /* GPIO 110 */
696 "NC",
697 "NC",
698 "[LS_EXP_MI2S_SCK]",
699 "[LS_EXP_MI2S_DATA0]",
700 "GPIO-E", /* LS_EXP_GPIO_E, LSEC pin 27 */
701 "NC",
702 "[DSI2HDMI_MI2S_WS]",
703 "[DSI2HDMI_MI2S_SCK]",
704 "[DSI2HDMI_MI2S_DATA0]",
705 "USR_LED_2_CTRL", /* GPIO 120 */
706 "SB_HS_ID";
707
756d534b 708 msmgpio_leds: msmgpio-leds {
6554a295
SG
709 pins = "gpio21", "gpio120";
710 function = "gpio";
711
712 output-low;
756d534b
SG
713 };
714
715 usb_id_default: usb-id-default {
6554a295
SG
716 pins = "gpio121";
717 function = "gpio";
756d534b 718
6554a295
SG
719 drive-strength = <8>;
720 input-enable;
721 bias-pull-up;
756d534b
SG
722 };
723
724 adv7533_int_active: adv533-int-active {
6554a295
SG
725 pins = "gpio31";
726 function = "gpio";
727
728 drive-strength = <16>;
729 bias-disable;
756d534b
SG
730 };
731
732 adv7533_int_suspend: adv7533-int-suspend {
6554a295
SG
733 pins = "gpio31";
734 function = "gpio";
735
736 drive-strength = <2>;
737 bias-disable;
756d534b
SG
738 };
739
740 adv7533_switch_active: adv7533-switch-active {
6554a295
SG
741 pins = "gpio32";
742 function = "gpio";
743
744 drive-strength = <16>;
745 bias-disable;
756d534b
SG
746 };
747
748 adv7533_switch_suspend: adv7533-switch-suspend {
6554a295
SG
749 pins = "gpio32";
750 function = "gpio";
751
752 drive-strength = <2>;
753 bias-disable;
756d534b
SG
754 };
755
756 msm_key_volp_n_default: msm-key-volp-n-default {
6554a295
SG
757 pins = "gpio107";
758 function = "gpio";
759
760 drive-strength = <8>;
761 input-enable;
762 bias-pull-up;
756d534b
SG
763 };
764};
765
766&pm8916_gpios {
e2f6482a
SG
767 gpio-line-names =
768 "USR_LED_3_CTRL",
769 "USR_LED_4_CTRL",
770 "USB_HUB_RESET_N_PM",
771 "USB_SW_SEL_PM";
772
756d534b 773 usb_hub_reset_pm: usb-hub-reset-pm {
6554a295
SG
774 pins = "gpio3";
775 function = PMIC_GPIO_FUNC_NORMAL;
776
777 input-disable;
778 output-high;
756d534b
SG
779 };
780
781 usb_hub_reset_pm_device: usb-hub-reset-pm-device {
6554a295
SG
782 pins = "gpio3";
783 function = PMIC_GPIO_FUNC_NORMAL;
784
785 output-low;
756d534b
SG
786 };
787
788 usb_sw_sel_pm: usb-sw-sel-pm {
6554a295
SG
789 pins = "gpio4";
790 function = PMIC_GPIO_FUNC_NORMAL;
791
792 power-source = <PM8916_GPIO_VPH>;
793 input-disable;
794 output-high;
756d534b
SG
795 };
796
797 usb_sw_sel_pm_device: usb-sw-sel-pm-device {
6554a295
SG
798 pins = "gpio4";
799 function = PMIC_GPIO_FUNC_NORMAL;
800
801 power-source = <PM8916_GPIO_VPH>;
802 input-disable;
803 output-low;
756d534b
SG
804 };
805
806 pm8916_gpios_leds: pm8916-gpios-leds {
6554a295
SG
807 pins = "gpio1", "gpio2";
808 function = PMIC_GPIO_FUNC_NORMAL;
809
810 output-low;
756d534b
SG
811 };
812};
813
814&pm8916_mpps {
e2f6482a
SG
815 gpio-line-names =
816 "VDD_PX_BIAS",
817 "WLAN_LED_CTRL",
818 "BT_LED_CTRL",
819 "GPIO-F"; /* LS_EXP_GPIO_F, LSEC pin 28 */
820
756d534b
SG
821 pinctrl-names = "default";
822 pinctrl-0 = <&ls_exp_gpio_f>;
823
824 ls_exp_gpio_f: pm8916-mpp4 {
6554a295
SG
825 pins = "mpp4";
826 function = "digital";
827
828 output-low;
829 power-source = <PM8916_MPP_L5>; // 1.8V
756d534b
SG
830 };
831
832 pm8916_mpps_leds: pm8916-mpps-leds {
6554a295
SG
833 pins = "mpp2", "mpp3";
834 function = "digital";
835
836 output-low;
756d534b
SG
837 };
838};