mbox series

[v2,0/2] Add support for mono version of Sony IMX290 sensor

Message ID 20230203191644.947643-1-dave.stevenson@raspberrypi.com
Headers show
Series Add support for mono version of Sony IMX290 sensor | expand

Message

Dave Stevenson Feb. 3, 2023, 7:16 p.m. UTC
The IMX290 comes in both mono and colour variants, but has no runtime way
of determining which is connected.
These patches adds support for either option.

Changes from v1:
- Renamed compatible from "sony,imx290-mono" to "sony,imx290llr" which is the
  actual model number for the mono sensor.
- Added an additional sony,imx290lqr as a synonym for the existing colour
  "sony,imx290".
- Broken description into paragraphs.
- Reworked the driver to take a struct for each compatible, rather than just
  the mono/colour status.

Dave Stevenson (2):
  media: dt-bindings: media: i2c: Add mono version to IMX290 bindings
  media: i2c: imx290: Add support for the mono sensor variant.

 .../bindings/media/i2c/sony,imx290.yaml       | 16 +++-
 drivers/media/i2c/imx290.c                    | 81 +++++++++++++++----
 2 files changed, 76 insertions(+), 21 deletions(-)