lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241224061321.6048-3-hardevsinh.palaniya@siliconsignals.io>
Date: Tue, 24 Dec 2024 11:43:16 +0530
From: Hardevsinh Palaniya <hardevsinh.palaniya@...iconsignals.io>
To: jic23@...nel.org
Cc: Hardevsinh Palaniya <hardevsinh.palaniya@...iconsignals.io>,
	Lars-Peter Clausen <lars@...afoo.de>,
	Rob Herring <robh@...nel.org>,
	Krzysztof Kozlowski <krzk+dt@...nel.org>,
	Conor Dooley <conor+dt@...nel.org>,
	Emil Gedenryd <emil.gedenryd@...s.com>,
	Javier Carrasco <javier.carrasco.cruz@...il.com>,
	Arthur Becker <arthur.becker@...tec.com>,
	Mudit Sharma <muditsharma.info@...il.com>,
	Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
	Subhajit Ghosh <subhajit.ghosh@...aklogic.com>,
	Julien Stephan <jstephan@...libre.com>,
	Uwe Kleine-König <u.kleine-koenig@...gutronix.de>,
	Andreas Dannenberg <dannenberg@...com>,
	linux-iio@...r.kernel.org,
	devicetree@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: [PATCH 2/2] iio: light: opt3001: Add Support for opt3004 light sensor

Add Support for OPT3004 Digital ambient light sensor (ALS) with
increased angular IR rejection

The OPT3004 sensor shares the same functionality and scale range as
the OPT3001. This Adds the compatible string for OPT3004, enabling
the driver to support it without any functional changes.

Datasheet: https://www.ti.com/lit/gpn/opt3004

Tested-by: Hardevsinh Palaniya <hardevsinh.palaniya@...iconsignals.io>
Signed-off-by: Hardevsinh Palaniya <hardevsinh.palaniya@...iconsignals.io>
---
 drivers/iio/light/Kconfig   | 3 ++-
 drivers/iio/light/opt3001.c | 2 ++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/iio/light/Kconfig b/drivers/iio/light/Kconfig
index 29ffa8491927..748c8c2cd3e7 100644
--- a/drivers/iio/light/Kconfig
+++ b/drivers/iio/light/Kconfig
@@ -475,7 +475,8 @@ config OPT3001
 	depends on I2C
 	help
 	  If you say Y or M here, you get support for Texas Instruments
-	  OPT3001 Ambient Light Sensor, OPT3002 Light-to-Digital Sensor.
+	  OPT3001 Ambient Light Sensor, OPT3002 Light-to-Digital Sensor,
+	  OPT3004 Digital ambient light sensor.
 
 	  If built as a dynamically linked module, it will be called
 	  opt3001.
diff --git a/drivers/iio/light/opt3001.c b/drivers/iio/light/opt3001.c
index 65b295877b41..542af8612d34 100644
--- a/drivers/iio/light/opt3001.c
+++ b/drivers/iio/light/opt3001.c
@@ -949,6 +949,7 @@ static const struct opt3001_chip_info opt3002_chip_information = {
 static const struct i2c_device_id opt3001_id[] = {
 	{ "opt3001", (kernel_ulong_t)&opt3001_chip_information },
 	{ "opt3002", (kernel_ulong_t)&opt3002_chip_information },
+	{ "opt3004", (kernel_ulong_t)&opt3001_chip_information },
 	{ } /* Terminating Entry */
 };
 MODULE_DEVICE_TABLE(i2c, opt3001_id);
@@ -956,6 +957,7 @@ MODULE_DEVICE_TABLE(i2c, opt3001_id);
 static const struct of_device_id opt3001_of_match[] = {
 	{ .compatible = "ti,opt3001", .data = &opt3001_chip_information },
 	{ .compatible = "ti,opt3002", .data = &opt3002_chip_information },
+	{ .compatible = "ti,opt3004", .data = &opt3001_chip_information },
 	{ }
 };
 MODULE_DEVICE_TABLE(of, opt3001_of_match);
-- 
2.34.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