]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: i2c: ov01a10: Add ov01a1b support
authorHans de Goede <hansg@kernel.org>
Tue, 14 Oct 2025 17:40:31 +0000 (19:40 +0200)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Tue, 13 Jan 2026 11:28:49 +0000 (12:28 +0100)
Add support for the ov01a1b model which is the exact same sensor as
the ov01a10 without a color-filter.

Note since there is no color-filter there is also no need to shift
the crop-window when flipping, so the crop window set by userspace may
cover the full sensor (border_size=0).

Signed-off-by: Hans de Goede <hansg@kernel.org>
Reviewed-by: Mehdi Djait <mehdi.djait@linux.intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/i2c/ov01a10.c

index 6d245b638b2d04188115c6eefc81436bc450d2e2..10227ae6fe420a10e52ad2920dfc0b5e2a605262 100644 (file)
@@ -1102,8 +1102,17 @@ static const struct ov01a10_sensor_cfg ov01a10_cfg = {
        .invert_vflip_shift = false,
 };
 
+static const struct ov01a10_sensor_cfg ov01a1b_cfg = {
+       .model = "ov01a1b",
+       .bus_fmt = MEDIA_BUS_FMT_Y10_1X10,
+       .pattern_size = 2, /* Keep coordinates aligned to a multiple of 2 */
+       .border_size = 0,
+       .format1_base_val = 0xa0,
+};
+
 static const struct acpi_device_id ov01a10_acpi_ids[] = {
        { "OVTI01A0", (uintptr_t)&ov01a10_cfg },
+       { "OVTI01AB", (uintptr_t)&ov01a1b_cfg },
        { }
 };