]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: i2c: vd55g1: Add support for vd65g4 RGB variant
authorBenjamin Mugnier <benjamin.mugnier@foss.st.com>
Tue, 19 Aug 2025 14:47:42 +0000 (16:47 +0200)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Wed, 29 Oct 2025 13:07:01 +0000 (14:07 +0100)
commite138e7f000424ee3bfef5fd38055d4c3ed5933b9
tree7758565a6c9fa737fb9431e7b74ea5bc0bb3685c
parent5489abf66338c7890edc1a4ababedcb48ec3e996
media: i2c: vd55g1: Add support for vd65g4 RGB variant

The vd65g4 is the bayer version of the vd55g1.
As opposed to the vd55g1, the vd65g4 does not need any patch. Check the
sensor id at probe and choose to patch or not on power_on() according to
it.
It's bayer matrix's order is RGGB. This commit handles hflip and vflip
by switching the bayer pattern accordingly.

Signed-off-by: Benjamin Mugnier <benjamin.mugnier@foss.st.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/i2c/vd55g1.c