devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/8] media: i2c: mlx7502x ToF camera support
@ 2023-10-04  7:19 Volodymyr Kharuk
  2023-10-04  7:19 ` [PATCH v5 1/8] media: uapi: ctrls: Add Time of Flight class controls Volodymyr Kharuk
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Volodymyr Kharuk @ 2023-10-04  7:19 UTC (permalink / raw)
  To: linux-media
  Cc: Andrii Kyselov, Mauro Carvalho Chehab, Rob Herring,
	Krzysztof Kozlowski, Laurent Pinchart, devicetree, Hans Verkuil,
	Sakari Ailus, Benjamin Mugnier, Volodymyr Kharuk

Hello all,

This series adds support for the Melexis 75026 and 75027 Time of Flight
camera sensors, with DT bindings in patch 7/8 and a driver in patch 8/8.
In patches 1/8, 2/8 and 3/8, I've add ToF controls as separate
ToF control class. Also in patch 4/8 there is changes which allow to
modify range of control with array type.

v5:
- MHz to Hz for V4L2_CID_TOF_FREQ_MOD

v4:
- fix output mode
- forbid array for menu and warn if validate_new return an error
- add enums to custom control OUTPUT_MODE
- update doc
- minor fixes

v3:
- move FMOD, TINT, PHASE_SEQ to common V4L2 as ToF common controls
- FMOD and TINT became dynamic arrays
- remove PHASE_NUM, use dynamic_array for PHASE_SEQ,
  ctrl->new_elems pass number of phases
- remove leden-gpios, will be used gpio explicitly in library for now
- remade probe: use probe_new, no power on during probe
- remove autodetect and wildcard
- make all supplies to be required
- remove trigger ioctl, will add in separate patch series
- remove temperature ioctl, will add in separate patch series
- add documentation about custom ioctl
- style: 80 cols
- minor fixes device tree

v2:
- added external clock to the sensor
- added all regulators required by the sensor
- added posibility to choose sensor type in device tree
- added prefixes to all custom types in device tree and driver as well
- style fixes

Volodymyr Kharuk (8):
  media: uapi: ctrls: Add Time of Flight class controls
  media: v4l: ctrls: Fill V4L2_CID_TOF_CLASS controls
  media: Documentation: v4l: Add TOF class controls
  media: v4l: ctrls-api: Allow array update in __v4l2_ctrl_modify_range
  media: v4l: ctrls: Add user control base for mlx7502x
  media: uapi: Add mlx7502x header file
  media: dt-bindings: Add mlx7502x camera sensor
  media: i2c: Add driver for mlx7502x ToF sensor

 .../bindings/media/i2c/melexis,mlx7502x.yaml  |  126 ++
 .../userspace-api/media/drivers/index.rst     |    1 +
 .../userspace-api/media/drivers/mlx7502x.rst  |   28 +
 .../userspace-api/media/v4l/common.rst        |    1 +
 .../userspace-api/media/v4l/ext-ctrls-tof.rst |   56 +
 MAINTAINERS                                   |   11 +
 drivers/media/i2c/Kconfig                     |   13 +
 drivers/media/i2c/Makefile                    |    1 +
 drivers/media/i2c/mlx7502x.c                  | 1747 +++++++++++++++++
 drivers/media/v4l2-core/v4l2-ctrls-api.c      |   25 +-
 drivers/media/v4l2-core/v4l2-ctrls-defs.c     |   20 +
 include/uapi/linux/mlx7502x.h                 |   28 +
 include/uapi/linux/v4l2-controls.h            |   14 +
 13 files changed, 2059 insertions(+), 12 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/media/i2c/melexis,mlx7502x.yaml
 create mode 100644 Documentation/userspace-api/media/drivers/mlx7502x.rst
 create mode 100644 Documentation/userspace-api/media/v4l/ext-ctrls-tof.rst
 create mode 100644 drivers/media/i2c/mlx7502x.c
 create mode 100644 include/uapi/linux/mlx7502x.h


base-commit: 2c1bae27df787c9535e48cc27bbd11c3c3e0a235
-- 
BR,
Volodymyr Kharuk


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

end of thread, other threads:[~2023-10-04  7:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-04  7:19 [PATCH v5 0/8] media: i2c: mlx7502x ToF camera support Volodymyr Kharuk
2023-10-04  7:19 ` [PATCH v5 1/8] media: uapi: ctrls: Add Time of Flight class controls Volodymyr Kharuk
2023-10-04  7:19 ` [PATCH v5 2/8] media: v4l: ctrls: Fill V4L2_CID_TOF_CLASS controls Volodymyr Kharuk
2023-10-04  7:19 ` [PATCH v5 3/8] media: Documentation: v4l: Add TOF class controls Volodymyr Kharuk
2023-10-04  7:19 ` [PATCH v5 4/8] media: v4l: ctrls-api: Allow array update in __v4l2_ctrl_modify_range Volodymyr Kharuk
2023-10-04  7:19 ` [PATCH v5 5/8] media: v4l: ctrls: Add user control base for mlx7502x Volodymyr Kharuk
2023-10-04  7:19 ` [PATCH v5 6/8] media: uapi: Add mlx7502x header file Volodymyr Kharuk
2023-10-04  7:19 ` [PATCH v5 7/8] media: dt-bindings: Add mlx7502x camera sensor Volodymyr Kharuk
2023-10-04  7:19 ` [PATCH v5 8/8] media: i2c: Add driver for mlx7502x ToF sensor Volodymyr Kharuk

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).