From: Jonathan Cameron <jic23@kernel.org>
To: Andy Shevchenko <andriy.shevchenko@intel.com>
Cc: robertijtsma@gmail.com, "David Lechner" <dlechner@baylibre.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
linux-iio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 2/2] iio: light: add ams OSRAM TCS3430 XYZ and ambient light sensor driver
Date: Sat, 28 Nov 2026 01:17:27 +0000 [thread overview]
Message-ID: <20261128011727.297d2a27@jic23-hlaptop> (raw)
In-Reply-To: <awnB1KT-oJQoPjOM@ashevche-desk.local>
On Fri, 27 Nov 2026 19:45:56 +0200
Andy Shevchenko <andriy.shevchenko@intel.com> wrote:
> On Fri, Nov 27, 2026 at 09:12:50AM +0100, Robert Ijtsma via B4 Relay wrote:
> >
> > Add an IIO driver for the ams OSRAM TCS3430 ambient light and CIE 1931
> > XYZ tristimulus color sensor (found at I2C address 0x39 on devices such
> > as the Microsoft Surface Pro X).
> >
> > Unlike the older TAOS RGBC drivers (tcs3414, tcs3472) that use the 0x80
> > COMMAND-bit SMBus protocol and RGBC channels, and unlike the banked
> > MAZeT/JENCOLOR as73211 driver, the TCS3430 uses ams's direct-addressed
> > 0x80..0xdd register map and exposes Z, Y, IR1, and X tristimulus channels.
> >
> > The driver exposes:
> > - Illuminance (photopic Y channel) with raw counts and lux scale
> > - Modified intensity channels for X, Y, Z, and IR1
> > - Selectable scale and integration time via the IIO GTS helper across
> > 1x/4x/16x/64x/128x gain and 50.04/100.08/200.16/400.32 ms integration
> > time settings
> > - Regulator management and system sleep suspend/resume support
> >
> > Tested on Microsoft Surface Pro X SQ2 (SC8180X).
>
>
> There are a couple of nit-picks below, but overall LGTM, after addressing them
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
>
> ...
>
> > +config TCS3430
> > + tristate "ams OSRAM TCS3430 ambient light and CIE 1931 XYZ sensor"
>
> This doesn't scale, but okay, I don't expect this kind of compatible devices
> appear in a volume, we may rephrase this later on.
>
> > + depends on I2C
> > + select IIO_GTS_HELPER
> > + select REGMAP_I2C
> > + help
> > + If you say yes here you get support for the ams OSRAM TCS3430
> > + ambient light and CIE 1931 XYZ tristimulus color sensor.
>
> Usually when it starts with more that a single vendor line of the devices
> the list of them is better as it's easier to tweak later on:
>
> If you say yes here you get support for the following sensors:
> - ams OSRAM TCS3430 ambient light
> - CIE 1931 XYZ tristimulus color
Agree with general statement and perhaps only know this because of
a history with colour spaces: That second bit is a colour space in which
the ams OSRAM sensor presents its data, not another sensor.
Jonathan
next prev parent reply other threads:[~2026-11-28 1:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 8:12 [PATCH v3 0/2] iio: light: add support for ams OSRAM TCS3430 Robert Ijtsma via B4 Relay
2026-11-27 8:12 ` [PATCH v3 1/2] dt-bindings: iio: light: add " Robert Ijtsma via B4 Relay
2026-11-27 8:12 ` [PATCH v3 2/2] iio: light: add ams OSRAM TCS3430 XYZ and ambient light sensor driver Robert Ijtsma via B4 Relay
2026-11-27 17:45 ` Andy Shevchenko
2026-11-28 1:17 ` Jonathan Cameron [this message]
2026-11-28 1:42 ` Jonathan Cameron
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=20261128011727.297d2a27@jic23-hlaptop \
--to=jic23@kernel.org \
--cc=andriy.shevchenko@intel.com \
--cc=andy@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=krzk+dt@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nuno.sa@analog.com \
--cc=robertijtsma@gmail.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
all inboxes | Powered by JetHome®