Lines Matching +full:0 +full:x3500

26 #define OV8856_REG_CHIP_ID		0x300a
27 #define OV8856_CHIP_ID 0x00885a
29 #define OV8856_REG_MODE_SELECT 0x0100
30 #define OV8856_MODE_STANDBY 0x00
31 #define OV8856_MODE_STREAMING 0x01
34 #define OV8856_2A_MODULE 0x01
35 #define OV8856_1B_MODULE 0x02
37 /* the OTP read-out buffer is at 0x7000 and 0xf is the offset
40 #define OV8856_MODULE_REVISION 0x700f
41 #define OV8856_OTP_MODE_CTRL 0x3d84
42 #define OV8856_OTP_LOAD_CTRL 0x3d81
43 #define OV8856_OTP_MODE_AUTO 0x00
44 #define OV8856_OTP_LOAD_CTRL_ENABLE BIT(0)
47 #define OV8856_REG_VTS 0x380e
48 #define OV8856_VTS_MAX 0x7fff
51 #define OV8856_REG_HTS 0x380c
54 #define OV8856_REG_EXPOSURE 0x3500
60 #define OV8856_REG_ANALOG_GAIN 0x3508
66 #define OV8856_REG_DIGITAL_GAIN 0x350a
67 #define OV8856_REG_MWB_R_GAIN 0x5019
68 #define OV8856_REG_MWB_G_GAIN 0x501b
69 #define OV8856_REG_MWB_B_GAIN 0x501d
70 #define OV8856_DGTL_GAIN_MIN 0
76 #define OV8856_REG_TEST_PATTERN 0x5e00
85 #define OV8856_REG_FORMAT1 0x3820
86 #define OV8856_REG_FORMAT2 0x3821
93 #define OV8856_REG_FLIP_OPT_1 0x376b
94 #define OV8856_REG_FLIP_OPT_2 0x5001
95 #define OV8856_REG_FLIP_OPT_3 0x502e
96 #define OV8856_REG_MIRROR_OPT_1 0x5004
97 #define OV8856_REG_FLIP_OP_0 BIT(0)
167 {0x0103, 0x01},
168 {0x0100, 0x00},
169 {0x0302, 0x43},
170 {0x0303, 0x00},
171 {0x030b, 0x02},
172 {0x030d, 0x4b},
173 {0x031e, 0x0c}
177 {0x0103, 0x01},
178 {0x0100, 0x00},
179 {0x0302, 0x4b},
180 {0x0303, 0x01},
181 {0x030b, 0x02},
182 {0x030d, 0x4b},
183 {0x031e, 0x0c}
190 {0x0103, 0x01},
191 {0x0100, 0x00},
192 {0x0302, 0x4b},
193 {0x0303, 0x01},
194 {0x030b, 0x02},
195 {0x030d, 0x4b},
196 {0x031e, 0x0c}
200 {0x0103, 0x01},
201 {0x0100, 0x00},
202 {0x0302, 0x4b},
203 {0x0303, 0x03},
204 {0x030b, 0x02},
205 {0x030d, 0x4b},
206 {0x031e, 0x0c}
212 {0x3000, 0x20},
213 {0x3003, 0x08},
214 {0x300e, 0x20},
215 {0x3010, 0x00},
216 {0x3015, 0x84},
217 {0x3018, 0x32},
218 {0x3021, 0x23},
219 {0x3033, 0x24},
220 {0x3500, 0x00},
221 {0x3501, 0x9a},
222 {0x3502, 0x20},
223 {0x3503, 0x08},
224 {0x3505, 0x83},
225 {0x3508, 0x01},
226 {0x3509, 0x80},
227 {0x350c, 0x00},
228 {0x350d, 0x80},
229 {0x350e, 0x04},
230 {0x350f, 0x00},
231 {0x3510, 0x00},
232 {0x3511, 0x02},
233 {0x3512, 0x00},
234 {0x3600, 0x72},
235 {0x3601, 0x40},
236 {0x3602, 0x30},
237 {0x3610, 0xc5},
238 {0x3611, 0x58},
239 {0x3612, 0x5c},
240 {0x3613, 0xca},
241 {0x3614, 0x50},
242 {0x3628, 0xff},
243 {0x3629, 0xff},
244 {0x362a, 0xff},
245 {0x3633, 0x10},
246 {0x3634, 0x10},
247 {0x3635, 0x10},
248 {0x3636, 0x10},
249 {0x3663, 0x08},
250 {0x3669, 0x34},
251 {0x366e, 0x10},
252 {0x3706, 0x86},
253 {0x370b, 0x7e},
254 {0x3714, 0x23},
255 {0x3730, 0x12},
256 {0x3733, 0x10},
257 {0x3764, 0x00},
258 {0x3765, 0x00},
259 {0x3769, 0x62},
260 {0x376a, 0x2a},
261 {0x376b, 0x30},
262 {0x3780, 0x00},
263 {0x3781, 0x24},
264 {0x3782, 0x00},
265 {0x3783, 0x23},
266 {0x3798, 0x2f},
267 {0x37a1, 0x60},
268 {0x37a8, 0x6a},
269 {0x37ab, 0x3f},
270 {0x37c2, 0x04},
271 {0x37c3, 0xf1},
272 {0x37c9, 0x80},
273 {0x37cb, 0x16},
274 {0x37cc, 0x16},
275 {0x37cd, 0x16},
276 {0x37ce, 0x16},
277 {0x3800, 0x00},
278 {0x3801, 0x00},
279 {0x3802, 0x00},
280 {0x3803, 0x06},
281 {0x3804, 0x0c},
282 {0x3805, 0xdf},
283 {0x3806, 0x09},
284 {0x3807, 0xa7},
285 {0x3808, 0x0c},
286 {0x3809, 0xd0},
287 {0x380a, 0x09},
288 {0x380b, 0xa0},
289 {0x380c, 0x07},
290 {0x380d, 0x88},
291 {0x380e, 0x09},
292 {0x380f, 0xb8},
293 {0x3810, 0x00},
294 {0x3811, 0x00},
295 {0x3812, 0x00},
296 {0x3813, 0x01},
297 {0x3814, 0x01},
298 {0x3815, 0x01},
299 {0x3816, 0x00},
300 {0x3817, 0x00},
301 {0x3818, 0x00},
302 {0x3819, 0x00},
303 {0x3820, 0x80},
304 {0x3821, 0x46},
305 {0x382a, 0x01},
306 {0x382b, 0x01},
307 {0x3830, 0x06},
308 {0x3836, 0x02},
309 {0x3837, 0x10},
310 {0x3862, 0x04},
311 {0x3863, 0x08},
312 {0x3cc0, 0x33},
313 {0x3d85, 0x14},
314 {0x3d8c, 0x73},
315 {0x3d8d, 0xde},
316 {0x4001, 0xe0},
317 {0x4003, 0x40},
318 {0x4008, 0x00},
319 {0x4009, 0x0b},
320 {0x400a, 0x00},
321 {0x400b, 0x84},
322 {0x400f, 0x80},
323 {0x4010, 0xf0},
324 {0x4011, 0xff},
325 {0x4012, 0x02},
326 {0x4013, 0x01},
327 {0x4014, 0x01},
328 {0x4015, 0x01},
329 {0x4042, 0x00},
330 {0x4043, 0x80},
331 {0x4044, 0x00},
332 {0x4045, 0x80},
333 {0x4046, 0x00},
334 {0x4047, 0x80},
335 {0x4048, 0x00},
336 {0x4049, 0x80},
337 {0x4041, 0x03},
338 {0x404c, 0x20},
339 {0x404d, 0x00},
340 {0x404e, 0x20},
341 {0x4203, 0x80},
342 {0x4307, 0x30},
343 {0x4317, 0x00},
344 {0x4503, 0x08},
345 {0x4601, 0x80},
346 {0x4800, 0x44},
347 {0x4816, 0x53},
348 {0x481b, 0x58},
349 {0x481f, 0x27},
350 {0x4837, 0x0c},
351 {0x483c, 0x0f},
352 {0x484b, 0x05},
353 {0x5000, 0x57},
354 {0x5001, 0x0a},
355 {0x5004, 0x06},
356 {0x502e, 0x03},
357 {0x5030, 0x41},
358 {0x5795, 0x02},
359 {0x5796, 0x20},
360 {0x5797, 0x20},
361 {0x5798, 0xd5},
362 {0x5799, 0xd5},
363 {0x579a, 0x00},
364 {0x579b, 0x50},
365 {0x579c, 0x00},
366 {0x579d, 0x2c},
367 {0x579e, 0x0c},
368 {0x579f, 0x40},
369 {0x57a0, 0x09},
370 {0x57a1, 0x40},
371 {0x5780, 0x14},
372 {0x5781, 0x0f},
373 {0x5782, 0x44},
374 {0x5783, 0x02},
375 {0x5784, 0x01},
376 {0x5785, 0x01},
377 {0x5786, 0x00},
378 {0x5787, 0x04},
379 {0x5788, 0x02},
380 {0x5789, 0x0f},
381 {0x578a, 0xfd},
382 {0x578b, 0xf5},
383 {0x578c, 0xf5},
384 {0x578d, 0x03},
385 {0x578e, 0x08},
386 {0x578f, 0x0c},
387 {0x5790, 0x08},
388 {0x5791, 0x04},
389 {0x5792, 0x00},
390 {0x5793, 0x52},
391 {0x5794, 0xa3},
392 {0x59f8, 0x3d},
393 {0x5a08, 0x02},
394 {0x5b00, 0x02},
395 {0x5b01, 0x10},
396 {0x5b02, 0x03},
397 {0x5b03, 0xcf},
398 {0x5b05, 0x6c},
399 {0x5e00, 0x00}
404 {0x3000, 0x20},
405 {0x3003, 0x08},
406 {0x300e, 0x20},
407 {0x3010, 0x00},
408 {0x3015, 0x84},
409 {0x3018, 0x32},
410 {0x3021, 0x23},
411 {0x3033, 0x24},
412 {0x3500, 0x00},
413 {0x3501, 0x4c},
414 {0x3502, 0xe0},
415 {0x3503, 0x08},
416 {0x3505, 0x83},
417 {0x3508, 0x01},
418 {0x3509, 0x80},
419 {0x350c, 0x00},
420 {0x350d, 0x80},
421 {0x350e, 0x04},
422 {0x350f, 0x00},
423 {0x3510, 0x00},
424 {0x3511, 0x02},
425 {0x3512, 0x00},
426 {0x3600, 0x72},
427 {0x3601, 0x40},
428 {0x3602, 0x30},
429 {0x3610, 0xc5},
430 {0x3611, 0x58},
431 {0x3612, 0x5c},
432 {0x3613, 0xca},
433 {0x3614, 0x50},
434 {0x3628, 0xff},
435 {0x3629, 0xff},
436 {0x362a, 0xff},
437 {0x3633, 0x10},
438 {0x3634, 0x10},
439 {0x3635, 0x10},
440 {0x3636, 0x10},
441 {0x3663, 0x08},
442 {0x3669, 0x34},
443 {0x366e, 0x08},
444 {0x3706, 0x86},
445 {0x370b, 0x7e},
446 {0x3714, 0x27},
447 {0x3730, 0x12},
448 {0x3733, 0x10},
449 {0x3764, 0x00},
450 {0x3765, 0x00},
451 {0x3769, 0x62},
452 {0x376a, 0x2a},
453 {0x376b, 0x30},
454 {0x3780, 0x00},
455 {0x3781, 0x24},
456 {0x3782, 0x00},
457 {0x3783, 0x23},
458 {0x3798, 0x2f},
459 {0x37a1, 0x60},
460 {0x37a8, 0x6a},
461 {0x37ab, 0x3f},
462 {0x37c2, 0x14},
463 {0x37c3, 0xf1},
464 {0x37c9, 0x80},
465 {0x37cb, 0x16},
466 {0x37cc, 0x16},
467 {0x37cd, 0x16},
468 {0x37ce, 0x16},
469 {0x3800, 0x00},
470 {0x3801, 0x00},
471 {0x3802, 0x00},
472 {0x3803, 0x00},
473 {0x3804, 0x0c},
474 {0x3805, 0xdf},
475 {0x3806, 0x09},
476 {0x3807, 0xaf},
477 {0x3808, 0x06},
478 {0x3809, 0x68},
479 {0x380a, 0x04},
480 {0x380b, 0xd0},
481 {0x380c, 0x0c},
482 {0x380d, 0x60},
483 {0x380e, 0x05},
484 {0x380f, 0xea},
485 {0x3810, 0x00},
486 {0x3811, 0x04},
487 {0x3812, 0x00},
488 {0x3813, 0x05},
489 {0x3814, 0x03},
490 {0x3815, 0x01},
491 {0x3816, 0x00},
492 {0x3817, 0x00},
493 {0x3818, 0x00},
494 {0x3819, 0x00},
495 {0x3820, 0x90},
496 {0x3821, 0x67},
497 {0x382a, 0x03},
498 {0x382b, 0x01},
499 {0x3830, 0x06},
500 {0x3836, 0x02},
501 {0x3837, 0x10},
502 {0x3862, 0x04},
503 {0x3863, 0x08},
504 {0x3cc0, 0x33},
505 {0x3d85, 0x14},
506 {0x3d8c, 0x73},
507 {0x3d8d, 0xde},
508 {0x4001, 0xe0},
509 {0x4003, 0x40},
510 {0x4008, 0x00},
511 {0x4009, 0x05},
512 {0x400a, 0x00},
513 {0x400b, 0x84},
514 {0x400f, 0x80},
515 {0x4010, 0xf0},
516 {0x4011, 0xff},
517 {0x4012, 0x02},
518 {0x4013, 0x01},
519 {0x4014, 0x01},
520 {0x4015, 0x01},
521 {0x4042, 0x00},
522 {0x4043, 0x80},
523 {0x4044, 0x00},
524 {0x4045, 0x80},
525 {0x4046, 0x00},
526 {0x4047, 0x80},
527 {0x4048, 0x00},
528 {0x4049, 0x80},
529 {0x4041, 0x03},
530 {0x404c, 0x20},
531 {0x404d, 0x00},
532 {0x404e, 0x20},
533 {0x4203, 0x80},
534 {0x4307, 0x30},
535 {0x4317, 0x00},
536 {0x4503, 0x08},
537 {0x4601, 0x80},
538 {0x4800, 0x44},
539 {0x4816, 0x53},
540 {0x481b, 0x58},
541 {0x481f, 0x27},
542 {0x4837, 0x16},
543 {0x483c, 0x0f},
544 {0x484b, 0x05},
545 {0x5000, 0x57},
546 {0x5001, 0x0a},
547 {0x5004, 0x06},
548 {0x502e, 0x03},
549 {0x5030, 0x41},
550 {0x5795, 0x00},
551 {0x5796, 0x10},
552 {0x5797, 0x10},
553 {0x5798, 0x73},
554 {0x5799, 0x73},
555 {0x579a, 0x00},
556 {0x579b, 0x28},
557 {0x579c, 0x00},
558 {0x579d, 0x16},
559 {0x579e, 0x06},
560 {0x579f, 0x20},
561 {0x57a0, 0x04},
562 {0x57a1, 0xa0},
563 {0x5780, 0x14},
564 {0x5781, 0x0f},
565 {0x5782, 0x44},
566 {0x5783, 0x02},
567 {0x5784, 0x01},
568 {0x5785, 0x01},
569 {0x5786, 0x00},
570 {0x5787, 0x04},
571 {0x5788, 0x02},
572 {0x5789, 0x0f},
573 {0x578a, 0xfd},
574 {0x578b, 0xf5},
575 {0x578c, 0xf5},
576 {0x578d, 0x03},
577 {0x578e, 0x08},
578 {0x578f, 0x0c},
579 {0x5790, 0x08},
580 {0x5791, 0x04},
581 {0x5792, 0x00},
582 {0x5793, 0x52},
583 {0x5794, 0xa3},
584 {0x59f8, 0x3d},
585 {0x5a08, 0x02},
586 {0x5b00, 0x02},
587 {0x5b01, 0x10},
588 {0x5b02, 0x03},
589 {0x5b03, 0xcf},
590 {0x5b05, 0x6c},
591 {0x5e00, 0x00}
596 {0x3000, 0x20},
597 {0x3003, 0x08},
598 {0x300e, 0x20},
599 {0x3010, 0x00},
600 {0x3015, 0x84},
601 {0x3018, 0x72},
602 {0x3021, 0x23},
603 {0x3033, 0x24},
604 {0x3500, 0x00},
605 {0x3501, 0x9a},
606 {0x3502, 0x20},
607 {0x3503, 0x08},
608 {0x3505, 0x83},
609 {0x3508, 0x01},
610 {0x3509, 0x80},
611 {0x350c, 0x00},
612 {0x350d, 0x80},
613 {0x350e, 0x04},
614 {0x350f, 0x00},
615 {0x3510, 0x00},
616 {0x3511, 0x02},
617 {0x3512, 0x00},
618 {0x3600, 0x72},
619 {0x3601, 0x40},
620 {0x3602, 0x30},
621 {0x3610, 0xc5},
622 {0x3611, 0x58},
623 {0x3612, 0x5c},
624 {0x3613, 0xca},
625 {0x3614, 0x20},
626 {0x3628, 0xff},
627 {0x3629, 0xff},
628 {0x362a, 0xff},
629 {0x3633, 0x10},
630 {0x3634, 0x10},
631 {0x3635, 0x10},
632 {0x3636, 0x10},
633 {0x3663, 0x08},
634 {0x3669, 0x34},
635 {0x366e, 0x10},
636 {0x3706, 0x86},
637 {0x370b, 0x7e},
638 {0x3714, 0x23},
639 {0x3730, 0x12},
640 {0x3733, 0x10},
641 {0x3764, 0x00},
642 {0x3765, 0x00},
643 {0x3769, 0x62},
644 {0x376a, 0x2a},
645 {0x376b, 0x30},
646 {0x3780, 0x00},
647 {0x3781, 0x24},
648 {0x3782, 0x00},
649 {0x3783, 0x23},
650 {0x3798, 0x2f},
651 {0x37a1, 0x60},
652 {0x37a8, 0x6a},
653 {0x37ab, 0x3f},
654 {0x37c2, 0x04},
655 {0x37c3, 0xf1},
656 {0x37c9, 0x80},
657 {0x37cb, 0x16},
658 {0x37cc, 0x16},
659 {0x37cd, 0x16},
660 {0x37ce, 0x16},
661 {0x3800, 0x00},
662 {0x3801, 0x00},
663 {0x3802, 0x00},
664 {0x3803, 0x06},
665 {0x3804, 0x0c},
666 {0x3805, 0xdf},
667 {0x3806, 0x09},
668 {0x3807, 0xa7},
669 {0x3808, 0x0c},
670 {0x3809, 0xd0},
671 {0x380a, 0x09},
672 {0x380b, 0xa0},
673 {0x380c, 0x07},
674 {0x380d, 0x88},
675 {0x380e, 0x09},
676 {0x380f, 0xb8},
677 {0x3810, 0x00},
678 {0x3811, 0x00},
679 {0x3812, 0x00},
680 {0x3813, 0x01},
681 {0x3814, 0x01},
682 {0x3815, 0x01},
683 {0x3816, 0x00},
684 {0x3817, 0x00},
685 {0x3818, 0x00},
686 {0x3819, 0x10},
687 {0x3820, 0x80},
688 {0x3821, 0x46},
689 {0x382a, 0x01},
690 {0x382b, 0x01},
691 {0x3830, 0x06},
692 {0x3836, 0x02},
693 {0x3862, 0x04},
694 {0x3863, 0x08},
695 {0x3cc0, 0x33},
696 {0x3d85, 0x17},
697 {0x3d8c, 0x73},
698 {0x3d8d, 0xde},
699 {0x4001, 0xe0},
700 {0x4003, 0x40},
701 {0x4008, 0x00},
702 {0x4009, 0x0b},
703 {0x400a, 0x00},
704 {0x400b, 0x84},
705 {0x400f, 0x80},
706 {0x4010, 0xf0},
707 {0x4011, 0xff},
708 {0x4012, 0x02},
709 {0x4013, 0x01},
710 {0x4014, 0x01},
711 {0x4015, 0x01},
712 {0x4042, 0x00},
713 {0x4043, 0x80},
714 {0x4044, 0x00},
715 {0x4045, 0x80},
716 {0x4046, 0x00},
717 {0x4047, 0x80},
718 {0x4048, 0x00},
719 {0x4049, 0x80},
720 {0x4041, 0x03},
721 {0x404c, 0x20},
722 {0x404d, 0x00},
723 {0x404e, 0x20},
724 {0x4203, 0x80},
725 {0x4307, 0x30},
726 {0x4317, 0x00},
727 {0x4503, 0x08},
728 {0x4601, 0x80},
729 {0x4800, 0x44},
730 {0x4816, 0x53},
731 {0x481b, 0x58},
732 {0x481f, 0x27},
733 {0x4837, 0x16},
734 {0x483c, 0x0f},
735 {0x484b, 0x05},
736 {0x5000, 0x57},
737 {0x5001, 0x0a},
738 {0x5004, 0x06},
739 {0x502e, 0x03},
740 {0x5030, 0x41},
741 {0x5780, 0x14},
742 {0x5781, 0x0f},
743 {0x5782, 0x44},
744 {0x5783, 0x02},
745 {0x5784, 0x01},
746 {0x5785, 0x01},
747 {0x5786, 0x00},
748 {0x5787, 0x04},
749 {0x5788, 0x02},
750 {0x5789, 0x0f},
751 {0x578a, 0xfd},
752 {0x578b, 0xf5},
753 {0x578c, 0xf5},
754 {0x578d, 0x03},
755 {0x578e, 0x08},
756 {0x578f, 0x0c},
757 {0x5790, 0x08},
758 {0x5791, 0x04},
759 {0x5792, 0x00},
760 {0x5793, 0x52},
761 {0x5794, 0xa3},
762 {0x5795, 0x02},
763 {0x5796, 0x20},
764 {0x5797, 0x20},
765 {0x5798, 0xd5},
766 {0x5799, 0xd5},
767 {0x579a, 0x00},
768 {0x579b, 0x50},
769 {0x579c, 0x00},
770 {0x579d, 0x2c},
771 {0x579e, 0x0c},
772 {0x579f, 0x40},
773 {0x57a0, 0x09},
774 {0x57a1, 0x40},
775 {0x59f8, 0x3d},
776 {0x5a08, 0x02},
777 {0x5b00, 0x02},
778 {0x5b01, 0x10},
779 {0x5b02, 0x03},
780 {0x5b03, 0xcf},
781 {0x5b05, 0x6c},
782 {0x5e00, 0x00}
787 {0x3000, 0x20},
788 {0x3003, 0x08},
789 {0x300e, 0x20},
790 {0x3010, 0x00},
791 {0x3015, 0x84},
792 {0x3018, 0x72},
793 {0x3021, 0x23},
794 {0x3033, 0x24},
795 {0x3500, 0x00},
796 {0x3501, 0x4c},
797 {0x3502, 0xe0},
798 {0x3503, 0x08},
799 {0x3505, 0x83},
800 {0x3508, 0x01},
801 {0x3509, 0x80},
802 {0x350c, 0x00},
803 {0x350d, 0x80},
804 {0x350e, 0x04},
805 {0x350f, 0x00},
806 {0x3510, 0x00},
807 {0x3511, 0x02},
808 {0x3512, 0x00},
809 {0x3600, 0x72},
810 {0x3601, 0x40},
811 {0x3602, 0x30},
812 {0x3610, 0xc5},
813 {0x3611, 0x58},
814 {0x3612, 0x5c},
815 {0x3613, 0xca},
816 {0x3614, 0x20},
817 {0x3628, 0xff},
818 {0x3629, 0xff},
819 {0x362a, 0xff},
820 {0x3633, 0x10},
821 {0x3634, 0x10},
822 {0x3635, 0x10},
823 {0x3636, 0x10},
824 {0x3663, 0x08},
825 {0x3669, 0x34},
826 {0x366e, 0x08},
827 {0x3706, 0x86},
828 {0x370b, 0x7e},
829 {0x3714, 0x27},
830 {0x3730, 0x12},
831 {0x3733, 0x10},
832 {0x3764, 0x00},
833 {0x3765, 0x00},
834 {0x3769, 0x62},
835 {0x376a, 0x2a},
836 {0x376b, 0x30},
837 {0x3780, 0x00},
838 {0x3781, 0x24},
839 {0x3782, 0x00},
840 {0x3783, 0x23},
841 {0x3798, 0x2f},
842 {0x37a1, 0x60},
843 {0x37a8, 0x6a},
844 {0x37ab, 0x3f},
845 {0x37c2, 0x14},
846 {0x37c3, 0xf1},
847 {0x37c9, 0x80},
848 {0x37cb, 0x16},
849 {0x37cc, 0x16},
850 {0x37cd, 0x16},
851 {0x37ce, 0x16},
852 {0x3800, 0x00},
853 {0x3801, 0x00},
854 {0x3802, 0x00},
855 {0x3803, 0x00},
856 {0x3804, 0x0c},
857 {0x3805, 0xdf},
858 {0x3806, 0x09},
859 {0x3807, 0xaf},
860 {0x3808, 0x06},
861 {0x3809, 0x68},
862 {0x380a, 0x04},
863 {0x380b, 0xd0},
864 {0x380c, 0x0e},
865 {0x380d, 0xec},
866 {0x380e, 0x04},
867 {0x380f, 0xe8},
868 {0x3810, 0x00},
869 {0x3811, 0x04},
870 {0x3812, 0x00},
871 {0x3813, 0x05},
872 {0x3814, 0x03},
873 {0x3815, 0x01},
874 {0x3816, 0x00},
875 {0x3817, 0x00},
876 {0x3818, 0x00},
877 {0x3819, 0x10},
878 {0x3820, 0x90},
879 {0x3821, 0x67},
880 {0x382a, 0x03},
881 {0x382b, 0x01},
882 {0x3830, 0x06},
883 {0x3836, 0x02},
884 {0x3862, 0x04},
885 {0x3863, 0x08},
886 {0x3cc0, 0x33},
887 {0x3d85, 0x17},
888 {0x3d8c, 0x73},
889 {0x3d8d, 0xde},
890 {0x4001, 0xe0},
891 {0x4003, 0x40},
892 {0x4008, 0x00},
893 {0x4009, 0x05},
894 {0x400a, 0x00},
895 {0x400b, 0x84},
896 {0x400f, 0x80},
897 {0x4010, 0xf0},
898 {0x4011, 0xff},
899 {0x4012, 0x02},
900 {0x4013, 0x01},
901 {0x4014, 0x01},
902 {0x4015, 0x01},
903 {0x4042, 0x00},
904 {0x4043, 0x80},
905 {0x4044, 0x00},
906 {0x4045, 0x80},
907 {0x4046, 0x00},
908 {0x4047, 0x80},
909 {0x4048, 0x00},
910 {0x4049, 0x80},
911 {0x4041, 0x03},
912 {0x404c, 0x20},
913 {0x404d, 0x00},
914 {0x404e, 0x20},
915 {0x4203, 0x80},
916 {0x4307, 0x30},
917 {0x4317, 0x00},
918 {0x4503, 0x08},
919 {0x4601, 0x80},
920 {0x4800, 0x44},
921 {0x4816, 0x53},
922 {0x481b, 0x58},
923 {0x481f, 0x27},
924 {0x4837, 0x16},
925 {0x483c, 0x0f},
926 {0x484b, 0x05},
927 {0x5000, 0x57},
928 {0x5001, 0x0a},
929 {0x5004, 0x06},
930 {0x502e, 0x03},
931 {0x5030, 0x41},
932 {0x5780, 0x14},
933 {0x5781, 0x0f},
934 {0x5782, 0x44},
935 {0x5783, 0x02},
936 {0x5784, 0x01},
937 {0x5785, 0x01},
938 {0x5786, 0x00},
939 {0x5787, 0x04},
940 {0x5788, 0x02},
941 {0x5789, 0x0f},
942 {0x578a, 0xfd},
943 {0x578b, 0xf5},
944 {0x578c, 0xf5},
945 {0x578d, 0x03},
946 {0x578e, 0x08},
947 {0x578f, 0x0c},
948 {0x5790, 0x08},
949 {0x5791, 0x04},
950 {0x5792, 0x00},
951 {0x5793, 0x52},
952 {0x5794, 0xa3},
953 {0x5795, 0x00},
954 {0x5796, 0x10},
955 {0x5797, 0x10},
956 {0x5798, 0x73},
957 {0x5799, 0x73},
958 {0x579a, 0x00},
959 {0x579b, 0x28},
960 {0x579c, 0x00},
961 {0x579d, 0x16},
962 {0x579e, 0x06},
963 {0x579f, 0x20},
964 {0x57a0, 0x04},
965 {0x57a1, 0xa0},
966 {0x59f8, 0x3d},
967 {0x5a08, 0x02},
968 {0x5b00, 0x02},
969 {0x5b01, 0x10},
970 {0x5b02, 0x03},
971 {0x5b03, 0xcf},
972 {0x5b05, 0x6c},
973 {0x5e00, 0x00}
978 {0x0103, 0x01},
979 {0x0302, 0x3c},
980 {0x0303, 0x01},
981 {0x031e, 0x0c},
982 {0x3000, 0x20},
983 {0x3003, 0x08},
984 {0x300e, 0x20},
985 {0x3010, 0x00},
986 {0x3015, 0x84},
987 {0x3018, 0x72},
988 {0x3021, 0x23},
989 {0x3033, 0x24},
990 {0x3500, 0x00},
991 {0x3501, 0x9a},
992 {0x3502, 0x20},
993 {0x3503, 0x08},
994 {0x3505, 0x83},
995 {0x3508, 0x01},
996 {0x3509, 0x80},
997 {0x350c, 0x00},
998 {0x350d, 0x80},
999 {0x350e, 0x04},
1000 {0x350f, 0x00},
1001 {0x3510, 0x00},
1002 {0x3511, 0x02},
1003 {0x3512, 0x00},
1004 {0x3600, 0x72},
1005 {0x3601, 0x40},
1006 {0x3602, 0x30},
1007 {0x3610, 0xc5},
1008 {0x3611, 0x58},
1009 {0x3612, 0x5c},
1010 {0x3613, 0xca},
1011 {0x3614, 0x60},
1012 {0x3628, 0xff},
1013 {0x3629, 0xff},
1014 {0x362a, 0xff},
1015 {0x3633, 0x10},
1016 {0x3634, 0x10},
1017 {0x3635, 0x10},
1018 {0x3636, 0x10},
1019 {0x3663, 0x08},
1020 {0x3669, 0x34},
1021 {0x366d, 0x00},
1022 {0x366e, 0x10},
1023 {0x3706, 0x86},
1024 {0x370b, 0x7e},
1025 {0x3714, 0x23},
1026 {0x3730, 0x12},
1027 {0x3733, 0x10},
1028 {0x3764, 0x00},
1029 {0x3765, 0x00},
1030 {0x3769, 0x62},
1031 {0x376a, 0x2a},
1032 {0x376b, 0x30},
1033 {0x3780, 0x00},
1034 {0x3781, 0x24},
1035 {0x3782, 0x00},
1036 {0x3783, 0x23},
1037 {0x3798, 0x2f},
1038 {0x37a1, 0x60},
1039 {0x37a8, 0x6a},
1040 {0x37ab, 0x3f},
1041 {0x37c2, 0x04},
1042 {0x37c3, 0xf1},
1043 {0x37c9, 0x80},
1044 {0x37cb, 0x16},
1045 {0x37cc, 0x16},
1046 {0x37cd, 0x16},
1047 {0x37ce, 0x16},
1048 {0x3800, 0x00},
1049 {0x3801, 0x00},
1050 {0x3802, 0x00},
1051 {0x3803, 0x0c},
1052 {0x3804, 0x0c},
1053 {0x3805, 0xdf},
1054 {0x3806, 0x09},
1055 {0x3807, 0xa3},
1056 {0x3808, 0x0c},
1057 {0x3809, 0xc0},
1058 {0x380a, 0x09},
1059 {0x380b, 0x90},
1060 {0x380c, 0x07},
1061 {0x380d, 0x8c},
1062 {0x380e, 0x09},
1063 {0x380f, 0xb2},
1064 {0x3810, 0x00},
1065 {0x3811, 0x04},
1066 {0x3812, 0x00},
1067 {0x3813, 0x02},
1068 {0x3814, 0x01},
1069 {0x3815, 0x01},
1070 {0x3816, 0x00},
1071 {0x3817, 0x00},
1072 {0x3818, 0x00},
1073 {0x3819, 0x10},
1074 {0x3820, 0x80},
1075 {0x3821, 0x46},
1076 {0x382a, 0x01},
1077 {0x382b, 0x01},
1078 {0x3830, 0x06},
1079 {0x3836, 0x02},
1080 {0x3862, 0x04},
1081 {0x3863, 0x08},
1082 {0x3cc0, 0x33},
1083 {0x3d85, 0x17},
1084 {0x3d8c, 0x73},
1085 {0x3d8d, 0xde},
1086 {0x4001, 0xe0},
1087 {0x4003, 0x40},
1088 {0x4008, 0x00},
1089 {0x4009, 0x0b},
1090 {0x400a, 0x00},
1091 {0x400b, 0x84},
1092 {0x400f, 0x80},
1093 {0x4010, 0xf0},
1094 {0x4011, 0xff},
1095 {0x4012, 0x02},
1096 {0x4013, 0x01},
1097 {0x4014, 0x01},
1098 {0x4015, 0x01},
1099 {0x4042, 0x00},
1100 {0x4043, 0x80},
1101 {0x4044, 0x00},
1102 {0x4045, 0x80},
1103 {0x4046, 0x00},
1104 {0x4047, 0x80},
1105 {0x4048, 0x00},
1106 {0x4049, 0x80},
1107 {0x4041, 0x03},
1108 {0x404c, 0x20},
1109 {0x404d, 0x00},
1110 {0x404e, 0x20},
1111 {0x4203, 0x80},
1112 {0x4307, 0x30},
1113 {0x4317, 0x00},
1114 {0x4502, 0x50},
1115 {0x4503, 0x08},
1116 {0x4601, 0x80},
1117 {0x4800, 0x44},
1118 {0x4816, 0x53},
1119 {0x481b, 0x50},
1120 {0x481f, 0x27},
1121 {0x4823, 0x3c},
1122 {0x482b, 0x00},
1123 {0x4831, 0x66},
1124 {0x4837, 0x16},
1125 {0x483c, 0x0f},
1126 {0x484b, 0x05},
1127 {0x5000, 0x77},
1128 {0x5001, 0x0a},
1129 {0x5003, 0xc8},
1130 {0x5004, 0x04},
1131 {0x5006, 0x00},
1132 {0x5007, 0x00},
1133 {0x502e, 0x03},
1134 {0x5030, 0x41},
1135 {0x5780, 0x14},
1136 {0x5781, 0x0f},
1137 {0x5782, 0x44},
1138 {0x5783, 0x02},
1139 {0x5784, 0x01},
1140 {0x5785, 0x01},
1141 {0x5786, 0x00},
1142 {0x5787, 0x04},
1143 {0x5788, 0x02},
1144 {0x5789, 0x0f},
1145 {0x578a, 0xfd},
1146 {0x578b, 0xf5},
1147 {0x578c, 0xf5},
1148 {0x578d, 0x03},
1149 {0x578e, 0x08},
1150 {0x578f, 0x0c},
1151 {0x5790, 0x08},
1152 {0x5791, 0x04},
1153 {0x5792, 0x00},
1154 {0x5793, 0x52},
1155 {0x5794, 0xa3},
1156 {0x5795, 0x02},
1157 {0x5796, 0x20},
1158 {0x5797, 0x20},
1159 {0x5798, 0xd5},
1160 {0x5799, 0xd5},
1161 {0x579a, 0x00},
1162 {0x579b, 0x50},
1163 {0x579c, 0x00},
1164 {0x579d, 0x2c},
1165 {0x579e, 0x0c},
1166 {0x579f, 0x40},
1167 {0x57a0, 0x09},
1168 {0x57a1, 0x40},
1169 {0x59f8, 0x3d},
1170 {0x5a08, 0x02},
1171 {0x5b00, 0x02},
1172 {0x5b01, 0x10},
1173 {0x5b02, 0x03},
1174 {0x5b03, 0xcf},
1175 {0x5b05, 0x6c},
1176 {0x5e00, 0x00},
1177 {0x5e10, 0xfc}
1182 {0x0103, 0x01},
1183 {0x0302, 0x3c},
1184 {0x0303, 0x01},
1185 {0x031e, 0x0c},
1186 {0x3000, 0x20},
1187 {0x3003, 0x08},
1188 {0x300e, 0x20},
1189 {0x3010, 0x00},
1190 {0x3015, 0x84},
1191 {0x3018, 0x72},
1192 {0x3021, 0x23},
1193 {0x3033, 0x24},
1194 {0x3500, 0x00},
1195 {0x3501, 0x4c},
1196 {0x3502, 0xe0},
1197 {0x3503, 0x08},
1198 {0x3505, 0x83},
1199 {0x3508, 0x01},
1200 {0x3509, 0x80},
1201 {0x350c, 0x00},
1202 {0x350d, 0x80},
1203 {0x350e, 0x04},
1204 {0x350f, 0x00},
1205 {0x3510, 0x00},
1206 {0x3511, 0x02},
1207 {0x3512, 0x00},
1208 {0x3600, 0x72},
1209 {0x3601, 0x40},
1210 {0x3602, 0x30},
1211 {0x3610, 0xc5},
1212 {0x3611, 0x58},
1213 {0x3612, 0x5c},
1214 {0x3613, 0xca},
1215 {0x3614, 0x60},
1216 {0x3628, 0xff},
1217 {0x3629, 0xff},
1218 {0x362a, 0xff},
1219 {0x3633, 0x10},
1220 {0x3634, 0x10},
1221 {0x3635, 0x10},
1222 {0x3636, 0x10},
1223 {0x3663, 0x08},
1224 {0x3669, 0x34},
1225 {0x366d, 0x00},
1226 {0x366e, 0x08},
1227 {0x3706, 0x86},
1228 {0x370b, 0x7e},
1229 {0x3714, 0x27},
1230 {0x3730, 0x12},
1231 {0x3733, 0x10},
1232 {0x3764, 0x00},
1233 {0x3765, 0x00},
1234 {0x3769, 0x62},
1235 {0x376a, 0x2a},
1236 {0x376b, 0x30},
1237 {0x3780, 0x00},
1238 {0x3781, 0x24},
1239 {0x3782, 0x00},
1240 {0x3783, 0x23},
1241 {0x3798, 0x2f},
1242 {0x37a1, 0x60},
1243 {0x37a8, 0x6a},
1244 {0x37ab, 0x3f},
1245 {0x37c2, 0x14},
1246 {0x37c3, 0xf1},
1247 {0x37c9, 0x80},
1248 {0x37cb, 0x16},
1249 {0x37cc, 0x16},
1250 {0x37cd, 0x16},
1251 {0x37ce, 0x16},
1252 {0x3800, 0x00},
1253 {0x3801, 0x00},
1254 {0x3802, 0x00},
1255 {0x3803, 0x0c},
1256 {0x3804, 0x0c},
1257 {0x3805, 0xdf},
1258 {0x3806, 0x09},
1259 {0x3807, 0xa3},
1260 {0x3808, 0x06},
1261 {0x3809, 0x60},
1262 {0x380a, 0x04},
1263 {0x380b, 0xc8},
1264 {0x380c, 0x07},
1265 {0x380d, 0x8c},
1266 {0x380e, 0x09},
1267 {0x380f, 0xb2},
1268 {0x3810, 0x00},
1269 {0x3811, 0x02},
1270 {0x3812, 0x00},
1271 {0x3813, 0x02},
1272 {0x3814, 0x03},
1273 {0x3815, 0x01},
1274 {0x3816, 0x00},
1275 {0x3817, 0x00},
1276 {0x3818, 0x00},
1277 {0x3819, 0x10},
1278 {0x3820, 0x80},
1279 {0x3821, 0x47},
1280 {0x382a, 0x03},
1281 {0x382b, 0x01},
1282 {0x3830, 0x06},
1283 {0x3836, 0x02},
1284 {0x3862, 0x04},
1285 {0x3863, 0x08},
1286 {0x3cc0, 0x33},
1287 {0x3d85, 0x17},
1288 {0x3d8c, 0x73},
1289 {0x3d8d, 0xde},
1290 {0x4001, 0xe0},
1291 {0x4003, 0x40},
1292 {0x4008, 0x00},
1293 {0x4009, 0x05},
1294 {0x400a, 0x00},
1295 {0x400b, 0x84},
1296 {0x400f, 0x80},
1297 {0x4010, 0xf0},
1298 {0x4011, 0xff},
1299 {0x4012, 0x02},
1300 {0x4013, 0x01},
1301 {0x4014, 0x01},
1302 {0x4015, 0x01},
1303 {0x4042, 0x00},
1304 {0x4043, 0x80},
1305 {0x4044, 0x00},
1306 {0x4045, 0x80},
1307 {0x4046, 0x00},
1308 {0x4047, 0x80},
1309 {0x4048, 0x00},
1310 {0x4049, 0x80},
1311 {0x4041, 0x03},
1312 {0x404c, 0x20},
1313 {0x404d, 0x00},
1314 {0x404e, 0x20},
1315 {0x4203, 0x80},
1316 {0x4307, 0x30},
1317 {0x4317, 0x00},
1318 {0x4502, 0x50},
1319 {0x4503, 0x08},
1320 {0x4601, 0x80},
1321 {0x4800, 0x44},
1322 {0x4816, 0x53},
1323 {0x481b, 0x50},
1324 {0x481f, 0x27},
1325 {0x4823, 0x3c},
1326 {0x482b, 0x00},
1327 {0x4831, 0x66},
1328 {0x4837, 0x16},
1329 {0x483c, 0x0f},
1330 {0x484b, 0x05},
1331 {0x5000, 0x77},
1332 {0x5001, 0x0a},
1333 {0x5003, 0xc8},
1334 {0x5004, 0x04},
1335 {0x5006, 0x00},
1336 {0x5007, 0x00},
1337 {0x502e, 0x03},
1338 {0x5030, 0x41},
1339 {0x5795, 0x00},
1340 {0x5796, 0x10},
1341 {0x5797, 0x10},
1342 {0x5798, 0x73},
1343 {0x5799, 0x73},
1344 {0x579a, 0x00},
1345 {0x579b, 0x28},
1346 {0x579c, 0x00},
1347 {0x579d, 0x16},
1348 {0x579e, 0x06},
1349 {0x579f, 0x20},
1350 {0x57a0, 0x04},
1351 {0x57a1, 0xa0},
1352 {0x5780, 0x14},
1353 {0x5781, 0x0f},
1354 {0x5782, 0x44},
1355 {0x5783, 0x02},
1356 {0x5784, 0x01},
1357 {0x5785, 0x01},
1358 {0x5786, 0x00},
1359 {0x5787, 0x04},
1360 {0x5788, 0x02},
1361 {0x5789, 0x0f},
1362 {0x578a, 0xfd},
1363 {0x578b, 0xf5},
1364 {0x578c, 0xf5},
1365 {0x578d, 0x03},
1366 {0x578e, 0x08},
1367 {0x578f, 0x0c},
1368 {0x5790, 0x08},
1369 {0x5791, 0x04},
1370 {0x5792, 0x00},
1371 {0x5793, 0x52},
1372 {0x5794, 0xa3},
1373 {0x59f8, 0x3d},
1374 {0x5a08, 0x02},
1375 {0x5b00, 0x02},
1376 {0x5b01, 0x10},
1377 {0x5b02, 0x03},
1378 {0x5b03, 0xcf},
1379 {0x5b05, 0x6c},
1380 {0x5e00, 0x00},
1381 {0x5e10, 0xfc}
1385 {0x3813, 0x02},
1389 {0x3813, 0x01},
1487 .link_freq_index = 0,
1538 .link_freq_index = 0,
1568 .link_freq_index = 0,
1591 unsigned int i, count = 0; in ov8856_modes_num()
1593 for (i = 0; i < ARRAY_SIZE(ov8856->priv_lane->supported_modes); i++) { in ov8856_modes_num()
1594 if (ov8856->priv_lane->supported_modes[i].width == 0) in ov8856_modes_num()
1627 u8 data_buf[4] = {0}; in ov8856_read_reg()
1634 msgs[0].addr = client->addr; in ov8856_read_reg()
1635 msgs[0].flags = 0; in ov8856_read_reg()
1636 msgs[0].len = sizeof(addr_buf); in ov8856_read_reg()
1637 msgs[0].buf = addr_buf; in ov8856_read_reg()
1649 return 0; in ov8856_read_reg()
1665 return 0; in ov8856_write_reg()
1675 for (i = 0; i < r_list->num_of_regs; i++) { in ov8856_write_reg_list()
1680 "failed to write reg 0x%4.4x. error = %d", in ov8856_write_reg_list()
1686 return 0; in ov8856_write_reg_list()
1696 return 0; in ov8856_identify_module()
1711 return 0; in ov8856_identify_module()
1823 int ret = 0; in ov8856_set_ctrl()
1838 return 0; in ov8856_set_ctrl()
1905 0, ov8856->priv_lane->link_freq_menu_items); in ov8856_init_controls()
1910 V4L2_CID_PIXEL_RATE, 0, in ov8856_init_controls()
1912 0, in ov8856_init_controls()
1915 0, in ov8856_init_controls()
1949 0, 0, ov8856_test_pattern_menu); in ov8856_init_controls()
1951 V4L2_CID_HFLIP, 0, 1, 1, 0); in ov8856_init_controls()
1953 V4L2_CID_VFLIP, 0, 1, 1, 0); in ov8856_init_controls()
1959 return 0; in ov8856_init_controls()
1970 for (index = 0; index < ARRAY_SIZE(ov8856_mbus_codes); ++index) in ov8856_update_pad_format()
2024 return 0; in ov8856_start_streaming()
2040 int ret = 0; in ov8856_set_stream()
2045 if (ret < 0) { in ov8856_set_stream()
2052 enable = 0; in ov8856_set_stream()
2073 return 0; in ov8856_power_on()
2076 if (ret < 0) { in ov8856_power_on()
2088 if (ret < 0) { in ov8856_power_on()
2093 gpiod_set_value_cansleep(ov8856->reset_gpio, 0); in ov8856_power_on()
2096 return 0; in ov8856_power_on()
2111 return 0; in ov8856_power_off()
2118 return 0; in ov8856_power_off()
2164 return 0; in ov8856_set_format()
2182 return 0; in ov8856_get_format()
2194 return 0; in ov8856_enum_mbus_code()
2207 for (index = 0; index < ARRAY_SIZE(ov8856_mbus_codes); ++index) in ov8856_enum_frame_size()
2218 return 0; in ov8856_enum_frame_size()
2226 ov8856_update_pad_format(ov8856, &ov8856->priv_lane->supported_modes[0], in ov8856_open()
2227 v4l2_subdev_state_get_format(fh->state, 0)); in ov8856_open()
2230 return 0; in ov8856_open()
2292 for (i = 0; i < ARRAY_SIZE(ov8856_supply_names); i++) in ov8856_get_hwcfg()
2339 for (i = 0; i < ARRAY_SIZE(ov8856->priv_lane->link_freq_menu_items); i++) { in ov8856_get_hwcfg()
2340 for (j = 0; j < bus_cfg.nr_of_link_frequencies; j++) { in ov8856_get_hwcfg()
2409 ov8856->cur_mode = &ov8856->priv_lane->supported_modes[0]; in ov8856_probe()
2429 if (ret < 0) { in ov8856_probe()
2441 return 0; in ov8856_probe()