Commit 403e5586 authored by Christian Eggers's avatar Christian Eggers Committed by Jonathan Cameron
Browse files

iio: light: as73211: New driver

Support for AMS AS73211 JENCOLOR(R) Digital XYZ Sensor.

This driver has no built-in trigger. In order for making triggered
measurements, an external (software) trigger driver like
iio-trig-hrtimer or iio-trig-sysfs is required.

The sensor supports single and continuous measurement modes. The latter
is not used by design as this would require tight timing synchronization
between hardware and driver without much benefit.

Datasheet: https://ams.com/documents/20143/36005/AS73211_DS000556_3-01.pdf


Signed-off-by: default avatarChristian Eggers <ceggers@arri.de>
Reviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 96e55c38
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -943,6 +943,13 @@ S: Supported
F:	arch/arm64/boot/dts/amd/amd-seattle-xgbe*.dtsi
F:	drivers/net/ethernet/amd/xgbe/
AMS AS73211 DRIVER
M:	Christian Eggers <ceggers@arri.de>
L:	linux-iio@vger.kernel.org
S:	Maintained
F:	Documentation/devicetree/bindings/iio/light/ams,as73211.yaml
F:	drivers/iio/light/as73211.c
ANALOG DEVICES INC AD5686 DRIVER
M:	Michael Hennerich <Michael.Hennerich@analog.com>
L:	linux-pm@vger.kernel.org
+15 −0
Original line number Diff line number Diff line
@@ -86,6 +86,21 @@ config APDS9960
	  To compile this driver as a module, choose M here: the
	  module will be called apds9960

config AS73211
	tristate "AMS AS73211 XYZ color sensor"
	depends on I2C
	select IIO_BUFFER
	select IIO_TRIGGERED_BUFFER
	help
	 If you say yes here you get support for the AMS AS73211
	 JENCOLOR(R) Digital XYZ Sensor.

	 For triggered measurements, you will need an additional trigger driver
	 like IIO_HRTIMER_TRIGGER or IIO_SYSFS_TRIGGER.

	 This driver can also be built as a module.  If so, the module
	 will be called as73211.

config BH1750
	tristate "ROHM BH1750 ambient light sensor"
	depends on I2C
+1 −0
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@ obj-$(CONFIG_AL3010) += al3010.o
obj-$(CONFIG_AL3320A)		+= al3320a.o
obj-$(CONFIG_APDS9300)		+= apds9300.o
obj-$(CONFIG_APDS9960)		+= apds9960.o
obj-$(CONFIG_AS73211)		+= as73211.o
obj-$(CONFIG_BH1750)		+= bh1750.o
obj-$(CONFIG_BH1780)		+= bh1780.o
obj-$(CONFIG_CM32181)		+= cm32181.o
+801 −0

File added.

Preview size limit exceeded, changes collapsed.