Rohit kumar | 75f5ed2 | 2017-11-21 18:21:03 +0530 | [diff] [blame] | 1 | /* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved. |
Rohit Kumar | 1405128 | 2017-07-12 11:18:48 +0530 | [diff] [blame] | 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | */ |
| 12 | |
| 13 | &soc { |
| 14 | lpi_tlmm: lpi_pinctrl@62b40000 { |
| 15 | compatible = "qcom,lpi-pinctrl"; |
| 16 | reg = <0x62b40000 0x0>; |
| 17 | qcom,num-gpios = <32>; |
| 18 | gpio-controller; |
| 19 | #gpio-cells = <2>; |
| 20 | |
Rohit kumar | 75f5ed2 | 2017-11-21 18:21:03 +0530 | [diff] [blame] | 21 | lpi_mclk0_active: lpi_mclk0_active { |
| 22 | mux { |
| 23 | pins = "gpio19"; |
| 24 | function = "func1"; |
| 25 | }; |
| 26 | |
| 27 | config { |
| 28 | pins = "gpio19"; |
| 29 | drive-strength = <8>; |
| 30 | bias-disable; |
| 31 | output-low; |
| 32 | }; |
| 33 | }; |
| 34 | |
| 35 | lpi_mclk0_sleep: lpi_mclk0_sleep { |
| 36 | mux { |
| 37 | pins = "gpio19"; |
| 38 | function = "func1"; |
| 39 | }; |
| 40 | |
| 41 | config { |
| 42 | pins = "gpio19"; |
| 43 | drive-strength = <2>; |
| 44 | bias-disable; |
| 45 | bias-pull-down; |
| 46 | }; |
| 47 | }; |
| 48 | |
Rohit Kumar | 1405128 | 2017-07-12 11:18:48 +0530 | [diff] [blame] | 49 | cdc_pdm_clk_active: cdc_pdm_clk_active { |
| 50 | mux { |
| 51 | pins = "gpio18"; |
| 52 | function = "func2"; |
| 53 | }; |
| 54 | |
| 55 | config { |
| 56 | pins = "gpio18"; |
Walter Yang | a421145 | 2017-12-01 08:20:21 +0800 | [diff] [blame] | 57 | drive-strength = <4>; |
Rohit kumar | 2a74522 | 2017-10-13 23:45:50 +0530 | [diff] [blame] | 58 | output-low; |
Rohit Kumar | 1405128 | 2017-07-12 11:18:48 +0530 | [diff] [blame] | 59 | }; |
| 60 | }; |
| 61 | |
| 62 | cdc_pdm_clk_sleep: cdc_pdm_clk_sleep { |
| 63 | mux { |
| 64 | pins = "gpio18"; |
| 65 | function = "func2"; |
| 66 | }; |
| 67 | |
| 68 | config { |
| 69 | pins = "gpio18"; |
| 70 | drive-strength = <2>; |
| 71 | bias-disable; |
| 72 | output-low; |
| 73 | }; |
| 74 | }; |
| 75 | |
| 76 | cdc_pdm_sync_active: cdc_pdm_sync_active { |
| 77 | mux { |
| 78 | pins = "gpio19"; |
| 79 | function = "func3"; |
| 80 | }; |
| 81 | |
| 82 | config { |
| 83 | pins = "gpio19"; |
Walter Yang | a421145 | 2017-12-01 08:20:21 +0800 | [diff] [blame] | 84 | drive-strength = <4>; |
Rohit kumar | 2a74522 | 2017-10-13 23:45:50 +0530 | [diff] [blame] | 85 | output-low; |
Rohit Kumar | 1405128 | 2017-07-12 11:18:48 +0530 | [diff] [blame] | 86 | }; |
| 87 | }; |
| 88 | |
| 89 | cdc_pdm_sync_sleep: cdc_pdm_sync_sleep { |
| 90 | mux { |
| 91 | pins = "gpio19"; |
| 92 | function = "func3"; |
| 93 | }; |
| 94 | |
| 95 | config { |
| 96 | pins = "gpio19"; |
| 97 | drive-strength = <2>; |
| 98 | bias-disable; |
| 99 | output-low; |
| 100 | }; |
| 101 | }; |
| 102 | |
| 103 | cdc_pdm_rx0_active: cdc_pdm_rx0_active { |
| 104 | mux { |
| 105 | pins = "gpio21"; |
| 106 | function = "func2"; |
| 107 | }; |
| 108 | |
| 109 | config { |
| 110 | pins = "gpio21"; |
Walter Yang | a421145 | 2017-12-01 08:20:21 +0800 | [diff] [blame] | 111 | drive-strength = <4>; |
Rohit kumar | 2a74522 | 2017-10-13 23:45:50 +0530 | [diff] [blame] | 112 | output-low; |
Rohit Kumar | 1405128 | 2017-07-12 11:18:48 +0530 | [diff] [blame] | 113 | }; |
| 114 | }; |
| 115 | |
| 116 | cdc_pdm_rx0_sleep: cdc_pdm_rx0_sleep { |
| 117 | mux { |
| 118 | pins = "gpio21"; |
| 119 | function = "func2"; |
| 120 | }; |
| 121 | |
| 122 | config { |
| 123 | pins = "gpio21"; |
| 124 | drive-strength = <2>; |
| 125 | bias-disable; |
| 126 | output-low; |
| 127 | }; |
| 128 | }; |
| 129 | |
| 130 | cdc_pdm_rx1_2_active: cdc_pdm_rx1_2_active { |
| 131 | mux { |
| 132 | pins = "gpio23", "gpio25"; |
| 133 | function = "func1"; |
| 134 | }; |
| 135 | |
| 136 | config { |
| 137 | pins = "gpio23", "gpio25"; |
Walter Yang | a421145 | 2017-12-01 08:20:21 +0800 | [diff] [blame] | 138 | drive-strength = <4>; |
Rohit kumar | 2a74522 | 2017-10-13 23:45:50 +0530 | [diff] [blame] | 139 | output-low; |
Rohit Kumar | 1405128 | 2017-07-12 11:18:48 +0530 | [diff] [blame] | 140 | }; |
| 141 | }; |
| 142 | |
| 143 | cdc_pdm_rx1_2_sleep: cdc_pdm_rx1_2_sleep { |
| 144 | mux { |
| 145 | pins = "gpio23", "gpio25"; |
| 146 | function = "func1"; |
| 147 | }; |
| 148 | |
| 149 | config { |
| 150 | pins = "gpio23", "gpio25"; |
| 151 | drive-strength = <2>; |
| 152 | bias-disable; |
| 153 | output-low; |
| 154 | }; |
| 155 | }; |
| 156 | |
| 157 | cdc_pdm_2_gpios_active: cdc_pdm_2_gpios_active { |
| 158 | mux { |
| 159 | pins = "gpio20"; |
| 160 | function = "func2"; |
| 161 | }; |
| 162 | |
| 163 | config { |
| 164 | pins = "gpio20"; |
| 165 | drive-strength = <8>; |
| 166 | }; |
| 167 | }; |
| 168 | |
| 169 | cdc_pdm_2_gpios_sleep: cdc_pdm_2_gpios_sleep { |
| 170 | mux { |
| 171 | pins = "gpio20"; |
| 172 | function = "func2"; |
| 173 | }; |
| 174 | |
| 175 | config { |
| 176 | pins = "gpio20"; |
| 177 | drive-strength = <2>; |
| 178 | bias-disable; |
| 179 | }; |
| 180 | }; |
| 181 | |
| 182 | cdc_rx0_comp_active: cdc_pdm_rx0_comp_active { |
| 183 | mux { |
| 184 | pins = "gpio22"; |
| 185 | function = "func2"; |
| 186 | }; |
| 187 | |
| 188 | config { |
| 189 | pins = "gpio22"; |
Walter Yang | a421145 | 2017-12-01 08:20:21 +0800 | [diff] [blame] | 190 | drive-strength = <4>; |
Rohit Kumar | 1405128 | 2017-07-12 11:18:48 +0530 | [diff] [blame] | 191 | }; |
| 192 | }; |
| 193 | |
| 194 | cdc_rx0_comp_sleep: cdc_pdm_rx0_comp_sleep { |
| 195 | mux { |
| 196 | pins = "gpio22"; |
| 197 | function = "func2"; |
| 198 | }; |
| 199 | |
| 200 | config { |
| 201 | pins = "gpio22"; |
| 202 | drive-strength = <2>; |
| 203 | bias-disable; |
| 204 | }; |
| 205 | }; |
| 206 | |
| 207 | cdc_rx1_comp_active: cdc_pdm_rx1_comp_active { |
| 208 | mux { |
| 209 | pins = "gpio24"; |
| 210 | function = "func1"; |
| 211 | }; |
| 212 | |
| 213 | config { |
| 214 | pins = "gpio24"; |
Walter Yang | a421145 | 2017-12-01 08:20:21 +0800 | [diff] [blame] | 215 | drive-strength = <4>; |
Rohit Kumar | 1405128 | 2017-07-12 11:18:48 +0530 | [diff] [blame] | 216 | }; |
| 217 | }; |
| 218 | |
| 219 | cdc_rx1_comp_sleep: cdc_pdm_rx1_comp_sleep { |
| 220 | mux { |
| 221 | pins = "gpio24"; |
| 222 | function = "func1"; |
| 223 | }; |
| 224 | |
| 225 | config { |
| 226 | pins = "gpio24"; |
| 227 | drive-strength = <2>; |
| 228 | bias-disable; |
| 229 | }; |
| 230 | }; |
| 231 | |
| 232 | lpi_cdc_reset_active: lpi_cdc_reset_active { |
| 233 | mux { |
| 234 | pins = "gpio29"; |
| 235 | function = "func2"; |
| 236 | }; |
| 237 | config { |
| 238 | pins = "gpio29"; |
| 239 | drive-strength = <16>; |
| 240 | output-high; |
| 241 | }; |
| 242 | }; |
| 243 | |
| 244 | lpi_cdc_reset_sleep: lpi_cdc_reset_sleep { |
| 245 | mux { |
| 246 | pins = "gpio29"; |
| 247 | function = "func2"; |
| 248 | }; |
| 249 | |
| 250 | config { |
| 251 | pins = "gpio29"; |
| 252 | drive-strength = <16>; |
| 253 | bias-disable; |
| 254 | output-low; |
| 255 | }; |
| 256 | }; |
| 257 | |
| 258 | cdc_dmic12_gpios_active: dmic12_gpios_active { |
| 259 | mux { |
| 260 | pins = "gpio26", "gpio28"; |
| 261 | function = "func1"; |
| 262 | }; |
| 263 | |
| 264 | config { |
| 265 | pins = "gpio26", "gpio28"; |
| 266 | drive-strength = <8>; |
| 267 | output-high; |
| 268 | }; |
| 269 | }; |
| 270 | |
| 271 | cdc_dmic12_gpios_sleep: dmic12_gpios_sleep { |
| 272 | mux { |
| 273 | pins = "gpio26", "gpio28"; |
| 274 | function = "func1"; |
| 275 | }; |
| 276 | |
| 277 | config { |
| 278 | pins = "gpio26", "gpio28"; |
| 279 | drive-strength = <2>; |
| 280 | bias-disable; |
| 281 | output-low; |
| 282 | }; |
| 283 | }; |
| 284 | |
| 285 | cdc_dmic34_gpios_active: dmic34_gpios_active { |
| 286 | mux { |
| 287 | pins = "gpio27", "gpio29"; |
| 288 | function = "func1"; |
| 289 | }; |
| 290 | |
| 291 | config { |
| 292 | pins = "gpio27", "gpio29"; |
| 293 | drive-strength = <8>; |
| 294 | input-enable; |
| 295 | }; |
| 296 | }; |
| 297 | |
| 298 | cdc_dmic34_gpios_sleep: dmic34_gpios_sleep { |
| 299 | mux { |
| 300 | pins = "gpio27", "gpio29"; |
| 301 | function = "func1"; |
| 302 | }; |
| 303 | |
| 304 | config { |
| 305 | pins = "gpio27", "gpio29"; |
| 306 | drive-strength = <2>; |
| 307 | pull-down; |
| 308 | input-enable; |
| 309 | }; |
| 310 | }; |
| 311 | }; |
| 312 | }; |