blob: 79fb41c8cceb654ad656a791521009b54ffa167c [file] [log] [blame]
Abhishek Jain3d39e542018-05-11 18:36:41 +05301/*
2 * Copyright (c) 2015, 2018, The Linux Foundation. All rights reserved.
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
14cci {
15 cci0_active: cci0_active {
16 /* cci0 active state */
17 mux {
18 /* CLK, DATA */
19 pins = "gpio29", "gpio30";
20 function = "cci_i2c";
21 };
22
23 config {
24 pins = "gpio29", "gpio30";
25 drive-strength = <2>; /* 2 MA */
26 bias-disable; /* No PULL */
27 };
28 };
29
30 cci0_suspend: cci0_suspend {
31 /* cci0 suspended state */
32 mux {
33 /* CLK, DATA */
34 pins = "gpio29", "gpio30";
35 function = "cci_i2c";
36 };
37
38 config {
39 pins = "gpio29", "gpio30";
40 drive-strength = <2>; /* 2 MA */
41 bias-disable; /* No PULL */
42 };
43 };
44
45 cci1_active: cci1_active {
46 /* cci1 active state */
47 mux {
48 /* CLK, DATA */
49 pins = "gpio31", "gpio32";
50 function = "cci_i2c";
51 };
52
53 config {
54 pins = "gpio31", "gpio32";
55 drive-strength = <2>; /* 2 MA */
56 bias-disable; /* No PULL */
57 };
58 };
59
60 cci1_suspend: cci1_suspend {
61 /* cci1 suspended state */
62 mux {
63 /* CLK, DATA */
64 pins = "gpio31", "gpio32";
65 function = "cci_i2c";
66 };
67
68 config {
69 pins = "gpio31", "gpio32";
70 drive-strength = <2>; /* 2 MA */
71 bias-disable; /* No PULL */
72 };
73 };
74};
75
76/*sensors */
77cam_sensor_mclk0_default: cam_sensor_mclk0_default {
78 /* MCLK0 */
79 mux {
80 /* CLK, DATA */
81 pins = "gpio26";
82 function = "cam_mclk";
83 };
84
85 config {
86 pins = "gpio26";
87 bias-disable; /* No PULL */
88 drive-strength = <2>; /* 2 MA */
89 };
90};
91
92cam_sensor_mclk0_sleep: cam_sensor_mclk0_sleep {
93 /* MCLK0 */
94 mux {
95 /* CLK, DATA */
96 pins = "gpio26";
97 function = "cam_mclk";
98 };
99
100 config {
101 pins = "gpio26";
102 bias-pull-down; /* PULL DOWN */
103 drive-strength = <2>; /* 2 MA */
104 };
105};
106
107cam_sensor_rear_default: cam_sensor_rear_default {
108 /* RESET, STANDBY */
109 mux {
110 pins = "gpio36", "gpio35";
111 function = "gpio";
112 };
113
114 config {
115 pins = "gpio36","gpio35";
116 bias-disable; /* No PULL */
117 drive-strength = <2>; /* 2 MA */
118 };
119};
120
121cam_sensor_rear_sleep: cam_sensor_rear_sleep {
122 /* RESET, STANDBY */
123 mux {
124 pins = "gpio36","gpio35";
125 function = "gpio";
126 };
127
128 config {
129 pins = "gpio36","gpio35";
130 bias-disable; /* No PULL */
131 drive-strength = <2>; /* 2 MA */
132 };
133};
134
135cam_sensor_rear_vdig: cam_sensor_rear_vdig {
136 /* VDIG */
137 mux {
138 pins = "gpio62";
139 function = "gpio";
140 };
141
142 config {
143 pins = "gpio62";
144 bias-disable; /* No PULL */
145 drive-strength = <2>; /* 2 MA */
146 };
147};
148
149cam_sensor_rear_vdig_sleep: cam_sensor_rear_vdig_sleep {
150 /* VDIG */
151 mux {
152 pins = "gpio62";
153 function = "gpio";
154 };
155
156 config {
157 pins = "gpio62";
158 bias-disable; /* No PULL */
159 drive-strength = <2>; /* 2 MA */
160 };
161};
162
Samyukta Mogilyafdb0a62018-09-25 15:19:04 +0530163cam_sensor_rear_vdig_qm215: cam_sensor_rear_vdig_qm215 {
164 /* VDIG */
165 mux {
166 pins = "gpio25";
167 function = "gpio";
168 };
169
170 config {
171 pins = "gpio25";
172 output-high;
173 drive-strength = <2>; /* 2 MA */
174 };
175};
176
177cam_sensor_rear_vdig_sleep_qm215: cam_sensor_rear_vdig_sleep_qm215 {
178 /* VDIG */
179 mux {
180 pins = "gpio25";
181 function = "gpio";
182 };
183
184 config {
185 pins = "gpio25";
186 output-low;
187 drive-strength = <2>; /* 2 MA */
188 };
189};
Abhishek Jain3d39e542018-05-11 18:36:41 +0530190cam_sensor_mclk1_default: cam_sensor_mclk1_default {
191 /* MCLK1 */
192 mux {
193 /* CLK, DATA */
194 pins = "gpio27";
195 function = "cam_mclk";
196 };
197
198 config {
199 pins = "gpio27";
200 bias-disable; /* No PULL */
201 drive-strength = <2>; /* 2 MA */
202 };
203};
204
205cam_sensor_mclk1_sleep: cam_sensor_mclk1_sleep {
206 /* MCLK1 */
207 mux {
208 /* CLK, DATA */
209 pins = "gpio27";
210 function = "cam_mclk";
211 };
212
213 config {
214 pins = "gpio27";
215 bias-pull-down; /* PULL DOWN */
216 drive-strength = <2>; /* 2 MA */
217 };
218};
219
220cam_sensor_front_default: cam_sensor_front_default {
221 /* RESET, STANDBY */
222 mux {
223 pins = "gpio38","gpio50";
224 function = "gpio";
225 };
226
227 config {
228 pins = "gpio38","gpio50";
229 bias-disable; /* No PULL */
230 drive-strength = <2>; /* 2 MA */
231 };
232};
233
234cam_sensor_front_sleep: cam_sensor_front_sleep {
235 /* RESET, STANDBY */
236 mux {
237 pins = "gpio38","gpio50";
238 function = "gpio";
239 };
240
241 config {
242 pins = "gpio38","gpio50";
243 bias-disable; /* No PULL */
244 drive-strength = <2>; /* 2 MA */
245 };
246};
247
248cam_sensor_mclk2_default: cam_sensor_mclk2_default {
249 /* MCLK2 */
250 mux {
251 /* CLK, DATA */
252 pins = "gpio28";
253 function = "cam_mclk";
254 };
255
256 config {
257 pins = "gpio28";
258 bias-disable; /* No PULL */
259 drive-strength = <2>; /* 2 MA */
260 };
261};
262
263cam_sensor_mclk2_sleep: cam_sensor_mclk2_sleep {
264 /* MCLK2 */
265 mux {
266 /* CLK, DATA */
267 pins = "gpio28";
268 function = "cam_mclk";
269 };
270
271 config {
272 pins = "gpio28";
273 bias-pull-down; /* PULL DOWN */
274 drive-strength = <2>; /* 2 MA */
275 };
276};
277
278cam_sensor_front1_default: cam_sensor_front1_default {
279 /* RESET, STANDBY */
280 mux {
281 pins = "gpio40", "gpio39";
282 function = "gpio";
283 };
284
285 config {
286 pins = "gpio40", "gpio39";
287 bias-disable; /* No PULL */
288 drive-strength = <2>; /* 2 MA */
289 };
290};
291
292cam_sensor_front1_sleep: cam_sensor_front1_sleep {
293 /* RESET, STANDBY */
294 mux {
295 pins = "gpio40", "gpio39";
296 function = "gpio";
297 };
298
299 config {
300 pins = "gpio40", "gpio39";
301 bias-disable; /* No PULL */
302 drive-strength = <2>; /* 2 MA */
303 };
304};