diff mbox series

gpio: pca953x: Add support for the TI TCA9539

Message ID 20190601071218.27958-1-pbrobinson@gmail.com
State New
Headers show
Series gpio: pca953x: Add support for the TI TCA9539 | expand

Commit Message

Peter Robinson June 1, 2019, 7:12 a.m. UTC
The TI TCA9539 is a variant of the PCA953x GPIO expander,
with 16 GPIOs and interrupt functionality.

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
---
 drivers/gpio/gpio-pca953x.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Linus Walleij June 1, 2019, 9:51 p.m. UTC | #1
On Sat, Jun 1, 2019 at 9:12 AM Peter Robinson <pbrobinson@gmail.com> wrote:

> The TI TCA9539 is a variant of the PCA953x GPIO expander,
> with 16 GPIOs and interrupt functionality.
>
> Signed-off-by: Peter Robinson <pbrobinson@gmail.com>

I noticed that this compatible string is already in the bindings doc
too!

Patch applied.

Yours,
Linus Walleij
diff mbox series

Patch

diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c
index b7ef33f63392..c31ad558d056 100644
--- a/drivers/gpio/gpio-pca953x.c
+++ b/drivers/gpio/gpio-pca953x.c
@@ -1180,6 +1180,7 @@  static const struct of_device_id pca953x_dt_ids[] = {
 	{ .compatible = "ti,tca6408", .data = OF_953X( 8, PCA_INT), },
 	{ .compatible = "ti,tca6416", .data = OF_953X(16, PCA_INT), },
 	{ .compatible = "ti,tca6424", .data = OF_953X(24, PCA_INT), },
+	{ .compatible = "ti,tca9539", .data = OF_953X(16, PCA_INT), },
 
 	{ .compatible = "onnn,cat9554", .data = OF_953X( 8, PCA_INT), },
 	{ .compatible = "onnn,pca9654", .data = OF_953X( 8, PCA_INT), },