]>
Commit | Line | Data |
---|---|---|
97fb5e8d | 1 | // SPDX-License-Identifier: GPL-2.0-only |
1b08a582 II |
2 | /* |
3 | * Copyright (c) 2013-2015, The Linux Foundation. All rights reserved. | |
1b08a582 II |
4 | */ |
5 | ||
6 | &msmgpio { | |
7 | ||
e6717dba | 8 | blsp1_uart1_default: blsp1-uart1-default { |
6554a295 SG |
9 | // TX, RX, CTS_N, RTS_N |
10 | pins = "gpio0", "gpio1", "gpio2", "gpio3"; | |
11 | function = "blsp_uart1"; | |
12 | ||
13 | drive-strength = <16>; | |
14 | bias-disable; | |
9f43020d AG |
15 | }; |
16 | ||
e6717dba | 17 | blsp1_uart1_sleep: blsp1-uart1-sleep { |
6554a295 SG |
18 | pins = "gpio0", "gpio1", "gpio2", "gpio3"; |
19 | function = "gpio"; | |
20 | ||
21 | drive-strength = <2>; | |
22 | bias-pull-down; | |
9f43020d AG |
23 | }; |
24 | ||
e6717dba | 25 | blsp1_uart2_default: blsp1-uart2-default { |
6554a295 SG |
26 | pins = "gpio4", "gpio5"; |
27 | function = "blsp_uart2"; | |
28 | ||
29 | drive-strength = <16>; | |
30 | bias-disable; | |
1b08a582 II |
31 | }; |
32 | ||
e6717dba | 33 | blsp1_uart2_sleep: blsp1-uart2-sleep { |
6554a295 SG |
34 | pins = "gpio4", "gpio5"; |
35 | function = "gpio"; | |
36 | ||
37 | drive-strength = <2>; | |
38 | bias-pull-down; | |
1b08a582 II |
39 | }; |
40 | ||
e6717dba | 41 | spi1_default: spi1-default { |
6554a295 SG |
42 | pins = "gpio0", "gpio1", "gpio3"; |
43 | function = "blsp_spi1"; | |
44 | ||
45 | drive-strength = <12>; | |
46 | bias-disable; | |
47 | ||
48 | cs { | |
1b08a582 | 49 | pins = "gpio2"; |
6554a295 SG |
50 | function = "gpio"; |
51 | ||
93a35141 | 52 | drive-strength = <16>; |
1b08a582 II |
53 | bias-disable; |
54 | output-high; | |
55 | }; | |
56 | }; | |
57 | ||
e6717dba | 58 | spi1_sleep: spi1-sleep { |
6554a295 SG |
59 | pins = "gpio0", "gpio1", "gpio2", "gpio3"; |
60 | function = "gpio"; | |
61 | ||
62 | drive-strength = <2>; | |
63 | bias-pull-down; | |
1b08a582 II |
64 | }; |
65 | ||
e6717dba | 66 | spi2_default: spi2-default { |
6554a295 SG |
67 | pins = "gpio4", "gpio5", "gpio7"; |
68 | function = "blsp_spi2"; | |
69 | ||
70 | drive-strength = <12>; | |
71 | bias-disable; | |
72 | ||
73 | cs { | |
1b08a582 | 74 | pins = "gpio6"; |
6554a295 SG |
75 | function = "gpio"; |
76 | ||
93a35141 | 77 | drive-strength = <16>; |
1b08a582 II |
78 | bias-disable; |
79 | output-high; | |
80 | }; | |
81 | }; | |
82 | ||
e6717dba | 83 | spi2_sleep: spi2-sleep { |
6554a295 SG |
84 | pins = "gpio4", "gpio5", "gpio6", "gpio7"; |
85 | function = "gpio"; | |
86 | ||
87 | drive-strength = <2>; | |
88 | bias-pull-down; | |
1b08a582 II |
89 | }; |
90 | ||
e6717dba | 91 | spi3_default: spi3-default { |
6554a295 SG |
92 | pins = "gpio8", "gpio9", "gpio11"; |
93 | function = "blsp_spi3"; | |
94 | ||
95 | drive-strength = <12>; | |
96 | bias-disable; | |
97 | ||
98 | cs { | |
1b08a582 | 99 | pins = "gpio10"; |
6554a295 SG |
100 | function = "gpio"; |
101 | ||
93a35141 | 102 | drive-strength = <16>; |
1b08a582 II |
103 | bias-disable; |
104 | output-high; | |
105 | }; | |
106 | }; | |
107 | ||
e6717dba | 108 | spi3_sleep: spi3-sleep { |
6554a295 SG |
109 | pins = "gpio8", "gpio9", "gpio10", "gpio11"; |
110 | function = "gpio"; | |
111 | ||
112 | drive-strength = <2>; | |
113 | bias-pull-down; | |
1b08a582 II |
114 | }; |
115 | ||
e6717dba | 116 | spi4_default: spi4-default { |
6554a295 SG |
117 | pins = "gpio12", "gpio13", "gpio15"; |
118 | function = "blsp_spi4"; | |
119 | ||
120 | drive-strength = <12>; | |
121 | bias-disable; | |
122 | ||
123 | cs { | |
1b08a582 | 124 | pins = "gpio14"; |
6554a295 SG |
125 | function = "gpio"; |
126 | ||
93a35141 | 127 | drive-strength = <16>; |
1b08a582 II |
128 | bias-disable; |
129 | output-high; | |
130 | }; | |
131 | }; | |
132 | ||
e6717dba | 133 | spi4_sleep: spi4-sleep { |
6554a295 SG |
134 | pins = "gpio12", "gpio13", "gpio14", "gpio15"; |
135 | function = "gpio"; | |
136 | ||
137 | drive-strength = <2>; | |
138 | bias-pull-down; | |
1b08a582 II |
139 | }; |
140 | ||
e6717dba | 141 | spi5_default: spi5-default { |
6554a295 SG |
142 | pins = "gpio16", "gpio17", "gpio19"; |
143 | function = "blsp_spi5"; | |
144 | ||
145 | drive-strength = <12>; | |
146 | bias-disable; | |
147 | ||
148 | cs { | |
1b08a582 | 149 | pins = "gpio18"; |
6554a295 SG |
150 | function = "gpio"; |
151 | ||
93a35141 | 152 | drive-strength = <16>; |
1b08a582 II |
153 | bias-disable; |
154 | output-high; | |
155 | }; | |
156 | }; | |
157 | ||
e6717dba | 158 | spi5_sleep: spi5-sleep { |
6554a295 SG |
159 | pins = "gpio16", "gpio17", "gpio18", "gpio19"; |
160 | function = "gpio"; | |
161 | ||
162 | drive-strength = <2>; | |
163 | bias-pull-down; | |
1b08a582 II |
164 | }; |
165 | ||
e6717dba | 166 | spi6_default: spi6-default { |
6554a295 SG |
167 | pins = "gpio20", "gpio21", "gpio23"; |
168 | function = "blsp_spi6"; | |
169 | ||
170 | drive-strength = <12>; | |
171 | bias-disable; | |
172 | ||
173 | cs { | |
1b08a582 | 174 | pins = "gpio22"; |
6554a295 SG |
175 | function = "gpio"; |
176 | ||
93a35141 | 177 | drive-strength = <16>; |
1b08a582 II |
178 | bias-disable; |
179 | output-high; | |
180 | }; | |
181 | }; | |
182 | ||
e6717dba | 183 | spi6_sleep: spi6-sleep { |
6554a295 SG |
184 | pins = "gpio20", "gpio21", "gpio22", "gpio23"; |
185 | function = "gpio"; | |
186 | ||
187 | drive-strength = <2>; | |
188 | bias-pull-down; | |
1b08a582 II |
189 | }; |
190 | ||
e6717dba | 191 | i2c1_default: i2c1-default { |
6554a295 SG |
192 | pins = "gpio2", "gpio3"; |
193 | function = "blsp_i2c1"; | |
194 | ||
195 | drive-strength = <2>; | |
196 | bias-disable; | |
428384b5 SG |
197 | }; |
198 | ||
e6717dba | 199 | i2c1_sleep: i2c1-sleep { |
6554a295 SG |
200 | pins = "gpio2", "gpio3"; |
201 | function = "gpio"; | |
202 | ||
203 | drive-strength = <2>; | |
204 | bias-disable; | |
428384b5 SG |
205 | }; |
206 | ||
e6717dba | 207 | i2c2_default: i2c2-default { |
6554a295 SG |
208 | pins = "gpio6", "gpio7"; |
209 | function = "blsp_i2c2"; | |
210 | ||
4a1f08cb | 211 | drive-strength = <2>; |
6554a295 | 212 | bias-disable; |
7f5b0921 SK |
213 | }; |
214 | ||
e6717dba | 215 | i2c2_sleep: i2c2-sleep { |
6554a295 SG |
216 | pins = "gpio6", "gpio7"; |
217 | function = "gpio"; | |
218 | ||
219 | drive-strength = <2>; | |
220 | bias-disable; | |
7f5b0921 SK |
221 | }; |
222 | ||
012e19f4 JA |
223 | i2c3_default: i2c3-default { |
224 | pins = "gpio10", "gpio11"; | |
225 | function = "blsp_i2c3"; | |
226 | ||
227 | drive-strength = <2>; | |
228 | bias-disable; | |
229 | }; | |
230 | ||
231 | i2c3_sleep: i2c3-sleep { | |
232 | pins = "gpio10", "gpio11"; | |
233 | function = "gpio"; | |
234 | ||
235 | drive-strength = <2>; | |
236 | bias-disable; | |
237 | }; | |
238 | ||
e6717dba | 239 | i2c4_default: i2c4-default { |
6554a295 SG |
240 | pins = "gpio14", "gpio15"; |
241 | function = "blsp_i2c4"; | |
242 | ||
4a1f08cb | 243 | drive-strength = <2>; |
6554a295 | 244 | bias-disable; |
1b08a582 II |
245 | }; |
246 | ||
e6717dba | 247 | i2c4_sleep: i2c4-sleep { |
6554a295 SG |
248 | pins = "gpio14", "gpio15"; |
249 | function = "gpio"; | |
250 | ||
251 | drive-strength = <2>; | |
252 | bias-disable; | |
1b08a582 II |
253 | }; |
254 | ||
e6717dba | 255 | i2c5_default: i2c5-default { |
6554a295 SG |
256 | pins = "gpio18", "gpio19"; |
257 | function = "blsp_i2c5"; | |
258 | ||
259 | drive-strength = <2>; | |
260 | bias-disable; | |
246d19d2 SG |
261 | }; |
262 | ||
e6717dba | 263 | i2c5_sleep: i2c5-sleep { |
6554a295 SG |
264 | pins = "gpio18", "gpio19"; |
265 | function = "gpio"; | |
266 | ||
267 | drive-strength = <2>; | |
268 | bias-disable; | |
246d19d2 SG |
269 | }; |
270 | ||
e6717dba | 271 | i2c6_default: i2c6-default { |
6554a295 SG |
272 | pins = "gpio22", "gpio23"; |
273 | function = "blsp_i2c6"; | |
274 | ||
4a1f08cb | 275 | drive-strength = <2>; |
6554a295 | 276 | bias-disable; |
7f5b0921 SK |
277 | }; |
278 | ||
e6717dba | 279 | i2c6_sleep: i2c6-sleep { |
6554a295 SG |
280 | pins = "gpio22", "gpio23"; |
281 | function = "gpio"; | |
282 | ||
283 | drive-strength = <2>; | |
284 | bias-disable; | |
7f5b0921 SK |
285 | }; |
286 | ||
e6717dba SG |
287 | pmx-sdc1-clk { |
288 | sdc1_clk_on: clk-on { | |
6554a295 SG |
289 | pins = "sdc1_clk"; |
290 | ||
291 | bias-disable; | |
292 | drive-strength = <16>; | |
1b08a582 | 293 | }; |
e6717dba | 294 | sdc1_clk_off: clk-off { |
6554a295 SG |
295 | pins = "sdc1_clk"; |
296 | ||
297 | bias-disable; | |
298 | drive-strength = <2>; | |
1b08a582 II |
299 | }; |
300 | }; | |
301 | ||
e6717dba SG |
302 | pmx-sdc1-cmd { |
303 | sdc1_cmd_on: cmd-on { | |
6554a295 SG |
304 | pins = "sdc1_cmd"; |
305 | ||
306 | bias-pull-up; | |
307 | drive-strength = <10>; | |
1b08a582 | 308 | }; |
e6717dba | 309 | sdc1_cmd_off: cmd-off { |
6554a295 SG |
310 | pins = "sdc1_cmd"; |
311 | ||
312 | bias-pull-up; | |
313 | drive-strength = <2>; | |
1b08a582 II |
314 | }; |
315 | }; | |
316 | ||
e6717dba SG |
317 | pmx-sdc1-data { |
318 | sdc1_data_on: data-on { | |
6554a295 SG |
319 | pins = "sdc1_data"; |
320 | ||
321 | bias-pull-up; | |
322 | drive-strength = <10>; | |
1b08a582 | 323 | }; |
e6717dba | 324 | sdc1_data_off: data-off { |
6554a295 SG |
325 | pins = "sdc1_data"; |
326 | ||
327 | bias-pull-up; | |
328 | drive-strength = <2>; | |
1b08a582 II |
329 | }; |
330 | }; | |
331 | ||
e6717dba SG |
332 | pmx-sdc2-clk { |
333 | sdc2_clk_on: clk-on { | |
6554a295 SG |
334 | pins = "sdc2_clk"; |
335 | ||
336 | bias-disable; | |
337 | drive-strength = <16>; | |
1b08a582 | 338 | }; |
e6717dba | 339 | sdc2_clk_off: clk-off { |
6554a295 SG |
340 | pins = "sdc2_clk"; |
341 | ||
342 | bias-disable; | |
343 | drive-strength = <2>; | |
1b08a582 II |
344 | }; |
345 | }; | |
346 | ||
e6717dba SG |
347 | pmx-sdc2-cmd { |
348 | sdc2_cmd_on: cmd-on { | |
6554a295 SG |
349 | pins = "sdc2_cmd"; |
350 | ||
351 | bias-pull-up; | |
352 | drive-strength = <10>; | |
1b08a582 | 353 | }; |
e6717dba | 354 | sdc2_cmd_off: cmd-off { |
6554a295 SG |
355 | pins = "sdc2_cmd"; |
356 | ||
357 | bias-pull-up; | |
358 | drive-strength = <2>; | |
1b08a582 II |
359 | }; |
360 | }; | |
361 | ||
e6717dba SG |
362 | pmx-sdc2-data { |
363 | sdc2_data_on: data-on { | |
6554a295 SG |
364 | pins = "sdc2_data"; |
365 | ||
366 | bias-pull-up; | |
367 | drive-strength = <10>; | |
1b08a582 | 368 | }; |
e6717dba | 369 | sdc2_data_off: data-off { |
6554a295 SG |
370 | pins = "sdc2_data"; |
371 | ||
372 | bias-pull-up; | |
373 | drive-strength = <2>; | |
1b08a582 II |
374 | }; |
375 | }; | |
143bb9ad | 376 | |
e6717dba SG |
377 | pmx-sdc2-cd-pin { |
378 | sdc2_cd_on: cd-on { | |
6554a295 SG |
379 | pins = "gpio38"; |
380 | function = "gpio"; | |
381 | ||
382 | drive-strength = <2>; | |
383 | bias-pull-up; | |
3785630d | 384 | }; |
e6717dba | 385 | sdc2_cd_off: cd-off { |
6554a295 SG |
386 | pins = "gpio38"; |
387 | function = "gpio"; | |
388 | ||
389 | drive-strength = <2>; | |
390 | bias-disable; | |
3785630d DR |
391 | }; |
392 | }; | |
393 | ||
143bb9ad | 394 | cdc-pdm-lines { |
e6717dba | 395 | cdc_pdm_lines_act: pdm-lines-on { |
6554a295 SG |
396 | pins = "gpio63", "gpio64", "gpio65", "gpio66", |
397 | "gpio67", "gpio68"; | |
398 | function = "cdc_pdm0"; | |
399 | ||
400 | drive-strength = <8>; | |
401 | bias-disable; | |
143bb9ad | 402 | }; |
e6717dba | 403 | cdc_pdm_lines_sus: pdm-lines-off { |
6554a295 SG |
404 | pins = "gpio63", "gpio64", "gpio65", "gpio66", |
405 | "gpio67", "gpio68"; | |
406 | function = "cdc_pdm0"; | |
407 | ||
408 | drive-strength = <2>; | |
409 | bias-pull-down; | |
143bb9ad SK |
410 | }; |
411 | }; | |
412 | ||
413 | ext-pri-tlmm-lines { | |
e6717dba | 414 | ext_pri_tlmm_lines_act: ext-pa-on { |
6554a295 SG |
415 | pins = "gpio113", "gpio114", "gpio115", "gpio116"; |
416 | function = "pri_mi2s"; | |
143bb9ad | 417 | |
6554a295 SG |
418 | drive-strength = <8>; |
419 | bias-disable; | |
420 | }; | |
e6717dba | 421 | ext_pri_tlmm_lines_sus: ext-pa-off { |
6554a295 SG |
422 | pins = "gpio113", "gpio114", "gpio115", "gpio116"; |
423 | function = "pri_mi2s"; | |
424 | ||
425 | drive-strength = <2>; | |
426 | bias-disable; | |
143bb9ad SK |
427 | }; |
428 | }; | |
429 | ||
430 | ext-pri-ws-line { | |
e6717dba | 431 | ext_pri_ws_act: ext-pa-on { |
6554a295 SG |
432 | pins = "gpio110"; |
433 | function = "pri_mi2s_ws"; | |
143bb9ad | 434 | |
6554a295 SG |
435 | drive-strength = <8>; |
436 | bias-disable; | |
437 | }; | |
e6717dba | 438 | ext_pri_ws_sus: ext-pa-off { |
6554a295 SG |
439 | pins = "gpio110"; |
440 | function = "pri_mi2s_ws"; | |
441 | ||
442 | drive-strength = <2>; | |
443 | bias-disable; | |
143bb9ad SK |
444 | }; |
445 | }; | |
446 | ||
447 | ext-mclk-tlmm-lines { | |
e6717dba | 448 | ext_mclk_tlmm_lines_act: mclk-lines-on { |
6554a295 SG |
449 | pins = "gpio116"; |
450 | function = "pri_mi2s"; | |
451 | ||
452 | drive-strength = <8>; | |
453 | bias-disable; | |
143bb9ad | 454 | }; |
e6717dba | 455 | ext_mclk_tlmm_lines_sus: mclk-lines-off { |
6554a295 SG |
456 | pins = "gpio116"; |
457 | function = "pri_mi2s"; | |
458 | ||
459 | drive-strength = <2>; | |
460 | bias-disable; | |
143bb9ad SK |
461 | }; |
462 | }; | |
463 | ||
464 | /* secondary Mi2S */ | |
465 | ext-sec-tlmm-lines { | |
e6717dba | 466 | ext_sec_tlmm_lines_act: tlmm-lines-on { |
6554a295 SG |
467 | pins = "gpio112", "gpio117", "gpio118", "gpio119"; |
468 | function = "sec_mi2s"; | |
469 | ||
470 | drive-strength = <8>; | |
471 | bias-disable; | |
143bb9ad | 472 | }; |
e6717dba | 473 | ext_sec_tlmm_lines_sus: tlmm-lines-off { |
6554a295 SG |
474 | pins = "gpio112", "gpio117", "gpio118", "gpio119"; |
475 | function = "sec_mi2s"; | |
476 | ||
477 | drive-strength = <2>; | |
478 | bias-disable; | |
143bb9ad SK |
479 | }; |
480 | }; | |
481 | ||
482 | cdc-dmic-lines { | |
e6717dba | 483 | cdc_dmic_lines_act: dmic-lines-on { |
6554a295 | 484 | clk { |
143bb9ad | 485 | pins = "gpio0"; |
6554a295 SG |
486 | function = "dmic0_clk"; |
487 | ||
488 | drive-strength = <8>; | |
143bb9ad | 489 | }; |
6554a295 | 490 | data { |
143bb9ad | 491 | pins = "gpio1"; |
6554a295 SG |
492 | function = "dmic0_data"; |
493 | ||
143bb9ad SK |
494 | drive-strength = <8>; |
495 | }; | |
496 | }; | |
e6717dba | 497 | cdc_dmic_lines_sus: dmic-lines-off { |
6554a295 | 498 | clk { |
342a2922 | 499 | pins = "gpio0"; |
6554a295 SG |
500 | function = "dmic0_clk"; |
501 | ||
502 | drive-strength = <2>; | |
503 | bias-disable; | |
342a2922 | 504 | }; |
6554a295 | 505 | data { |
342a2922 | 506 | pins = "gpio1"; |
6554a295 SG |
507 | function = "dmic0_data"; |
508 | ||
143bb9ad SK |
509 | drive-strength = <2>; |
510 | bias-disable; | |
511 | }; | |
512 | }; | |
513 | }; | |
514 | ||
88106096 | 515 | wcnss_pin_a: wcnss-active { |
6554a295 SG |
516 | pins = "gpio40", "gpio41", "gpio42", "gpio43", "gpio44"; |
517 | function = "wcss_wlan"; | |
518 | ||
519 | drive-strength = <6>; | |
520 | bias-pull-up; | |
88106096 | 521 | }; |
1ab0fb75 | 522 | |
e6717dba | 523 | cci0_default: cci0-default { |
6554a295 SG |
524 | pins = "gpio29", "gpio30"; |
525 | function = "cci_i2c"; | |
526 | ||
527 | drive-strength = <16>; | |
528 | bias-disable; | |
1ab0fb75 | 529 | }; |
acd48330 | 530 | |
e6717dba | 531 | camera_front_default: camera-front-default { |
6554a295 | 532 | pwdn { |
acd48330 | 533 | pins = "gpio33"; |
6554a295 SG |
534 | function = "gpio"; |
535 | ||
acd48330 TT |
536 | drive-strength = <16>; |
537 | bias-disable; | |
538 | }; | |
6554a295 | 539 | rst { |
acd48330 | 540 | pins = "gpio28"; |
6554a295 SG |
541 | function = "gpio"; |
542 | ||
acd48330 TT |
543 | drive-strength = <16>; |
544 | bias-disable; | |
545 | }; | |
6554a295 | 546 | mclk1 { |
acd48330 | 547 | pins = "gpio27"; |
6554a295 SG |
548 | function = "cam_mclk1"; |
549 | ||
acd48330 TT |
550 | drive-strength = <16>; |
551 | bias-disable; | |
552 | }; | |
553 | }; | |
554 | ||
e6717dba | 555 | camera_rear_default: camera-rear-default { |
6554a295 | 556 | pwdn { |
acd48330 | 557 | pins = "gpio34"; |
6554a295 SG |
558 | function = "gpio"; |
559 | ||
acd48330 TT |
560 | drive-strength = <16>; |
561 | bias-disable; | |
562 | }; | |
6554a295 | 563 | rst { |
acd48330 | 564 | pins = "gpio35"; |
6554a295 SG |
565 | function = "gpio"; |
566 | ||
acd48330 TT |
567 | drive-strength = <16>; |
568 | bias-disable; | |
569 | }; | |
6554a295 | 570 | mclk0 { |
acd48330 | 571 | pins = "gpio26"; |
6554a295 SG |
572 | function = "cam_mclk0"; |
573 | ||
acd48330 TT |
574 | drive-strength = <16>; |
575 | bias-disable; | |
576 | }; | |
577 | }; | |
1b08a582 | 578 | }; |