media: ov13b10: Add 1364x768 register settings
PATCH 1/1 media: ov13b10: Add 1364x768 register settings
This commit adds support for:
- 1364x768 at 120 FPS
Signed-off-by Hao Yao <[email protected]>
--- drivers/media/i2c/ov13b10.c | 58 ++++++++++++++++++++++++++++++++++++- 1 file changed, 57 insertions(+), 1 deletion(-)
drivers/media/i2c/ov13b10.c +57 -1
@@ -31,6 +31,7 @@#define OV13B10_REG_VTS 0x380e#define OV13B10_VTS_30FPS 0x0c7c#define OV13B10_VTS_60FPS 0x063e +#define OV13B10_VTS_120FPS 0x0320#define OV13B10_VTS_MAX 0x7fff/* HBLANK control - read only */
@@ -468,6 +469,50 @@ static const struct ov13b10_reg mode_2080x1170_regs[] = { {0x5001, 0x0d}, }; +static const struct ov13b10_reg mode_1364x768_120fps_regs[] = { + {0x0305 ,0xaf }, + {0x3011 ,0x7c }, + {0x3501 ,0x03 }, + {0x3502 ,0x00 }, + {0x3662 ,0x88 }, + {0x3714 ,0x28 }, + {0x3739 ,0x10 }, + {0x37c2 ,0x14 }, + {0x37d9 ,0x06 }, + {0x37e2 ,0x0c }, + {0x37e4 ,0x00 }, + {0x3800 ,0x02 }, + {0x3801 ,0xe4 }, + {0x3802 ,0x03 }, + {0x3803 ,0x48 }, + {0x3804 ,0x0d }, + {0x3805 ,0xab }, + {0x3806 ,0x09 }, + {0x3807 ,0x60 }, + {0x3808 ,0x05 }, + {0x3809 ,0x54 }, + {0x380a ,0x03 }, + {0x380b ,0x00 }, + {0x380c ,0x04 }, + {0x380d ,0x8e }, + {0x380e ,0x03 }, + {0x380f ,0x20 }, + {0x3811 ,0x07 }, + {0x3813 ,0x07 }, + {0x3814 ,0x03 }, + {0x3816 ,0x03 }, + {0x3820 ,0x8b }, + {0x3c8c ,0x18 }, + {0x4008 ,0x00 }, + {0x4009 ,0x05 }, + {0x4050 ,0x00 }, + {0x4051 ,0x05 }, + {0x4501 ,0x08 }, + {0x4505 ,0x04 }, + {0x5000 ,0xfd }, + {0x5001 ,0x0d }, +}; +static const char *const ov13b10_test_pattern_menu[] = {"Disabled" , "Vertical Color Bar Type 1",
@@ -568,7 +613,18 @@ static const struct ov13b10_mode supported_modes[] = { .regs = mode_2080x1170_regs, }, .link_freq_index = OV13B10_LINK_FREQ_INDEX_0, - } + }, + { + .width = 1364, + .height = 768, + .vts_def = OV13B10_VTS_120FPS, + .vts_min = OV13B10_VTS_120FPS, + .link_freq_index = OV13B10_LINK_FREQ_INDEX_0, + .reg_list = { + .num_of_regs = ARRAY_SIZE(mode_1364x768_120fps_regs), + .regs = mode_1364x768_120fps_regs, + }, + }, };struct ov13b10 {
Signature · 1 line
2.34.1