opt3001.txt 794 B

12345678910111213141516171819202122232425
  1. * Texas Instruments OPT3001 Ambient Light Sensor
  2. The driver supports interrupt-driven and interrupt-less operation, depending
  3. on whether an interrupt property has been populated into the DT. Note that
  4. the optional generation of IIO events on rising/falling light threshold changes
  5. requires the use of interrupts. Without interrupts, only the simple reading
  6. of the current light value is supported through the IIO API.
  7. http://www.ti.com/product/opt3001
  8. Required properties:
  9. - compatible: should be "ti,opt3001"
  10. - reg: the I2C address of the sensor
  11. Optional properties:
  12. - interrupts: interrupt mapping for GPIO IRQ (configure for falling edge)
  13. Example:
  14. opt3001@44 {
  15. compatible = "ti,opt3001";
  16. reg = <0x44>;
  17. interrupt-parent = <&gpio1>;
  18. interrupts = <28 IRQ_TYPE_EDGE_FALLING>;
  19. };