media: i2c/hi556: add a new mode 1296x722 settings
PATCH 1/1 media: i2c/hi556: add a new mode 1296x722 settings
Add a new mode - 16:9 resolution 1296x722 for hi556.
Signed-off-by Bingbu Cao <[email protected]>
Signed-off-by Qingwu Zhang <[email protected]>
--- drivers/media/i2c/hi556.c | 64 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 63 insertions(+), 1 deletion(-)
drivers/media/i2c/hi556.c +63 -1
@@ -477,6 +477,50 @@ static const struct hi556_reg mode_1296x972_regs[] = { {0x0958, 0xbb80}, }; +static const struct hi556_reg mode_1296x722_regs[] = { + {0x0a00 ,0x0000 }, + {0x0b0a ,0x8259 }, + {0x0f30 ,0x5b15 }, + {0x0f32 ,0x7167 }, + {0x004a ,0x0100 }, + {0x004c ,0x0000 }, + {0x004e ,0x0100 }, + {0x000c ,0x0122 }, + {0x0008 ,0x0b00 }, + {0x005a ,0x0404 }, + {0x0012 ,0x000c }, + {0x0018 ,0x0a33 }, + {0x0022 ,0x0008 }, + {0x0028 ,0x0017 }, + {0x0024 ,0x0022 }, + {0x002a ,0x002b }, + {0x0026 ,0x012a }, + {0x002c ,0x06cf }, + {0x002e ,0x3311 }, + {0x0030 ,0x3311 }, + {0x0032 ,0x3311 }, + {0x0006 ,0x0814 }, + {0x0a22 ,0x0000 }, + {0x0a12 ,0x0510 }, + {0x0a14 ,0x02d2 }, + {0x003e ,0x0000 }, + {0x0074 ,0x0812 }, + {0x0070 ,0x0409 }, + {0x0804 ,0x0308 }, + {0x0806 ,0x0100 }, + {0x0a04 ,0x016a }, + {0x090c ,0x09c0 }, + {0x090e ,0x0010 }, + {0x0902 ,0x4319 }, + {0x0914 ,0xc106 }, + {0x0916 ,0x040e }, + {0x0918 ,0x0304 }, + {0x091a ,0x0708 }, + {0x091c ,0x0e06 }, + {0x091e ,0x0300 }, + {0x0958 ,0xbb80 }, +}; +static const char *const hi556_test_pattern_menu[] = {"Disabled" , "Solid Colour",
@@ -556,7 +600,25 @@ static const struct hi556_mode supported_modes[] = { .regs = mode_1296x972_regs, }, .link_freq_index = HI556_LINK_FREQ_437MHZ_INDEX, - } + }, + { + .width = 1296, + .height = 722, + .crop = { + .left = HI556_PIXEL_ARRAY_LEFT, + .top = 250, + .width = HI556_PIXEL_ARRAY_WIDTH, + .height =1444 + }, + .fll_def = HI556_FLL_30FPS, + .fll_min = HI556_FLL_30FPS_MIN, + .llp = 0x0b00, + .reg_list = { + .num_of_regs = ARRAY_SIZE(mode_1296x722_regs), + .regs = mode_1296x722_regs, + }, + .link_freq_index = HI556_LINK_FREQ_437MHZ_INDEX, + }, }; struct hi556 {
Signature · 1 line
2.7.4