Skip to content

Commit 0cb2aab

Browse files
mranostayjic23
authored andcommitted
iio: potentiostat: lmp91000: add LMP91002 support
LMP91002 is register compatible so add devicetree and i2c client ids Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
1 parent 3345d47 commit 0cb2aab

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Documentation/devicetree/bindings/iio/potentiostat/lmp91000.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
* Texas Instruments LMP91000 potentiostat
1+
* Texas Instruments LMP91000 series of potentiostats
22

3-
http://www.ti.com/lit/ds/symlink/lmp91000.pdf
3+
LMP91000: http://www.ti.com/lit/ds/symlink/lmp91000.pdf
4+
LMP91002: http://www.ti.com/lit/ds/symlink/lmp91002.pdf
45

56
Required properties:
67

7-
- compatible: should be "ti,lmp91000"
8+
- compatible: should be one of the following:
9+
"ti,lmp91000"
10+
"ti,lmp91002"
811
- reg: the I2C address of the device
912
- io-channels: the phandle of the iio provider
1013

drivers/iio/potentiostat/lmp91000.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,12 +411,14 @@ static int lmp91000_remove(struct i2c_client *client)
411411

412412
static const struct of_device_id lmp91000_of_match[] = {
413413
{ .compatible = "ti,lmp91000", },
414+
{ .compatible = "ti,lmp91002", },
414415
{ },
415416
};
416417
MODULE_DEVICE_TABLE(of, lmp91000_of_match);
417418

418419
static const struct i2c_device_id lmp91000_id[] = {
419420
{ "lmp91000", 0 },
421+
{ "lmp91002", 0 },
420422
{}
421423
};
422424
MODULE_DEVICE_TABLE(i2c, lmp91000_id);

0 commit comments

Comments
 (0)