Linux IIO development
 help / color / mirror / Atom feed
* [PATCH] staging: iio: isl29028: add isl29030 support
@ 2017-04-28 15:55 Sebastian Reichel
  2017-04-28 16:17 ` Brian Masney
  0 siblings, 1 reply; 4+ messages in thread
From: Sebastian Reichel @ 2017-04-28 15:55 UTC (permalink / raw)
  To: Sebastian Reichel, Jonathan Cameron, Hartmut Knaack,
	Lars-Peter Clausen, Peter Meerwald-Stadler, Brian Masney
  Cc: Greg Kroah-Hartman, linux-iio, devel, linux-kernel,
	Sebastian Reichel

isl29030 is basically the same chip. The only difference
is the chip's first pin. For isl29028 its named ADDR0 and
can be used to change the chip's i2c address. For isl29030
on the other hand that pin is named Ials and is an analog
current output proportional to ALS/IR. This change is
irrelevant for the Linux driver.

This has been tested on Motorola Droid 4.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
---
 Documentation/devicetree/bindings/i2c/trivial-devices.txt | 1 +
 drivers/staging/iio/light/isl29028.c                      | 6 ++++++
 2 files changed, 7 insertions(+)

diff --git a/Documentation/devicetree/bindings/i2c/trivial-devices.txt b/Documentation/devicetree/bindings/i2c/trivial-devices.txt
index ad10fbe61562..010e2ac43f62 100644
--- a/Documentation/devicetree/bindings/i2c/trivial-devices.txt
+++ b/Documentation/devicetree/bindings/i2c/trivial-devices.txt
@@ -55,6 +55,7 @@ gmt,g751		G751: Digital Temperature Sensor and Thermal Watchdog with Two-Wire In
 infineon,slb9635tt	Infineon SLB9635 (Soft-) I2C TPM (old protocol, max 100khz)
 infineon,slb9645tt	Infineon SLB9645 I2C TPM (new protocol, max 400khz)
 isil,isl29028		Intersil ISL29028 Ambient Light and Proximity Sensor
+isil,isl29030		Intersil ISL29030 Ambient Light and Proximity Sensor
 maxim,ds1050		5 Bit Programmable, Pulse-Width Modulator
 maxim,max1237		Low-Power, 4-/12-Channel, 2-Wire Serial, 12-Bit ADCs
 maxim,max6625		9-Bit/12-Bit Temperature Sensors with I²C-Compatible Serial Interface
diff --git a/drivers/staging/iio/light/isl29028.c b/drivers/staging/iio/light/isl29028.c
index 6bb6d37cc7d1..564a62e54b05 100644
--- a/drivers/staging/iio/light/isl29028.c
+++ b/drivers/staging/iio/light/isl29028.c
@@ -15,6 +15,10 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ * Datasheets:
+ *  - http://www.intersil.com/content/dam/Intersil/documents/isl2/isl29028.pdf
+ *  - http://www.intersil.com/content/dam/Intersil/documents/isl2/isl29030.pdf
  */
 
 #include <linux/module.h>
@@ -651,6 +655,7 @@ static const struct dev_pm_ops isl29028_pm_ops = {
 
 static const struct i2c_device_id isl29028_id[] = {
 	{"isl29028", 0},
+	{"isl29030", 0},
 	{}
 };
 MODULE_DEVICE_TABLE(i2c, isl29028_id);
@@ -658,6 +663,7 @@ MODULE_DEVICE_TABLE(i2c, isl29028_id);
 static const struct of_device_id isl29028_of_match[] = {
 	{ .compatible = "isl,isl29028", }, /* for backward compat., don't use */
 	{ .compatible = "isil,isl29028", },
+	{ .compatible = "isil,isl29030", },
 	{ },
 };
 MODULE_DEVICE_TABLE(of, isl29028_of_match);
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] staging: iio: isl29028: add isl29030 support
  2017-04-28 15:55 [PATCH] staging: iio: isl29028: add isl29030 support Sebastian Reichel
@ 2017-04-28 16:17 ` Brian Masney
  2017-04-30 16:27   ` Jonathan Cameron
  0 siblings, 1 reply; 4+ messages in thread
From: Brian Masney @ 2017-04-28 16:17 UTC (permalink / raw)
  To: Sebastian Reichel
  Cc: Sebastian Reichel, Jonathan Cameron, Hartmut Knaack,
	Lars-Peter Clausen, Peter Meerwald-Stadler, Greg Kroah-Hartman,
	linux-iio, devel, linux-kernel

On Fri, Apr 28, 2017 at 05:55:58PM +0200, Sebastian Reichel wrote:
> isl29030 is basically the same chip. The only difference
> is the chip's first pin. For isl29028 its named ADDR0 and
> can be used to change the chip's i2c address. For isl29030
> on the other hand that pin is named Ials and is an analog
> current output proportional to ALS/IR. This change is
> irrelevant for the Linux driver.
> 
> This has been tested on Motorola Droid 4.
> 
> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
> ---
>  Documentation/devicetree/bindings/i2c/trivial-devices.txt | 1 +
>  drivers/staging/iio/light/isl29028.c                      | 6 ++++++
>  2 files changed, 7 insertions(+)

Hi Sebastian,

I moved this driver out of the staging directory earlier this week.
You'll need to base your patch off of IIO testing:

https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git/log/?h=testing

Your patch should apply cleanly once you update the file path.

Brian

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] staging: iio: isl29028: add isl29030 support
  2017-04-28 16:17 ` Brian Masney
