Linux IIO development
 help / color / mirror / Atom feed
From: Andy Shevchenko <andriy.shevchenko@intel.com>
To: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Cc: "Jonathan Cameron" <jic23@kernel.org>,
	"Lars-Peter Clausen" <lars@metafoo.de>,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"David Lechner" <dlechner@baylibre.com>,
	"Nuno Sá" <nuno.sa@analog.com>,
	"Andy Shevchenko" <andy@kernel.org>,
	linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	"Krzysztof Kozlowski" <krzk@kernel.org>
Subject: Re: [PATCH v7 0/4] iio: light: add support for veml6031x00 ALS series
Date: Tue, 18 Aug 2026 17:02:35 +0300	[thread overview]
Message-ID: <aoRl-7XIianTyKIB@ashevche-desk.local> (raw)
In-Reply-To: <20260818-veml6031x00-v7-0-2b0de0f20edf@gmail.com>

On Tue, Aug 18, 2026 at 01:34:25PM +0200, Javier Carrasco wrote:
> These ambient light sensors with I2C interface provide two light
> channels (ALS and IR), high/low threshold alarms with configurable
> persistence, and a data ready signal.
> 
> The devices covered by this driver have the same resolution, and they
> share most of their functionality. These are the differences between
> them (note that the x belongs to their names, and it is not a wildcard):
> 
>  - Device ID: accessible via two 8-bit registers, different values for
>    veml6031x00/veml6031x01 and veml60311x00/veml60311x01.
>  - I2C address: same grouping, 0x29 and 0x10 I2C addresses.
>  - AEC qualification: AEC-Q100 for veml6031x00/veml60311x00 and
>    AEC-Q101 for veml6031x01/veml60311x01.
> 
> The alarms and the data ready signals share the interrupt pin, and an
> interrupt status register must be accessed to identify the source. Such
> multiplexing is not new in IIO, and I have followed existing examples
> for it. The persistence setting (own attribute) to trigger the alarms
> uses the pattern that has already been used for the veml6030.
> 
> The device configuration is in general documented in the datasheet and
> the application note. There is an exception, though: the activation of
> the "active force" mode that is required for the data ready signal must
> be carried out in two steps even though the affected bits are located in
> the same register: first ALS_AF (active force mode enable) must be set,
> and then ALS_TRIG (active force trigger setting) must be enabled. I have
> added a brief commentary in the code to explain this behavior, which has
> been confirmed by the manufacturer.
> 
> The datasheet specifies the scale and integration time for the ALS channel.
> Although both settings also affect the measured IR value, no transfer
> function, accuracy, or calibration is specified for converting the IR
> output into a physical quantity. The IR channel is therefore intended only
> as a qualitative indication of the infrared content of the incident light,
> rather than as a precision measurement channel. Consequently, the driver
> does not expose scale or integration time as IR-channel attributes.
> 
> The only functionality that has not been implemented yet is the x0.66
> gain (and its x0.165 counterpart when PD_DIV=1), which makes the gts
> helpers less usable due to the conversions required. It is indeed an
> uncommon gain to use (there are x0.5 and x0.125 gains) with no known
> use-case at the moment that justifies making adjustments to the gts
> helpers or adding artificial conversions to make it work.
> 
> This driver has been tested with the four supported devices separately
> as well as in pairs where the I2C addresses don't overlap.

Reviewed-by: Andy Shevchenko <andy@kernel.org>
for all patches, but DT.

There are minor things that may be addressed later, or in next version if asked
for other reasons.

-- 
With Best Regards,
Andy Shevchenko



  parent reply	other threads:[~2026-08-18 14:02 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-18 11:34 [PATCH v7 0/4] iio: light: add support for veml6031x00 ALS series Javier Carrasco
2026-08-18 11:34 ` [PATCH v7 1/4] dt-bindings: iio: light: veml6030: add " Javier Carrasco
2026-08-18 11:34 ` [PATCH v7 2/4] iio: light: add support for " Javier Carrasco
2026-08-18 13:30   ` Andy Shevchenko
2026-08-18 11:34 ` [PATCH v7 3/4] iio: light: veml6031x00: add support for triggered buffers Javier Carrasco
2026-08-18 13:32   ` Andy Shevchenko
2026-08-18 11:34 ` [PATCH v7 4/4] iio: light: veml6031x00: add support for events and trigger Javier Carrasco
2026-08-18 14:01   ` Andy Shevchenko
2026-08-18 16:10     ` Javier Carrasco
2026-08-19  4:42       ` Andy Shevchenko
2026-08-19 18:33         ` Javier Carrasco
2026-08-19 18:54           ` Andy Shevchenko
2026-08-19 19:41             ` Javier Carrasco
2026-08-18 14:02 ` Andy Shevchenko [this message]
2026-08-19  1:04   ` [PATCH v7 0/4] iio: light: add support for veml6031x00 ALS series Jonathan Cameron
2026-08-19 18:39     ` Javier Carrasco

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=aoRl-7XIianTyKIB@ashevche-desk.local \
    --to=andriy.shevchenko@intel.com \
    --cc=andy@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=javier.carrasco.cruz@gmail.com \
    --cc=jic23@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=krzk@kernel.org \
    --cc=lars@metafoo.de \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nuno.sa@analog.com \
    --cc=robh@kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox