devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] media: Add driver for ST VD56G3 camera sensor
@ 2024-05-21 16:29 Sylvain Petinot
  2024-05-21 16:29 ` [PATCH v2 1/2] media: dt-bindings: Add ST VD56G3 camera sensor binding Sylvain Petinot
  2024-05-21 16:29 ` [PATCH v2 2/2] media: i2c: Add driver for ST VD56G3 camera sensor Sylvain Petinot
  0 siblings, 2 replies; 17+ messages in thread
From: Sylvain Petinot @ 2024-05-21 16:29 UTC (permalink / raw)
  To: benjamin.mugnier, sylvain.petinot, mchehab, robh,
	krzysztof.kozlowski+dt, conor+dt
  Cc: linux-media, devicetree, linux-kernel

Hello,

This serie adds support for STMicroelectronics VD56G3 camera sensor.
This is a 1.5M pixel global shutter camera available in both Mono (VD56G3) and
colour (VD66GY) variants.

The following features are supported:
- Auto exposure with expo bias or
- Manual exposure with analog / digital gain
- H/V flip
- vblank/hblank/link freq
- Test pattern
- Supported resolutions in both raw8/raw10 :
   - 1124x1364
   - 1120x1360
   - 1024x1280
   - 1024x768
   - 768x1024
   - 720x1280
   - 640x480
   - 480x640
   - 320x240

This driver supports coldstart parameters for internal AE feature.
To make it work, the driver save gain/expo values in ctrl's cur.val during
poweroff phase. This implementation transgress V4L2 rules... Any advice to make
it proper would be greatly appreciated.

Driver tested on RB5 and RPI (with and without libcamera) for V1. V2 mainly
tested on RPI.

---

v1 -> v2:
- driver: Drop VD56G3_NUM_SUPPLIES
- driver: Rename 'ext_clock' to 'xclk_freq'
- driver: Make use of 'container_of_const' instead of 'container_of'
- driver: Drop usage of WARN()
- driver: Move a few variables to unsigned int
- driver: Add defines for the different Cut revisions
- driver: Replace dev_warn() by dev_err() in situation we're returning errors
- driver: Ensure sensor has dedicated 3.5ms to boot after reset
- driver: Take into account return value of __v4l2_ctrl_modify_range() and
  __v4l2_ctrl_s_ctrl() functions
- driver: Merge vd56g3_power_on() and vd56g3_boot()
- dt-bindings: Lowercase power supply names
- dt-bindings: Drop clock-lanes property
- dt-bindings: Drop unecessary 'items' contraint for lane-polarities
- dt-bindings: Drop unused labels


Sylvain Petinot (2):
  media: dt-bindings: Add ST VD56G3 camera sensor binding
  media: i2c: Add driver for ST VD56G3 camera sensor

 .../bindings/media/i2c/st,st-vd56g3.yaml      |  132 ++
 MAINTAINERS                                   |    9 +
 drivers/media/i2c/Kconfig                     |   11 +
 drivers/media/i2c/Makefile                    |    1 +
 drivers/media/i2c/st-vd56g3.c                 | 1608 +++++++++++++++++
 5 files changed, 1761 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/media/i2c/st,st-vd56g3.yaml
 create mode 100644 drivers/media/i2c/st-vd56g3.c

-- 
2.17.1


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2024-09-09  8:45 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-21 16:29 [PATCH v2 0/2] media: Add driver for ST VD56G3 camera sensor Sylvain Petinot
2024-05-21 16:29 ` [PATCH v2 1/2] media: dt-bindings: Add ST VD56G3 camera sensor binding Sylvain Petinot
2024-05-21 17:37   ` Krzysztof Kozlowski
2024-05-27 13:14     ` Sylvain Petinot
2024-05-27 19:00       ` Krzysztof Kozlowski
2024-06-03  8:46         ` Sylvain Petinot
2024-05-27 20:08       ` Sakari Ailus
2024-05-27 19:04   ` Krzysztof Kozlowski
2024-05-28  9:22     ` Sakari Ailus
2024-05-28  9:46       ` Krzysztof Kozlowski
2024-05-28 10:01         ` Sakari Ailus
2024-06-03  8:47           ` Sylvain Petinot
2024-05-21 16:29 ` [PATCH v2 2/2] media: i2c: Add driver for ST VD56G3 camera sensor Sylvain Petinot
2024-05-28 11:49   ` Sakari Ailus
2024-06-03  9:59     ` Sylvain Petinot
2024-09-09  7:06       ` Sakari Ailus
2024-09-09  8:42         ` Sylvain Petinot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).