mirror of
https://github.com/armbian/linux-cix.git
synced 2026-01-06 12:30:45 -08:00
staging: iio: TAOS tsl258x: Device driver
Added suspend/resume functions. Changed attribute names to match existing where applicable and updated or documented new ABI as discussed. Changed integration time ABI from using index (0 to 3) to use actual gain values (1x,8x, etc.). Removed various unused variables, declarations, and functions. Revised code to accommodate different endianess (le16_to_cpu). Updated error return codes in various functions. Changed from mdelay to msleep after determining that longer wait would be acceptable. V5: Makefile and Kconfig cleanups by Jonathan Cameron. Signed-off-by: Jon August Brenner <jbrenner@taosinc.com> Acked-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
69d900a695
commit
ac4f6eee8f
@@ -6,6 +6,12 @@ Description:
|
||||
Corresponds to a grouping of sensor channels. X is the IIO
|
||||
index of the device.
|
||||
|
||||
What: /sys/bus/iio/devices/device[n]/power_state
|
||||
KernelVersion: 2.6.37
|
||||
Contact: linux-iio@vger.kernel.org
|
||||
Description:
|
||||
This property gets/sets the device power state.
|
||||
|
||||
What: /sys/bus/iio/devices/triggerX
|
||||
KernelVersion: 2.6.35
|
||||
Contact: linux-iio@vger.kernel.org
|
||||
|
||||
@@ -62,3 +62,16 @@ Description:
|
||||
sensing mode. This value should be the output from a reading
|
||||
and if expressed in SI units, should include _input. If this
|
||||
value is not in SI units, then it should include _raw.
|
||||
|
||||
What: /sys/bus/iio/devices/device[n]/illuminance0_target
|
||||
KernelVersion: 2.6.37
|
||||
Contact: linux-iio@vger.kernel.org
|
||||
Description:
|
||||
This property gets/sets the last known external
|
||||
lux measurement used in/for calibration.
|
||||
|
||||
What: /sys/bus/iio/devices/device[n]/illuminance0_integration_time
|
||||
KernelVersion: 2.6.37
|
||||
Contact: linux-iio@vger.kernel.org
|
||||
Description:
|
||||
This property gets/sets the sensors ADC analog integration time.
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
What: /sys/bus/iio/devices/device[n]/lux_table
|
||||
KernelVersion: 2.6.37
|
||||
Contact: linux-iio@vger.kernel.org
|
||||
Description:
|
||||
This property gets/sets the table of coefficients
|
||||
used in calculating illuminance in lux.
|
||||
|
||||
What: /sys/bus/iio/devices/device[n]/illuminance0_calibrate
|
||||
KernelVersion: 2.6.37
|
||||
Contact: linux-iio@vger.kernel.org
|
||||
Description:
|
||||
This property causes an internal calibration of the als gain trim
|
||||
value which is later used in calculating illuminance in lux.
|
||||
|
||||
What: /sys/bus/iio/devices/device[n]/illuminance0_input_target
|
||||
KernelVersion: 2.6.37
|
||||
Contact: linux-iio@vger.kernel.org
|
||||
Description:
|
||||
This property is the known externally illuminance (in lux).
|
||||
It is used in the process of calibrating the device accuracy.
|
||||
@@ -24,3 +24,9 @@ config SENSORS_ISL29018
|
||||
in lux, proximity infrared sensing and normal infrared sensing.
|
||||
Data from sensor is accessible via sysfs.
|
||||
|
||||
config TSL2583
|
||||
tristate "TAOS TSL2580, TSL2581, and TSL2583 light-to-digital converters"
|
||||
depends on I2C
|
||||
help
|
||||
Provides support for the TAOS tsl2580, tsl2581, and tsl2583 devices.
|
||||
Access ALS data via iio, sysfs.
|
||||
|
||||
@@ -4,3 +4,4 @@
|
||||
|
||||
obj-$(CONFIG_SENSORS_TSL2563) += tsl2563.o
|
||||
obj-$(CONFIG_SENSORS_ISL29018) += isl29018.o
|
||||
obj-$(CONFIG_TSL2583) += tsl2583.o
|
||||
|
||||
960
drivers/staging/iio/light/tsl2583.c
Normal file
960
drivers/staging/iio/light/tsl2583.c
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user