diff options
| author | Daniel Mack <daniel@caiaq.de> | 2009-03-31 18:23:53 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-01 11:59:18 -0400 |
| commit | 3cdbbeebb77348176bd6a03fd86e11bc281c529e (patch) | |
| tree | 079d84c58cdb0e6f4d43eee69d42d26d5a48af35 /Documentation/misc-devices | |
| parent | 891f7d73ea30f925596b90bcf21020bfc5d90f3f (diff) | |
drivers/misc/isl29003.c: driver for the ISL29003 ambient light sensor
Add a driver for Intersil's ISL29003 ambient light sensor device plus some
documentation. Inspired by tsl2550.c, a driver for a similar device.
It is put in drivers/misc for now until the industrial I/O framework gets
merged.
Signed-off-by: Daniel Mack <daniel@caiaq.de>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Cc: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/misc-devices')
| -rw-r--r-- | Documentation/misc-devices/isl29003 | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/Documentation/misc-devices/isl29003 b/Documentation/misc-devices/isl29003 new file mode 100644 index 000000000000..c4ff5f38e010 --- /dev/null +++ b/Documentation/misc-devices/isl29003 | |||
| @@ -0,0 +1,62 @@ | |||
| 1 | Kernel driver isl29003 | ||
| 2 | ===================== | ||
| 3 | |||
| 4 | Supported chips: | ||
| 5 | * Intersil ISL29003 | ||
| 6 | Prefix: 'isl29003' | ||
| 7 | Addresses scanned: none | ||
| 8 | Datasheet: | ||
| 9 | http://www.intersil.com/data/fn/fn7464.pdf | ||
| 10 | |||
| 11 | Author: Daniel Mack <daniel@caiaq.de> | ||
| 12 | |||
| 13 | |||
| 14 | Description | ||
| 15 | ----------- | ||
| 16 | The ISL29003 is an integrated light sensor with a 16-bit integrating type | ||
| 17 | ADC, I2C user programmable lux range select for optimized counts/lux, and | ||
| 18 | I2C multi-function control and monitoring capabilities. The internal ADC | ||
| 19 | provides 16-bit resolution while rejecting 50Hz and 60Hz flicker caused by | ||
| 20 | artificial light sources. | ||
| 21 | |||
| 22 | The driver allows to set the lux range, the bit resolution, the operational | ||
| 23 | mode (see below) and the power state of device and can read the current lux | ||
| 24 | value, of course. | ||
| 25 | |||
| 26 | |||
| 27 | Detection | ||
| 28 | --------- | ||
| 29 | |||
| 30 | The ISL29003 does not have an ID register which could be used to identify | ||
| 31 | it, so the detection routine will just try to read from the configured I2C | ||
| 32 | addess and consider the device to be present as soon as it ACKs the | ||
| 33 | transfer. | ||
| 34 | |||
| 35 | |||
| 36 | Sysfs entries | ||
| 37 | ------------- | ||
| 38 | |||
| 39 | range: | ||
| 40 | 0: 0 lux to 1000 lux (default) | ||
| 41 | 1: 0 lux to 4000 lux | ||
| 42 | 2: 0 lux to 16,000 lux | ||
| 43 | 3: 0 lux to 64,000 lux | ||
| 44 | |||
| 45 | resolution: | ||
| 46 | 0: 2^16 cycles (default) | ||
| 47 | 1: 2^12 cycles | ||
| 48 | 2: 2^8 cycles | ||
| 49 | 3: 2^4 cycles | ||
| 50 | |||
| 51 | mode: | ||
| 52 | 0: diode1's current (unsigned 16bit) (default) | ||
| 53 | 1: diode1's current (unsigned 16bit) | ||
| 54 | 2: difference between diodes (l1 - l2, signed 15bit) | ||
| 55 | |||
| 56 | power_state: | ||
| 57 | 0: device is disabled (default) | ||
| 58 | 1: device is enabled | ||
| 59 | |||
| 60 | lux (read only): | ||
| 61 | returns the value from the last sensor reading | ||
| 62 | |||
