Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 1 | /* |
Maria Yu | f16c160 | 2017-12-22 13:05:17 +0800 | [diff] [blame] | 2 | * Copyright (c) 2015-2018, The Linux Foundation. All rights reserved. |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 and |
| 6 | * only version 2 as published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | */ |
| 13 | |
| 14 | &soc { |
| 15 | tlmm: pinctrl@1000000 { |
| 16 | compatible = "qcom,msm8953-pinctrl"; |
| 17 | reg = <0x1000000 0x300000>; |
Raghavendra Kakarla | 6f0efce | 2018-08-14 16:19:14 +0530 | [diff] [blame] | 18 | reg-names = "pinctrl_regs"; |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 19 | interrupts = <0 208 0>; |
Raju P.L.S.S.S.N | 3f64cd3 | 2017-12-06 19:26:03 +0530 | [diff] [blame] | 20 | interrupts-extended = <&wakegic GIC_SPI 208 IRQ_TYPE_NONE>; |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 21 | gpio-controller; |
| 22 | #gpio-cells = <2>; |
| 23 | interrupt-controller; |
Raghavendra Kakarla | 168d482 | 2018-03-07 17:30:53 +0530 | [diff] [blame] | 24 | interrupt-parent = <&wakegpio>; |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 25 | #interrupt-cells = <2>; |
| 26 | |
| 27 | pmx-uartconsole { |
| 28 | uart_console_active: uart_console_active { |
| 29 | mux { |
| 30 | pins = "gpio4", "gpio5"; |
| 31 | function = "blsp_uart2"; |
| 32 | }; |
| 33 | |
| 34 | config { |
| 35 | pins = "gpio4", "gpio5"; |
| 36 | drive-strength = <2>; |
| 37 | bias-disable; |
| 38 | }; |
| 39 | }; |
| 40 | |
| 41 | uart_console_sleep: uart_console_sleep { |
| 42 | mux { |
| 43 | pins = "gpio4", "gpio5"; |
| 44 | function = "blsp_uart2"; |
| 45 | }; |
| 46 | |
| 47 | config { |
| 48 | pins = "gpio4", "gpio5"; |
| 49 | drive-strength = <2>; |
| 50 | bias-pull-down; |
| 51 | }; |
| 52 | }; |
| 53 | |
Maria Yu | f16c160 | 2017-12-22 13:05:17 +0800 | [diff] [blame] | 54 | uart1_console_active: uart1_console_active { |
| 55 | mux { |
| 56 | pins = "gpio20", "gpio21"; |
| 57 | function = "blsp_uart6"; |
| 58 | }; |
| 59 | |
| 60 | config { |
| 61 | pins = "gpio20", "gpio21"; |
| 62 | drive-strength = <2>; |
| 63 | bias-disable; |
| 64 | }; |
| 65 | }; |
| 66 | |
| 67 | uart1_console_sleep: uart1_console_sleep { |
| 68 | mux { |
| 69 | pins = "gpio20", "gpio21"; |
| 70 | function = "blsp_uart6"; |
| 71 | }; |
| 72 | |
| 73 | config { |
| 74 | pins = "gpio20", "gpio21"; |
| 75 | drive-strength = <2>; |
| 76 | bias-pull-down; |
| 77 | }; |
| 78 | }; |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 79 | }; |
| 80 | cci { |
| 81 | cci0_active: cci0_active { |
| 82 | /* cci0 active state */ |
| 83 | mux { |
| 84 | /* CLK, DATA */ |
| 85 | pins = "gpio29", "gpio30"; |
| 86 | function = "cci_i2c"; |
| 87 | }; |
| 88 | |
| 89 | config { |
| 90 | pins = "gpio29", "gpio30"; |
| 91 | drive-strength = <2>; /* 2 MA */ |
| 92 | bias-disable; /* No PULL */ |
| 93 | }; |
| 94 | }; |
| 95 | |
| 96 | cci0_suspend: cci0_suspend { |
| 97 | /* cci0 suspended state */ |
| 98 | mux { |
| 99 | /* CLK, DATA */ |
| 100 | pins = "gpio29", "gpio30"; |
| 101 | function = "cci_i2c"; |
| 102 | }; |
| 103 | |
| 104 | config { |
| 105 | pins = "gpio29", "gpio30"; |
| 106 | drive-strength = <2>; /* 2 MA */ |
| 107 | bias-disable; /* No PULL */ |
| 108 | }; |
| 109 | }; |
| 110 | |
| 111 | cci1_active: cci1_active { |
| 112 | /* cci1 active state */ |
| 113 | mux { |
| 114 | /* CLK, DATA */ |
| 115 | pins = "gpio31", "gpio32"; |
| 116 | function = "cci_i2c"; |
| 117 | }; |
| 118 | |
| 119 | config { |
| 120 | pins = "gpio31", "gpio32"; |
frankcheng | 049cc9e | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 121 | /*<2019/05/10-Yuting Shih.[FAIRPHONE][MISC][COMMON][CAMERA][][]Pull up the strength level when camera cannot detected sometimes */ |
| 122 | drive-strength = <4>; /* 2 MA */ |
| 123 | /*>2019/05/10-Yuting Shih.[FAIRPHONE][MISC][COMMON][CAMERA][][] */ |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 124 | bias-disable; /* No PULL */ |
| 125 | }; |
| 126 | }; |
| 127 | |
| 128 | cci1_suspend: cci1_suspend { |
| 129 | /* cci1 suspended state */ |
| 130 | mux { |
| 131 | /* CLK, DATA */ |
| 132 | pins = "gpio31", "gpio32"; |
| 133 | function = "cci_i2c"; |
| 134 | }; |
| 135 | |
| 136 | config { |
| 137 | pins = "gpio31", "gpio32"; |
| 138 | drive-strength = <2>; /* 2 MA */ |
| 139 | bias-disable; /* No PULL */ |
| 140 | }; |
| 141 | }; |
| 142 | }; |
| 143 | |
| 144 | /*sensors */ |
| 145 | cam_sensor_mclk0_default: cam_sensor_mclk0_default { |
| 146 | /* MCLK0 */ |
| 147 | mux { |
| 148 | /* CLK, DATA */ |
| 149 | pins = "gpio26"; |
| 150 | function = "cam_mclk"; |
| 151 | }; |
| 152 | |
| 153 | config { |
| 154 | pins = "gpio26"; |
| 155 | bias-disable; /* No PULL */ |
| 156 | drive-strength = <2>; /* 2 MA */ |
| 157 | }; |
| 158 | }; |
| 159 | |
| 160 | cam_sensor_mclk0_sleep: cam_sensor_mclk0_sleep { |
| 161 | /* MCLK0 */ |
| 162 | mux { |
| 163 | /* CLK, DATA */ |
| 164 | pins = "gpio26"; |
| 165 | function = "cam_mclk"; |
| 166 | }; |
| 167 | |
| 168 | config { |
| 169 | pins = "gpio26"; |
| 170 | bias-pull-down; /* PULL DOWN */ |
| 171 | drive-strength = <2>; /* 2 MA */ |
| 172 | }; |
| 173 | }; |
| 174 | |
| 175 | cam_sensor_rear_default: cam_sensor_rear_default { |
| 176 | /* RESET, STANDBY */ |
| 177 | mux { |
| 178 | pins = "gpio40", "gpio39"; |
| 179 | function = "gpio"; |
| 180 | }; |
| 181 | |
| 182 | config { |
| 183 | pins = "gpio40","gpio39"; |
| 184 | bias-disable; /* No PULL */ |
| 185 | drive-strength = <2>; /* 2 MA */ |
| 186 | }; |
| 187 | }; |
| 188 | |
| 189 | cam_sensor_rear_sleep: cam_sensor_rear_sleep { |
| 190 | /* RESET, STANDBY */ |
| 191 | mux { |
| 192 | pins = "gpio40","gpio39"; |
| 193 | function = "gpio"; |
| 194 | }; |
| 195 | |
| 196 | config { |
| 197 | pins = "gpio40","gpio39"; |
| 198 | bias-disable; /* No PULL */ |
| 199 | drive-strength = <2>; /* 2 MA */ |
| 200 | }; |
| 201 | }; |
| 202 | |
Samyukta Mogily | 21f7f41 | 2018-04-03 11:57:12 +0530 | [diff] [blame] | 203 | cam_sensor_ir_cut_default: cam_sensor_ir_cut_default { |
| 204 | /* RESET, STANDBY */ |
| 205 | mux { |
| 206 | pins = "gpio38", "gpio39"; |
| 207 | function = "gpio"; |
| 208 | }; |
| 209 | |
| 210 | config { |
| 211 | pins = "gpio38","gpio39"; |
| 212 | bias-pull-up; /* No PULL */ |
| 213 | drive-strength = <2>; /* 2 MA */ |
| 214 | }; |
| 215 | }; |
| 216 | |
| 217 | cam_sensor_ir_cut_sleep: cam_sensor_ir_cut_sleep { |
| 218 | /* RESET, STANDBY */ |
| 219 | mux { |
| 220 | pins = "gpio38","gpio39"; |
| 221 | function = "gpio"; |
| 222 | }; |
| 223 | |
| 224 | config { |
| 225 | pins = "gpio38","gpio39"; |
| 226 | bias-disable; /* No PULL */ |
| 227 | drive-strength = <2>; /* 2 MA */ |
| 228 | }; |
| 229 | }; |
| 230 | |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 231 | cam_sensor_rear_vana: cam_sensor_rear_vdig { |
| 232 | /* VDIG */ |
| 233 | mux { |
frankcheng | 049cc9e | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 234 | pins = "gpio128"; |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 235 | function = "gpio"; |
| 236 | }; |
| 237 | |
| 238 | config { |
frankcheng | 049cc9e | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 239 | pins = "gpio128"; |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 240 | bias-disable; /* No PULL */ |
| 241 | drive-strength = <2>; /* 2 MA */ |
| 242 | }; |
| 243 | }; |
| 244 | |
| 245 | cam_sensor_rear_vana_sleep: cam_sensor_rear_vdig_sleep { |
| 246 | /* VDIG */ |
| 247 | mux { |
frankcheng | 049cc9e | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 248 | pins = "gpio128"; |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 249 | function = "gpio"; |
| 250 | }; |
| 251 | |
| 252 | config { |
frankcheng | 049cc9e | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 253 | pins = "gpio128"; |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 254 | bias-disable; /* No PULL */ |
| 255 | drive-strength = <2>; /* 2 MA */ |
| 256 | }; |
| 257 | }; |
| 258 | |
| 259 | cam_sensor_mclk1_default: cam_sensor_mclk1_default { |
| 260 | /* MCLK1 */ |
| 261 | mux { |
| 262 | /* CLK, DATA */ |
| 263 | pins = "gpio27"; |
| 264 | function = "cam_mclk"; |
| 265 | }; |
| 266 | |
| 267 | config { |
| 268 | pins = "gpio27"; |
| 269 | bias-disable; /* No PULL */ |
frankcheng | 049cc9e | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 270 | /*<2019/05/10-Yuting Shih.[FAIRPHONE][MISC][COMMON][CAMERA][][]Pull up the MIPI CLK strength level when camera cannot detected sometimes */ |
| 271 | drive-strength = <8>; /* <2>; */ /* 2 MA */ |
| 272 | /*>2019/05/10-Yuting Shih.[FAIRPHONE][MISC][COMMON][CAMERA][][] */ |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 273 | }; |
| 274 | }; |
| 275 | |
| 276 | cam_sensor_mclk1_sleep: cam_sensor_mclk1_sleep { |
| 277 | /* MCLK1 */ |
| 278 | mux { |
| 279 | /* CLK, DATA */ |
| 280 | pins = "gpio27"; |
| 281 | function = "cam_mclk"; |
| 282 | }; |
| 283 | |
| 284 | config { |
| 285 | pins = "gpio27"; |
| 286 | bias-pull-down; /* PULL DOWN */ |
| 287 | drive-strength = <2>; /* 2 MA */ |
| 288 | }; |
| 289 | }; |
| 290 | |
| 291 | cam_sensor_front_default: cam_sensor_front_default { |
| 292 | /* RESET, STANDBY */ |
| 293 | mux { |
| 294 | pins = "gpio131","gpio132"; |
| 295 | function = "gpio"; |
| 296 | }; |
| 297 | |
| 298 | config { |
| 299 | pins = "gpio131","gpio132"; |
| 300 | bias-disable; /* No PULL */ |
| 301 | drive-strength = <2>; /* 2 MA */ |
| 302 | }; |
| 303 | }; |
| 304 | |
| 305 | cam_sensor_front_sleep: cam_sensor_front_sleep { |
| 306 | /* RESET, STANDBY */ |
| 307 | mux { |
| 308 | pins = "gpio131","gpio132"; |
| 309 | function = "gpio"; |
| 310 | }; |
| 311 | |
| 312 | config { |
| 313 | pins = "gpio131","gpio132"; |
| 314 | bias-disable; /* No PULL */ |
| 315 | drive-strength = <2>; /* 2 MA */ |
| 316 | }; |
| 317 | }; |
| 318 | |
| 319 | cam_sensor_mclk2_default: cam_sensor_mclk2_default { |
| 320 | /* MCLK2 */ |
| 321 | mux { |
| 322 | /* CLK, DATA */ |
| 323 | pins = "gpio28"; |
| 324 | function = "cam_mclk"; |
| 325 | }; |
| 326 | |
| 327 | config { |
| 328 | pins = "gpio28"; |
| 329 | bias-disable; /* No PULL */ |
| 330 | drive-strength = <2>; /* 2 MA */ |
| 331 | }; |
| 332 | }; |
| 333 | |
| 334 | cam_sensor_mclk2_sleep: cam_sensor_mclk2_sleep { |
| 335 | /* MCLK2 */ |
| 336 | mux { |
| 337 | /* CLK, DATA */ |
| 338 | pins = "gpio28"; |
| 339 | function = "cam_mclk"; |
| 340 | }; |
| 341 | |
| 342 | config { |
| 343 | pins = "gpio28"; |
| 344 | bias-pull-down; /* PULL DOWN */ |
| 345 | drive-strength = <2>; /* 2 MA */ |
| 346 | }; |
| 347 | }; |
| 348 | |
frankcheng | 049cc9e | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 349 | /*<2018/10/18-Yuting Shih.[FAIRPHONE][MISC][COMMON][CAMERA][][]Modified for new front camera device driver S5K4H7YX. */ |
| 350 | /*<2018/11/14-Yuting Shih.[FAIRPHONE][MISC][COMMON][CAMERA][][]VOI control pin.PCBA EP0 is GPIO123;EP1 and above is GPIO130 */ |
| 351 | cam_sensor_front1_vio_default: cam_sensor_front1_vio_default { |
| 352 | /* CAM IOVDD */ |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 353 | mux { |
frankcheng | 049cc9e | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 354 | #if 1 |
| 355 | pins = "gpio130"; |
| 356 | #else /* PCBA EP0 */ |
| 357 | pins = "gpio123"; |
| 358 | #endif |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 359 | function = "gpio"; |
| 360 | }; |
| 361 | |
| 362 | config { |
frankcheng | 049cc9e | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 363 | #if 1 |
| 364 | pins = "gpio130"; |
| 365 | #else /* PCBA EP0 */ |
| 366 | pins = "gpio123"; |
| 367 | #endif |
| 368 | bias-disable; /* No PULL */ |
| 369 | drive-strength = <2>; /* 2 MA */ |
| 370 | }; |
| 371 | }; |
| 372 | |
| 373 | cam_sensor_front1_vio_sleep: cam_sensor_front1_vio_sleep { |
| 374 | /* CAM IOVDD */ |
| 375 | mux { |
| 376 | #if 1 |
| 377 | pins = "gpio130"; |
| 378 | #else /* PCBA EP0 */ |
| 379 | pins = "gpio123"; |
| 380 | #endif |
| 381 | function = "gpio"; |
| 382 | }; |
| 383 | |
| 384 | config { |
| 385 | #if 1 |
| 386 | pins = "gpio130"; |
| 387 | #else /* PCBA EP0 */ |
| 388 | pins = "gpio123"; |
| 389 | #endif |
| 390 | bias-disable; /* No PULL */ |
| 391 | drive-strength = <2>; /* 2 MA */ |
| 392 | }; |
| 393 | }; |
| 394 | /*>2018/11/14-Yuting Shih.[FAIRPHONE][MISC][COMMON][CAMERA][][] */ |
| 395 | |
| 396 | cam_sensor_front1_vdig_default: cam_sensor_front1_vdig_default { |
| 397 | /* CAM DVDD */ |
| 398 | mux { |
| 399 | pins = "gpio46"; |
| 400 | function = "gpio"; |
| 401 | }; |
| 402 | |
| 403 | config { |
| 404 | pins = "gpio46"; |
| 405 | bias-disable; /* No PULL */ |
| 406 | drive-strength = <2>; /* 2 MA */ |
| 407 | }; |
| 408 | }; |
| 409 | |
| 410 | cam_sensor_front1_vdig_sleep: cam_sensor_front1_vdig_sleep { |
| 411 | /* CAM DVDD */ |
| 412 | mux { |
| 413 | pins = "gpio46"; |
| 414 | function = "gpio"; |
| 415 | }; |
| 416 | |
| 417 | config { |
| 418 | pins = "gpio46"; |
| 419 | bias-disable; /* No PULL */ |
| 420 | drive-strength = <2>; /* 2 MA */ |
| 421 | }; |
| 422 | }; |
| 423 | |
| 424 | cam_sensor_front1_default: cam_sensor_front1_default { |
| 425 | /* RESET, STANDBY */ |
| 426 | mux { |
| 427 | #if 1 |
| 428 | pins = "gpio129"; /* Only Reset,Non-standby GPIO */ |
| 429 | #else /* Qualcomm default */ |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 430 | pins = "gpio129", "gpio130"; |
frankcheng | 049cc9e | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 431 | #endif |
| 432 | function = "gpio"; |
| 433 | }; |
| 434 | |
| 435 | config { |
| 436 | #if 1 |
| 437 | pins = "gpio129"; /* Only Reset,Non-standby GPIO */ |
| 438 | #else /* Qualcomm default */ |
| 439 | pins = "gpio129", "gpio130"; |
| 440 | #endif |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 441 | bias-disable; /* No PULL */ |
| 442 | drive-strength = <2>; /* 2 MA */ |
| 443 | }; |
| 444 | }; |
| 445 | |
| 446 | cam_sensor_front1_sleep: cam_sensor_front1_sleep { |
| 447 | /* RESET, STANDBY */ |
| 448 | mux { |
frankcheng | 049cc9e | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 449 | #if 1 |
| 450 | pins = "gpio129"; /* Only Reset,Non-standby GPIO */ |
| 451 | #else /* Qualcomm default */ |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 452 | pins = "gpio129", "gpio130"; |
frankcheng | 049cc9e | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 453 | #endif |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 454 | function = "gpio"; |
| 455 | }; |
| 456 | |
| 457 | config { |
frankcheng | 049cc9e | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 458 | #if 1 |
| 459 | pins = "gpio129"; /* Only Reset,Non-standby GPIO */ |
| 460 | #else /* Qualcomm default */ |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 461 | pins = "gpio129", "gpio130"; |
frankcheng | 049cc9e | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 462 | #endif |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 463 | bias-disable; /* No PULL */ |
| 464 | drive-strength = <2>; /* 2 MA */ |
| 465 | }; |
| 466 | }; |
frankcheng | 049cc9e | 2020-05-09 20:59:58 +0800 | [diff] [blame^] | 467 | /*>2018/10/18-Yuting Shih.[FAIRPHONE][MISC][COMMON][CAMERA][][]. */ |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 468 | |
| 469 | pmx_adv7533_int: pmx_adv7533_int { |
| 470 | adv7533_int_active: adv7533_int_active { |
| 471 | mux { |
| 472 | pins = "gpio90"; |
| 473 | function = "gpio"; |
| 474 | }; |
| 475 | |
| 476 | config { |
| 477 | pins = "gpio90"; |
| 478 | drive-strength = <16>; |
| 479 | bias-disable; |
| 480 | }; |
| 481 | }; |
| 482 | |
| 483 | adv7533_int_suspend: adv7533_int_suspend { |
| 484 | mux { |
| 485 | pins = "gpio90"; |
| 486 | function = "gpio"; |
| 487 | }; |
| 488 | |
| 489 | config { |
| 490 | pins = "gpio90"; |
| 491 | drive-strength = <16>; |
| 492 | bias-disable; |
| 493 | }; |
| 494 | }; |
| 495 | |
| 496 | }; |
| 497 | |
louisliu | 923d320 | 2020-04-23 16:01:11 +0800 | [diff] [blame] | 498 | //<2020/04/23-louisliu, Fingerprint. Driver porting. |
| 499 | fps { |
| 500 | fps_int_active: fps_int_active { |
| 501 | mux { |
| 502 | pins = "gpio48"; |
| 503 | function = "gpio"; |
| 504 | }; |
| 505 | |
| 506 | config { |
| 507 | pins = "gpio48"; |
| 508 | drive-strength = <8>; |
| 509 | bias-pull-up; |
| 510 | }; |
| 511 | }; |
| 512 | |
| 513 | fps_int_suspend: fps_int_suspend { |
| 514 | mux { |
| 515 | pins = "gpio48"; |
| 516 | function = "gpio"; |
| 517 | }; |
| 518 | |
| 519 | config { |
| 520 | pins = "gpio48"; |
| 521 | drive-strength = <2>; |
| 522 | bias-pull-down; |
| 523 | }; |
| 524 | }; |
| 525 | |
| 526 | fps_reset_active: fps_reset_active { |
| 527 | mux { |
| 528 | pins = "gpio140"; |
| 529 | function = "gpio"; |
| 530 | }; |
| 531 | |
| 532 | config { |
| 533 | pins = "gpio140"; |
| 534 | drive-strength = <8>; |
| 535 | bias-pull-up; |
| 536 | }; |
| 537 | }; |
| 538 | |
| 539 | fps_reset_suspend1: fps_reset_suspend1 { |
| 540 | mux { |
| 541 | pins = "gpio140"; |
| 542 | function = "gpio"; |
| 543 | }; |
| 544 | |
| 545 | config { |
| 546 | pins = "gpio140"; |
| 547 | drive-strength = <2>; |
| 548 | bias-pull-down; |
| 549 | }; |
| 550 | }; |
| 551 | }; |
| 552 | //>2020/04/23-louisliu |
| 553 | |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 554 | pmx_mdss: pmx_mdss { |
jialongjhan | 7dfbf87 | 2020-04-21 20:24:23 +0800 | [diff] [blame] | 555 | |
| 556 | /*[Arima_8901][Jialong] lcm driver porting begin*/ |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 557 | mdss_dsi_active: mdss_dsi_active { |
| 558 | mux { |
jialongjhan | 7dfbf87 | 2020-04-21 20:24:23 +0800 | [diff] [blame] | 559 | pins = "gpio61", "gpio96"; |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 560 | function = "gpio"; |
| 561 | }; |
| 562 | |
| 563 | config { |
jialongjhan | 7dfbf87 | 2020-04-21 20:24:23 +0800 | [diff] [blame] | 564 | pins = "gpio61", "gpio96"; |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 565 | drive-strength = <8>; /* 8 mA */ |
| 566 | bias-disable = <0>; /* no pull */ |
| 567 | output-high; |
| 568 | }; |
| 569 | }; |
| 570 | |
| 571 | mdss_dsi_suspend: mdss_dsi_suspend { |
| 572 | mux { |
jialongjhan | 7dfbf87 | 2020-04-21 20:24:23 +0800 | [diff] [blame] | 573 | pins = "gpio61", "gpio96"; |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 574 | function = "gpio"; |
| 575 | }; |
| 576 | |
| 577 | config { |
jialongjhan | 7dfbf87 | 2020-04-21 20:24:23 +0800 | [diff] [blame] | 578 | pins = "gpio61", "gpio96"; |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 579 | drive-strength = <2>; /* 2 mA */ |
| 580 | bias-pull-down; /* pull down */ |
jialongjhan | 7dfbf87 | 2020-04-21 20:24:23 +0800 | [diff] [blame] | 581 | //output-high; |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 582 | }; |
| 583 | }; |
jialongjhan | 7dfbf87 | 2020-04-21 20:24:23 +0800 | [diff] [blame] | 584 | /*[Arima_8901][Jialong] lcm driver porting end*/ |
| 585 | |
Rashi Bindra | 771b601 | 2018-03-22 18:20:45 +0530 | [diff] [blame] | 586 | mdss_dsi_gpio: mdss_dsi_gpio { |
| 587 | mux { |
| 588 | pins = "gpio141"; |
| 589 | function = "gpio"; |
| 590 | }; |
| 591 | |
| 592 | config { |
| 593 | pins = "gpio141"; |
| 594 | drive-strength = <8>; |
| 595 | bias-pull-down; |
| 596 | output-low; |
| 597 | }; |
| 598 | }; |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 599 | }; |
| 600 | |
| 601 | pmx_mdss_te { |
| 602 | mdss_te_active: mdss_te_active { |
| 603 | mux { |
| 604 | pins = "gpio24"; |
| 605 | function = "mdp_vsync"; |
| 606 | }; |
| 607 | config { |
| 608 | pins = "gpio24"; |
| 609 | drive-strength = <2>; /* 8 mA */ |
| 610 | bias-pull-down; /* pull down*/ |
| 611 | }; |
| 612 | }; |
| 613 | |
| 614 | mdss_te_suspend: mdss_te_suspend { |
| 615 | mux { |
| 616 | pins = "gpio24"; |
| 617 | function = "mdp_vsync"; |
| 618 | }; |
| 619 | config { |
| 620 | pins = "gpio24"; |
| 621 | drive-strength = <2>; /* 2 mA */ |
| 622 | bias-pull-down; /* pull down */ |
| 623 | }; |
| 624 | }; |
| 625 | }; |
| 626 | |
Vijay Navnath Kamble | f70ff3d | 2018-07-17 17:35:48 +0530 | [diff] [blame] | 627 | ext_amp_ctrl { |
| 628 | label = "ext_amp_ctrl"; |
| 629 | ext_amp_ctrl_active: ext_amp_ctrl_active { |
| 630 | mux { |
| 631 | pins = "gpio68"; |
| 632 | function = "gpio"; |
| 633 | }; |
| 634 | config { |
| 635 | pins = "gpio68"; |
| 636 | drive-strength = <8>; /* 8 MA */ |
| 637 | bias-pull-up; /* PULL UP */ |
| 638 | output-high; |
| 639 | }; |
| 640 | }; |
| 641 | |
| 642 | ext_amp_ctrl_sleep: ext_amp_ctrl_sleep { |
| 643 | mux { |
| 644 | pins = "gpio68"; |
| 645 | function = "gpio"; |
| 646 | }; |
| 647 | configs { |
| 648 | pins = "gpio68"; |
| 649 | drive-strength = <2>; /* 2 MA */ |
| 650 | bias-pull-down; /* PULL DOWN */ |
| 651 | }; |
| 652 | }; |
| 653 | }; |
| 654 | |
Md Mansoor Ahmed | 19ca485 | 2018-04-23 11:50:38 +0530 | [diff] [blame] | 655 | cdc_dmic0_clk_act: cdc_dmic0_clk_act_default { |
| 656 | mux { |
| 657 | pins = "gpio89"; |
| 658 | function = "dmic0_clk"; |
| 659 | }; |
| 660 | |
| 661 | config { |
| 662 | pins = "gpio89"; |
| 663 | drive-strength = <8>; |
| 664 | }; |
| 665 | }; |
| 666 | |
| 667 | cdc_dmic0_clk_sus: cdc_dmic0_clk_sus_sleep { |
| 668 | mux { |
| 669 | pins = "gpio89"; |
| 670 | function = "gpio"; |
| 671 | }; |
| 672 | |
| 673 | config { |
| 674 | pins = "gpio89"; |
| 675 | drive-strength = <2>; |
| 676 | bias-disable; |
| 677 | }; |
| 678 | }; |
| 679 | |
| 680 | cdc_dmic0_data_act: cdc_dmic0_data_act_default { |
| 681 | mux { |
| 682 | pins = "gpio90"; |
| 683 | function = "dmic0_data"; |
| 684 | }; |
| 685 | |
| 686 | config { |
| 687 | pins = "gpio90"; |
| 688 | drive-strength = <8>; |
| 689 | }; |
| 690 | }; |
| 691 | |
| 692 | cdc_dmic0_data_sus: cdc_dmic0_data_sus_sleep { |
| 693 | mux { |
| 694 | pins = "gpio90"; |
| 695 | function = "gpio"; |
| 696 | }; |
| 697 | |
| 698 | config { |
| 699 | pins = "gpio90"; |
| 700 | drive-strength = <2>; |
| 701 | bias-disable; |
| 702 | }; |
| 703 | }; |
| 704 | |
| 705 | sec-tlmm-lines { |
| 706 | sec_tlmm_lines_act: sec_tlmm_lines_act { |
| 707 | mux { |
| 708 | pins = "gpio135", "gpio136", |
| 709 | "gpio137", "gpio138"; |
| 710 | function = "sec_mi2s"; |
| 711 | }; |
| 712 | |
| 713 | config { |
| 714 | pins = "gpio135", "gpio136", |
| 715 | "gpio137", "gpio138"; |
| 716 | drive-strength = <8>; |
| 717 | }; |
| 718 | }; |
| 719 | |
| 720 | sec_tlmm_lines_sus: sec_tlmm_lines_sus { |
| 721 | mux { |
| 722 | pins = "gpio135", "gpio136", |
| 723 | "gpio137", "gpio138"; |
| 724 | function = "sec_mi2s"; |
| 725 | }; |
| 726 | |
| 727 | config { |
| 728 | pins = "gpio135", "gpio136", |
| 729 | "gpio137", "gpio138"; |
| 730 | drive-strength = <2>; |
| 731 | bias-pull-down; |
| 732 | }; |
| 733 | }; |
| 734 | }; |
| 735 | |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 736 | hsuart_active: default { |
| 737 | mux { |
| 738 | pins = "gpio12", "gpio13", "gpio14", "gpio15"; |
| 739 | function = "blsp_uart4"; |
| 740 | }; |
| 741 | |
| 742 | config { |
| 743 | pins = "gpio12", "gpio13", "gpio14", "gpio15"; |
| 744 | drive-strength = <16>; |
| 745 | bias-disable; |
| 746 | }; |
| 747 | }; |
| 748 | |
| 749 | hsuart_sleep: sleep { |
| 750 | mux { |
| 751 | pins = "gpio12", "gpio13", "gpio14", "gpio15"; |
| 752 | function = "gpio"; |
| 753 | }; |
| 754 | |
| 755 | config { |
| 756 | pins = "gpio12", "gpio13", "gpio14", "gpio15"; |
| 757 | drive-strength = <2>; |
| 758 | bias-disable; |
| 759 | }; |
| 760 | }; |
| 761 | |
Shrey Vijay | 88eddb5 | 2017-11-30 14:47:52 +0530 | [diff] [blame] | 762 | blsp2_uart0_active: blsp2_uart0_active { |
| 763 | mux { |
| 764 | pins = "gpio16", "gpio17", "gpio18", "gpio19"; |
| 765 | function = "blsp_uart5"; |
| 766 | }; |
| 767 | |
| 768 | config { |
| 769 | pins = "gpio16", "gpio17", "gpio18", "gpio19"; |
| 770 | drive-strength = <16>; |
| 771 | bias-disable; |
| 772 | }; |
| 773 | }; |
| 774 | |
| 775 | blsp2_uart0_sleep: blsp2_uart0_sleep { |
| 776 | mux { |
| 777 | pins = "gpio16", "gpio17", "gpio18", "gpio19"; |
| 778 | function = "gpio"; |
| 779 | }; |
| 780 | |
| 781 | config { |
| 782 | pins = "gpio16", "gpio17", "gpio18", "gpio19"; |
| 783 | drive-strength = <2>; |
| 784 | bias-disable; |
| 785 | }; |
| 786 | }; |
| 787 | |
Venkataraman Nerellapalli | 5d54a0b | 2018-07-02 12:48:48 +0530 | [diff] [blame] | 788 | blsp2_uart1_active: blsp2_uart1_active { |
| 789 | mux { |
| 790 | pins = "gpio20", "gpio21", "gpio22", "gpio23"; |
| 791 | function = "blsp_uart6"; |
| 792 | }; |
| 793 | |
| 794 | config { |
| 795 | pins = "gpio20", "gpio21", "gpio22", "gpio23"; |
| 796 | drive-strength = <16>; |
| 797 | bias-disable; |
| 798 | }; |
| 799 | }; |
| 800 | |
| 801 | blsp2_uart1_sleep: blsp2_uart1_sleep { |
| 802 | mux { |
| 803 | pins = "gpio20", "gpio21", "gpio22", "gpio23"; |
| 804 | function = "gpio"; |
| 805 | }; |
| 806 | |
| 807 | config { |
| 808 | pins = "gpio20", "gpio21", "gpio22", "gpio23"; |
| 809 | drive-strength = <2>; |
| 810 | bias-disable; |
| 811 | }; |
| 812 | }; |
| 813 | |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 814 | /* SDC pin type */ |
| 815 | sdc1_clk_on: sdc1_clk_on { |
| 816 | config { |
| 817 | pins = "sdc1_clk"; |
| 818 | bias-disable; /* NO pull */ |
| 819 | drive-strength = <16>; /* 16 MA */ |
| 820 | }; |
| 821 | }; |
| 822 | |
| 823 | sdc1_clk_off: sdc1_clk_off { |
| 824 | config { |
| 825 | pins = "sdc1_clk"; |
| 826 | bias-disable; /* NO pull */ |
| 827 | drive-strength = <2>; /* 2 MA */ |
| 828 | }; |
| 829 | }; |
| 830 | |
| 831 | sdc1_cmd_on: sdc1_cmd_on { |
| 832 | config { |
| 833 | pins = "sdc1_cmd"; |
| 834 | bias-pull-up; /* pull up */ |
| 835 | drive-strength = <10>; /* 10 MA */ |
| 836 | }; |
| 837 | }; |
| 838 | |
| 839 | sdc1_cmd_off: sdc1_cmd_off { |
| 840 | config { |
| 841 | pins = "sdc1_cmd"; |
| 842 | num-grp-pins = <1>; |
| 843 | bias-pull-up; /* pull up */ |
| 844 | drive-strength = <2>; /* 2 MA */ |
| 845 | }; |
| 846 | }; |
| 847 | |
| 848 | sdc1_data_on: sdc1_data_on { |
| 849 | config { |
| 850 | pins = "sdc1_data"; |
| 851 | bias-pull-up; /* pull up */ |
| 852 | drive-strength = <10>; /* 10 MA */ |
| 853 | }; |
| 854 | }; |
| 855 | |
| 856 | sdc1_data_off: sdc1_data_off { |
| 857 | config { |
| 858 | pins = "sdc1_data"; |
| 859 | bias-pull-up; /* pull up */ |
| 860 | drive-strength = <2>; /* 2 MA */ |
| 861 | }; |
| 862 | }; |
| 863 | |
| 864 | sdc1_rclk_on: sdc1_rclk_on { |
| 865 | config { |
| 866 | pins = "sdc1_rclk"; |
| 867 | bias-pull-down; /* pull down */ |
| 868 | }; |
| 869 | }; |
| 870 | |
| 871 | sdc1_rclk_off: sdc1_rclk_off { |
| 872 | config { |
| 873 | pins = "sdc1_rclk"; |
| 874 | bias-pull-down; /* pull down */ |
| 875 | }; |
| 876 | }; |
| 877 | |
| 878 | sdc2_clk_on: sdc2_clk_on { |
| 879 | config { |
| 880 | pins = "sdc2_clk"; |
| 881 | drive-strength = <16>; /* 16 MA */ |
| 882 | bias-disable; /* NO pull */ |
| 883 | }; |
| 884 | }; |
| 885 | |
| 886 | sdc2_clk_off: sdc2_clk_off { |
| 887 | config { |
| 888 | pins = "sdc2_clk"; |
| 889 | bias-disable; /* NO pull */ |
| 890 | drive-strength = <2>; /* 2 MA */ |
| 891 | }; |
| 892 | }; |
| 893 | |
| 894 | sdc2_cmd_on: sdc2_cmd_on { |
| 895 | config { |
| 896 | pins = "sdc2_cmd"; |
| 897 | bias-pull-up; /* pull up */ |
| 898 | drive-strength = <10>; /* 10 MA */ |
| 899 | }; |
| 900 | }; |
| 901 | |
| 902 | sdc2_cmd_off: sdc2_cmd_off { |
| 903 | config { |
| 904 | pins = "sdc2_cmd"; |
| 905 | bias-pull-up; /* pull up */ |
| 906 | drive-strength = <2>; /* 2 MA */ |
| 907 | }; |
| 908 | }; |
| 909 | |
| 910 | sdc2_data_on: sdc2_data_on { |
| 911 | config { |
| 912 | pins = "sdc2_data"; |
| 913 | bias-pull-up; /* pull up */ |
| 914 | drive-strength = <10>; /* 10 MA */ |
| 915 | }; |
| 916 | }; |
| 917 | |
| 918 | sdc2_data_off: sdc2_data_off { |
| 919 | config { |
| 920 | pins = "sdc2_data"; |
| 921 | bias-pull-up; /* pull up */ |
| 922 | drive-strength = <2>; /* 2 MA */ |
| 923 | }; |
| 924 | }; |
| 925 | |
| 926 | sdc2_cd_on: cd_on { |
| 927 | mux { |
| 928 | pins = "gpio133"; |
| 929 | function = "gpio"; |
| 930 | }; |
| 931 | |
| 932 | config { |
| 933 | pins = "gpio133"; |
| 934 | drive-strength = <2>; |
| 935 | bias-pull-up; |
| 936 | }; |
| 937 | }; |
| 938 | |
| 939 | sdc2_cd_off: cd_off { |
| 940 | mux { |
| 941 | pins = "gpio133"; |
| 942 | function = "gpio"; |
| 943 | }; |
| 944 | |
| 945 | config { |
| 946 | pins = "gpio133"; |
| 947 | drive-strength = <2>; |
| 948 | bias-disable; |
| 949 | }; |
| 950 | }; |
| 951 | |
Md Mansoor Ahmed | 19ca485 | 2018-04-23 11:50:38 +0530 | [diff] [blame] | 952 | i2c_1 { |
| 953 | i2c_1_active: i2c_1_active { |
| 954 | mux { |
| 955 | pins = "gpio2", "gpio3"; |
| 956 | function = "blsp_i2c1"; |
| 957 | }; |
| 958 | config { |
| 959 | pins = "gpio2", "gpio3"; |
| 960 | drive-strength = <2>; |
| 961 | bias-pull-up; |
| 962 | }; |
| 963 | }; |
| 964 | |
| 965 | i2c_1_sleep: i2c_1_sleep { |
| 966 | mux { |
| 967 | pins = "gpio2", "gpio3"; |
| 968 | function = "blsp_i2c1"; |
| 969 | }; |
| 970 | config { |
| 971 | pins = "gpio2", "gpio3"; |
| 972 | drive-strength = <2>; |
| 973 | bias-disable; |
| 974 | }; |
| 975 | }; |
| 976 | }; |
| 977 | |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 978 | i2c_2 { |
| 979 | i2c_2_active: i2c_2_active { |
| 980 | /* active state */ |
| 981 | mux { |
| 982 | pins = "gpio6", "gpio7"; |
| 983 | function = "blsp_i2c2"; |
| 984 | }; |
| 985 | |
| 986 | config { |
| 987 | pins = "gpio6", "gpio7"; |
| 988 | drive-strength = <2>; |
| 989 | bias-disable; |
| 990 | }; |
| 991 | }; |
| 992 | |
| 993 | i2c_2_sleep: i2c_2_sleep { |
| 994 | /* suspended state */ |
| 995 | mux { |
| 996 | pins = "gpio6", "gpio7"; |
| 997 | function = "gpio"; |
| 998 | }; |
| 999 | |
| 1000 | config { |
| 1001 | pins = "gpio6", "gpio7"; |
| 1002 | drive-strength = <2>; |
| 1003 | bias-disable; |
| 1004 | }; |
| 1005 | }; |
| 1006 | }; |
| 1007 | |
| 1008 | i2c_3 { |
| 1009 | i2c_3_active: i2c_3_active { |
| 1010 | /* active state */ |
| 1011 | mux { |
| 1012 | pins = "gpio10", "gpio11"; |
| 1013 | function = "blsp_i2c3"; |
| 1014 | }; |
| 1015 | |
| 1016 | config { |
| 1017 | pins = "gpio10", "gpio11"; |
| 1018 | drive-strength = <2>; |
| 1019 | bias-disable; |
| 1020 | }; |
| 1021 | }; |
| 1022 | |
| 1023 | i2c_3_sleep: i2c_3_sleep { |
| 1024 | /* suspended state */ |
| 1025 | mux { |
| 1026 | pins = "gpio10", "gpio11"; |
| 1027 | function = "gpio"; |
| 1028 | }; |
| 1029 | |
| 1030 | config { |
| 1031 | pins = "gpio10", "gpio11"; |
| 1032 | drive-strength = <2>; |
| 1033 | bias-disable; |
| 1034 | }; |
| 1035 | }; |
| 1036 | }; |
| 1037 | |
| 1038 | i2c_5 { |
| 1039 | i2c_5_active: i2c_5_active { |
| 1040 | /* active state */ |
| 1041 | mux { |
| 1042 | pins = "gpio18", "gpio19"; |
| 1043 | function = "blsp_i2c5"; |
| 1044 | }; |
| 1045 | |
| 1046 | config { |
| 1047 | pins = "gpio18", "gpio19"; |
| 1048 | drive-strength = <2>; |
| 1049 | bias-disable; |
| 1050 | }; |
| 1051 | }; |
| 1052 | |
| 1053 | i2c_5_sleep: i2c_5_sleep { |
| 1054 | /* suspended state */ |
| 1055 | mux { |
| 1056 | pins = "gpio18", "gpio19"; |
| 1057 | function = "gpio"; |
| 1058 | }; |
| 1059 | |
| 1060 | config { |
| 1061 | pins = "gpio18", "gpio19"; |
| 1062 | drive-strength = <2>; |
| 1063 | bias-disable; |
| 1064 | }; |
| 1065 | }; |
| 1066 | }; |
| 1067 | |
c_pbembr | f65da36 | 2018-03-28 18:50:16 +0530 | [diff] [blame] | 1068 | nfc { |
| 1069 | nfc_int_active: nfc_int_active { |
| 1070 | /* active state */ |
| 1071 | mux { |
| 1072 | /* GPIO 17 NFC Read Interrupt */ |
| 1073 | pins = "gpio17"; |
| 1074 | function = "gpio"; |
| 1075 | }; |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 1076 | |
c_pbembr | f65da36 | 2018-03-28 18:50:16 +0530 | [diff] [blame] | 1077 | config { |
| 1078 | pins = "gpio17"; |
| 1079 | drive-strength = <2>; /* 2 MA */ |
| 1080 | bias-pull-up; |
| 1081 | }; |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 1082 | }; |
| 1083 | |
c_pbembr | f65da36 | 2018-03-28 18:50:16 +0530 | [diff] [blame] | 1084 | nfc_int_suspend: nfc_int_suspend { |
| 1085 | /* sleep state */ |
| 1086 | mux { |
| 1087 | /* GPIO 17 NFC Read Interrupt */ |
| 1088 | pins = "gpio17"; |
| 1089 | function = "gpio"; |
| 1090 | }; |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 1091 | |
c_pbembr | f65da36 | 2018-03-28 18:50:16 +0530 | [diff] [blame] | 1092 | config { |
| 1093 | pins = "gpio17"; |
| 1094 | drive-strength = <2>; /* 2 MA */ |
| 1095 | bias-pull-up; |
| 1096 | }; |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 1097 | }; |
| 1098 | |
michaellin | 0330b0e | 2019-01-29 15:08:29 +0800 | [diff] [blame] | 1099 | /*<<2019-01-29-Michael Lin-[FairPhone][NFC]Reassign ESE Enable gpio in case of collision*/ |
c_pbembr | f65da36 | 2018-03-28 18:50:16 +0530 | [diff] [blame] | 1100 | nfc_disable_active: nfc_disable_active { |
| 1101 | /* active state */ |
| 1102 | mux { |
| 1103 | /* 16: NFC ENABLE 62: FW DNLD */ |
michaellin | 0330b0e | 2019-01-29 15:08:29 +0800 | [diff] [blame] | 1104 | /* 134: ESE Enable */ |
| 1105 | pins = "gpio16", "gpio62", "gpio134"; |
c_pbembr | f65da36 | 2018-03-28 18:50:16 +0530 | [diff] [blame] | 1106 | function = "gpio"; |
| 1107 | }; |
| 1108 | |
| 1109 | config { |
michaellin | 0330b0e | 2019-01-29 15:08:29 +0800 | [diff] [blame] | 1110 | pins = "gpio16", "gpio62", "gpio134"; |
c_pbembr | f65da36 | 2018-03-28 18:50:16 +0530 | [diff] [blame] | 1111 | drive-strength = <2>; /* 2 MA */ |
| 1112 | bias-pull-up; |
| 1113 | }; |
| 1114 | }; |
| 1115 | |
| 1116 | nfc_disable_suspend: nfc_disable_suspend { |
| 1117 | /* sleep state */ |
| 1118 | mux { |
| 1119 | /* 16: NFC ENABLE 62: FW DNLD */ |
michaellin | 0330b0e | 2019-01-29 15:08:29 +0800 | [diff] [blame] | 1120 | /* 134: ESE Enable */ |
| 1121 | pins = "gpio16", "gpio62", "gpio134"; |
c_pbembr | f65da36 | 2018-03-28 18:50:16 +0530 | [diff] [blame] | 1122 | function = "gpio"; |
| 1123 | }; |
| 1124 | |
| 1125 | config { |
michaellin | 0330b0e | 2019-01-29 15:08:29 +0800 | [diff] [blame] | 1126 | pins = "gpio16", "gpio62", "gpio134"; |
c_pbembr | f65da36 | 2018-03-28 18:50:16 +0530 | [diff] [blame] | 1127 | drive-strength = <2>; /* 2 MA */ |
| 1128 | bias-disable; |
| 1129 | }; |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 1130 | }; |
| 1131 | }; |
michaellin | 0330b0e | 2019-01-29 15:08:29 +0800 | [diff] [blame] | 1132 | /*>>2019-01-29-Michael Lin-[FairPhone][NFC]Reassign ESE Enable gpio in case of collision*/ |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 1133 | |
| 1134 | wcnss_pmux_5wire { |
| 1135 | /* Active configuration of bus pins */ |
| 1136 | wcnss_default: wcnss_default { |
| 1137 | wcss_wlan2 { |
| 1138 | pins = "gpio76"; |
| 1139 | function = "wcss_wlan2"; |
| 1140 | }; |
| 1141 | wcss_wlan1 { |
| 1142 | pins = "gpio77"; |
| 1143 | function = "wcss_wlan1"; |
| 1144 | }; |
| 1145 | wcss_wlan0 { |
| 1146 | pins = "gpio78"; |
| 1147 | function = "wcss_wlan0"; |
| 1148 | }; |
| 1149 | wcss_wlan { |
| 1150 | pins = "gpio79", "gpio80"; |
| 1151 | function = "wcss_wlan"; |
| 1152 | }; |
| 1153 | |
| 1154 | config { |
| 1155 | pins = "gpio76", "gpio77", |
| 1156 | "gpio78", "gpio79", |
| 1157 | "gpio80"; |
| 1158 | drive-strength = <6>; /* 6 MA */ |
| 1159 | bias-pull-up; /* PULL UP */ |
| 1160 | }; |
| 1161 | }; |
| 1162 | |
| 1163 | wcnss_sleep: wcnss_sleep { |
| 1164 | wcss_wlan2 { |
| 1165 | pins = "gpio76"; |
| 1166 | function = "wcss_wlan2"; |
| 1167 | }; |
| 1168 | wcss_wlan1 { |
| 1169 | pins = "gpio77"; |
| 1170 | function = "wcss_wlan1"; |
| 1171 | }; |
| 1172 | wcss_wlan0 { |
| 1173 | pins = "gpio78"; |
| 1174 | function = "wcss_wlan0"; |
| 1175 | }; |
| 1176 | wcss_wlan { |
| 1177 | pins = "gpio79", "gpio80"; |
| 1178 | function = "wcss_wlan"; |
| 1179 | }; |
| 1180 | |
| 1181 | config { |
| 1182 | pins = "gpio76", "gpio77", |
| 1183 | "gpio78", "gpio79", |
| 1184 | "gpio80"; |
| 1185 | drive-strength = <2>; /* 2 MA */ |
| 1186 | bias-pull-down; /* PULL Down */ |
| 1187 | }; |
| 1188 | }; |
| 1189 | }; |
| 1190 | |
| 1191 | wcnss_pmux_gpio: wcnss_pmux_gpio { |
| 1192 | wcnss_gpio_default: wcnss_gpio_default { |
| 1193 | /* Active configuration of bus pins */ |
| 1194 | mux { |
| 1195 | /* Uses general purpose pins */ |
| 1196 | pins = "gpio76", "gpio77", |
| 1197 | "gpio78", "gpio79", |
| 1198 | "gpio80"; |
| 1199 | function = "gpio"; |
| 1200 | }; |
| 1201 | |
| 1202 | config { |
| 1203 | pins = "gpio76", "gpio77", |
| 1204 | "gpio78", "gpio79", |
| 1205 | "gpio80"; |
| 1206 | drive-strength = <6>; /* 6 MA */ |
| 1207 | bias-pull-up; /* PULL UP */ |
| 1208 | }; |
| 1209 | }; |
| 1210 | }; |
| 1211 | |
| 1212 | wcd9xxx_intr { |
| 1213 | wcd_intr_default: wcd_intr_default{ |
| 1214 | mux { |
| 1215 | pins = "gpio73"; |
| 1216 | function = "gpio"; |
| 1217 | }; |
| 1218 | |
| 1219 | config { |
| 1220 | pins = "gpio73"; |
| 1221 | drive-strength = <2>; /* 2 mA */ |
| 1222 | bias-pull-down; /* pull down */ |
| 1223 | input-enable; |
| 1224 | }; |
| 1225 | }; |
| 1226 | }; |
| 1227 | |
| 1228 | cdc_reset_ctrl { |
| 1229 | cdc_reset_sleep: cdc_reset_sleep { |
| 1230 | mux { |
| 1231 | pins = "gpio67"; |
| 1232 | function = "gpio"; |
| 1233 | }; |
| 1234 | config { |
| 1235 | pins = "gpio67"; |
| 1236 | drive-strength = <16>; |
| 1237 | bias-disable; |
| 1238 | output-low; |
| 1239 | }; |
| 1240 | }; |
| 1241 | cdc_reset_active:cdc_reset_active { |
| 1242 | mux { |
| 1243 | pins = "gpio67"; |
| 1244 | function = "gpio"; |
| 1245 | }; |
| 1246 | config { |
| 1247 | pins = "gpio67"; |
| 1248 | drive-strength = <16>; |
| 1249 | bias-pull-down; |
| 1250 | output-high; |
| 1251 | }; |
| 1252 | }; |
| 1253 | }; |
| 1254 | |
| 1255 | cdc_mclk2_pin { |
| 1256 | cdc_mclk2_sleep: cdc_mclk2_sleep { |
| 1257 | mux { |
| 1258 | pins = "gpio66"; |
| 1259 | function = "pri_mi2s"; |
| 1260 | }; |
| 1261 | config { |
| 1262 | pins = "gpio66"; |
| 1263 | drive-strength = <2>; /* 2 mA */ |
| 1264 | bias-pull-down; /* PULL DOWN */ |
| 1265 | }; |
| 1266 | }; |
| 1267 | cdc_mclk2_active: cdc_mclk2_active { |
| 1268 | mux { |
| 1269 | pins = "gpio66"; |
| 1270 | function = "pri_mi2s"; |
| 1271 | }; |
| 1272 | config { |
| 1273 | pins = "gpio66"; |
| 1274 | drive-strength = <8>; /* 8 mA */ |
| 1275 | bias-disable; /* NO PULL */ |
| 1276 | }; |
| 1277 | }; |
| 1278 | }; |
| 1279 | |
| 1280 | cdc-pdm-2-lines { |
| 1281 | cdc_pdm_lines_2_act: pdm_lines_2_on { |
| 1282 | mux { |
| 1283 | pins = "gpio70", "gpio71", "gpio72"; |
| 1284 | function = "cdc_pdm0"; |
| 1285 | }; |
| 1286 | |
| 1287 | config { |
| 1288 | pins = "gpio70", "gpio71", "gpio72"; |
| 1289 | drive-strength = <8>; |
| 1290 | }; |
| 1291 | }; |
| 1292 | |
| 1293 | cdc_pdm_lines_2_sus: pdm_lines_2_off { |
| 1294 | mux { |
| 1295 | pins = "gpio70", "gpio71", "gpio72"; |
| 1296 | function = "cdc_pdm0"; |
| 1297 | }; |
| 1298 | |
| 1299 | config { |
| 1300 | pins = "gpio70", "gpio71", "gpio72"; |
| 1301 | drive-strength = <2>; |
| 1302 | bias-disable; |
| 1303 | }; |
| 1304 | }; |
| 1305 | }; |
| 1306 | |
| 1307 | cdc-pdm-lines { |
| 1308 | cdc_pdm_lines_act: pdm_lines_on { |
| 1309 | mux { |
| 1310 | pins = "gpio69", "gpio73", "gpio74"; |
| 1311 | function = "cdc_pdm0"; |
| 1312 | }; |
| 1313 | |
| 1314 | config { |
| 1315 | pins = "gpio69", "gpio73", "gpio74"; |
| 1316 | drive-strength = <8>; |
| 1317 | }; |
| 1318 | }; |
| 1319 | cdc_pdm_lines_sus: pdm_lines_off { |
| 1320 | mux { |
| 1321 | pins = "gpio69", "gpio73", "gpio74"; |
| 1322 | function = "cdc_pdm0"; |
| 1323 | }; |
| 1324 | |
| 1325 | config { |
| 1326 | pins = "gpio69", "gpio73", "gpio74"; |
| 1327 | drive-strength = <2>; |
| 1328 | bias-disable; |
| 1329 | }; |
| 1330 | }; |
| 1331 | }; |
| 1332 | |
| 1333 | cdc-pdm-comp-lines { |
| 1334 | cdc_pdm_comp_lines_act: pdm_comp_lines_on { |
| 1335 | mux { |
| 1336 | pins = "gpio67", "gpio68"; |
| 1337 | function = "cdc_pdm0"; |
| 1338 | }; |
| 1339 | |
| 1340 | config { |
| 1341 | pins = "gpio67", "gpio68"; |
| 1342 | drive-strength = <8>; |
| 1343 | }; |
| 1344 | }; |
| 1345 | |
| 1346 | cdc_pdm_comp_lines_sus: pdm_comp_lines_off { |
| 1347 | mux { |
| 1348 | pins = "gpio67", "gpio68"; |
| 1349 | function = "cdc_pdm0"; |
| 1350 | }; |
| 1351 | |
| 1352 | config { |
| 1353 | pins = "gpio67", "gpio68"; |
| 1354 | drive-strength = <2>; |
| 1355 | bias-disable; |
| 1356 | }; |
| 1357 | }; |
| 1358 | }; |
| 1359 | |
| 1360 | cross-conn-det { |
| 1361 | cross_conn_det_act: lines_on { |
| 1362 | mux { |
| 1363 | pins = "gpio63"; |
| 1364 | function = "gpio"; |
| 1365 | }; |
| 1366 | |
| 1367 | config { |
| 1368 | pins = "gpio63"; |
| 1369 | drive-strength = <8>; |
| 1370 | output-low; |
| 1371 | bias-pull-down; |
| 1372 | }; |
| 1373 | }; |
| 1374 | |
| 1375 | cross_conn_det_sus: lines_off { |
| 1376 | mux { |
| 1377 | pins = "gpio63"; |
| 1378 | function = "gpio"; |
| 1379 | }; |
| 1380 | |
| 1381 | config { |
| 1382 | pins = "gpio63"; |
| 1383 | drive-strength = <2>; |
| 1384 | bias-pull-down; |
| 1385 | }; |
| 1386 | }; |
| 1387 | }; |
| 1388 | |
| 1389 | /* WSA VI sense */ |
| 1390 | wsa-vi { |
| 1391 | wsa_vi_on: wsa_vi_on { |
| 1392 | mux { |
| 1393 | pins = "gpio94", "gpio95"; |
| 1394 | function = "wsa_io"; |
| 1395 | }; |
| 1396 | |
| 1397 | config { |
| 1398 | pins = "gpio94", "gpio95"; |
| 1399 | drive-strength = <8>; /* 8 MA */ |
| 1400 | bias-disable; /* NO pull */ |
| 1401 | }; |
| 1402 | }; |
| 1403 | |
| 1404 | wsa_vi_off: wsa_vi_off { |
| 1405 | mux { |
| 1406 | pins = "gpio94", "gpio95"; |
| 1407 | function = "wsa_io"; |
| 1408 | }; |
| 1409 | |
| 1410 | config { |
| 1411 | pins = "gpio94", "gpio95"; |
| 1412 | drive-strength = <2>; /* 2 MA */ |
| 1413 | bias-pull-down; |
| 1414 | }; |
| 1415 | }; |
| 1416 | }; |
| 1417 | |
| 1418 | /* WSA Reset */ |
| 1419 | wsa_reset { |
| 1420 | wsa_reset_on: wsa_reset_on { |
| 1421 | mux { |
jialongjhan | 7dfbf87 | 2020-04-21 20:24:23 +0800 | [diff] [blame] | 1422 | //pins = "gpio96"; |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 1423 | function = "gpio"; |
| 1424 | }; |
| 1425 | |
| 1426 | config { |
jialongjhan | 7dfbf87 | 2020-04-21 20:24:23 +0800 | [diff] [blame] | 1427 | //pins = "gpio96"; |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 1428 | drive-strength = <2>; /* 2 MA */ |
| 1429 | output-high; |
| 1430 | }; |
| 1431 | }; |
| 1432 | |
| 1433 | wsa_reset_off: wsa_reset_off { |
| 1434 | mux { |
jialongjhan | 7dfbf87 | 2020-04-21 20:24:23 +0800 | [diff] [blame] | 1435 | //pins = "gpio96"; |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 1436 | function = "gpio"; |
| 1437 | }; |
| 1438 | |
| 1439 | config { |
jialongjhan | 7dfbf87 | 2020-04-21 20:24:23 +0800 | [diff] [blame] | 1440 | //pins = "gpio96"; |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 1441 | drive-strength = <2>; /* 2 MA */ |
jialongjhan | 7dfbf87 | 2020-04-21 20:24:23 +0800 | [diff] [blame] | 1442 | output-high; |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 1443 | }; |
| 1444 | }; |
| 1445 | }; |
| 1446 | |
| 1447 | /* WSA CLK */ |
| 1448 | wsa_clk { |
| 1449 | wsa_clk_on: wsa_clk_on { |
| 1450 | mux { |
| 1451 | pins = "gpio25"; |
| 1452 | function = "pri_mi2s_mclk_a"; |
| 1453 | }; |
| 1454 | |
| 1455 | config { |
| 1456 | pins = "gpio25"; |
| 1457 | drive-strength = <8>; /* 8 MA */ |
| 1458 | output-high; |
| 1459 | }; |
| 1460 | }; |
| 1461 | |
| 1462 | wsa_clk_off: wsa_clk_off { |
| 1463 | mux { |
| 1464 | pins = "gpio25"; |
| 1465 | function = "pri_mi2s_mclk_a"; |
| 1466 | }; |
| 1467 | |
| 1468 | config { |
| 1469 | pins = "gpio25"; |
| 1470 | drive-strength = <2>; /* 2 MA */ |
| 1471 | output-low; |
| 1472 | bias-pull-down; |
| 1473 | }; |
| 1474 | }; |
| 1475 | }; |
| 1476 | |
| 1477 | pri-tlmm-lines { |
| 1478 | pri_tlmm_lines_act: pri_tlmm_lines_act { |
| 1479 | mux { |
| 1480 | pins = "gpio91", "gpio93"; |
| 1481 | function = "pri_mi2s"; |
| 1482 | }; |
| 1483 | |
| 1484 | config { |
| 1485 | pins = "gpio91", "gpio93"; |
| 1486 | drive-strength = <8>; |
| 1487 | }; |
| 1488 | }; |
| 1489 | |
| 1490 | pri_tlmm_lines_sus: pri_tlmm_lines_sus { |
| 1491 | mux { |
| 1492 | pins = "gpio91", "gpio93"; |
| 1493 | function = "pri_mi2s"; |
| 1494 | }; |
| 1495 | |
| 1496 | config { |
| 1497 | pins = "gpio91", "gpio93"; |
| 1498 | drive-strength = <2>; |
| 1499 | bias-pull-down; |
| 1500 | }; |
| 1501 | }; |
| 1502 | }; |
| 1503 | |
| 1504 | pri-tlmm-ws-lines { |
| 1505 | pri_tlmm_ws_act: pri_tlmm_ws_act { |
| 1506 | mux { |
| 1507 | pins = "gpio92"; |
| 1508 | function = "pri_mi2s_ws"; |
| 1509 | }; |
| 1510 | |
| 1511 | config { |
| 1512 | pins = "gpio92"; |
| 1513 | drive-strength = <8>; |
| 1514 | }; |
| 1515 | }; |
| 1516 | |
| 1517 | pri_tlmm_ws_sus: pri_tlmm_ws_sus { |
| 1518 | mux { |
| 1519 | pins = "gpio92"; |
| 1520 | function = "pri_mi2s_ws"; |
| 1521 | }; |
| 1522 | |
| 1523 | config { |
| 1524 | pins = "gpio92"; |
| 1525 | drive-strength = <2>; |
| 1526 | bias-pull-down; |
| 1527 | }; |
| 1528 | }; |
| 1529 | }; |
| 1530 | |
tracychui | bab38f0 | 2020-04-29 16:24:36 +0800 | [diff] [blame] | 1531 | /*[20200429][TracyChui]Touch driver porting start*/ |
| 1532 | // spi3 { |
| 1533 | // spi3_default: spi3_default { |
| 1534 | // /* active state */ |
| 1535 | // mux { |
| 1536 | // /* MOSI, MISO, CLK */ |
| 1537 | // pins = "gpio8", "gpio9", "gpio11"; |
| 1538 | // function = "blsp_spi3"; |
| 1539 | // }; |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 1540 | |
tracychui | bab38f0 | 2020-04-29 16:24:36 +0800 | [diff] [blame] | 1541 | // config { |
| 1542 | // pins = "gpio8", "gpio9", "gpio11"; |
| 1543 | // drive-strength = <12>; /* 12 MA */ |
| 1544 | // bias-disable = <0>; /* No PULL */ |
| 1545 | // }; |
| 1546 | // }; |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 1547 | |
tracychui | bab38f0 | 2020-04-29 16:24:36 +0800 | [diff] [blame] | 1548 | // spi3_sleep: spi3_sleep { |
| 1549 | // /* suspended state */ |
| 1550 | // mux { |
| 1551 | // /* MOSI, MISO, CLK */ |
| 1552 | // pins = "gpio8", "gpio9", "gpio11"; |
| 1553 | // function = "gpio"; |
| 1554 | // }; |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 1555 | |
tracychui | bab38f0 | 2020-04-29 16:24:36 +0800 | [diff] [blame] | 1556 | // config { |
| 1557 | // pins = "gpio8", "gpio9", "gpio11"; |
| 1558 | // drive-strength = <2>; /* 2 MA */ |
| 1559 | // bias-pull-down; /* PULL Down */ |
| 1560 | // }; |
| 1561 | // }; |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 1562 | |
tracychui | bab38f0 | 2020-04-29 16:24:36 +0800 | [diff] [blame] | 1563 | // spi3_cs0_active: cs0_active { |
| 1564 | // /* CS */ |
| 1565 | // mux { |
| 1566 | // pins = "gpio10"; |
| 1567 | // function = "blsp_spi3"; |
| 1568 | // }; |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 1569 | |
tracychui | bab38f0 | 2020-04-29 16:24:36 +0800 | [diff] [blame] | 1570 | // config { |
| 1571 | // pins = "gpio10"; |
| 1572 | // drive-strength = <2>; |
| 1573 | // bias-disable = <0>; |
| 1574 | // }; |
| 1575 | // }; |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 1576 | |
tracychui | bab38f0 | 2020-04-29 16:24:36 +0800 | [diff] [blame] | 1577 | // spi3_cs0_sleep: cs0_sleep { |
| 1578 | // /* CS */ |
| 1579 | // mux { |
| 1580 | // pins = "gpio10"; |
| 1581 | // function = "gpio"; |
| 1582 | // }; |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 1583 | |
tracychui | bab38f0 | 2020-04-29 16:24:36 +0800 | [diff] [blame] | 1584 | // config { |
| 1585 | // pins = "gpio10"; |
| 1586 | // drive-strength = <2>; |
| 1587 | // bias-disable = <0>; |
| 1588 | // }; |
| 1589 | // }; |
| 1590 | // }; |
| 1591 | /*[20200429][TracyChui]Touch driver porting end*/ |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 1592 | |
Venkataraman Nerellapalli | a9ce233 | 2018-07-03 14:17:42 +0530 | [diff] [blame] | 1593 | spi6 { |
| 1594 | spi6_default: spi6_default { |
| 1595 | /* active state */ |
| 1596 | mux { |
| 1597 | /* MOSI, MISO, CLK */ |
| 1598 | pins = "gpio20", "gpio21", "gpio23"; |
| 1599 | function = "blsp_spi6"; |
| 1600 | }; |
| 1601 | |
| 1602 | config { |
| 1603 | pins = "gpio20", "gpio21", "gpio23"; |
| 1604 | drive-strength = <12>; /* 12 MA */ |
| 1605 | bias-disable = <0>; /* No PULL */ |
| 1606 | }; |
| 1607 | }; |
| 1608 | |
| 1609 | spi6_sleep: spi6_sleep { |
| 1610 | /* suspended state */ |
| 1611 | mux { |
| 1612 | /* MOSI, MISO, CLK */ |
| 1613 | pins = "gpio20", "gpio21", "gpio23"; |
| 1614 | function = "gpio"; |
| 1615 | }; |
| 1616 | |
| 1617 | config { |
| 1618 | pins = "gpio20", "gpio21", "gpio23"; |
| 1619 | drive-strength = <2>; /* 2 MA */ |
| 1620 | bias-pull-down; /* PULL Down */ |
| 1621 | }; |
| 1622 | }; |
| 1623 | |
| 1624 | spi6_cs0_active: cs0_active { |
| 1625 | /* CS */ |
| 1626 | mux { |
| 1627 | pins = "gpio22"; |
| 1628 | function = "blsp_spi6"; |
| 1629 | }; |
| 1630 | |
| 1631 | config { |
| 1632 | pins = "gpio22"; |
| 1633 | drive-strength = <2>; |
| 1634 | bias-disable = <0>; |
| 1635 | }; |
| 1636 | }; |
| 1637 | |
| 1638 | spi6_cs0_sleep: cs0_sleep { |
| 1639 | /* CS */ |
| 1640 | mux { |
| 1641 | pins = "gpio22"; |
| 1642 | function = "gpio"; |
| 1643 | }; |
| 1644 | |
| 1645 | config { |
| 1646 | pins = "gpio22"; |
| 1647 | drive-strength = <2>; |
| 1648 | bias-disable = <0>; |
| 1649 | }; |
| 1650 | }; |
| 1651 | }; |
| 1652 | |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 1653 | /* add pingrp for touchscreen */ |
Venkataraman Nerellapalli | 2d5ce98 | 2018-07-04 20:21:45 +0530 | [diff] [blame] | 1654 | ts_int_default: ts_int_default { |
| 1655 | mux { |
| 1656 | pins = "gpio65"; |
| 1657 | function = "gpio"; |
| 1658 | }; |
| 1659 | config { |
| 1660 | pins = "gpio65"; |
| 1661 | drive-strength = <16>; |
| 1662 | /*bias-pull-up;*/ |
| 1663 | input-enable; |
| 1664 | bias-disable; |
| 1665 | }; |
| 1666 | }; |
| 1667 | |
| 1668 | ts_int_output_high: ts_int_output_high { |
| 1669 | mux { |
| 1670 | pins = "gpio65"; |
| 1671 | function = "gpio"; |
| 1672 | }; |
| 1673 | config { |
| 1674 | pins = "gpio65"; |
| 1675 | output-high; |
| 1676 | }; |
| 1677 | }; |
| 1678 | |
| 1679 | ts_int_output_low: ts_int_output_low { |
| 1680 | mux { |
| 1681 | pins = "gpio65"; |
| 1682 | function = "gpio"; |
| 1683 | }; |
| 1684 | config { |
| 1685 | pins = "gpio65"; |
| 1686 | output-low; |
| 1687 | }; |
| 1688 | }; |
| 1689 | |
| 1690 | ts_int_input: ts_int_input { |
| 1691 | mux { |
| 1692 | pins = "gpio65"; |
| 1693 | function = "gpio"; |
| 1694 | }; |
| 1695 | config { |
| 1696 | pins = "gpio65"; |
| 1697 | input-enable; |
| 1698 | bias-disable; |
| 1699 | }; |
| 1700 | }; |
| 1701 | |
| 1702 | ts_rst_default: ts_rst_default { |
| 1703 | mux { |
| 1704 | pins = "gpio64"; |
| 1705 | function = "gpio"; |
| 1706 | }; |
| 1707 | config { |
| 1708 | pins = "gpio64"; |
| 1709 | drive-strength = <16>; |
| 1710 | /*bias-pull-up;*/ |
| 1711 | input-enable; |
| 1712 | bias-disable; |
| 1713 | }; |
| 1714 | }; |
| 1715 | |
| 1716 | ts_rst_output_high: ts_rst_output_high { |
| 1717 | mux { |
| 1718 | pins = "gpio64"; |
| 1719 | function = "gpio"; |
| 1720 | }; |
| 1721 | config { |
| 1722 | pins = "gpio64"; |
| 1723 | output-high; |
| 1724 | }; |
| 1725 | }; |
| 1726 | |
| 1727 | ts_rst_output_low: ts_rst_output_low { |
| 1728 | mux { |
| 1729 | pins = "gpio64"; |
| 1730 | function = "gpio"; |
| 1731 | }; |
| 1732 | config { |
| 1733 | pins = "gpio64"; |
| 1734 | output-low; |
| 1735 | }; |
| 1736 | }; |
| 1737 | |
| 1738 | ts_rst_input: ts_rst_input { |
| 1739 | mux { |
| 1740 | pins = "gpio64"; |
| 1741 | function = "gpio"; |
| 1742 | }; |
| 1743 | config { |
| 1744 | pins = "gpio64"; |
| 1745 | input-enable; |
| 1746 | bias-disable; |
| 1747 | }; |
| 1748 | }; |
| 1749 | |
| 1750 | /* add pingrp for touchscreen */ |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 1751 | pmx_ts_int_active { |
| 1752 | ts_int_active: ts_int_active { |
| 1753 | mux { |
| 1754 | pins = "gpio65"; |
| 1755 | function = "gpio"; |
| 1756 | }; |
| 1757 | |
| 1758 | config { |
| 1759 | pins = "gpio65"; |
| 1760 | drive-strength = <8>; |
| 1761 | bias-pull-up; |
| 1762 | }; |
| 1763 | }; |
| 1764 | }; |
| 1765 | |
| 1766 | pmx_ts_int_suspend { |
| 1767 | ts_int_suspend: ts_int_suspend { |
| 1768 | mux { |
| 1769 | pins = "gpio65"; |
| 1770 | function = "gpio"; |
| 1771 | }; |
| 1772 | |
| 1773 | config { |
| 1774 | pins = "gpio65"; |
| 1775 | drive-strength = <2>; |
| 1776 | bias-pull-down; |
| 1777 | }; |
| 1778 | }; |
| 1779 | }; |
| 1780 | |
| 1781 | pmx_ts_reset_active { |
| 1782 | ts_reset_active: ts_reset_active { |
| 1783 | mux { |
| 1784 | pins = "gpio64"; |
| 1785 | function = "gpio"; |
| 1786 | }; |
| 1787 | |
| 1788 | config { |
| 1789 | pins = "gpio64"; |
| 1790 | drive-strength = <8>; |
| 1791 | bias-pull-up; |
| 1792 | }; |
| 1793 | }; |
| 1794 | }; |
| 1795 | |
| 1796 | pmx_ts_reset_suspend { |
| 1797 | ts_reset_suspend: ts_reset_suspend { |
| 1798 | mux { |
| 1799 | pins = "gpio64"; |
| 1800 | function = "gpio"; |
| 1801 | }; |
| 1802 | |
| 1803 | config { |
| 1804 | pins = "gpio64"; |
| 1805 | drive-strength = <2>; |
| 1806 | bias-pull-down; |
| 1807 | }; |
| 1808 | }; |
| 1809 | }; |
| 1810 | |
| 1811 | pmx_ts_release { |
| 1812 | ts_release: ts_release { |
| 1813 | mux { |
| 1814 | pins = "gpio65", "gpio64"; |
| 1815 | function = "gpio"; |
| 1816 | }; |
| 1817 | |
| 1818 | config { |
| 1819 | pins = "gpio65", "gpio64"; |
| 1820 | drive-strength = <2>; |
| 1821 | bias-pull-down; |
| 1822 | }; |
| 1823 | }; |
| 1824 | }; |
| 1825 | |
| 1826 | tlmm_gpio_key { |
| 1827 | gpio_key_active: gpio_key_active { |
| 1828 | mux { |
| 1829 | pins = "gpio85", "gpio86", "gpio87"; |
| 1830 | function = "gpio"; |
| 1831 | }; |
| 1832 | |
| 1833 | config { |
| 1834 | pins = "gpio85", "gpio86", "gpio87"; |
| 1835 | drive-strength = <2>; |
| 1836 | bias-pull-up; |
| 1837 | }; |
| 1838 | }; |
| 1839 | |
| 1840 | gpio_key_suspend: gpio_key_suspend { |
| 1841 | mux { |
| 1842 | pins = "gpio85", "gpio86", "gpio87"; |
| 1843 | function = "gpio"; |
| 1844 | }; |
| 1845 | |
| 1846 | config { |
| 1847 | pins = "gpio85", "gpio86", "gpio87"; |
| 1848 | drive-strength = <2>; |
| 1849 | bias-pull-up; |
| 1850 | }; |
| 1851 | }; |
| 1852 | }; |
| 1853 | pmx_qdsd_clk { |
| 1854 | qdsd_clk_sdcard: clk_sdcard { |
| 1855 | config { |
| 1856 | pins = "qdsd_clk"; |
| 1857 | bias-disable;/* NO pull */ |
| 1858 | drive-strength = <16>; /* 16 MA */ |
| 1859 | }; |
| 1860 | }; |
| 1861 | qdsd_clk_trace: clk_trace { |
| 1862 | config { |
| 1863 | pins = "qdsd_clk"; |
| 1864 | bias-pull-down; /* pull down */ |
| 1865 | drive-strength = <2>; /* 2 MA */ |
| 1866 | }; |
| 1867 | }; |
| 1868 | qdsd_clk_swdtrc: clk_swdtrc { |
| 1869 | config { |
| 1870 | pins = "qdsd_clk"; |
| 1871 | bias-pull-down; /* pull down */ |
| 1872 | drive-strength = <2>; /* 2 MA */ |
| 1873 | }; |
| 1874 | }; |
| 1875 | qdsd_clk_spmi: clk_spmi { |
| 1876 | config { |
| 1877 | pins = "qdsd_clk"; |
| 1878 | bias-pull-down; /* pull down */ |
| 1879 | drive-strength = <2>; /* 2 MA */ |
| 1880 | }; |
| 1881 | }; |
| 1882 | }; |
| 1883 | |
| 1884 | pmx_qdsd_cmd { |
| 1885 | qdsd_cmd_sdcard: cmd_sdcard { |
| 1886 | config { |
| 1887 | pins = "qdsd_cmd"; |
| 1888 | bias-pull-down; /* pull down */ |
| 1889 | drive-strength = <8>; /* 8 MA */ |
| 1890 | }; |
| 1891 | }; |
| 1892 | qdsd_cmd_trace: cmd_trace { |
| 1893 | config { |
| 1894 | pins = "qdsd_cmd"; |
| 1895 | bias-pull-down; /* pull down */ |
| 1896 | drive-strength = <2>; /* 2 MA */ |
| 1897 | }; |
| 1898 | }; |
| 1899 | qdsd_cmd_swduart: cmd_uart { |
| 1900 | config { |
| 1901 | pins = "qdsd_cmd"; |
| 1902 | bias-pull-up; /* pull up */ |
| 1903 | drive-strength = <2>; /* 2 MA */ |
| 1904 | }; |
| 1905 | }; |
| 1906 | qdsd_cmd_swdtrc: cmd_swdtrc { |
| 1907 | config { |
| 1908 | pins = "qdsd_cmd"; |
| 1909 | bias-pull-up; /* pull up */ |
| 1910 | drive-strength = <2>; /* 2 MA */ |
| 1911 | }; |
| 1912 | }; |
| 1913 | qdsd_cmd_jtag: cmd_jtag { |
| 1914 | config { |
| 1915 | pins = "qdsd_cmd"; |
| 1916 | bias-disable; /* NO pull */ |
| 1917 | drive-strength = <8>; /* 8 MA */ |
| 1918 | }; |
| 1919 | }; |
| 1920 | qdsd_cmd_spmi: cmd_spmi { |
| 1921 | config { |
| 1922 | pins = "qdsd_cmd"; |
| 1923 | bias-pull-down; /* pull down */ |
| 1924 | drive-strength = <10>; /* 10 MA */ |
| 1925 | }; |
| 1926 | }; |
| 1927 | }; |
| 1928 | |
| 1929 | pmx_qdsd_data0 { |
| 1930 | qdsd_data0_sdcard: data0_sdcard { |
| 1931 | config { |
| 1932 | pins = "qdsd_data0"; |
| 1933 | bias-pull-down; /* pull down */ |
| 1934 | drive-strength = <8>; /* 8 MA */ |
| 1935 | }; |
| 1936 | }; |
| 1937 | qdsd_data0_trace: data0_trace { |
| 1938 | config { |
| 1939 | pins = "qdsd_data0"; |
| 1940 | bias-pull-down; /* pull down */ |
| 1941 | drive-strength = <8>; /* 8 MA */ |
| 1942 | }; |
| 1943 | }; |
| 1944 | qdsd_data0_swduart: data0_uart { |
| 1945 | config { |
| 1946 | pins = "qdsd_data0"; |
| 1947 | bias-pull-down; /* pull down */ |
| 1948 | drive-strength = <2>; /* 2 MA */ |
| 1949 | }; |
| 1950 | }; |
| 1951 | qdsd_data0_swdtrc: data0_swdtrc { |
| 1952 | config { |
| 1953 | pins = "qdsd_data0"; |
| 1954 | bias-pull-down; /* pull down */ |
| 1955 | drive-strength = <2>; /* 2 MA */ |
| 1956 | }; |
| 1957 | }; |
| 1958 | qdsd_data0_jtag: data0_jtag { |
| 1959 | config { |
| 1960 | pins = "qdsd_data0"; |
| 1961 | bias-pull-up; /* pull up */ |
| 1962 | drive-strength = <2>; /* 2 MA */ |
| 1963 | }; |
| 1964 | }; |
| 1965 | qdsd_data0_spmi: data0_spmi { |
| 1966 | config { |
| 1967 | pins = "qdsd_data0"; |
| 1968 | bias-pull-down; /* pull down */ |
| 1969 | drive-strength = <2>; /* 2 MA */ |
| 1970 | }; |
| 1971 | }; |
| 1972 | }; |
| 1973 | |
| 1974 | pmx_qdsd_data1 { |
| 1975 | qdsd_data1_sdcard: data1_sdcard { |
| 1976 | config { |
| 1977 | pins = "qdsd_data1"; |
| 1978 | bias-pull-down; /* pull down */ |
| 1979 | drive-strength = <8>; /* 8 MA */ |
| 1980 | }; |
| 1981 | }; |
| 1982 | qdsd_data1_trace: data1_trace { |
| 1983 | config { |
| 1984 | pins = "qdsd_data1"; |
| 1985 | bias-pull-down; /* pull down */ |
| 1986 | drive-strength = <8>; /* 8 MA */ |
| 1987 | }; |
| 1988 | }; |
| 1989 | qdsd_data1_swduart: data1_uart { |
| 1990 | config { |
| 1991 | pins = "qdsd_data1"; |
| 1992 | bias-pull-down; /* pull down */ |
| 1993 | drive-strength = <2>; /* 2 MA */ |
| 1994 | }; |
| 1995 | }; |
| 1996 | qdsd_data1_swdtrc: data1_swdtrc { |
| 1997 | config { |
| 1998 | pins = "qdsd_data1"; |
| 1999 | bias-pull-down; /* pull down */ |
| 2000 | drive-strength = <2>; /* 2 MA */ |
| 2001 | }; |
| 2002 | }; |
| 2003 | qdsd_data1_jtag: data1_jtag { |
| 2004 | config { |
| 2005 | pins = "qdsd_data1"; |
| 2006 | bias-pull-down; /* pull down */ |
| 2007 | drive-strength = <2>; /* 2 MA */ |
| 2008 | }; |
| 2009 | }; |
| 2010 | }; |
| 2011 | |
| 2012 | pmx_qdsd_data2 { |
| 2013 | qdsd_data2_sdcard: data2_sdcard { |
| 2014 | config { |
| 2015 | pins = "qdsd_data2"; |
| 2016 | bias-pull-down; /* pull down */ |
| 2017 | drive-strength = <8>; /* 8 MA */ |
| 2018 | }; |
| 2019 | }; |
| 2020 | qdsd_data2_trace: data2_trace { |
| 2021 | config { |
| 2022 | pins = "qdsd_data2"; |
| 2023 | bias-pull-down; /* pull down */ |
| 2024 | drive-strength = <8>; /* 8 MA */ |
| 2025 | }; |
| 2026 | }; |
| 2027 | qdsd_data2_swduart: data2_uart { |
| 2028 | config { |
| 2029 | pins = "qdsd_data2"; |
| 2030 | bias-pull-down; /* pull down */ |
| 2031 | drive-strength = <2>; /* 2 MA */ |
| 2032 | }; |
| 2033 | }; |
| 2034 | qdsd_data2_swdtrc: data2_swdtrc { |
| 2035 | config { |
| 2036 | pins = "qdsd_data2"; |
| 2037 | bias-pull-down; /* pull down */ |
| 2038 | drive-strength = <2>; /* 2 MA */ |
| 2039 | }; |
| 2040 | }; |
| 2041 | qdsd_data2_jtag: data2_jtag { |
| 2042 | config { |
| 2043 | pins = "qdsd_data2"; |
| 2044 | bias-pull-up; /* pull up */ |
| 2045 | drive-strength = <8>; /* 8 MA */ |
| 2046 | }; |
| 2047 | }; |
| 2048 | }; |
| 2049 | |
| 2050 | pmx_qdsd_data3 { |
| 2051 | qdsd_data3_sdcard: data3_sdcard { |
| 2052 | config { |
| 2053 | pins = "qdsd_data3"; |
| 2054 | bias-pull-down; /* pull down */ |
| 2055 | drive-strength = <8>; /* 8 MA */ |
| 2056 | }; |
| 2057 | }; |
| 2058 | qdsd_data3_trace: data3_trace { |
| 2059 | config { |
| 2060 | pins = "qdsd_data3"; |
| 2061 | bias-pull-down; /* pull down */ |
| 2062 | drive-strength = <8>; /* 8 MA */ |
| 2063 | }; |
| 2064 | }; |
| 2065 | qdsd_data3_swduart: data3_uart { |
| 2066 | config { |
| 2067 | pins = "qdsd_data3"; |
| 2068 | bias-pull-up; /* pull up */ |
| 2069 | drive-strength = <2>; /* 2 MA */ |
| 2070 | }; |
| 2071 | }; |
| 2072 | qdsd_data3_swdtrc: data3_swdtrc { |
| 2073 | config { |
| 2074 | pins = "qdsd_data3"; |
| 2075 | bias-pull-up; /* pull up */ |
| 2076 | drive-strength = <2>; /* 2 MA */ |
| 2077 | }; |
| 2078 | }; |
| 2079 | qdsd_data3_jtag: data3_jtag { |
| 2080 | config { |
| 2081 | pins = "qdsd_data3"; |
| 2082 | bias-pull-up; /* pull up */ |
| 2083 | drive-strength = <2>; /* 2 MA */ |
| 2084 | }; |
| 2085 | }; |
| 2086 | qdsd_data3_spmi: data3_spmi { |
| 2087 | config { |
| 2088 | pins = "qdsd_data3"; |
| 2089 | bias-pull-down; /* pull down */ |
| 2090 | drive-strength = <8>; /* 8 MA */ |
| 2091 | }; |
| 2092 | }; |
| 2093 | }; |
| 2094 | |
| 2095 | typec_ssmux_config: typec_ssmux_config { |
| 2096 | mux { |
| 2097 | pins = "gpio139"; |
| 2098 | function = "gpio"; |
| 2099 | }; |
| 2100 | |
| 2101 | config { |
| 2102 | pins = "gpio139"; |
| 2103 | drive-strength = <2>; |
| 2104 | bias-disable; |
| 2105 | }; |
| 2106 | }; |
Sriharsha Allenki | 26d7161 | 2018-06-01 15:22:38 +0530 | [diff] [blame] | 2107 | |
| 2108 | ssusb_mode_sel: ssusb_mode_sel { |
| 2109 | mux { |
| 2110 | pins = "gpio12"; |
| 2111 | function = "gpio"; |
| 2112 | }; |
| 2113 | |
| 2114 | config { |
| 2115 | pins = "gpio12"; |
| 2116 | drive-strength = <2>; |
| 2117 | bias-disable; |
| 2118 | input-disable; |
| 2119 | }; |
| 2120 | }; |
Srinivas Ramana | 3cac278 | 2017-09-13 16:31:17 +0530 | [diff] [blame] | 2121 | }; |
| 2122 | }; |