isl29003 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. Kernel driver isl29003
  2. =====================
  3. Supported chips:
  4. * Intersil ISL29003
  5. Prefix: 'isl29003'
  6. Addresses scanned: none
  7. Datasheet:
  8. http://www.intersil.com/data/fn/fn7464.pdf
  9. Author: Daniel Mack <daniel@caiaq.de>
  10. Description
  11. -----------
  12. The ISL29003 is an integrated light sensor with a 16-bit integrating type
  13. ADC, I2C user programmable lux range select for optimized counts/lux, and
  14. I2C multi-function control and monitoring capabilities. The internal ADC
  15. provides 16-bit resolution while rejecting 50Hz and 60Hz flicker caused by
  16. artificial light sources.
  17. The driver allows to set the lux range, the bit resolution, the operational
  18. mode (see below) and the power state of device and can read the current lux
  19. value, of course.
  20. Detection
  21. ---------
  22. The ISL29003 does not have an ID register which could be used to identify
  23. it, so the detection routine will just try to read from the configured I2C
  24. address and consider the device to be present as soon as it ACKs the
  25. transfer.
  26. Sysfs entries
  27. -------------
  28. range:
  29. 0: 0 lux to 1000 lux (default)
  30. 1: 0 lux to 4000 lux
  31. 2: 0 lux to 16,000 lux
  32. 3: 0 lux to 64,000 lux
  33. resolution:
  34. 0: 2^16 cycles (default)
  35. 1: 2^12 cycles
  36. 2: 2^8 cycles
  37. 3: 2^4 cycles
  38. mode:
  39. 0: diode1's current (unsigned 16bit) (default)
  40. 1: diode1's current (unsigned 16bit)
  41. 2: difference between diodes (l1 - l2, signed 15bit)
  42. power_state:
  43. 0: device is disabled (default)
  44. 1: device is enabled
  45. lux (read only):
  46. returns the value from the last sensor reading