@ 2017-04-30 16:27   ` Jonathan Cameron
  2017-04-30 19:40     ` Sebastian Reichel
  0 siblings, 1 reply; 4+ messages in thread
From: Jonathan Cameron @ 2017-04-30 16:27 UTC (permalink / raw)
  To: Brian Masney, Sebastian Reichel
  Cc: Sebastian Reichel, Hartmut Knaack, Lars-Peter Clausen,
	Peter Meerwald-Stadler, Greg Kroah-Hartman, linux-iio, devel,
	linux-kernel

On 28/04/17 17:17, Brian Masney wrote:
> On Fri, Apr 28, 2017 at 05:55:58PM +0200, Sebastian Reichel wrote:
>> isl29030 is basically the same chip. The only difference
>> is the chip's first pin. For isl29028 its named ADDR0 and
>> can be used to change the chip's i2c address. For isl29030
>> on the other hand that pin is named Ials and is an analog
>> current output proportional to ALS/IR. This change is
>> irrelevant for the Linux driver.
>>
>> This has been tested on Motorola Droid 4.
>>
>> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
>> ---
>>  Documentation/devicetree/bindings/i2c/trivial-devices.txt | 1 +
>>  drivers/staging/iio/light/isl29028.c                      | 6 ++++++
>>  2 files changed, 7 insertions(+)
> 
> Hi Sebastian,
> 
> I moved this driver out of the staging directory earlier this week.
> You'll need to base your patch off of IIO testing:
> 
> https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git/log/?h=testing
> 
> Your patch should apply cleanly once you update the file path.
I did it rather than having this bounce around for a trivial rebase.

Applied to the togreg branch of iio.git and pushed out as testing of
the autobuilders to play with it.

Thanks,

Jonathan
> 
> Brian
> --
> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] staging: iio: isl29028: add isl29030 support
  2017-04-30 16:27   ` Jonathan Cameron
@ 2017-04-30 19:40     ` Sebastian Reichel
  0 siblings, 0 replies; 4+ messages in thread
From: Sebastian Reichel @ 2017-04-30 19:40 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: Brian Masney, Hartmut Knaack, Lars-Peter Clausen,
	Peter Meerwald-Stadler, Greg Kroah-Hartman, linux-iio, devel,
	linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1409 bytes --]

Hi,

On Sun, Apr 30, 2017 at 05:27:07PM +0100, Jonathan Cameron wrote:
> On 28/04/17 17:17, Brian Masney wrote:
> > On Fri, Apr 28, 2017 at 05:55:58PM +0200, Sebastian Reichel wrote:
> >> isl29030 is basically the same chip. The only difference
> >> is the chip's first pin. For isl29028 its named ADDR0 and
> >> can be used to change the chip's i2c address. For isl29030
> >> on the other hand that pin is named Ials and is an analog
> >> current output proportional to ALS/IR. This change is
> >> irrelevant for the Linux driver.
> >>
> >> This has been tested on Motorola Droid 4.
> >>
> >> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
> >> ---
> >>  Documentation/devicetree/bindings/i2c/trivial-devices.txt | 1 +
> >>  drivers/staging/iio/light/isl29028.c                      | 6 ++++++
> >>  2 files changed, 7 insertions(+)
> > 
> > Hi Sebastian,
> > 
> > I moved this driver out of the staging directory earlier this week.
> > You'll need to base your patch off of IIO testing:
> > 
> > https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git/log/?h=testing
> > 
> > Your patch should apply cleanly once you update the file path.
> I did it rather than having this bounce around for a trivial rebase.
> 
> Applied to the togreg branch of iio.git and pushed out as testing of
> the autobuilders to play with it.

Thanks.

-- Sebastian

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-04-30 19:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-28 15:55 [PATCH] staging: iio: isl29028: add isl29030 support Sebastian Reichel
2017-04-28 16:17 ` Brian Masney
2017-04-30 16:27   ` Jonathan Cameron
2017-04-30 19:40     ` Sebastian Reichel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox