From: Robert Ijtsma <robertijtsma@gmail.com>
To: Andy Shevchenko <andriy.shevchenko@intel.com>
Cc: "Jonathan Cameron" <jic23@kernel.org>,
"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,
"Krzysztof Kozlowski" <krzysztof.kozlowski@oss.qualcomm.com>
Subject: Re: [PATCH v2 0/2] iio: light: add support for ams OSRAM TCS3430
Date: Thu, 26 Nov 2026 15:14:15 +0100 [thread overview]
Message-ID: <20261126141415.116a2eb352e6@gmail.com> (raw)
In-Reply-To: <awg91DruXE0fZ8l-@ashevche-desk.local>
Hi Andy,
On Thu, Nov 26, 2026 at 04:10:28PM +0200, Andy Shevchenko wrote:
> On Thu, Nov 26, 2026 at 09:11:46AM +0100, Robert Ijtsma via B4 Relay wrote:
> > Add Devicetree binding documentation and an IIO driver for the ams OSRAM
> > TCS3430 ambient light and CIE 1931 XYZ tristimulus color sensor.
> >
> > Tested on Microsoft Surface Pro X SQ2 (SC8180X), where the sensor is
> > connected on I2C at 0x39 and used for ambient light sensing.
>
> It's still unclear why a branch new driver. Can you elaborate on this?
Sure. Compared to the existing ams/TAOS color and ALS drivers in
drivers/iio/light/, the TCS3430 differs in both register interface and
sensing architecture:
- tcs3414 and tcs3472 are older TAOS RGBC (Red/Green/Blue/Clear) devices
using the legacy 0x80 COMMAND-bit SMBus protocol (register offsets
0x00..0x1b), different ATIME/gain encodings (e.g. tcs3414 fixed
12/100/400 ms steps; tcs3472 countdown (256 - ATIME) * 2.4 ms, max 64x
gain), and RGBC channels.
- as73211 is an unrelated MAZeT/JENCOLOR XYZ/UV sensor family (I2C
0x74..0x77) with banked config/output register spaces (0x00..0x08), a
1.024 MHz clock divider, temperature channel, and 1x..2048x gain.
- TCS3430 uses ams's direct-addressed 0x80..0xdd register map (no COMMAND
bit in register addresses: ENABLE at 0x80, ATIME at 0x81 as
(ATIME + 1) * 2.78 ms, CFG1 at 0x90, ID at 0x92, 16-bit Z/Y/IR1/X data
registers at 0x94..0x9b, CFG2 HGAIN bit at 0x9f for 128x gain, CFG3 at
0xab, INTENAB at 0xdd) and outputs CIE 1931 tristimulus Z/Y/IR1/X
channels plus photopic Y illuminance.
I will also note this distinction in the commit message / Kconfig help
when preparing v3 (alongside adding MODULE_IMPORT_NS("IIO_GTS_HELPER")
for CONFIG_TCS3430=m builds).
Best regards,
Robert
prev parent reply other threads:[~2026-11-26 14:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 8:11 [PATCH v2 0/2] iio: light: add support for ams OSRAM TCS3430 Robert Ijtsma via B4 Relay
2026-11-26 8:11 ` [PATCH v2 1/2] dt-bindings: iio: light: add " Robert Ijtsma via B4 Relay
2026-11-26 8:11 ` [PATCH v2 2/2] iio: light: add ams OSRAM TCS3430 XYZ and ambient light sensor driver Robert Ijtsma via B4 Relay
2026-11-26 14:10 ` [PATCH v2 0/2] iio: light: add support for ams OSRAM TCS3430 Andy Shevchenko
2026-11-26 14:14 ` Robert Ijtsma [this message]
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=20261126141415.116a2eb352e6@gmail.com \
--to=robertijtsma@gmail.com \
--cc=andriy.shevchenko@intel.com \
--cc=andy@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlechner@baylibre.com \
--cc=jic23@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzysztof.kozlowski@oss.qualcomm.com \
--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