* [PATCH v2] iio: potentiostat: lmp91000: add LMP91002 support
@ 2018-05-08 5:34 Matt Ranostay
2018-05-08 15:42 ` Rob Herring
0 siblings, 1 reply; 3+ messages in thread
From: Matt Ranostay @ 2018-05-08 5:34 UTC (permalink / raw)
To: linux-iio; +Cc: jic23, Matt Ranostay, devicetree
LMP91002 is register compatible so add devicetree and i2c client ids
Cc: devicetree@vger.kernel.org
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
---
Changes from v1:
* Split out compatible options in multiple lines for the lmp91000.txt documentation
Documentation/devicetree/bindings/iio/potentiostat/lmp91000.txt | 9 ++++++---
drivers/iio/potentiostat/lmp91000.c | 2 ++
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/iio/potentiostat/lmp91000.txt b/Documentation/devicetree/bindings/iio/potentiostat/lmp91000.txt
index b9b621e94cd7..e6d0c2eb345c 100644
--- a/Documentation/devicetree/bindings/iio/potentiostat/lmp91000.txt
+++ b/Documentation/devicetree/bindings/iio/potentiostat/lmp91000.txt
@@ -1,10 +1,13 @@
-* Texas Instruments LMP91000 potentiostat
+* Texas Instruments LMP91000 series of potentiostats
-http://www.ti.com/lit/ds/symlink/lmp91000.pdf
+LMP91000: http://www.ti.com/lit/ds/symlink/lmp91000.pdf
+LMP91002: http://www.ti.com/lit/ds/symlink/lmp91002.pdf
Required properties:
- - compatible: should be "ti,lmp91000"
+ - compatible: should be one of the following:
+ "ti,lmp91000"
+ "ti,lmp91002"
- reg: the I2C address of the device
- io-channels: the phandle of the iio provider
diff --git a/drivers/iio/potentiostat/lmp91000.c b/drivers/iio/potentiostat/lmp91000.c
index 85714055cc74..90e895adf997 100644
--- a/drivers/iio/potentiostat/lmp91000.c
+++ b/drivers/iio/potentiostat/lmp91000.c
@@ -411,12 +411,14 @@ static int lmp91000_remove(struct i2c_client *client)
static const struct of_device_id lmp91000_of_match[] = {
{ .compatible = "ti,lmp91000", },
+ { .compatible = "ti,lmp91002", },
{ },
};
MODULE_DEVICE_TABLE(of, lmp91000_of_match);
static const struct i2c_device_id lmp91000_id[] = {
{ "lmp91000", 0 },
+ { "lmp91002", 0 },
{}
};
MODULE_DEVICE_TABLE(i2c, lmp91000_id);
--
2.14.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] iio: potentiostat: lmp91000: add LMP91002 support
2018-05-08 5:34 [PATCH v2] iio: potentiostat: lmp91000: add LMP91002 support Matt Ranostay
@ 2018-05-08 15:42 ` Rob Herring
2018-05-12 10:03 ` Jonathan Cameron
0 siblings, 1 reply; 3+ messages in thread
From: Rob Herring @ 2018-05-08 15:42 UTC (permalink / raw)
To: Matt Ranostay; +Cc: linux-iio, jic23, devicetree
On Mon, May 07, 2018 at 10:34:01PM -0700, Matt Ranostay wrote:
> LMP91002 is register compatible so add devicetree and i2c client ids
>
> Cc: devicetree@vger.kernel.org
> Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
> ---
>
> Changes from v1:
> * Split out compatible options in multiple lines for the lmp91000.txt documentation
>
> Documentation/devicetree/bindings/iio/potentiostat/lmp91000.txt | 9 ++++++---
> drivers/iio/potentiostat/lmp91000.c | 2 ++
> 2 files changed, 8 insertions(+), 3 deletions(-)
Reviewed-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] iio: potentiostat: lmp91000: add LMP91002 support
2018-05-08 15:42 ` Rob Herring
@ 2018-05-12 10:03 ` Jonathan Cameron
0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Cameron @ 2018-05-12 10:03 UTC (permalink / raw)
To: Rob Herring; +Cc: Matt Ranostay, linux-iio, devicetree
On Tue, 8 May 2018 10:42:56 -0500
Rob Herring <robh@kernel.org> wrote:
> On Mon, May 07, 2018 at 10:34:01PM -0700, Matt Ranostay wrote:
> > LMP91002 is register compatible so add devicetree and i2c client ids
> >
> > Cc: devicetree@vger.kernel.org
> > Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
> > ---
> >
> > Changes from v1:
> > * Split out compatible options in multiple lines for the lmp91000.txt documentation
> >
> > Documentation/devicetree/bindings/iio/potentiostat/lmp91000.txt | 9 ++++++---
> > drivers/iio/potentiostat/lmp91000.c | 2 ++
> > 2 files changed, 8 insertions(+), 3 deletions(-)
>
> Reviewed-by: Rob Herring <robh@kernel.org>
Applied to the togreg branch of iio.git and pushed out as testing for the
autobuilders to play with it.
Thanks,
Jonathan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-05-12 10:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-08 5:34 [PATCH v2] iio: potentiostat: lmp91000: add LMP91002 support Matt Ranostay
2018-05-08 15:42 ` Rob Herring
2018-05-12 10:03 ` Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).