Lines Matching +full:0 +full:x3500
30 #define CHIP_ID 0x005695
31 #define OV5695_REG_CHIP_ID 0x300a
33 #define OV5695_REG_CTRL_MODE 0x0100
34 #define OV5695_MODE_SW_STANDBY 0x0
35 #define OV5695_MODE_STREAMING BIT(0)
37 #define OV5695_REG_EXPOSURE 0x3500
40 #define OV5695_VTS_MAX 0x7fff
42 #define OV5695_REG_ANALOG_GAIN 0x3509
43 #define ANALOG_GAIN_MIN 0x10
44 #define ANALOG_GAIN_MAX 0xf8
46 #define ANALOG_GAIN_DEFAULT 0xf8
48 #define OV5695_REG_DIGI_GAIN_H 0x350a
49 #define OV5695_REG_DIGI_GAIN_L 0x350b
50 #define OV5695_DIGI_GAIN_L_MASK 0x3f
52 #define OV5695_DIGI_GAIN_MIN 0
53 #define OV5695_DIGI_GAIN_MAX (0x4000 - 1)
57 #define OV5695_REG_TEST_PATTERN 0x4503
58 #define OV5695_TEST_PATTERN_ENABLE 0x80
59 #define OV5695_TEST_PATTERN_DISABLE 0x0
61 #define OV5695_REG_VTS 0x380e
63 #define REG_NULL 0xFFFF
119 * linelength 672(0x2a0)
120 * framelength 2232(0x8b8)
127 {0x0103, 0x01},
128 {0x0100, 0x00},
129 {0x0300, 0x04},
130 {0x0301, 0x00},
131 {0x0302, 0x69},
132 {0x0303, 0x00},
133 {0x0304, 0x00},
134 {0x0305, 0x01},
135 {0x0307, 0x00},
136 {0x030b, 0x00},
137 {0x030c, 0x00},
138 {0x030d, 0x1e},
139 {0x030e, 0x04},
140 {0x030f, 0x03},
141 {0x0312, 0x01},
142 {0x3000, 0x00},
143 {0x3002, 0xa1},
144 {0x3008, 0x00},
145 {0x3010, 0x00},
146 {0x3022, 0x51},
147 {0x3106, 0x15},
148 {0x3107, 0x01},
149 {0x3108, 0x05},
150 {0x3500, 0x00},
151 {0x3501, 0x45},
152 {0x3502, 0x00},
153 {0x3503, 0x08},
154 {0x3504, 0x03},
155 {0x3505, 0x8c},
156 {0x3507, 0x03},
157 {0x3508, 0x00},
158 {0x3509, 0x10},
159 {0x350c, 0x00},
160 {0x350d, 0x80},
161 {0x3510, 0x00},
162 {0x3511, 0x02},
163 {0x3512, 0x00},
164 {0x3601, 0x55},
165 {0x3602, 0x58},
166 {0x3614, 0x30},
167 {0x3615, 0x77},
168 {0x3621, 0x08},
169 {0x3624, 0x40},
170 {0x3633, 0x0c},
171 {0x3634, 0x0c},
172 {0x3635, 0x0c},
173 {0x3636, 0x0c},
174 {0x3638, 0x00},
175 {0x3639, 0x00},
176 {0x363a, 0x00},
177 {0x363b, 0x00},
178 {0x363c, 0xff},
179 {0x363d, 0xfa},
180 {0x3650, 0x44},
181 {0x3651, 0x44},
182 {0x3652, 0x44},
183 {0x3653, 0x44},
184 {0x3654, 0x44},
185 {0x3655, 0x44},
186 {0x3656, 0x44},
187 {0x3657, 0x44},
188 {0x3660, 0x00},
189 {0x3661, 0x00},
190 {0x3662, 0x00},
191 {0x366a, 0x00},
192 {0x366e, 0x0c},
193 {0x3673, 0x04},
194 {0x3700, 0x14},
195 {0x3703, 0x0c},
196 {0x3715, 0x01},
197 {0x3733, 0x10},
198 {0x3734, 0x40},
199 {0x373f, 0xa0},
200 {0x3765, 0x20},
201 {0x37a1, 0x1d},
202 {0x37a8, 0x26},
203 {0x37ab, 0x14},
204 {0x37c2, 0x04},
205 {0x37cb, 0x09},
206 {0x37cc, 0x13},
207 {0x37cd, 0x1f},
208 {0x37ce, 0x1f},
209 {0x3800, 0x00},
210 {0x3801, 0x00},
211 {0x3802, 0x00},
212 {0x3803, 0x00},
213 {0x3804, 0x0a},
214 {0x3805, 0x3f},
215 {0x3806, 0x07},
216 {0x3807, 0xaf},
217 {0x3808, 0x05},
218 {0x3809, 0x10},
219 {0x380a, 0x03},
220 {0x380b, 0xcc},
221 {0x380c, 0x02},
222 {0x380d, 0xa0},
223 {0x380e, 0x08},
224 {0x380f, 0xb8},
225 {0x3810, 0x00},
226 {0x3811, 0x06},
227 {0x3812, 0x00},
228 {0x3813, 0x06},
229 {0x3814, 0x03},
230 {0x3815, 0x01},
231 {0x3816, 0x03},
232 {0x3817, 0x01},
233 {0x3818, 0x00},
234 {0x3819, 0x00},
235 {0x381a, 0x00},
236 {0x381b, 0x01},
237 {0x3820, 0x8b},
238 {0x3821, 0x01},
239 {0x3c80, 0x08},
240 {0x3c82, 0x00},
241 {0x3c83, 0x00},
242 {0x3c88, 0x00},
243 {0x3d85, 0x14},
244 {0x3f02, 0x08},
245 {0x3f03, 0x10},
246 {0x4008, 0x02},
247 {0x4009, 0x09},
248 {0x404e, 0x20},
249 {0x4501, 0x00},
250 {0x4502, 0x10},
251 {0x4800, 0x00},
252 {0x481f, 0x2a},
253 {0x4837, 0x13},
254 {0x5000, 0x17},
255 {0x5780, 0x3e},
256 {0x5781, 0x0f},
257 {0x5782, 0x44},
258 {0x5783, 0x02},
259 {0x5784, 0x01},
260 {0x5785, 0x01},
261 {0x5786, 0x00},
262 {0x5787, 0x04},
263 {0x5788, 0x02},
264 {0x5789, 0x0f},
265 {0x578a, 0xfd},
266 {0x578b, 0xf5},
267 {0x578c, 0xf5},
268 {0x578d, 0x03},
269 {0x578e, 0x08},
270 {0x578f, 0x0c},
271 {0x5790, 0x08},
272 {0x5791, 0x06},
273 {0x5792, 0x00},
274 {0x5793, 0x52},
275 {0x5794, 0xa3},
276 {0x5b00, 0x00},
277 {0x5b01, 0x1c},
278 {0x5b02, 0x00},
279 {0x5b03, 0x7f},
280 {0x5b05, 0x6c},
281 {0x5e10, 0xfc},
282 {0x4010, 0xf1},
283 {0x3503, 0x08},
284 {0x3505, 0x8c},
285 {0x3507, 0x03},
286 {0x3508, 0x00},
287 {0x3509, 0xf8},
288 {REG_NULL, 0x00},
294 * linelength 740(0x2e4)
295 * framelength 2024(0x7e8)
302 {0x3501, 0x7e},
303 {0x366e, 0x18},
304 {0x3800, 0x00},
305 {0x3801, 0x00},
306 {0x3802, 0x00},
307 {0x3803, 0x04},
308 {0x3804, 0x0a},
309 {0x3805, 0x3f},
310 {0x3806, 0x07},
311 {0x3807, 0xab},
312 {0x3808, 0x0a},
313 {0x3809, 0x20},
314 {0x380a, 0x07},
315 {0x380b, 0x98},
316 {0x380c, 0x02},
317 {0x380d, 0xe4},
318 {0x380e, 0x07},
319 {0x380f, 0xe8},
320 {0x3811, 0x06},
321 {0x3813, 0x08},
322 {0x3814, 0x01},
323 {0x3816, 0x01},
324 {0x3817, 0x01},
325 {0x3820, 0x88},
326 {0x3821, 0x00},
327 {0x4501, 0x00},
328 {0x4008, 0x04},
329 {0x4009, 0x13},
330 {REG_NULL, 0x00},
336 * linelength 672(0x2a0)
337 * framelength 2232(0x8b8)
344 {0x3501, 0x45},
345 {0x366e, 0x18},
346 {0x3800, 0x01},
347 {0x3801, 0x50},
348 {0x3802, 0x01},
349 {0x3803, 0xb8},
350 {0x3804, 0x08},
351 {0x3805, 0xef},
352 {0x3806, 0x05},
353 {0x3807, 0xf7},
354 {0x3808, 0x07},
355 {0x3809, 0x80},
356 {0x380a, 0x04},
357 {0x380b, 0x38},
358 {0x380c, 0x02},
359 {0x380d, 0xa0},
360 {0x380e, 0x08},
361 {0x380f, 0xb8},
362 {0x3811, 0x06},
363 {0x3813, 0x04},
364 {0x3814, 0x01},
365 {0x3816, 0x01},
366 {0x3817, 0x01},
367 {0x3820, 0x88},
368 {0x3821, 0x00},
369 {0x4501, 0x00},
370 {0x4008, 0x04},
371 {0x4009, 0x13},
372 {REG_NULL, 0x00}
378 * linelength 740(0x02e4)
379 * framelength 1012(0x03f4)
386 {0x0103, 0x01},
387 {0x0100, 0x00},
388 {0x0300, 0x04},
389 {0x0301, 0x00},
390 {0x0302, 0x69},
391 {0x0303, 0x00},
392 {0x0304, 0x00},
393 {0x0305, 0x01},
394 {0x0307, 0x00},
395 {0x030b, 0x00},
396 {0x030c, 0x00},
397 {0x030d, 0x1e},
398 {0x030e, 0x04},
399 {0x030f, 0x03},
400 {0x0312, 0x01},
401 {0x3000, 0x00},
402 {0x3002, 0xa1},
403 {0x3008, 0x00},
404 {0x3010, 0x00},
405 {0x3016, 0x32},
406 {0x3022, 0x51},
407 {0x3106, 0x15},
408 {0x3107, 0x01},
409 {0x3108, 0x05},
410 {0x3500, 0x00},
411 {0x3501, 0x3e},
412 {0x3502, 0x00},
413 {0x3503, 0x08},
414 {0x3504, 0x03},
415 {0x3505, 0x8c},
416 {0x3507, 0x03},
417 {0x3508, 0x00},
418 {0x3509, 0x10},
419 {0x350c, 0x00},
420 {0x350d, 0x80},
421 {0x3510, 0x00},
422 {0x3511, 0x02},
423 {0x3512, 0x00},
424 {0x3601, 0x55},
425 {0x3602, 0x58},
426 {0x3611, 0x58},
427 {0x3614, 0x30},
428 {0x3615, 0x77},
429 {0x3621, 0x08},
430 {0x3624, 0x40},
431 {0x3633, 0x0c},
432 {0x3634, 0x0c},
433 {0x3635, 0x0c},
434 {0x3636, 0x0c},
435 {0x3638, 0x00},
436 {0x3639, 0x00},
437 {0x363a, 0x00},
438 {0x363b, 0x00},
439 {0x363c, 0xff},
440 {0x363d, 0xfa},
441 {0x3650, 0x44},
442 {0x3651, 0x44},
443 {0x3652, 0x44},
444 {0x3653, 0x44},
445 {0x3654, 0x44},
446 {0x3655, 0x44},
447 {0x3656, 0x44},
448 {0x3657, 0x44},
449 {0x3660, 0x00},
450 {0x3661, 0x00},
451 {0x3662, 0x00},
452 {0x366a, 0x00},
453 {0x366e, 0x0c},
454 {0x3673, 0x04},
455 {0x3700, 0x14},
456 {0x3703, 0x0c},
457 {0x3706, 0x24},
458 {0x3714, 0x27},
459 {0x3715, 0x01},
460 {0x3716, 0x00},
461 {0x3717, 0x02},
462 {0x3733, 0x10},
463 {0x3734, 0x40},
464 {0x373f, 0xa0},
465 {0x3765, 0x20},
466 {0x37a1, 0x1d},
467 {0x37a8, 0x26},
468 {0x37ab, 0x14},
469 {0x37c2, 0x04},
470 {0x37c3, 0xf0},
471 {0x37cb, 0x09},
472 {0x37cc, 0x13},
473 {0x37cd, 0x1f},
474 {0x37ce, 0x1f},
475 {0x3800, 0x00},
476 {0x3801, 0x00},
477 {0x3802, 0x00},
478 {0x3803, 0x00},
479 {0x3804, 0x0a},
480 {0x3805, 0x3f},
481 {0x3806, 0x07},
482 {0x3807, 0xaf},
483 {0x3808, 0x05},
484 {0x3809, 0x10},
485 {0x380a, 0x03},
486 {0x380b, 0xcc},
487 {0x380c, 0x02},
488 {0x380d, 0xe4},
489 {0x380e, 0x03},
490 {0x380f, 0xf4},
491 {0x3810, 0x00},
492 {0x3811, 0x00},
493 {0x3812, 0x00},
494 {0x3813, 0x06},
495 {0x3814, 0x03},
496 {0x3815, 0x01},
497 {0x3816, 0x03},
498 {0x3817, 0x01},
499 {0x3818, 0x00},
500 {0x3819, 0x00},
501 {0x381a, 0x00},
502 {0x381b, 0x01},
503 {0x3820, 0x8b},
504 {0x3821, 0x01},
505 {0x3c80, 0x08},
506 {0x3c82, 0x00},
507 {0x3c83, 0x00},
508 {0x3c88, 0x00},
509 {0x3d85, 0x14},
510 {0x3f02, 0x08},
511 {0x3f03, 0x10},
512 {0x4008, 0x02},
513 {0x4009, 0x09},
514 {0x404e, 0x20},
515 {0x4501, 0x00},
516 {0x4502, 0x10},
517 {0x4800, 0x00},
518 {0x481f, 0x2a},
519 {0x4837, 0x13},
520 {0x5000, 0x13},
521 {0x5780, 0x3e},
522 {0x5781, 0x0f},
523 {0x5782, 0x44},
524 {0x5783, 0x02},
525 {0x5784, 0x01},
526 {0x5785, 0x01},
527 {0x5786, 0x00},
528 {0x5787, 0x04},
529 {0x5788, 0x02},
530 {0x5789, 0x0f},
531 {0x578a, 0xfd},
532 {0x578b, 0xf5},
533 {0x578c, 0xf5},
534 {0x578d, 0x03},
535 {0x578e, 0x08},
536 {0x578f, 0x0c},
537 {0x5790, 0x08},
538 {0x5791, 0x06},
539 {0x5792, 0x00},
540 {0x5793, 0x52},
541 {0x5794, 0xa3},
542 {0x5b00, 0x00},
543 {0x5b01, 0x1c},
544 {0x5b02, 0x00},
545 {0x5b03, 0x7f},
546 {0x5b05, 0x6c},
547 {0x5e10, 0xfc},
548 {0x4010, 0xf1},
549 {0x3503, 0x08},
550 {0x3505, 0x8c},
551 {0x3507, 0x03},
552 {0x3508, 0x00},
553 {0x3509, 0xf8},
554 {0x0100, 0x01},
555 {REG_NULL, 0x00}
561 * linelength 672(0x2a0)
562 * framelength 2232(0x8b8)
569 {0x3501, 0x45},
570 {0x366e, 0x0c},
571 {0x3800, 0x00},
572 {0x3801, 0x00},
573 {0x3802, 0x01},
574 {0x3803, 0x00},
575 {0x3804, 0x0a},
576 {0x3805, 0x3f},
577 {0x3806, 0x06},
578 {0x3807, 0xaf},
579 {0x3808, 0x05},
580 {0x3809, 0x00},
581 {0x380a, 0x02},
582 {0x380b, 0xd0},
583 {0x380c, 0x02},
584 {0x380d, 0xa0},
585 {0x380e, 0x08},
586 {0x380f, 0xb8},
587 {0x3811, 0x06},
588 {0x3813, 0x02},
589 {0x3814, 0x03},
590 {0x3816, 0x03},
591 {0x3817, 0x01},
592 {0x3820, 0x8b},
593 {0x3821, 0x01},
594 {0x4501, 0x00},
595 {0x4008, 0x02},
596 {0x4009, 0x09},
597 {REG_NULL, 0x00}
603 * linelength 672(0x2a0)
604 * framelength 558(0x22e)
611 {0x3501, 0x22},
612 {0x366e, 0x0c},
613 {0x3800, 0x00},
614 {0x3801, 0x00},
615 {0x3802, 0x00},
616 {0x3803, 0x08},
617 {0x3804, 0x0a},
618 {0x3805, 0x3f},
619 {0x3806, 0x07},
620 {0x3807, 0xa7},
621 {0x3808, 0x02},
622 {0x3809, 0x80},
623 {0x380a, 0x01},
624 {0x380b, 0xe0},
625 {0x380c, 0x02},
626 {0x380d, 0xa0},
627 {0x380e, 0x02},
628 {0x380f, 0x2e},
629 {0x3811, 0x06},
630 {0x3813, 0x04},
631 {0x3814, 0x07},
632 {0x3816, 0x05},
633 {0x3817, 0x03},
634 {0x3820, 0x8d},
635 {0x3821, 0x01},
636 {0x4501, 0x00},
637 {0x4008, 0x02},
638 {0x4009, 0x09},
639 {REG_NULL, 0x00}
647 .exp_def = 0x0450,
648 .hts_def = 0x02e4 * 4,
649 .vts_def = 0x07e8,
656 .exp_def = 0x0450,
657 .hts_def = 0x02a0 * 4,
658 .vts_def = 0x08b8,
665 .exp_def = 0x03e0,
666 .hts_def = 0x02e4 * 4,
667 .vts_def = 0x03f4,
674 .exp_def = 0x0450,
675 .hts_def = 0x02a0 * 4,
676 .vts_def = 0x08b8,
683 .exp_def = 0x0450,
684 .hts_def = 0x02a0 * 4,
685 .vts_def = 0x022e,
715 buf[0] = reg >> 8; in ov5695_write_reg()
716 buf[1] = reg & 0xff; in ov5695_write_reg()
729 return 0; in ov5695_write_reg()
736 int ret = 0; in ov5695_write_array()
738 for (i = 0; ret == 0 && regs[i].addr != REG_NULL; i++) in ov5695_write_array()
751 __be32 data_be = 0; in ov5695_read_reg()
760 msgs[0].addr = client->addr; in ov5695_read_reg()
761 msgs[0].flags = 0; in ov5695_read_reg()
762 msgs[0].len = 2; in ov5695_read_reg()
763 msgs[0].buf = (u8 *)®_addr_be; in ov5695_read_reg()
777 return 0; in ov5695_read_reg()
792 int cur_best_fit = 0; in ov5695_find_best_fit()
796 for (i = 0; i < ARRAY_SIZE(supported_modes); i++) { in ov5695_find_best_fit()
837 return 0; in ov5695_set_fmt()
859 return 0; in ov5695_get_fmt()
866 if (code->index != 0) in ov5695_enum_mbus_code()
870 return 0; in ov5695_enum_mbus_code()
888 return 0; in ov5695_enum_frame_sizes()
934 int ret = 0; in ov5695_s_stream()
940 if (ret < 0) in ov5695_s_stream()
966 if (ret < 0) { in __ov5695_power_on()
977 for (i = 0; i < OV5695_NUM_SUPPLIES; i++) { in __ov5695_power_on()
986 gpiod_set_value_cansleep(ov5695->reset_gpio, 0); in __ov5695_power_on()
990 return 0; in __ov5695_power_on()
993 for (--i; i >= 0; i--) in __ov5695_power_on()
1012 for (i = OV5695_NUM_SUPPLIES - 1; i >= 0; i--) { in __ov5695_power_off()
1035 return 0; in ov5695_runtime_suspend()
1042 v4l2_subdev_state_get_format(fh->state, 0); in ov5695_open()
1043 const struct ov5695_mode *def_mode = &supported_modes[0]; in ov5695_open()
1055 return 0; in ov5695_open()
1089 int ret = 0; in ov5695_set_ctrl()
1104 return 0; in ov5695_set_ctrl()
1133 dev_warn(&client->dev, "%s Unhandled id:0x%x, val:0x%x\n", in ov5695_set_ctrl()
1164 0, 0, link_freq_menu_items); in ov5695_initialize_controls()
1169 0, OV5695_PIXEL_RATE, 1, OV5695_PIXEL_RATE); in ov5695_initialize_controls()
1203 0, 0, ov5695_test_pattern_menu); in ov5695_initialize_controls()
1214 return 0; in ov5695_initialize_controls()
1226 u32 id = 0; in ov5695_check_sensor_id()
1238 return 0; in ov5695_check_sensor_id()
1245 for (i = 0; i < OV5695_NUM_SUPPLIES; i++) in ov5695_configure_regulators()
1265 ov5695->cur_mode = &supported_modes[0]; in ov5695_probe()
1273 if (ret < 0) { in ov5695_probe()
1313 if (ret < 0) in ov5695_probe()
1326 return 0; in ov5695_probe()