linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/3] gpio: pca953x: Add NXP PCA9698
       [not found] <1523732022.119053.1391812099611.JavaMail.zimbra@xes-inc.com>
@ 2014-02-07 22:36 ` Aaron Sierra
  2014-02-13 13:01   ` Linus Walleij
  0 siblings, 1 reply; 2+ messages in thread
From: Aaron Sierra @ 2014-02-07 22:36 UTC (permalink / raw)
  To: linux-gpio; +Cc: Linus Walleij, Balaji Venkatachalam

Add the NXP PCA9698 40-bit GPIO expander to the supported list.
Note: This only enables GPIO functionality.

Tested-by: Bob Schmitz <bschmitz@xes-inc.com>
Signed-off-by: Aaron Sierra <asierra@xes-inc.com>
---
 drivers/gpio/Kconfig        |    4 ++--
 drivers/gpio/gpio-pca953x.c |    2 ++
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index fd7ad66..9b3107e0 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -461,7 +461,7 @@ config GPIO_MC9S08DZ60
 	  Select this to enable the MC9S08DZ60 GPIO driver
 
 config GPIO_PCA953X
-	tristate "PCA953x, PCA955x, PCA957x, TCA64xx, and MAX7310 I/O ports"
+	tristate "PCA95[357]x, PCA9698, TCA64xx, and MAX7310 I/O ports"
 	depends on I2C
 	help
 	  Say yes here to provide access to several register-oriented
@@ -478,7 +478,7 @@ config GPIO_PCA953X
 
 	  24 bits:	tca6424
 
-	  40 bits:	pca9505
+	  40 bits:	pca9505, pca9698
 
 config GPIO_PCA953X_IRQ
 	bool "Interrupt controller support for PCA953x"
diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c
index cede6f6..dbc95bc 100644
--- a/drivers/gpio/gpio-pca953x.c
+++ b/drivers/gpio/gpio-pca953x.c
@@ -59,6 +59,7 @@ static const struct i2c_device_id pca953x_id[] = {
 	{ "pca9557", 8  | PCA953X_TYPE, },
 	{ "pca9574", 8  | PCA957X_TYPE | PCA_INT, },
 	{ "pca9575", 16 | PCA957X_TYPE | PCA_INT, },
+	{ "pca9698", 40 | PCA953X_TYPE, },
 
 	{ "max7310", 8  | PCA953X_TYPE, },
 	{ "max7312", 16 | PCA953X_TYPE | PCA_INT, },
@@ -812,6 +813,7 @@ static const struct of_device_id pca953x_dt_ids[] = {
 	{ .compatible = "nxp,pca9557", },
 	{ .compatible = "nxp,pca9574", },
 	{ .compatible = "nxp,pca9575", },
+	{ .compatible = "nxp,pca9698", },
 
 	{ .compatible = "maxim,max7310", },
 	{ .compatible = "maxim,max7312", },
-- 
1.7.9.5

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

* Re: [PATCH 2/3] gpio: pca953x: Add NXP PCA9698
  2014-02-07 22:36 ` [PATCH 2/3] gpio: pca953x: Add NXP PCA9698 Aaron Sierra
@ 2014-02-13 13:01   ` Linus Walleij
  0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2014-02-13 13:01 UTC (permalink / raw)
  To: Aaron Sierra; +Cc: linux-gpio@vger.kernel.org, Balaji Venkatachalam

On Fri, Feb 7, 2014 at 11:36 PM, Aaron Sierra <asierra@xes-inc.com> wrote:

> Add the NXP PCA9698 40-bit GPIO expander to the supported list.
> Note: This only enables GPIO functionality.
>
> Tested-by: Bob Schmitz <bschmitz@xes-inc.com>
> Signed-off-by: Aaron Sierra <asierra@xes-inc.com>

Patch applied with Graeme's ACK.

> @@ -812,6 +813,7 @@ static const struct of_device_id pca953x_dt_ids[] = {
>         { .compatible = "nxp,pca9557", },
>         { .compatible = "nxp,pca9574", },
>         { .compatible = "nxp,pca9575", },
> +       { .compatible = "nxp,pca9698", },

Hm noone has written any devicetree binding doc for the pca
GPIO block, feel free to do that in a separate patch when you
have time or get bored...

Yours,
Linus Walleij

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

end of thread, other threads:[~2014-02-13 13:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1523732022.119053.1391812099611.JavaMail.zimbra@xes-inc.com>
2014-02-07 22:36 ` [PATCH 2/3] gpio: pca953x: Add NXP PCA9698 Aaron Sierra
2014-02-13 13:01   ` Linus Walleij

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).