* [PATCH v2 0/2] iio: light: add support for ams OSRAM TCS3430
@ 2026-11-26 8:11 Robert Ijtsma via B4 Relay
2026-11-26 8:11 ` [PATCH v2 1/2] dt-bindings: iio: light: add " Robert Ijtsma via B4 Relay
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Robert Ijtsma via B4 Relay @ 2026-11-26 8:11 UTC (permalink / raw)
To: Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko,
Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: linux-iio, devicetree, linux-kernel, Robert Ijtsma,
Krzysztof Kozlowski
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.
Signed-off-by: Robert Ijtsma <robertijtsma@gmail.com>
---
Changes in v2:
- Replace hardwaregain control with standard IIO _scale and configurable
integration time using the IIO GTS helper (Jonathan Cameron).
- Hold data->lock across the entire IIO_CHAN_INFO_SCALE path in
tcs3430_read_raw() (Jonathan Cameron).
- Convert register I/O to regmap_i2c (Joshua Crofts).
- Wrap guard(mutex) declarations in tcs3430_read_raw() switch cases in
enclosing blocks to fix Clang -Wjump-misses-init / cleanup scoping
(kernel test robot, Joshua Crofts).
- Use switch(mask) in tcs3430_read_avail() and tcs3430_write_raw(), and
drop unused linux/mod_devicetable.h include (Joshua Crofts).
- Drop redundant L: mailing-list line from MAINTAINERS (Joshua Crofts).
- Pick up Krzysztof Kozlowski's Reviewed-by on dt-bindings.
- Link to v1: https://patch.msgid.link/20261124-iio-tcs3430-v1-0-0f2a38a6a4c1@gmail.com
---
Robert Ijtsma (2):
dt-bindings: iio: light: add ams OSRAM TCS3430
iio: light: add ams OSRAM TCS3430 XYZ and ambient light sensor driver
.../devicetree/bindings/iio/light/ams,tcs3430.yaml | 52 +++
MAINTAINERS | 6 +
drivers/iio/light/Kconfig | 12 +
drivers/iio/light/Makefile | 1 +
drivers/iio/light/tcs3430.c | 489 +++++++++++++++++++++
5 files changed, 560 insertions(+)
---
base-commit: 4843f6873f7c4835e62f2c73ba0fd538e57a2f22
change-id: 20261124-iio-tcs3430-2f53879527ed
Best regards,
--
Robert Ijtsma <robertijtsma@gmail.com>
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH v2 1/2] dt-bindings: iio: light: add ams OSRAM TCS3430
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 ` 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
2 siblings, 0 replies; 9+ messages in thread
From: Robert Ijtsma via B4 Relay @ 2026-11-26 8:11 UTC (permalink / raw)
To: Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko,
Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: linux-iio, devicetree, linux-kernel, Robert Ijtsma,
Krzysztof Kozlowski
From: Robert Ijtsma <robertijtsma@gmail.com>
Add Devicetree binding schema for the ams OSRAM TCS3430 ambient light
and CIE 1931 XYZ tristimulus color sensor.
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: Robert Ijtsma <robertijtsma@gmail.com>
---
.../devicetree/bindings/iio/light/ams,tcs3430.yaml | 52 ++++++++++++++++++++++
MAINTAINERS | 5 +++
2 files changed, 57 insertions(+)
diff --git a/Documentation/devicetree/bindings/iio/light/ams,tcs3430.yaml b/Documentation/devicetree/bindings/iio/light/ams,tcs3430.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..085a70e5557b1b5201bdd11e00736af065e002de
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/light/ams,tcs3430.yaml
@@ -0,0 +1,52 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/light/ams,tcs3430.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: ams OSRAM TCS3430 XYZ Tristimulus Color and Ambient Light Sensor
+
+maintainers:
+ - Robert Ijtsma <robertijtsma@gmail.com>
+
+description: |
+ The ams OSRAM TCS3430 is an I2C ambient light and CIE 1931 XYZ tristimulus
+ color sensor with photopic Y, Z, X, and IR channels.
+
+ Datasheet: https://look.ams-osram.com/m/43d518b4cd81e3f2/original/TCS3430-DS000539.pdf
+
+properties:
+ compatible:
+ const: ams,tcs3430
+
+ reg:
+ maxItems: 1
+
+ vdd-supply: true
+
+ interrupts:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+ - vdd-supply
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/irq.h>
+
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ light-sensor@39 {
+ compatible = "ams,tcs3430";
+ reg = <0x39>;
+ vdd-supply = <&vdd_reg>;
+ interrupts = <24 IRQ_TYPE_LEVEL_LOW>;
+ };
+ };
+...
diff --git a/MAINTAINERS b/MAINTAINERS
index 44540a1eb2b8088f9da95a9b6f83b4bf05188ee1..ea8ebd8ccd849702e82bf6aaeb4d8d60c2255628 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -1489,6 +1489,11 @@ S: Maintained
F: Documentation/devicetree/bindings/iio/light/ams,as73211.yaml
F: drivers/iio/light/as73211.c
+AMS TCS3430 DRIVER
+M: Robert Ijtsma <robertijtsma@gmail.com>
+S: Maintained
+F: Documentation/devicetree/bindings/iio/light/ams,tcs3430.yaml
+
AMT (Automatic Multicast Tunneling)
M: Taehee Yoo <ap420073@gmail.com>
L: netdev@vger.kernel.org
--
2.47.3
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH v2 2/2] iio: light: add ams OSRAM TCS3430 XYZ and ambient light sensor driver
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 ` Robert Ijtsma via B4 Relay
2026-11-26 8:20 ` sashiko-bot
` (2 more replies)
2026-11-26 14:10 ` [PATCH v2 0/2] iio: light: add support for ams OSRAM TCS3430 Andy Shevchenko
2 siblings, 3 replies; 9+ messages in thread
From: Robert Ijtsma via B4 Relay @ 2026-11-26 8:11 UTC (permalink / raw)
To: Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko,
Rob Herring, Krzysztof Kozlowski, Conor Dooley
Cc: linux-iio, devicetree, linux-kernel, Robert Ijtsma
From: Robert Ijtsma <robertijtsma@gmail.com>
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).
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).
Signed-off-by: Robert Ijtsma <robertijtsma@gmail.com>
---
MAINTAINERS | 1 +
drivers/iio/light/Kconfig | 12 ++
drivers/iio/light/Makefile | 1 +
drivers/iio/light/tcs3430.c | 489 ++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 503 insertions(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index ea8ebd8ccd849702e82bf6aaeb4d8d60c2255628..0534464e1d5df51a5ddbc77798143fa1eb03f9cc 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -1493,6 +1493,7 @@ AMS TCS3430 DRIVER
M: Robert Ijtsma <robertijtsma@gmail.com>
S: Maintained
F: Documentation/devicetree/bindings/iio/light/ams,tcs3430.yaml
+F: drivers/iio/light/tcs3430.c
AMT (Automatic Multicast Tunneling)
M: Taehee Yoo <ap420073@gmail.com>
diff --git a/drivers/iio/light/Kconfig b/drivers/iio/light/Kconfig
index 462fff1ddef20700aedf20743c3e8a36017a9151..d1da709a0587a95875d265484f82c56e04902fd6 100644
--- a/drivers/iio/light/Kconfig
+++ b/drivers/iio/light/Kconfig
@@ -609,6 +609,18 @@ config TCS3414
This driver can also be built as a module. If so, the module
will be called tcs3414.
+config TCS3430
+ tristate "ams OSRAM TCS3430 ambient light and XYZ color sensor"
+ 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.
+
+ This driver can also be built as a module. If so, the module
+ will be called tcs3430.
+
config TCS3472
tristate "TAOS TCS3472 color light-to-digital converter"
depends on I2C
diff --git a/drivers/iio/light/Makefile b/drivers/iio/light/Makefile
index 6672ed01a8193b9e96a9c84ba5d069f37b307a08..cd7b42e5524678c112e0ffa1b4dc07222077262d 100644
--- a/drivers/iio/light/Makefile
+++ b/drivers/iio/light/Makefile
@@ -56,6 +56,7 @@ obj-$(CONFIG_ST_UVIS25) += st_uvis25_core.o
obj-$(CONFIG_ST_UVIS25_I2C) += st_uvis25_i2c.o
obj-$(CONFIG_ST_UVIS25_SPI) += st_uvis25_spi.o
obj-$(CONFIG_TCS3414) += tcs3414.o
+obj-$(CONFIG_TCS3430) += tcs3430.o
obj-$(CONFIG_TCS3472) += tcs3472.o
obj-$(CONFIG_SENSORS_TSL2563) += tsl2563.o
obj-$(CONFIG_TSL2583) += tsl2583.o
diff --git a/drivers/iio/light/tcs3430.c b/drivers/iio/light/tcs3430.c
new file mode 100644
index 0000000000000000000000000000000000000000..226568c95e8da3217be1650186a716f1bef3bebb
--- /dev/null
+++ b/drivers/iio/light/tcs3430.c
@@ -0,0 +1,489 @@
+// SPDX-License-Identifier: GPL-2.0-only
+/*
+ * IIO driver for ams OSRAM TCS3430 Ambient Light and CIE 1931 XYZ Sensor
+ *
+ * Copyright (C) 2026 Robert Ijtsma <robertijtsma@gmail.com>
+ *
+ * Datasheet:
+ * https://look.ams-osram.com/m/43d518b4cd81e3f2/original/TCS3430-DS000539.pdf
+ */
+
+#include <linux/array_size.h>
+#include <linux/bitfield.h>
+#include <linux/bits.h>
+#include <linux/cleanup.h>
+#include <linux/device.h>
+#include <linux/err.h>
+#include <linux/i2c.h>
+#include <linux/module.h>
+#include <linux/mutex.h>
+#include <linux/pm.h>
+#include <linux/regmap.h>
+#include <linux/regulator/consumer.h>
+#include <linux/types.h>
+
+#include <asm/byteorder.h>
+
+#include <linux/iio/iio.h>
+#include <linux/iio/iio-gts-helper.h>
+
+#define TCS3430_REG_ENABLE 0x80
+#define TCS3430_ENABLE_PON BIT(0)
+#define TCS3430_ENABLE_AEN BIT(1)
+#define TCS3430_REG_ATIME 0x81
+#define TCS3430_REG_CFG1 0x90
+#define TCS3430_CFG1_AGAIN_MASK GENMASK(1, 0)
+#define TCS3430_REG_ID 0x92
+#define TCS3430_ID_MASK GENMASK(7, 2)
+#define TCS3430_ID_VAL 0xdc
+#define TCS3430_REG_CH0DATAL 0x94
+#define TCS3430_REG_CH1DATAL 0x96
+#define TCS3430_REG_CH2DATAL 0x98
+#define TCS3430_REG_CH3DATAL 0x9a
+#define TCS3430_REG_CFG2 0x9f
+#define TCS3430_CFG2_DEFAULT 0x04
+#define TCS3430_CFG2_HGAIN BIT(4)
+#define TCS3430_REG_CFG3 0xab
+#define TCS3430_CFG3_DEFAULT 0x0c
+#define TCS3430_REG_INTENAB 0xdd
+
+#define TCS3430_DEFAULT_GAIN_SEL 3 /* 64x */
+#define TCS3430_DEFAULT_ATIME_SEL 71 /* 72 * 2.78 ms = 200.16 ms */
+
+/*
+ * Photopic Y channel typical sensitivity from datasheet optical characteristics:
+ * ~0.537 counts/lux at AGAIN = 16x and ATIME = 100 ms (36 cycles), giving:
+ * lux/count = 2980 / (gain * integration_time_ms)
+ *
+ * At minimum gain (1x) and shortest integration time (50.04 ms, 18 cycles):
+ * max_scale = 2980 / 50.04 = 59.552358113 lux/count
+ */
+#define TCS3430_MAX_SCALE_INT 59
+#define TCS3430_MAX_SCALE_NANO 552358113
+
+static const struct iio_gain_sel_pair tcs3430_gain_sel[] = {
+ GAIN_SCALE_GAIN(1, 0),
+ GAIN_SCALE_GAIN(4, 1),
+ GAIN_SCALE_GAIN(16, 2),
+ GAIN_SCALE_GAIN(64, 3),
+ GAIN_SCALE_GAIN(128, 4),
+};
+
+/*
+ * Integration time = (ATIME + 1) * 2.78 ms.
+ * Default 200.16 ms (72 cycles, ATIME = 71) is placed first so
+ * iio_gts_find_gain_time_sel_for_scale() prefers it when possible.
+ */
+static const struct iio_itime_sel_mul tcs3430_itime_sel[] = {
+ GAIN_SCALE_ITIME_US(200160, 71, 4),
+ GAIN_SCALE_ITIME_US(100080, 35, 2),
+ GAIN_SCALE_ITIME_US(50040, 17, 1),
+ GAIN_SCALE_ITIME_US(400320, 143, 8),
+};
+
+struct tcs3430_data {
+ struct regmap *regmap;
+ struct iio_gts gts;
+ /* Protects device configuration across multi-register updates */
+ struct mutex lock;
+ u8 gain_sel;
+ u8 atime;
+};
+
+static const struct regmap_config tcs3430_regmap_config = {
+ .name = "tcs3430",
+ .reg_bits = 8,
+ .val_bits = 8,
+ .max_register = TCS3430_REG_INTENAB,
+};
+
+static int tcs3430_apply_gain(struct tcs3430_data *data, u8 gain_sel)
+{
+ u8 cfg1, cfg2;
+ int ret;
+
+ if (gain_sel == 4) {
+ cfg1 = FIELD_PREP(TCS3430_CFG1_AGAIN_MASK, 3);
+ cfg2 = TCS3430_CFG2_DEFAULT | TCS3430_CFG2_HGAIN;
+ } else {
+ cfg1 = FIELD_PREP(TCS3430_CFG1_AGAIN_MASK, gain_sel);
+ cfg2 = TCS3430_CFG2_DEFAULT;
+ }
+
+ ret = regmap_write(data->regmap, TCS3430_REG_CFG1, cfg1);
+ if (ret)
+ return ret;
+
+ ret = regmap_write(data->regmap, TCS3430_REG_CFG2, cfg2);
+ if (ret)
+ return ret;
+
+ data->gain_sel = gain_sel;
+ return 0;
+}
+
+static int tcs3430_apply_itime(struct tcs3430_data *data, u8 atime)
+{
+ int ret;
+
+ ret = regmap_write(data->regmap, TCS3430_REG_ATIME, atime);
+ if (ret)
+ return ret;
+
+ data->atime = atime;
+ return 0;
+}
+
+static int tcs3430_init_hw(struct tcs3430_data *data)
+{
+ int ret;
+
+ ret = regmap_write(data->regmap, TCS3430_REG_ENABLE, 0x00);
+ if (ret)
+ return ret;
+
+ ret = tcs3430_apply_itime(data, data->atime);
+ if (ret)
+ return ret;
+
+ ret = tcs3430_apply_gain(data, data->gain_sel);
+ if (ret)
+ return ret;
+
+ ret = regmap_write(data->regmap, TCS3430_REG_CFG3,
+ TCS3430_CFG3_DEFAULT);
+ if (ret)
+ return ret;
+
+ ret = regmap_write(data->regmap, TCS3430_REG_INTENAB, 0x00);
+ if (ret)
+ return ret;
+
+ return regmap_write(data->regmap, TCS3430_REG_ENABLE,
+ TCS3430_ENABLE_PON | TCS3430_ENABLE_AEN);
+}
+
+static void tcs3430_power_off(void *priv)
+{
+ struct tcs3430_data *data = priv;
+
+ regmap_write(data->regmap, TCS3430_REG_ENABLE, 0x00);
+}
+
+static int tcs3430_read_raw(struct iio_dev *indio_dev,
+ const struct iio_chan_spec *chan,
+ int *val, int *val2, long mask)
+{
+ struct tcs3430_data *data = iio_priv(indio_dev);
+ int ret;
+
+ switch (mask) {
+ case IIO_CHAN_INFO_RAW: {
+ __le16 raw;
+
+ guard(mutex)(&data->lock);
+ ret = regmap_bulk_read(data->regmap, chan->address, &raw,
+ sizeof(raw));
+ if (ret)
+ return ret;
+ *val = le16_to_cpu(raw);
+ return IIO_VAL_INT;
+ }
+
+ case IIO_CHAN_INFO_SCALE: {
+ int gain, itime;
+
+ guard(mutex)(&data->lock);
+ gain = iio_gts_find_gain_by_sel(&data->gts, data->gain_sel);
+ if (gain < 0)
+ return gain;
+
+ itime = iio_gts_find_int_time_by_sel(&data->gts, data->atime);
+ if (itime < 0)
+ return itime;
+
+ ret = iio_gts_get_scale(&data->gts, gain, itime, val, val2);
+ if (ret)
+ return ret;
+
+ return IIO_VAL_INT_PLUS_NANO;
+ }
+
+ case IIO_CHAN_INFO_INT_TIME: {
+ int itime;
+
+ guard(mutex)(&data->lock);
+ itime = iio_gts_find_int_time_by_sel(&data->gts, data->atime);
+ if (itime < 0)
+ return itime;
+
+ *val = 0;
+ *val2 = itime;
+ return IIO_VAL_INT_PLUS_MICRO;
+ }
+
+ default:
+ return -EINVAL;
+ }
+}
+
+static int tcs3430_set_scale(struct tcs3430_data *data, int val, int val2)
+{
+ int gain_sel, time_sel, ret;
+ bool keep_time = false;
+
+ ret = iio_gts_find_gain_sel_for_scale_using_time(&data->gts, data->atime,
+ val, val2, &gain_sel);
+ if (!ret) {
+ keep_time = true;
+ time_sel = data->atime;
+ } else {
+ ret = iio_gts_find_gain_time_sel_for_scale(&data->gts, val, val2,
+ &gain_sel, &time_sel);
+ if (ret)
+ return ret;
+ }
+
+ if (!keep_time) {
+ ret = tcs3430_apply_itime(data, time_sel);
+ if (ret)
+ return ret;
+ }
+
+ return tcs3430_apply_gain(data, gain_sel);
+}
+
+static int tcs3430_set_itime(struct tcs3430_data *data, int val, int val2)
+{
+ struct device *dev = regmap_get_device(data->regmap);
+ int prev_gain, prev_time, new_gain, gain_sel, time_sel, ret;
+ bool in_range;
+
+ if (val || !iio_gts_valid_time(&data->gts, val2))
+ return -EINVAL;
+
+ prev_time = iio_gts_find_int_time_by_sel(&data->gts, data->atime);
+ if (prev_time < 0)
+ return prev_time;
+ if (prev_time == val2)
+ return 0;
+
+ prev_gain = iio_gts_find_gain_by_sel(&data->gts, data->gain_sel);
+ if (prev_gain < 0)
+ return prev_gain;
+
+ ret = iio_gts_find_new_gain_by_gain_time_min(&data->gts, prev_gain,
+ prev_time, val2,
+ &new_gain, &in_range);
+ if (ret)
+ return ret;
+ if (!in_range)
+ dev_dbg(dev, "optimal gain out of range for integration time %d\n",
+ val2);
+
+ time_sel = iio_gts_find_sel_by_int_time(&data->gts, val2);
+ if (time_sel < 0)
+ return time_sel;
+
+ gain_sel = iio_gts_find_sel_by_gain(&data->gts, new_gain);
+ if (gain_sel < 0)
+ return gain_sel;
+
+ ret = tcs3430_apply_itime(data, time_sel);
+ if (ret)
+ return ret;
+
+ return tcs3430_apply_gain(data, gain_sel);
+}
+
+static int tcs3430_write_raw(struct iio_dev *indio_dev,
+ const struct iio_chan_spec *chan,
+ int val, int val2, long mask)
+{
+ struct tcs3430_data *data = iio_priv(indio_dev);
+
+ guard(mutex)(&data->lock);
+ switch (mask) {
+ case IIO_CHAN_INFO_SCALE:
+ return tcs3430_set_scale(data, val, val2);
+ case IIO_CHAN_INFO_INT_TIME:
+ return tcs3430_set_itime(data, val, val2);
+ default:
+ return -EINVAL;
+ }
+}
+
+static int tcs3430_write_raw_get_fmt(struct iio_dev *indio_dev,
+ const struct iio_chan_spec *chan,
+ long mask)
+{
+ switch (mask) {
+ case IIO_CHAN_INFO_SCALE:
+ return IIO_VAL_INT_PLUS_NANO;
+ case IIO_CHAN_INFO_INT_TIME:
+ return IIO_VAL_INT_PLUS_MICRO;
+ default:
+ return -EINVAL;
+ }
+}
+
+static int tcs3430_read_avail(struct iio_dev *indio_dev,
+ const struct iio_chan_spec *chan,
+ const int **vals, int *type, int *length,
+ long mask)
+{
+ struct tcs3430_data *data = iio_priv(indio_dev);
+
+ switch (mask) {
+ case IIO_CHAN_INFO_SCALE:
+ return iio_gts_all_avail_scales(&data->gts, vals, type, length);
+ case IIO_CHAN_INFO_INT_TIME:
+ return iio_gts_avail_times(&data->gts, vals, type, length);
+ default:
+ return -EINVAL;
+ }
+}
+
+#define TCS3430_INTENSITY_CHANNEL(_mod, _addr) { \
+ .type = IIO_INTENSITY, \
+ .modified = 1, \
+ .channel2 = (_mod), \
+ .address = (_addr), \
+ .info_mask_separate = BIT(IIO_CHAN_INFO_RAW), \
+ .info_mask_shared_by_all = BIT(IIO_CHAN_INFO_INT_TIME), \
+ .info_mask_shared_by_all_available = \
+ BIT(IIO_CHAN_INFO_INT_TIME), \
+}
+
+static const struct iio_chan_spec tcs3430_channels[] = {
+ {
+ .type = IIO_LIGHT,
+ .address = TCS3430_REG_CH1DATAL,
+ .info_mask_separate = BIT(IIO_CHAN_INFO_RAW) |
+ BIT(IIO_CHAN_INFO_SCALE),
+ .info_mask_separate_available = BIT(IIO_CHAN_INFO_SCALE),
+ .info_mask_shared_by_all = BIT(IIO_CHAN_INFO_INT_TIME),
+ .info_mask_shared_by_all_available =
+ BIT(IIO_CHAN_INFO_INT_TIME),
+ },
+ TCS3430_INTENSITY_CHANNEL(IIO_MOD_Z, TCS3430_REG_CH0DATAL),
+ TCS3430_INTENSITY_CHANNEL(IIO_MOD_Y, TCS3430_REG_CH1DATAL),
+ TCS3430_INTENSITY_CHANNEL(IIO_MOD_LIGHT_IR, TCS3430_REG_CH2DATAL),
+ TCS3430_INTENSITY_CHANNEL(IIO_MOD_X, TCS3430_REG_CH3DATAL),
+};
+
+static const struct iio_info tcs3430_info = {
+ .read_raw = tcs3430_read_raw,
+ .write_raw = tcs3430_write_raw,
+ .write_raw_get_fmt = tcs3430_write_raw_get_fmt,
+ .read_avail = tcs3430_read_avail,
+};
+
+static int tcs3430_probe(struct i2c_client *client)
+{
+ struct device *dev = &client->dev;
+ struct tcs3430_data *data;
+ struct iio_dev *indio_dev;
+ unsigned int dev_id;
+ int ret;
+
+ ret = devm_regulator_get_enable(dev, "vdd");
+ if (ret)
+ return dev_err_probe(dev, ret, "failed to enable vdd supply\n");
+
+ indio_dev = devm_iio_device_alloc(dev, sizeof(*data));
+ if (!indio_dev)
+ return -ENOMEM;
+
+ data = iio_priv(indio_dev);
+ data->regmap = devm_regmap_init_i2c(client, &tcs3430_regmap_config);
+ if (IS_ERR(data->regmap))
+ return dev_err_probe(dev, PTR_ERR(data->regmap),
+ "failed to initialize regmap\n");
+
+ ret = devm_iio_init_iio_gts(dev, TCS3430_MAX_SCALE_INT,
+ TCS3430_MAX_SCALE_NANO,
+ tcs3430_gain_sel,
+ ARRAY_SIZE(tcs3430_gain_sel),
+ tcs3430_itime_sel,
+ ARRAY_SIZE(tcs3430_itime_sel),
+ &data->gts);
+ if (ret)
+ return ret;
+
+ data->gain_sel = TCS3430_DEFAULT_GAIN_SEL;
+ data->atime = TCS3430_DEFAULT_ATIME_SEL;
+ dev_set_drvdata(dev, data);
+
+ ret = devm_mutex_init(dev, &data->lock);
+ if (ret)
+ return ret;
+
+ ret = regmap_read(data->regmap, TCS3430_REG_ID, &dev_id);
+ if (ret)
+ return dev_err_probe(dev, ret, "failed to read device ID\n");
+ if ((dev_id & TCS3430_ID_MASK) != TCS3430_ID_VAL)
+ dev_info(dev, "unexpected part ID 0x%02x\n", dev_id);
+
+ ret = tcs3430_init_hw(data);
+ if (ret)
+ return dev_err_probe(dev, ret, "failed to initialize device\n");
+
+ ret = devm_add_action_or_reset(dev, tcs3430_power_off, data);
+ if (ret)
+ return ret;
+
+ indio_dev->name = "tcs3430";
+ indio_dev->info = &tcs3430_info;
+ indio_dev->modes = INDIO_DIRECT_MODE;
+ indio_dev->channels = tcs3430_channels;
+ indio_dev->num_channels = ARRAY_SIZE(tcs3430_channels);
+
+ return devm_iio_device_register(dev, indio_dev);
+}
+
+static int tcs3430_suspend(struct device *dev)
+{
+ struct tcs3430_data *data = dev_get_drvdata(dev);
+
+ guard(mutex)(&data->lock);
+ return regmap_write(data->regmap, TCS3430_REG_ENABLE, 0x00);
+}
+
+static int tcs3430_resume(struct device *dev)
+{
+ struct tcs3430_data *data = dev_get_drvdata(dev);
+
+ guard(mutex)(&data->lock);
+ return tcs3430_init_hw(data);
+}
+
+static DEFINE_SIMPLE_DEV_PM_OPS(tcs3430_pm_ops, tcs3430_suspend,
+ tcs3430_resume);
+
+static const struct of_device_id tcs3430_of_match[] = {
+ { .compatible = "ams,tcs3430" },
+ { }
+};
+MODULE_DEVICE_TABLE(of, tcs3430_of_match);
+
+static const struct i2c_device_id tcs3430_id[] = {
+ { .name = "tcs3430" },
+ { }
+};
+MODULE_DEVICE_TABLE(i2c, tcs3430_id);
+
+static struct i2c_driver tcs3430_driver = {
+ .driver = {
+ .name = "tcs3430",
+ .of_match_table = tcs3430_of_match,
+ .pm = pm_sleep_ptr(&tcs3430_pm_ops),
+ },
+ .probe = tcs3430_probe,
+ .id_table = tcs3430_id,
+};
+module_i2c_driver(tcs3430_driver);
+
+MODULE_AUTHOR("Robert Ijtsma <robertijtsma@gmail.com>");
+MODULE_DESCRIPTION("ams OSRAM TCS3430 Ambient Light and XYZ Color Sensor Driver");
+MODULE_LICENSE("GPL");
--
2.47.3
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH v2 2/2] iio: light: add ams OSRAM TCS3430 XYZ and ambient light sensor driver
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 8:20 ` sashiko-bot
2026-11-26 14:20 ` Andy Shevchenko
2026-11-26 22:09 ` kernel test robot
2 siblings, 0 replies; 9+ messages in thread
From: sashiko-bot @ 2026-11-26 8:20 UTC (permalink / raw)
To: Robert Ijtsma; +Cc: devicetree, robh, conor+dt
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] iio: light: tcs3430: missing MODULE_IMPORT_NS() for
IIO_GTS_HELPER
--
commit 9c9099b900a36ddd44ef9f19ed6ed7bc1729939f
Author: Robert Ijtsma <robertijtsma@gmail.com>
iio: light: add ams OSRAM TCS3430 XYZ and ambient light sensor driver
This commit adds an IIO driver for the ams OSRAM TCS3430 ambient light
and CIE 1931 XYZ tristimulus color sensor.
> diff --git a/drivers/iio/light/tcs3430.c b/drivers/iio/light/tcs3430.c
> new file mode 100644
> index 0000000000000..226568c95e8da
> --- /dev/null
> +++ b/drivers/iio/light/tcs3430.c
> @@ -0,0 +1,489 @@
[ ... ]
> +MODULE_AUTHOR("Robert Ijtsma <robertijtsma@gmail.com>");
> +MODULE_DESCRIPTION("ams OSRAM TCS3430 Ambient Light and XYZ Color Sensor Driver");
> +MODULE_LICENSE("GPL");
[Severity: High]
Does building with CONFIG_TCS3430=m fail in modpost without
MODULE_IMPORT_NS("IIO_GTS_HELPER")? devm_iio_init_iio_gts() and the
other iio_gts_*() helpers called by this driver are exported with
EXPORT_SYMBOL_NS_GPL(..., "IIO_GTS_HELPER").
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261126-iio-tcs3430-v2-0-6c5329d20919@gmail.com?part=2
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2 0/2] iio: light: add support for ams OSRAM TCS3430
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 ` Andy Shevchenko
2026-11-26 14:14 ` Robert Ijtsma
2 siblings, 1 reply; 9+ messages in thread
From: Andy Shevchenko @ 2026-11-26 14:10 UTC (permalink / raw)
To: robertijtsma
Cc: Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, linux-iio,
devicetree, linux-kernel, Krzysztof Kozlowski
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?
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2 0/2] iio: light: add support for ams OSRAM TCS3430
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
2026-11-26 14:21 ` Andy Shevchenko
0 siblings, 1 reply; 9+ messages in thread
From: Robert Ijtsma @ 2026-11-26 14:14 UTC (permalink / raw)
To: Andy Shevchenko
Cc: Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, linux-iio,
devicetree, linux-kernel, Krzysztof Kozlowski
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2 2/2] iio: light: add ams OSRAM TCS3430 XYZ and ambient light sensor driver
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 8:20 ` sashiko-bot
@ 2026-11-26 14:20 ` Andy Shevchenko
2026-11-26 22:09 ` kernel test robot
2 siblings, 0 replies; 9+ messages in thread
From: Andy Shevchenko @ 2026-11-26 14:20 UTC (permalink / raw)
To: robertijtsma
Cc: Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, linux-iio,
devicetree, linux-kernel
On Thu, Nov 26, 2026 at 09:11:48AM +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).
>
> 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).
...
> +config TCS3430
> + tristate "ams OSRAM TCS3430 ambient light and XYZ color sensor"
Make this, top comment in the driver and MODULE_DESCRIPTION() text to be very
similar if not the same.
> + 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.
> +
> + This driver can also be built as a module. If so, the module
> + will be called tcs3430.
...
> +#include <linux/array_size.h>
> +#include <linux/bitfield.h>
> +#include <linux/bits.h>
> +#include <linux/cleanup.h>
> +#include <linux/device.h>
> +#include <linux/err.h>
> +#include <linux/i2c.h>
> +#include <linux/module.h>
> +#include <linux/mutex.h>
> +#include <linux/pm.h>
> +#include <linux/regmap.h>
> +#include <linux/regulator/consumer.h>
> +#include <linux/types.h>
...
> +static const struct regmap_config tcs3430_regmap_config = {
> + .name = "tcs3430",
> + .reg_bits = 8,
> + .val_bits = 8,
> + .max_register = TCS3430_REG_INTENAB,
No cache? Why?
> +};
...
With
struct regmap *map = data->regmap;
at the top of the function helps with this...
> + ret = regmap_write(data->regmap, TCS3430_REG_CFG3,
> + TCS3430_CFG3_DEFAULT);
...to become this.
ret = regmap_write(map, TCS3430_REG_CFG3, TCS3430_CFG3_DEFAULT);
> + if (ret)
> + return ret;
You may use this trick elsewhere to achieve better readability.
...
> + switch (mask) {
> + case IIO_CHAN_INFO_RAW: {
> + __le16 raw;
> +
> + guard(mutex)(&data->lock);
+ Blank line to make guard()() visible at a glance. Ditto for all such cases.
> + ret = regmap_bulk_read(data->regmap, chan->address, &raw,
> + sizeof(raw));
> + if (ret)
> + return ret;
> + *val = le16_to_cpu(raw);
> + return IIO_VAL_INT;
> + }
...
> +static int tcs3430_set_scale(struct tcs3430_data *data, int val, int val2)
> +{
> + int gain_sel, time_sel, ret;
> + bool keep_time = false;
> +
> + ret = iio_gts_find_gain_sel_for_scale_using_time(&data->gts, data->atime,
> + val, val2, &gain_sel);
> + if (!ret) {
Why non-standard pattern?
> + keep_time = true;
> + time_sel = data->atime;
> + } else {
> + ret = iio_gts_find_gain_time_sel_for_scale(&data->gts, val, val2,
> + &gain_sel, &time_sel);
> + if (ret)
> + return ret;
> + }
> +
> + if (!keep_time) {
> + ret = tcs3430_apply_itime(data, time_sel);
> + if (ret)
> + return ret;
> + }
> +
> + return tcs3430_apply_gain(data, gain_sel);
> +}
...
> +static int tcs3430_set_itime(struct tcs3430_data *data, int val, int val2)
> +{
> + struct device *dev = regmap_get_device(data->regmap);
> + int prev_gain, prev_time, new_gain, gain_sel, time_sel, ret;
> + bool in_range;
Better to rename to avoid confusion with generic in_range() helper.
> +
> + if (val || !iio_gts_valid_time(&data->gts, val2))
> + return -EINVAL;
> +
> + prev_time = iio_gts_find_int_time_by_sel(&data->gts, data->atime);
> + if (prev_time < 0)
> + return prev_time;
> + if (prev_time == val2)
> + return 0;
> +
> + prev_gain = iio_gts_find_gain_by_sel(&data->gts, data->gain_sel);
> + if (prev_gain < 0)
> + return prev_gain;
> +
> + ret = iio_gts_find_new_gain_by_gain_time_min(&data->gts, prev_gain,
> + prev_time, val2,
> + &new_gain, &in_range);
> + if (ret)
> + return ret;
> + if (!in_range)
> + dev_dbg(dev, "optimal gain out of range for integration time %d\n",
> + val2);
I would make it a single line despite the length.
> +
> + time_sel = iio_gts_find_sel_by_int_time(&data->gts, val2);
> + if (time_sel < 0)
> + return time_sel;
> +
> + gain_sel = iio_gts_find_sel_by_gain(&data->gts, new_gain);
> + if (gain_sel < 0)
> + return gain_sel;
> +
> + ret = tcs3430_apply_itime(data, time_sel);
> + if (ret)
> + return ret;
> +
> + return tcs3430_apply_gain(data, gain_sel);
> +}
...
> +static DEFINE_SIMPLE_DEV_PM_OPS(tcs3430_pm_ops, tcs3430_suspend,
> + tcs3430_resume);
A single line
static DEFINE_SIMPLE_DEV_PM_OPS(tcs3430_pm_ops, tcs3430_suspend, tcs3430_resume);
or wrap on a logical borders
static DEFINE_SIMPLE_DEV_PM_OPS(tcs3430_pm_ops,
tcs3430_suspend, tcs3430_resume);
But the above is only 81 character long.
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2 0/2] iio: light: add support for ams OSRAM TCS3430
2026-11-26 14:14 ` Robert Ijtsma
@ 2026-11-26 14:21 ` Andy Shevchenko
0 siblings, 0 replies; 9+ messages in thread
From: Andy Shevchenko @ 2026-11-26 14:21 UTC (permalink / raw)
To: Robert Ijtsma
Cc: Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, linux-iio,
devicetree, linux-kernel, Krzysztof Kozlowski
On Thu, Nov 26, 2026 at 03:14:15PM +0100, Robert Ijtsma wrote:
> 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).
Kconfig help probably don't need this info.
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2 2/2] iio: light: add ams OSRAM TCS3430 XYZ and ambient light sensor driver
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 8:20 ` sashiko-bot
2026-11-26 14:20 ` Andy Shevchenko
@ 2026-11-26 22:09 ` kernel test robot
2 siblings, 0 replies; 9+ messages in thread
From: kernel test robot @ 2026-11-26 22:09 UTC (permalink / raw)
To: Robert Ijtsma via B4 Relay, Jonathan Cameron, David Lechner,
Nuno Sá, Andy Shevchenko, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: llvm, oe-kbuild-all, linux-iio, devicetree, linux-kernel,
Robert Ijtsma
Hi Robert,
kernel test robot noticed the following build errors:
[auto build test ERROR on 4843f6873f7c4835e62f2c73ba0fd538e57a2f22]
url: https://github.com/intel-lab-lkp/linux/commits/Robert-Ijtsma-via-B4-Relay/dt-bindings-iio-light-add-ams-OSRAM-TCS3430/20261126-091147
base: 4843f6873f7c4835e62f2c73ba0fd538e57a2f22
patch link: https://lore.kernel.org/r/20261126-iio-tcs3430-v2-2-6c5329d20919%40gmail.com
patch subject: [PATCH v2 2/2] iio: light: add ams OSRAM TCS3430 XYZ and ambient light sensor driver
config: riscv-randconfig-1000-20261127 (https://download.01.org/0day-ci/archive/20261127/20261127060159.FSKHGwvz-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261127/20261127060159.FSKHGwvz-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261127060159.FSKHGwvz-lkp@intel.com/
All errors (new ones prefixed by >>, old ones prefixed by <<):
>> ERROR: modpost: drivers/iio/light/tcs3430.ko: module uses symbol 'devm_iio_init_iio_gts' from namespace 'IIO_GTS_HELPER', but does not import it.
>> ERROR: modpost: drivers/iio/light/tcs3430.ko: module uses symbol 'iio_gts_find_gain_by_sel' from namespace 'IIO_GTS_HELPER', but does not import it.
>> ERROR: modpost: drivers/iio/light/tcs3430.ko: module uses symbol 'iio_gts_get_scale' from namespace 'IIO_GTS_HELPER', but does not import it.
>> ERROR: modpost: drivers/iio/light/tcs3430.ko: module uses symbol 'iio_gts_all_avail_scales' from namespace 'IIO_GTS_HELPER', but does not import it.
>> ERROR: modpost: drivers/iio/light/tcs3430.ko: module uses symbol 'iio_gts_avail_times' from namespace 'IIO_GTS_HELPER', but does not import it.
>> ERROR: modpost: drivers/iio/light/tcs3430.ko: module uses symbol 'iio_gts_find_gain_sel_for_scale_using_time' from namespace 'IIO_GTS_HELPER', but does not import it.
>> ERROR: modpost: drivers/iio/light/tcs3430.ko: module uses symbol 'iio_gts_find_gain_time_sel_for_scale' from namespace 'IIO_GTS_HELPER', but does not import it.
>> ERROR: modpost: drivers/iio/light/tcs3430.ko: module uses symbol 'iio_gts_find_new_gain_by_gain_time_min' from namespace 'IIO_GTS_HELPER', but does not import it.
>> ERROR: modpost: drivers/iio/light/tcs3430.ko: module uses symbol 'iio_gts_find_sel_by_gain' from namespace 'IIO_GTS_HELPER', but does not import it.
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2026-11-26 22:09 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 8:20 ` sashiko-bot
2026-11-26 14:20 ` Andy Shevchenko
2026-11-26 22:09 ` kernel test robot
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
2026-11-26 14:21 ` Andy Shevchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox