Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3c97c08b authored by Jon Brenner's avatar Jon Brenner Committed by Greg Kroah-Hartman
Browse files

staging: iio: add TAOS tsl2x7x driver



TAOS device driver (version 9) for the tsl/tmd 2771 and 2772 device families (inc. all variants).

Update:
Removed bonus lines.

Signed-off-by: default avatarJon Brenner <jbrenner@taosinc.com>
Acked-by: default avatarJonathan <Cameron&lt;jic23@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e17b8e48
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
What:		/sys/bus/iio/devices/device[n]/in_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.
+13 −0
Original line number Diff line number Diff line
What:		/sys/bus/iio/devices/device[n]/in_illuminance0_calibrate
KernelVersion:	3.3-rc1
Contact:	linux-iio@vger.kernel.org
Description:
		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]/in_proximity0_calibrate
KernelVersion:	3.3-rc1
Contact:	linux-iio@vger.kernel.org
Description:
		Causes a recalculation and adjustment to the
		proximity_thresh_rising_value.
+10 −0
Original line number Diff line number Diff line
@@ -243,6 +243,8 @@ What: /sys/bus/iio/devices/iio:deviceX/in_accel_z_calibbias
What:		/sys/bus/iio/devices/iio:deviceX/in_anglvel_x_calibbias
What:		/sys/bus/iio/devices/iio:deviceX/in_anglvel_y_calibbias
What:		/sys/bus/iio/devices/iio:deviceX/in_anglvel_z_calibbias
What:		/sys/bus/iio/devices/iio:deviceX/in_illuminance0_calibbias
What:		/sys/bus/iio/devices/iio:deviceX/in_proximity0_calibbias
KernelVersion:	2.6.35
Contact:	linux-iio@vger.kernel.org
Description:
@@ -258,6 +260,8 @@ What /sys/bus/iio/devices/iio:deviceX/in_accel_z_calibscale
What		/sys/bus/iio/devices/iio:deviceX/in_anglvel_x_calibscale
What		/sys/bus/iio/devices/iio:deviceX/in_anglvel_y_calibscale
What		/sys/bus/iio/devices/iio:deviceX/in_anglvel_z_calibscale
what		/sys/bus/iio/devices/iio:deviceX/in_illuminance0_calibscale
what		/sys/bus/iio/devices/iio:deviceX/in_proximity0_calibscale
KernelVersion:	2.6.35
Contact:	linux-iio@vger.kernel.org
Description:
@@ -457,6 +461,10 @@ What: /sys/.../events/in_voltageY_raw_thresh_rising_value
What:		/sys/.../events/in_voltageY_raw_thresh_falling_value
What:		/sys/.../events/in_tempY_raw_thresh_rising_value
What:		/sys/.../events/in_tempY_raw_thresh_falling_value
What:		/sys/.../events/in_illuminance0_thresh_falling_value
what:		/sys/.../events/in_illuminance0_thresh_rising_value
what:		/sys/.../events/in_proximity0_thresh_falling_value
what:		/sys/.../events/in_proximity0_thresh_rising_value
KernelVersion:	2.6.37
Contact:	linux-iio@vger.kernel.org
Description:
@@ -556,6 +564,8 @@ What: /sys/.../events/in_tempY_thresh_falling_period
What:		/sys/.../events/in_tempY_roc_rising_period
What:		/sys/.../events/in_tempY_roc_falling_period
What:		/sys/.../events/in_accel_x&y&z_mag_falling_period
What:		/sys/.../events/in_intensity0_thresh_period
What:		/sys/.../events/in_proximity0_thresh_period
KernelVersion:	2.6.37
Contact:	linux-iio@vger.kernel.org
Description:
+7 −8
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@ Description:
		Hardware dependent list of possible values supported for the
		adc_resolution of the given sensor.

What:		/sys/bus/iio/devices/device[n]/illuminance0[_input|_raw]
What:		/sys/bus/iio/devices/device[n]/in_illuminance0[_input|_raw]
KernelVersion:	2.6.35
Contact:	linux-iio@vger.kernel.org
Description:
@@ -45,7 +45,7 @@ Description:
		do this calculation manually by reading the infrared sensor
		value and doing the negation in sw.

What:		/sys/bus/iio/devices/device[n]/proximity[_input|_raw]
What:		/sys/bus/iio/devices/device[n]/in_proximity[_input|_raw]
KernelVersion:	2.6.37
Contact:	linux-iio@vger.kernel.org
Description:
@@ -63,23 +63,22 @@ Description:
		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
What:		/sys/bus/iio/devices/device[n]/in_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
What:		/sys/bus/iio/devices/device[n]/in_illuminance0_integration_time
KernelVersion:	2.6.37
Contact:	linux-iio@vger.kernel.org
Description:
		This property gets/sets the sensors ADC analog integration time.

What:		/sys/bus/iio/devices/device[n]/illuminance0_calibscale
What:		/sys/bus/iio/devices/device[n]/in_illuminance0_lux_table
KernelVersion:	2.6.37
Contact:	linux-iio@vger.kernel.org
Description:
		Hardware or software applied calibration scale factor assumed
		to account for attenuation due to industrial design (glass
		filters or aperture holes).
		This property gets/sets the table of coefficients
		used in calculating illuminance in lux.
+8 −0
Original line number Diff line number Diff line
@@ -42,4 +42,12 @@ config TSL2583
	 Provides support for the TAOS tsl2580, tsl2581 and tsl2583 devices.
	 Access ALS data via iio, sysfs.

config TSL2x7x
	tristate "TAOS TSL/TMD2x71 and TSL/TMD2x72 Family of light and proximity sensors"
	depends on I2C
	help
	 Support for: tsl2571, tsl2671, tmd2671, tsl2771, tmd2771, tsl2572, tsl2672,
	 tmd2672, tsl2772, tmd2772 devices.
	 Provides iio_events and direct access via sysfs.

endmenu
Loading