[2/2] gpio: pca953x: add support for pcal6416 type

Message ID 20190103161329.15235-2-thomas.petazzoni@bootlin.com
State New
Headers show
Series
  • [1/2] dt-bindings: gpio: pca953x: document the nxp,pcal6416
Related show

Commit Message

Thomas Petazzoni Jan. 3, 2019, 4:13 p.m.
The NXP PCAL6416, documented at [1], is a variant of the PCA GPIO
expander with 16 GPIOs, and supporting an interrupt and the "extended"
features for interrupt, pull-up/pull-down configuration, etc.

[1] https://www.nxp.com/docs/en/data-sheet/PCAL6416A.pdf

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
 drivers/gpio/gpio-pca953x.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Bartosz Golaszewski Jan. 7, 2019, 9:55 a.m. | #1
czw., 3 sty 2019 o 17:13 Thomas Petazzoni
<thomas.petazzoni@bootlin.com> napisaƂ(a):
>
> The NXP PCAL6416, documented at [1], is a variant of the PCA GPIO
> expander with 16 GPIOs, and supporting an interrupt and the "extended"
> features for interrupt, pull-up/pull-down configuration, etc.
>
> [1] https://www.nxp.com/docs/en/data-sheet/PCAL6416A.pdf
>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> ---
>  drivers/gpio/gpio-pca953x.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c
> index 83617fdc661d..82d69ab51976 100644
> --- a/drivers/gpio/gpio-pca953x.c
> +++ b/drivers/gpio/gpio-pca953x.c
> @@ -88,6 +88,7 @@ static const struct i2c_device_id pca953x_id[] = {
>         { "pca9575", 16 | PCA957X_TYPE | PCA_INT, },
>         { "pca9698", 40 | PCA953X_TYPE, },
>
> +       { "pcal6416", 16 | PCA953X_TYPE | PCA_INT | PCA_PCAL, },
>         { "pcal6524", 24 | PCA953X_TYPE | PCA_INT | PCA_PCAL, },
>         { "pcal9555a", 16 | PCA953X_TYPE | PCA_INT | PCA_PCAL, },
>
> --
> 2.20.1
>

Queued for v5.1, thanks!

Bartosz

Patch

diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c
index 83617fdc661d..82d69ab51976 100644
--- a/drivers/gpio/gpio-pca953x.c
+++ b/drivers/gpio/gpio-pca953x.c
@@ -88,6 +88,7 @@  static const struct i2c_device_id pca953x_id[] = {
 	{ "pca9575", 16 | PCA957X_TYPE | PCA_INT, },
 	{ "pca9698", 40 | PCA953X_TYPE, },
 
+	{ "pcal6416", 16 | PCA953X_TYPE | PCA_INT | PCA_PCAL, },
 	{ "pcal6524", 24 | PCA953X_TYPE | PCA_INT | PCA_PCAL, },
 	{ "pcal9555a", 16 | PCA953X_TYPE | PCA_INT | PCA_PCAL, },