Re: [PATCH 1/3] doc: add Device Tree binding for AMS TCS3400 light sensor

From: David Heidelberg

Date: Mon Jan 19 2026 - 12:37:45 EST


On 19/01/2026 18:19, Petr Hodina via B4 Relay wrote:
From: Petr Hodina <petr.hodina@xxxxxxxxxxxxxx>

Adds a new YAML binding describing the AMS TCS3400 I2C light sensor,
including compatible string, registers, interrupts, power supply, and an
example node.

Signed-off-by: Petr Hodina <petr.hodina@xxxxxxxxxxxxxx>
---
.../devicetree/bindings/iio/light/ams,tcs3400.yaml | 54 ++++++++++++++++++++++
MAINTAINERS | 6 +++
2 files changed, 60 insertions(+)

diff --git a/Documentation/devicetree/bindings/iio/light/ams,tcs3400.yaml b/Documentation/devicetree/bindings/iio/light/ams,tcs3400.yaml
new file mode 100644
index 000000000000..2c5a9295af1a
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/light/ams,tcs3400.yaml
@@ -0,0 +1,54 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: "http://devicetree.org/schemas/iio/light/ams,tcs3400.yaml#";
+$schema: "http://devicetree.org/meta-schemas/core.yaml#";
+
+title: AMS TCS3400 Color Light-to-Digital Converter
+
+maintainers:
+ - name: Petr Hodina
+ email: petr.hodina@xxxxxxxxxxxxxx

- name <email>

+
+description: |

no need to use | or > here, please drop

+ The AMS TCS3400 is an I2C-connected color light sensor providing
+ RGBC or RGB-IR measurements with a programmable integration time
+ and gain.
+
+properties:
+ compatible:
+ const: ams,tcs3400
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+ description:
+ Interrupt line signaling ALS data ready or threshold events.
+
+ vdd-supply:
+ description:
+ Regulator supplying the main sensor power.
+
+required:
+ - compatible
+ - reg
+ - vdd-supply
+
+additionalProperties: false
+
+examples:
+ - |
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ light-sensor@39 {
+ compatible = "ams,tcs3400";
+ reg = <0x39>;
+ interrupt-parent = <&gpio1>;
+ interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
+ vdd-supply = <&vdd_3v3>;
+ };
+ };
diff --git a/MAINTAINERS b/MAINTAINERS
index 14a06f856b81..ab5307a34180 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -22866,6 +22866,12 @@ S: Supported
F: drivers/iio/adc/rohm-bd79112.c
F: drivers/iio/adc/rohm-bd79124.c
+AMS TCS3400 AMBIENT LIGHT SENSOR DRIVER
+M: Petr Hodina
+L: Petr Hodina <petr.hodina@xxxxxxxxxxxxxx>
+S: Petr Hodina <petr.hodina@xxxxxxxxxxxxxx>

M: Petr Hodina <petr.hodina@xxxxxxxxxxxxxx>
S: Maintained

drop the L: (e.g. read the header of Maintainers file ;) )

+F: Documentation/devicetree/bindings/iio/light/ams,tcs3400.yaml
+
ROHM BH1745 COLOUR SENSOR
M: Mudit Sharma <muditsharma.info@xxxxxxxxx>
L: linux-iio@xxxxxxxxxxxxxxx


--
David Heidelberg