On Fri, Nov 06, 2026 at 09:56:29PM +0100, Patrick Fischer via B4 Relay wrote: > From: Patrick Fischer > > 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 addresses 0x10 and 0x11. The node describes the first address; > the second one is fixed. > > The sensor is used in the NVIDIA Tegra Note 7 and the NVIDIA Shield > Tablet. > > Signed-off-by: Patrick Fischer > --- > .../bindings/iio/light/capella,cm3217.yaml | 51 ++++++++++++++++++++++ > 1 file changed, 51 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..7f2a0d5d0243 > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/light/capella,cm3217.yaml > @@ -0,0 +1,51 @@ > +# 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 > + > +description: > + The CM3217 is an I2C ambient light sensor without registers or interrupt > + line. > + > +properties: > + compatible: > + const: capella,cm3217 > + > + reg: > + description: > + The sensor always occupies the two fixed I2C addresses 0x10 and 0x11. > + Writing a byte to 0x10 sets command byte 1 (shutdown and IT_T), reading > + a byte from it returns the high byte of the light count. Writing a byte > + to 0x11 sets command byte 2 (FD_IT), reading a byte from it returns the > + low byte. Only the first address is given here, the second one is > + implied. > + const: 0x10 I think this should actually contain both addresses, the i2c-controller binding permits children with "one or many i2c target addresses". > + > + 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>; > + vdd-supply = <&vdd_2v85_sen>; > + }; > + }; > +... > > -- > 2.56.0 > >