Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: i2c/hi556: add a new mode 1296x722 settings

Add a new mode - 16:9 resolution 1296x722 for hi556.

Signed-off-by: Bingbu Cao <bingbu.cao@intel.com>
Signed-off-by: Qingwu Zhang <qingwu.zhang@intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>

authored by

Bingbu Cao and committed by
Hans Verkuil
206d8a9b 17c74cb8

+63 -1
+63 -1
drivers/media/i2c/hi556.c
··· 477 477 {0x0958, 0xbb80}, 478 478 }; 479 479 480 + static const struct hi556_reg mode_1296x722_regs[] = { 481 + {0x0a00, 0x0000}, 482 + {0x0b0a, 0x8259}, 483 + {0x0f30, 0x5b15}, 484 + {0x0f32, 0x7167}, 485 + {0x004a, 0x0100}, 486 + {0x004c, 0x0000}, 487 + {0x004e, 0x0100}, 488 + {0x000c, 0x0122}, 489 + {0x0008, 0x0b00}, 490 + {0x005a, 0x0404}, 491 + {0x0012, 0x000c}, 492 + {0x0018, 0x0a33}, 493 + {0x0022, 0x0008}, 494 + {0x0028, 0x0017}, 495 + {0x0024, 0x0022}, 496 + {0x002a, 0x002b}, 497 + {0x0026, 0x012a}, 498 + {0x002c, 0x06cf}, 499 + {0x002e, 0x3311}, 500 + {0x0030, 0x3311}, 501 + {0x0032, 0x3311}, 502 + {0x0006, 0x0814}, 503 + {0x0a22, 0x0000}, 504 + {0x0a12, 0x0510}, 505 + {0x0a14, 0x02d2}, 506 + {0x003e, 0x0000}, 507 + {0x0074, 0x0812}, 508 + {0x0070, 0x0409}, 509 + {0x0804, 0x0308}, 510 + {0x0806, 0x0100}, 511 + {0x0a04, 0x016a}, 512 + {0x090c, 0x09c0}, 513 + {0x090e, 0x0010}, 514 + {0x0902, 0x4319}, 515 + {0x0914, 0xc106}, 516 + {0x0916, 0x040e}, 517 + {0x0918, 0x0304}, 518 + {0x091a, 0x0708}, 519 + {0x091c, 0x0e06}, 520 + {0x091e, 0x0300}, 521 + {0x0958, 0xbb80}, 522 + }; 523 + 480 524 static const char * const hi556_test_pattern_menu[] = { 481 525 "Disabled", 482 526 "Solid Colour", ··· 600 556 .regs = mode_1296x972_regs, 601 557 }, 602 558 .link_freq_index = HI556_LINK_FREQ_437MHZ_INDEX, 603 - } 559 + }, 560 + { 561 + .width = 1296, 562 + .height = 722, 563 + .crop = { 564 + .left = HI556_PIXEL_ARRAY_LEFT, 565 + .top = 250, 566 + .width = HI556_PIXEL_ARRAY_WIDTH, 567 + .height = 1444 568 + }, 569 + .fll_def = HI556_FLL_30FPS, 570 + .fll_min = HI556_FLL_30FPS_MIN, 571 + .llp = 0x0b00, 572 + .reg_list = { 573 + .num_of_regs = ARRAY_SIZE(mode_1296x722_regs), 574 + .regs = mode_1296x722_regs, 575 + }, 576 + .link_freq_index = HI556_LINK_FREQ_437MHZ_INDEX, 577 + }, 604 578 }; 605 579 606 580 struct hi556 {