Mauro Carvalho Chehab | 9b5db89 | 2019-06-28 18:23:13 -0300 | [diff] [blame] | 1 | ====================== |
Daniel Mack | 3cdbbee | 2009-03-31 15:23:53 -0700 | [diff] [blame] | 2 | Kernel driver isl29003 |
Mauro Carvalho Chehab | 9b5db89 | 2019-06-28 18:23:13 -0300 | [diff] [blame] | 3 | ====================== |
Daniel Mack | 3cdbbee | 2009-03-31 15:23:53 -0700 | [diff] [blame] | 4 | |
| 5 | Supported chips: |
Mauro Carvalho Chehab | 9b5db89 | 2019-06-28 18:23:13 -0300 | [diff] [blame] | 6 | |
Daniel Mack | 3cdbbee | 2009-03-31 15:23:53 -0700 | [diff] [blame] | 7 | * Intersil ISL29003 |
Mauro Carvalho Chehab | 9b5db89 | 2019-06-28 18:23:13 -0300 | [diff] [blame] | 8 | |
Daniel Mack | 3cdbbee | 2009-03-31 15:23:53 -0700 | [diff] [blame] | 9 | Prefix: 'isl29003' |
Mauro Carvalho Chehab | 9b5db89 | 2019-06-28 18:23:13 -0300 | [diff] [blame] | 10 | |
Daniel Mack | 3cdbbee | 2009-03-31 15:23:53 -0700 | [diff] [blame] | 11 | Addresses scanned: none |
Mauro Carvalho Chehab | 9b5db89 | 2019-06-28 18:23:13 -0300 | [diff] [blame] | 12 | |
Daniel Mack | 3cdbbee | 2009-03-31 15:23:53 -0700 | [diff] [blame] | 13 | Datasheet: |
| 14 | http://www.intersil.com/data/fn/fn7464.pdf |
| 15 | |
| 16 | Author: Daniel Mack <daniel@caiaq.de> |
| 17 | |
| 18 | |
| 19 | Description |
| 20 | ----------- |
| 21 | The ISL29003 is an integrated light sensor with a 16-bit integrating type |
| 22 | ADC, I2C user programmable lux range select for optimized counts/lux, and |
| 23 | I2C multi-function control and monitoring capabilities. The internal ADC |
| 24 | provides 16-bit resolution while rejecting 50Hz and 60Hz flicker caused by |
| 25 | artificial light sources. |
| 26 | |
| 27 | The driver allows to set the lux range, the bit resolution, the operational |
| 28 | mode (see below) and the power state of device and can read the current lux |
| 29 | value, of course. |
| 30 | |
| 31 | |
| 32 | Detection |
| 33 | --------- |
| 34 | |
| 35 | The ISL29003 does not have an ID register which could be used to identify |
| 36 | it, so the detection routine will just try to read from the configured I2C |
Masanari Iida | 96d8d5f | 2015-09-17 00:54:58 +0900 | [diff] [blame] | 37 | address and consider the device to be present as soon as it ACKs the |
Daniel Mack | 3cdbbee | 2009-03-31 15:23:53 -0700 | [diff] [blame] | 38 | transfer. |
| 39 | |
| 40 | |
| 41 | Sysfs entries |
| 42 | ------------- |
| 43 | |
| 44 | range: |
Mauro Carvalho Chehab | 9b5db89 | 2019-06-28 18:23:13 -0300 | [diff] [blame] | 45 | == =========================== |
Daniel Mack | 3cdbbee | 2009-03-31 15:23:53 -0700 | [diff] [blame] | 46 | 0: 0 lux to 1000 lux (default) |
| 47 | 1: 0 lux to 4000 lux |
| 48 | 2: 0 lux to 16,000 lux |
| 49 | 3: 0 lux to 64,000 lux |
Mauro Carvalho Chehab | 9b5db89 | 2019-06-28 18:23:13 -0300 | [diff] [blame] | 50 | == =========================== |
Daniel Mack | 3cdbbee | 2009-03-31 15:23:53 -0700 | [diff] [blame] | 51 | |
| 52 | resolution: |
Mauro Carvalho Chehab | 9b5db89 | 2019-06-28 18:23:13 -0300 | [diff] [blame] | 53 | == ===================== |
Daniel Mack | 3cdbbee | 2009-03-31 15:23:53 -0700 | [diff] [blame] | 54 | 0: 2^16 cycles (default) |
| 55 | 1: 2^12 cycles |
| 56 | 2: 2^8 cycles |
| 57 | 3: 2^4 cycles |
Mauro Carvalho Chehab | 9b5db89 | 2019-06-28 18:23:13 -0300 | [diff] [blame] | 58 | == ===================== |
Daniel Mack | 3cdbbee | 2009-03-31 15:23:53 -0700 | [diff] [blame] | 59 | |
| 60 | mode: |
Mauro Carvalho Chehab | 9b5db89 | 2019-06-28 18:23:13 -0300 | [diff] [blame] | 61 | == ================================================= |
Daniel Mack | 3cdbbee | 2009-03-31 15:23:53 -0700 | [diff] [blame] | 62 | 0: diode1's current (unsigned 16bit) (default) |
| 63 | 1: diode1's current (unsigned 16bit) |
| 64 | 2: difference between diodes (l1 - l2, signed 15bit) |
Mauro Carvalho Chehab | 9b5db89 | 2019-06-28 18:23:13 -0300 | [diff] [blame] | 65 | == ================================================= |
Daniel Mack | 3cdbbee | 2009-03-31 15:23:53 -0700 | [diff] [blame] | 66 | |
| 67 | power_state: |
Mauro Carvalho Chehab | 9b5db89 | 2019-06-28 18:23:13 -0300 | [diff] [blame] | 68 | == ================================================= |
Daniel Mack | 3cdbbee | 2009-03-31 15:23:53 -0700 | [diff] [blame] | 69 | 0: device is disabled (default) |
| 70 | 1: device is enabled |
Mauro Carvalho Chehab | 9b5db89 | 2019-06-28 18:23:13 -0300 | [diff] [blame] | 71 | == ================================================= |
Daniel Mack | 3cdbbee | 2009-03-31 15:23:53 -0700 | [diff] [blame] | 72 | |
| 73 | lux (read only): |
| 74 | returns the value from the last sensor reading |
| 75 | |