18c2ecf20Sopenharmony_ci* Texas Instruments OPT3001 Ambient Light Sensor
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciThe driver supports interrupt-driven and interrupt-less operation, depending
48c2ecf20Sopenharmony_cion whether an interrupt property has been populated into the DT. Note that
58c2ecf20Sopenharmony_cithe optional generation of IIO events on rising/falling light threshold changes
68c2ecf20Sopenharmony_cirequires the use of interrupts. Without interrupts, only the simple reading
78c2ecf20Sopenharmony_ciof the current light value is supported through the IIO API.
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_cihttps://www.ti.com/product/opt3001
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ciRequired properties:
128c2ecf20Sopenharmony_ci  - compatible: should be "ti,opt3001"
138c2ecf20Sopenharmony_ci  - reg: the I2C address of the sensor
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ciOptional properties:
168c2ecf20Sopenharmony_ci  - interrupts: interrupt mapping for GPIO IRQ (configure for falling edge)
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ciExample:
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ciopt3001@44 {
218c2ecf20Sopenharmony_ci	compatible = "ti,opt3001";
228c2ecf20Sopenharmony_ci	reg = <0x44>;
238c2ecf20Sopenharmony_ci	interrupt-parent = <&gpio1>;
248c2ecf20Sopenharmony_ci	interrupts = <28 IRQ_TYPE_EDGE_FALLING>;
258c2ecf20Sopenharmony_ci};
26