From: Volodymyr Kharuk <vkh@melexis.com>
To: <linux-media@vger.kernel.org>
Cc: Andrii Kyselov <ays@melexis.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
devicetree@vger.kernel.org,
Hans Verkuil <hverkuil-cisco@xs4all.nl>,
Sakari Ailus <sakari.ailus@linux.intel.com>,
Benjamin Mugnier <benjamin.mugnier@foss.st.com>,
Volodymyr Kharuk <vkh@melexis.com>
Subject: [PATCH v6 00/10] media: i2c: mlx7502x ToF camera support
Date: Thu, 16 May 2024 19:41:45 +0300 [thread overview]
Message-ID: <cover.1715871189.git.vkh@melexis.com> (raw)
Hello all,
This email provides updated patches for the Melexis 75026 and 75027 Time of Flight
camera sensors. In version 6, there are fixes and improvements which listed below.
A key addition is trigger mode, introduced in patches 1/10 and 2/20.
This allows userspace applications to trigger frames with more precise control.
These patches have been successfully tested on Trenz TE0820 board.
v6:
- fix step of roi and compose
- remove redundant register set on mipi configuration
- add V4L2_CID_CAMERA_TRIGGER
- add V4L2_CID_CAMERA_TRIGGER_MODE
- implemented trigger mode in the driver
- use subdev state api
- add holding for VFLIP and HFLIP
- remade frame interval
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 (10):
media: uapi: ctrls: Add camera trigger controls
media: v4l: ctrls: Add camera trigger controls
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 | 1845 +++++++++++++++++
drivers/media/v4l2-core/v4l2-ctrls-api.c | 25 +-
drivers/media/v4l2-core/v4l2-ctrls-defs.c | 32 +
include/uapi/linux/mlx7502x.h | 28 +
include/uapi/linux/v4l2-controls.h | 22 +
13 files changed, 2177 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: 8771b7f31b7fff91a998e6afdb60650d4bac59a5
--
BR,
Volodymyr Kharuk
next reply other threads:[~2024-05-16 16:42 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-16 16:41 Volodymyr Kharuk [this message]
2024-05-16 16:41 ` [PATCH v6 01/10] media: uapi: ctrls: Add camera trigger controls Volodymyr Kharuk
2024-05-20 9:19 ` Benjamin Mugnier
2024-05-20 9:45 ` Volodymyr Kharuk
2024-05-16 16:41 ` [PATCH v6 02/10] media: v4l: " Volodymyr Kharuk
2024-05-16 16:41 ` [PATCH v6 03/10] media: uapi: ctrls: Add Time of Flight class controls Volodymyr Kharuk
2024-05-16 16:41 ` [PATCH v6 04/10] media: v4l: ctrls: Fill V4L2_CID_TOF_CLASS controls Volodymyr Kharuk
2024-05-16 16:41 ` [PATCH v6 05/10] media: Documentation: v4l: Add TOF class controls Volodymyr Kharuk
2024-05-16 16:41 ` [PATCH v6 06/10] media: v4l: ctrls-api: Allow array update in __v4l2_ctrl_modify_range Volodymyr Kharuk
2024-05-16 16:41 ` [PATCH v6 07/10] media: v4l: ctrls: Add user control base for mlx7502x Volodymyr Kharuk
2024-05-16 16:41 ` [PATCH v6 08/10] media: uapi: Add mlx7502x header file Volodymyr Kharuk
2024-05-16 16:41 ` [PATCH v6 09/10] media: dt-bindings: Add mlx7502x camera sensor Volodymyr Kharuk
2024-05-16 16:41 ` [PATCH v6 10/10] media: i2c: Add driver for mlx7502x ToF sensor Volodymyr Kharuk
2024-05-18 3:52 ` kernel test robot
2024-05-23 13:14 ` Dan Carpenter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1715871189.git.vkh@melexis.com \
--to=vkh@melexis.com \
--cc=ays@melexis.com \
--cc=benjamin.mugnier@foss.st.com \
--cc=devicetree@vger.kernel.org \
--cc=hverkuil-cisco@xs4all.nl \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=robh+dt@kernel.org \
--cc=sakari.ailus@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.