Lines Matching +full:0 +full:x3500
28 #define OV5675_REG_CHIP_ID 0x300a
29 #define OV5675_CHIP_ID 0x5675
31 #define OV5675_REG_MODE_SELECT 0x0100
32 #define OV5675_MODE_STANDBY 0x00
33 #define OV5675_MODE_STREAMING 0x01
36 #define OV5675_REG_VTS 0x380e
37 #define OV5675_VTS_30FPS 0x07e4
38 #define OV5675_VTS_30FPS_MIN 0x07e4
39 #define OV5675_VTS_MAX 0x7fff
42 #define OV5675_REG_HTS 0x380c
45 #define OV5675_REG_EXPOSURE 0x3500
51 #define OV5675_REG_ANALOG_GAIN 0x3508
57 #define OV5675_REG_DIGITAL_GAIN 0x350a
58 #define OV5675_REG_MWB_R_GAIN 0x5019
59 #define OV5675_REG_MWB_G_GAIN 0x501b
60 #define OV5675_REG_MWB_B_GAIN 0x501d
67 #define OV5675_REG_GROUP_ACCESS 0x3208
68 #define OV5675_GROUP_HOLD_START 0x0
69 #define OV5675_GROUP_HOLD_END 0x10
70 #define OV5675_GROUP_HOLD_LAUNCH 0xa0
73 #define OV5675_REG_TEST_PATTERN 0x4503
78 #define OV5675_REG_FORMAT1 0x3820
79 #define OV5675_REG_FORMAT2 0x373d
133 {0x0103, 0x01},
134 {0x0100, 0x00},
135 {0x0300, 0x04},
136 {0x0302, 0x8d},
137 {0x0303, 0x00},
138 {0x030d, 0x26},
142 {0x3002, 0x21},
143 {0x3107, 0x23},
144 {0x3501, 0x20},
145 {0x3503, 0x0c},
146 {0x3508, 0x03},
147 {0x3509, 0x00},
148 {0x3600, 0x66},
149 {0x3602, 0x30},
150 {0x3610, 0xa5},
151 {0x3612, 0x93},
152 {0x3620, 0x80},
153 {0x3642, 0x0e},
154 {0x3661, 0x00},
155 {0x3662, 0x10},
156 {0x3664, 0xf3},
157 {0x3665, 0x9e},
158 {0x3667, 0xa5},
159 {0x366e, 0x55},
160 {0x366f, 0x55},
161 {0x3670, 0x11},
162 {0x3671, 0x11},
163 {0x3672, 0x11},
164 {0x3673, 0x11},
165 {0x3714, 0x24},
166 {0x371a, 0x3e},
167 {0x3733, 0x10},
168 {0x3734, 0x00},
169 {0x373d, 0x24},
170 {0x3764, 0x20},
171 {0x3765, 0x20},
172 {0x3766, 0x12},
173 {0x37a1, 0x14},
174 {0x37a8, 0x1c},
175 {0x37ab, 0x0f},
176 {0x37c2, 0x04},
177 {0x37cb, 0x00},
178 {0x37cc, 0x00},
179 {0x37cd, 0x00},
180 {0x37ce, 0x00},
181 {0x37d8, 0x02},
182 {0x37d9, 0x08},
183 {0x37dc, 0x04},
184 {0x3800, 0x00},
185 {0x3801, 0x00},
186 {0x3802, 0x00},
187 {0x3803, 0x04},
188 {0x3804, 0x0a},
189 {0x3805, 0x3f},
190 {0x3806, 0x07},
191 {0x3807, 0xb3},
192 {0x3808, 0x0a},
193 {0x3809, 0x20},
194 {0x380a, 0x07},
195 {0x380b, 0x98},
196 {0x380c, 0x02},
197 {0x380d, 0xee},
198 {0x380e, 0x07},
199 {0x380f, 0xe4},
200 {0x3811, 0x10},
201 {0x3813, 0x0d},
202 {0x3814, 0x01},
203 {0x3815, 0x01},
204 {0x3816, 0x01},
205 {0x3817, 0x01},
206 {0x381e, 0x02},
207 {0x3820, 0x88},
208 {0x3821, 0x01},
209 {0x3832, 0x04},
210 {0x3c80, 0x01},
211 {0x3c82, 0x00},
212 {0x3c83, 0xc8},
213 {0x3c8c, 0x0f},
214 {0x3c8d, 0xa0},
215 {0x3c90, 0x07},
216 {0x3c91, 0x00},
217 {0x3c92, 0x00},
218 {0x3c93, 0x00},
219 {0x3c94, 0xd0},
220 {0x3c95, 0x50},
221 {0x3c96, 0x35},
222 {0x3c97, 0x00},
223 {0x4001, 0xe0},
224 {0x4008, 0x02},
225 {0x4009, 0x0d},
226 {0x400f, 0x80},
227 {0x4013, 0x02},
228 {0x4040, 0x00},
229 {0x4041, 0x07},
230 {0x404c, 0x50},
231 {0x404e, 0x20},
232 {0x4500, 0x06},
233 {0x4503, 0x00},
234 {0x450a, 0x04},
235 {0x4809, 0x04},
236 {0x480c, 0x12},
237 {0x4819, 0x70},
238 {0x4825, 0x32},
239 {0x4826, 0x32},
240 {0x482a, 0x06},
241 {0x4833, 0x08},
242 {0x4837, 0x0d},
243 {0x5000, 0x77},
244 {0x5b00, 0x01},
245 {0x5b01, 0x10},
246 {0x5b02, 0x01},
247 {0x5b03, 0xdb},
248 {0x5b05, 0x6c},
249 {0x5e10, 0xfc},
250 {0x3500, 0x00},
251 {0x3501, 0x3E},
252 {0x3502, 0x60},
253 {0x3503, 0x08},
254 {0x3508, 0x04},
255 {0x3509, 0x00},
256 {0x3832, 0x48},
257 {0x5780, 0x3e},
258 {0x5781, 0x0f},
259 {0x5782, 0x44},
260 {0x5783, 0x02},
261 {0x5784, 0x01},
262 {0x5785, 0x01},
263 {0x5786, 0x00},
264 {0x5787, 0x04},
265 {0x5788, 0x02},
266 {0x5789, 0x0f},
267 {0x578a, 0xfd},
268 {0x578b, 0xf5},
269 {0x578c, 0xf5},
270 {0x578d, 0x03},
271 {0x578e, 0x08},
272 {0x578f, 0x0c},
273 {0x5790, 0x08},
274 {0x5791, 0x06},
275 {0x5792, 0x00},
276 {0x5793, 0x52},
277 {0x5794, 0xa3},
278 {0x4003, 0x40},
279 {0x3107, 0x01},
280 {0x3c80, 0x08},
281 {0x3c83, 0xb1},
282 {0x3c8c, 0x10},
283 {0x3c8d, 0x00},
284 {0x3c90, 0x00},
285 {0x3c94, 0x00},
286 {0x3c95, 0x00},
287 {0x3c96, 0x00},
288 {0x37cb, 0x09},
289 {0x37cc, 0x15},
290 {0x37cd, 0x1f},
291 {0x37ce, 0x1f},
295 {0x3002, 0x21},
296 {0x3107, 0x23},
297 {0x3501, 0x20},
298 {0x3503, 0x0c},
299 {0x3508, 0x03},
300 {0x3509, 0x00},
301 {0x3600, 0x66},
302 {0x3602, 0x30},
303 {0x3610, 0xa5},
304 {0x3612, 0x93},
305 {0x3620, 0x80},
306 {0x3642, 0x0e},
307 {0x3661, 0x00},
308 {0x3662, 0x08},
309 {0x3664, 0xf3},
310 {0x3665, 0x9e},
311 {0x3667, 0xa5},
312 {0x366e, 0x55},
313 {0x366f, 0x55},
314 {0x3670, 0x11},
315 {0x3671, 0x11},
316 {0x3672, 0x11},
317 {0x3673, 0x11},
318 {0x3714, 0x28},
319 {0x371a, 0x3e},
320 {0x3733, 0x10},
321 {0x3734, 0x00},
322 {0x373d, 0x24},
323 {0x3764, 0x20},
324 {0x3765, 0x20},
325 {0x3766, 0x12},
326 {0x37a1, 0x14},
327 {0x37a8, 0x1c},
328 {0x37ab, 0x0f},
329 {0x37c2, 0x14},
330 {0x37cb, 0x00},
331 {0x37cc, 0x00},
332 {0x37cd, 0x00},
333 {0x37ce, 0x00},
334 {0x37d8, 0x02},
335 {0x37d9, 0x04},
336 {0x37dc, 0x04},
337 {0x3800, 0x00},
338 {0x3801, 0x00},
339 {0x3802, 0x00},
340 {0x3803, 0x00},
341 {0x3804, 0x0a},
342 {0x3805, 0x3f},
343 {0x3806, 0x07},
344 {0x3807, 0xb7},
345 {0x3808, 0x05},
346 {0x3809, 0x10},
347 {0x380a, 0x03},
348 {0x380b, 0xcc},
349 {0x380c, 0x02},
350 {0x380d, 0xee},
351 {0x380e, 0x07},
352 {0x380f, 0xd0},
353 {0x3811, 0x08},
354 {0x3813, 0x0d},
355 {0x3814, 0x03},
356 {0x3815, 0x01},
357 {0x3816, 0x03},
358 {0x3817, 0x01},
359 {0x381e, 0x02},
360 {0x3820, 0x8b},
361 {0x3821, 0x01},
362 {0x3832, 0x04},
363 {0x3c80, 0x01},
364 {0x3c82, 0x00},
365 {0x3c83, 0xc8},
366 {0x3c8c, 0x0f},
367 {0x3c8d, 0xa0},
368 {0x3c90, 0x07},
369 {0x3c91, 0x00},
370 {0x3c92, 0x00},
371 {0x3c93, 0x00},
372 {0x3c94, 0xd0},
373 {0x3c95, 0x50},
374 {0x3c96, 0x35},
375 {0x3c97, 0x00},
376 {0x4001, 0xe0},
377 {0x4008, 0x00},
378 {0x4009, 0x07},
379 {0x400f, 0x80},
380 {0x4013, 0x02},
381 {0x4040, 0x00},
382 {0x4041, 0x03},
383 {0x404c, 0x50},
384 {0x404e, 0x20},
385 {0x4500, 0x06},
386 {0x4503, 0x00},
387 {0x450a, 0x04},
388 {0x4809, 0x04},
389 {0x480c, 0x12},
390 {0x4819, 0x70},
391 {0x4825, 0x32},
392 {0x4826, 0x32},
393 {0x482a, 0x06},
394 {0x4833, 0x08},
395 {0x4837, 0x0d},
396 {0x5000, 0x77},
397 {0x5b00, 0x01},
398 {0x5b01, 0x10},
399 {0x5b02, 0x01},
400 {0x5b03, 0xdb},
401 {0x5b05, 0x6c},
402 {0x5e10, 0xfc},
403 {0x3500, 0x00},
404 {0x3501, 0x1F},
405 {0x3502, 0x20},
406 {0x3503, 0x08},
407 {0x3508, 0x04},
408 {0x3509, 0x00},
409 {0x3832, 0x48},
410 {0x5780, 0x3e},
411 {0x5781, 0x0f},
412 {0x5782, 0x44},
413 {0x5783, 0x02},
414 {0x5784, 0x01},
415 {0x5785, 0x01},
416 {0x5786, 0x00},
417 {0x5787, 0x04},
418 {0x5788, 0x02},
419 {0x5789, 0x0f},
420 {0x578a, 0xfd},
421 {0x578b, 0xf5},
422 {0x578c, 0xf5},
423 {0x578d, 0x03},
424 {0x578e, 0x08},
425 {0x578f, 0x0c},
426 {0x5790, 0x08},
427 {0x5791, 0x06},
428 {0x5792, 0x00},
429 {0x5793, 0x52},
430 {0x5794, 0xa3},
431 {0x4003, 0x40},
432 {0x3107, 0x01},
433 {0x3c80, 0x08},
434 {0x3c83, 0xb1},
435 {0x3c8c, 0x10},
436 {0x3c8d, 0x00},
437 {0x3c90, 0x00},
438 {0x3c94, 0x00},
439 {0x3c95, 0x00},
440 {0x3c96, 0x00},
441 {0x37cb, 0x09},
442 {0x37cc, 0x15},
443 {0x37cd, 0x1f},
444 {0x37ce, 0x1f},
543 u8 data_buf[4] = {0}; in ov5675_read_reg()
550 msgs[0].addr = client->addr; in ov5675_read_reg()
551 msgs[0].flags = 0; in ov5675_read_reg()
552 msgs[0].len = sizeof(addr_buf); in ov5675_read_reg()
553 msgs[0].buf = addr_buf; in ov5675_read_reg()
565 return 0; in ov5675_read_reg()
581 return 0; in ov5675_write_reg()
591 for (i = 0; i < r_list->num_of_regs; i++) { in ov5675_write_reg_list()
596 "failed to write reg 0x%4.4x. error = %d", in ov5675_write_reg_list()
602 return 0; in ov5675_write_reg_list()
705 int ret = 0; in ov5675_set_ctrl()
720 return 0; in ov5675_set_ctrl()
794 0, link_freq_menu_items); in ov5675_init_controls()
799 V4L2_CID_PIXEL_RATE, 0, in ov5675_init_controls()
831 0, 0, ov5675_test_pattern_menu); in ov5675_init_controls()
833 V4L2_CID_HFLIP, 0, 1, 1, 0); in ov5675_init_controls()
835 V4L2_CID_VFLIP, 0, 1, 1, 0); in ov5675_init_controls()
853 return 0; in ov5675_init_controls()
877 return 0; in ov5675_identify_module()
892 return 0; in ov5675_identify_module()
931 return 0; in ov5675_start_streaming()
947 int ret = 0; in ov5675_set_stream()
952 if (ret < 0) { in ov5675_set_stream()
959 enable = 0; in ov5675_set_stream()
984 return 0; in ov5675_power_off()
994 if (ret < 0) { in ov5675_power_on()
1012 gpiod_set_value_cansleep(ov5675->reset_gpio, 0); in ov5675_power_on()
1020 return 0; in ov5675_power_on()
1061 return 0; in ov5675_set_format()
1079 return 0; in ov5675_get_format()
1091 sel->r.top = 0; in ov5675_get_selection()
1092 sel->r.left = 0; in ov5675_get_selection()
1095 return 0; in ov5675_get_selection()
1102 return 0; in ov5675_get_selection()
1111 if (code->index > 0) in ov5675_enum_mbus_code()
1116 return 0; in ov5675_enum_mbus_code()
1134 return 0; in ov5675_enum_frame_size()
1142 ov5675_update_pad_format(&supported_modes[0], in ov5675_open()
1143 v4l2_subdev_state_get_format(fh->state, 0)); in ov5675_open()
1146 return 0; in ov5675_open()
1220 for (i = 0; i < OV5675_NUM_SUPPLIES; i++) in ov5675_get_hwcfg()
1250 for (i = 0; i < ARRAY_SIZE(link_freq_menu_items); i++) { in ov5675_get_hwcfg()
1251 for (j = 0; j < bus_cfg.nr_of_link_frequencies; j++) { in ov5675_get_hwcfg()
1322 ov5675->cur_mode = &supported_modes[0]; in ov5675_probe()
1341 if (ret < 0) { in ov5675_probe()
1353 return 0; in ov5675_probe()