|
|
Subscribe / Log in / New account

iio:light: add driver for veml6046x00 RGBIR color sensor

From:  Andreas Klinger <ak-AT-it-klinger.de>
To:  jic23-AT-kernel.org, robh-AT-kernel.org, krzk+dt-AT-kernel.org, conor+dt-AT-kernel.org
Subject:  [PATCH v7 0/3] iio:light: add driver for veml6046x00 RGBIR color sensor
Date:  Mon, 28 Jul 2025 09:54:43 +0200
Message-ID:  <20250728075447.338725-1-ak@it-klinger.de>
Cc:  lars-AT-metafoo.de, javier.carrasco.cruz-AT-gmail.com, mazziesaccount-AT-gmail.com, andriy.shevchenko-AT-linux.intel.com, arthur.becker-AT-sentec.com, perdaniel.olsson-AT-axis.com, mgonellabolduc-AT-dimonoff.com, muditsharma.info-AT-gmail.com, clamor95-AT-gmail.com, emil.gedenryd-AT-axis.com, ak-AT-it-klinger.de, devicetree-AT-vger.kernel.org, linux-iio-AT-vger.kernel.org, linux-kernel-AT-vger.kernel.org
Archive-link:  Article

This patchset adds an IIO driver for Vishay veml6046x00 RGBIR color sensor.

Changes in v7:
- Thanks to the reviews of Jonathan and Andy improvements in the PM could be
  implemented like removal of pm_runtime_mark_last_busy() and consistency in PM
  handling in some functions.

Changes in v6:
- Thanks to the in-depth review of Andy many datatype improvements were
  realized.
- According to Jonathans review change the channel types from IIO_LIGHT to
  IIO_INTENSITY.

Changes in v5:
- Thanks to the feedback of Andy and further explanations of Jonathan many
  improvements could be implemented.
- add documentation in kernel-doc format
- iio_push_to_buffers_with_ts() is not used as also testing against
  linux-stable where it is not available so far.

Changes in v4:
- implement feedback from Andy and Jonathan
- implement feedback from vendor (reading interrupt register as bulk read)

Changes in v3:
- implement a lot of feedback from Jonathan
- change scale value to real factor of lux per raw count instead of hardware
  gain  
- optimize code by using more lookup tables
- remove unimplemented threshold functionality

Changes in v2:
- fix missing include for example in vishay,veml6046x00.yaml

Andreas Klinger (3):
  dt-bindings: iio: light: veml6046x00: add color sensor
  iio: light: add support for veml6046x00 RGBIR color sensor
  MAINTAINER: add maintainer for veml6046x00

 .../iio/light/vishay,veml6046x00.yaml         |   51 +
 MAINTAINERS                                   |    6 +
 drivers/iio/light/Kconfig                     |   13 +
 drivers/iio/light/Makefile                    |    1 +
 drivers/iio/light/veml6046x00.c               | 1031 +++++++++++++++++
 5 files changed, 1102 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/iio/light/vishay,veml6046x00.yaml
 create mode 100644 drivers/iio/light/veml6046x00.c

-- 
2.39.5




Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds