blob: 948c51d8761cc5b1899aea6793c9793987caf431 [file] [log] [blame]
Rohit kumar75f5ed22017-11-21 18:21:03 +05301/* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
Rohit Kumar14051282017-07-12 11:18:48 +05302 *
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 kumar75f5ed22017-11-21 18:21:03 +053021 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 Kumar14051282017-07-12 11:18:48 +053049 cdc_pdm_clk_active: cdc_pdm_clk_active {
50 mux {
51 pins = "gpio18";
52 function = "func2";
53 };
54
55 config {
56 pins = "gpio18";
Walter Yanga4211452017-12-01 08:20:21 +080057 drive-strength = <4>;
Rohit kumar2a745222017-10-13 23:45:50 +053058 output-low;
Rohit Kumar14051282017-07-12 11:18:48 +053059 };
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 Yanga4211452017-12-01 08:20:21 +080084 drive-strength = <4>;
Rohit kumar2a745222017-10-13 23:45:50 +053085 output-low;
Rohit Kumar14051282017-07-12 11:18:48 +053086 };
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 Yanga4211452017-12-01 08:20:21 +0800111 drive-strength = <4>;
Rohit kumar2a745222017-10-13 23:45:50 +0530112 output-low;
Rohit Kumar14051282017-07-12 11:18:48 +0530113 };
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 Yanga4211452017-12-01 08:20:21 +0800138 drive-strength = <4>;
Rohit kumar2a745222017-10-13 23:45:50 +0530139 output-low;
Rohit Kumar14051282017-07-12 11:18:48 +0530140 };
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 Yanga4211452017-12-01 08:20:21 +0800190 drive-strength = <4>;
Rohit Kumar14051282017-07-12 11:18:48 +0530191 };
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 Yanga4211452017-12-01 08:20:21 +0800215 drive-strength = <4>;
Rohit Kumar14051282017-07-12 11:18:48 +0530216 };
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};