blob: 0cc38aed6c00012cc0d03a54b8c0ac8a694108c1 [file] [log] [blame]
Mauro Carvalho Chehab9b5db892019-06-28 18:23:13 -03001======================
Daniel Mack3cdbbee2009-03-31 15:23:53 -07002Kernel driver isl29003
Mauro Carvalho Chehab9b5db892019-06-28 18:23:13 -03003======================
Daniel Mack3cdbbee2009-03-31 15:23:53 -07004
5Supported chips:
Mauro Carvalho Chehab9b5db892019-06-28 18:23:13 -03006
Daniel Mack3cdbbee2009-03-31 15:23:53 -07007* Intersil ISL29003
Mauro Carvalho Chehab9b5db892019-06-28 18:23:13 -03008
Daniel Mack3cdbbee2009-03-31 15:23:53 -07009Prefix: 'isl29003'
Mauro Carvalho Chehab9b5db892019-06-28 18:23:13 -030010
Daniel Mack3cdbbee2009-03-31 15:23:53 -070011Addresses scanned: none
Mauro Carvalho Chehab9b5db892019-06-28 18:23:13 -030012
Daniel Mack3cdbbee2009-03-31 15:23:53 -070013Datasheet:
14http://www.intersil.com/data/fn/fn7464.pdf
15
16Author: Daniel Mack <daniel@caiaq.de>
17
18
19Description
20-----------
21The ISL29003 is an integrated light sensor with a 16-bit integrating type
22ADC, I2C user programmable lux range select for optimized counts/lux, and
23I2C multi-function control and monitoring capabilities. The internal ADC
24provides 16-bit resolution while rejecting 50Hz and 60Hz flicker caused by
25artificial light sources.
26
27The driver allows to set the lux range, the bit resolution, the operational
28mode (see below) and the power state of device and can read the current lux
29value, of course.
30
31
32Detection
33---------
34
35The ISL29003 does not have an ID register which could be used to identify
36it, so the detection routine will just try to read from the configured I2C
Masanari Iida96d8d5f2015-09-17 00:54:58 +090037address and consider the device to be present as soon as it ACKs the
Daniel Mack3cdbbee2009-03-31 15:23:53 -070038transfer.
39
40
41Sysfs entries
42-------------
43
44range:
Mauro Carvalho Chehab9b5db892019-06-28 18:23:13 -030045 == ===========================
Daniel Mack3cdbbee2009-03-31 15:23:53 -070046 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 Chehab9b5db892019-06-28 18:23:13 -030050 == ===========================
Daniel Mack3cdbbee2009-03-31 15:23:53 -070051
52resolution:
Mauro Carvalho Chehab9b5db892019-06-28 18:23:13 -030053 == =====================
Daniel Mack3cdbbee2009-03-31 15:23:53 -070054 0: 2^16 cycles (default)
55 1: 2^12 cycles
56 2: 2^8 cycles
57 3: 2^4 cycles
Mauro Carvalho Chehab9b5db892019-06-28 18:23:13 -030058 == =====================
Daniel Mack3cdbbee2009-03-31 15:23:53 -070059
60mode:
Mauro Carvalho Chehab9b5db892019-06-28 18:23:13 -030061 == =================================================
Daniel Mack3cdbbee2009-03-31 15:23:53 -070062 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 Chehab9b5db892019-06-28 18:23:13 -030065 == =================================================
Daniel Mack3cdbbee2009-03-31 15:23:53 -070066
67power_state:
Mauro Carvalho Chehab9b5db892019-06-28 18:23:13 -030068 == =================================================
Daniel Mack3cdbbee2009-03-31 15:23:53 -070069 0: device is disabled (default)
70 1: device is enabled
Mauro Carvalho Chehab9b5db892019-06-28 18:23:13 -030071 == =================================================
Daniel Mack3cdbbee2009-03-31 15:23:53 -070072
73lux (read only):
74 returns the value from the last sensor reading
75