Skip to content

iio: light: veml3328: add support for new sensor

Joshua Crofts linux-devicetree linux-iio lkml 4 versions – In review

Get series with b4
b4 am [email protected] change-id 20260426-veml3328-5bf93f85198e

Versions newest first

  1. v4 Latest2 patches 3 repliesIn review
  2. v32 patches 9 repliesSuperseded inferred link
  3. v22 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches15 repliesSuperseded

Changes in v4 from the cover letter

- Fix PM_RUNTIME_ACQUIRE_AUTOSUSPEND() macro cleanup scope
- Add mutex to prevent race in veml3328_write_raw()
- Link to v3: https://lore.kernel.org/r/[email protected]

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dt-bindings: iio: light: veml6030: add veml3328Documentation/devicetree/bindings/iio/light/vishay,veml6030.yaml+4 -10 replies
2/2iio: light: veml3328: add support for new deviceMAINTAINERS drivers/iio/light/Kconfig drivers/iio/light/Makefile +1 more+439 -03 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchKrzysztof Kozlowski
1/2A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/2] iio: light: veml3328: add support for new sensor

This patch series adds support for the Vishay VEML3328 RGBCIR light sensor. The sensor communicates via I2C (SMBus compatible) and provides 5 types of 16-bit measurements: red, green, blue, clear and infrared.

Reasons for adding a new driver:
- Existing Vishay drivers in the kernel do not cover sensors that handle RGBC and IR simultaneously.
- The register map and configuration differ from other Vishay light sensors currently supported by IIO.

Testing:
- Tested on a Raspberry Pi 4 using a VEML3328 breakout board.

Datasheet:
https://www.vishay.com/docs/84968/veml3328.pdf

---
Changes in v4:
- Fix PM_RUNTIME_ACQUIRE_AUTOSUSPEND() macro cleanup scope
- Add mutex to prevent race in veml3328_write_raw()
- Link to v3: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Add additional IIO_LIGHT channel for ambient light sensing
- Remove separate dt binding file and added veml3328 entry to veml6030 yaml
- Move driver to PM_RUNTIME_ACQUIRE_AUTOSUSPEND() macro
- Add missing headers
- Remov redundant mutex as regmap handles it itself
- Use regmap_set/clear_bits() instead of regmap_update_bits()
- Removed redundant dev pointer
- Edit commit messages
- Various code style cleanups
- Link to v1: https://patch.msgid.link/[email protected]

Changes in v3:
- Add 2D array of precomputed scale values based on integration time
- Fix chan_spec masks
- Simplify read/write/avail callbacks

---
Joshua Crofts (2):
dt-bindings: iio: light: veml6030: add veml3328
iio: light: veml3328: add support for new device

 .../bindings/iio/light/vishay,veml6030.yaml        |   5 +-
 MAINTAINERS                                        |   5 +
 drivers/iio/light/Kconfig                          |  11 +
 drivers/iio/light/Makefile                         |   1 +
 drivers/iio/light/veml3328.c                       | 422 +++++++++++++++++++++
 5 files changed, 443 insertions(+), 1 deletion(-)

---
base-commit: 7b84b1e9dd850a5c9b55e27daa4ecdc2dd5b3431
change-id: 20260530-veml3328-d2ccb26d02c7

Best regards,

Signature · 1 line
Joshua Crofts <[email protected]>