Re: [PATCH v4 1/2] dt-bindings: iio: light: Add Capella CM3217
From: Jonathan Cameron
Date: Fri Nov 27 2026 - 19:31:59 EST
On Sat, 28 Nov 2026 00:38:56 +0100
Patrick Fischer via B4 Relay <devnull+admin.tsv-stahl-riesa.de@xxxxxxxxxx> wrote:
> From: Patrick Fischer <admin@xxxxxxxxxxxxxxxxxx>
>
> The Capella CM3217 is an ambient light sensor with an I2C interface but
> without registers and without an interrupt line. It always answers on
> the two fixed addresses 0x10 and 0x11, which are both listed in reg.
>
> The sensor is used in the NVIDIA Tegra Note 7 and the NVIDIA Shield
> Tablet.
>
> Tool use: Claude Code wrote this binding.
Comments on that belong below the ---
If nothing else comes up, I'll drop it whilst applying.
>
> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>
> Signed-off-by: Patrick Fischer <admin@xxxxxxxxxxxxxxxxxx>
> ---
> .../bindings/iio/light/capella,cm3217.yaml | 49 ++++++++++++++++++++++
> 1 file changed, 49 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/iio/light/capella,cm3217.yaml b/Documentation/devicetree/bindings/iio/light/capella,cm3217.yaml
> new file mode 100644
> index 000000000000..a03cdf2bd375
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/light/capella,cm3217.yaml
> @@ -0,0 +1,49 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/iio/light/capella,cm3217.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Capella CM3217 ambient light sensor
> +
> +maintainers:
> + - Patrick Fischer <admin@xxxxxxxxxxxxxxxxxx>
> +
> +description:
> + The CM3217 is an I2C ambient light sensor.
> +
> +properties:
> + compatible:
> + const: capella,cm3217
> +
> + reg:
> + items:
> + - description:
> + Command byte 1 (shutdown and IT_T) on write, high byte of the light
> + count on read. Fixed at 0x10.
> + - description:
> + Command byte 2 (FD_IT) on write, low byte of the light count on
> + read. Fixed at 0x11.
> +
> + vdd-supply: true
> +
> +required:
> + - compatible
> + - reg
> + - vdd-supply
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + light-sensor@10 {
> + compatible = "capella,cm3217";
> + reg = <0x10>, <0x11>;
> + vdd-supply = <&vdd_2v85_sen>;
> + };
> + };
> +...
>