All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] dt-bindings: gpio: pca953x: document the nxp,pca6416
@ 2019-04-09 12:35 Alexandre Belloni
  2019-04-09 12:35 ` [PATCH 2/2] gpio: pca953x: add support for pca6416 Alexandre Belloni
  2019-04-11 13:34 ` [PATCH 1/2] dt-bindings: gpio: pca953x: document the nxp,pca6416 Linus Walleij
  0 siblings, 2 replies; 4+ messages in thread
From: Alexandre Belloni @ 2019-04-09 12:35 UTC (permalink / raw)
  To: Linus Walleij, Bartosz Golaszewski
  Cc: linux-gpio, Thomas Petazzoni, linux-kernel, Alexandre Belloni

The NXP PCA6416 is a variant of the PCA GPIO expander, with 16 GPIOs.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 Documentation/devicetree/bindings/gpio/gpio-pca953x.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/gpio/gpio-pca953x.txt b/Documentation/devicetree/bindings/gpio/gpio-pca953x.txt
index fb144e2b6522..22fb905a1b2d 100644
--- a/Documentation/devicetree/bindings/gpio/gpio-pca953x.txt
+++ b/Documentation/devicetree/bindings/gpio/gpio-pca953x.txt
@@ -2,6 +2,7 @@
 
 Required properties:
  - compatible: Has to contain one of the following:
+	nxp,pca6416
 	nxp,pca9505
 	nxp,pca9534
 	nxp,pca9535
-- 
2.20.1

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

* [PATCH 2/2] gpio: pca953x: add support for pca6416
  2019-04-09 12:35 [PATCH 1/2] dt-bindings: gpio: pca953x: document the nxp,pca6416 Alexandre Belloni
@ 2019-04-09 12:35 ` Alexandre Belloni
  2019-04-11 13:35   ` Linus Walleij
  2019-04-11 13:34 ` [PATCH 1/2] dt-bindings: gpio: pca953x: document the nxp,pca6416 Linus Walleij
  1 sibling, 1 reply; 4+ messages in thread
From: Alexandre Belloni @ 2019-04-09 12:35 UTC (permalink / raw)
  To: Linus Walleij, Bartosz Golaszewski
  Cc: linux-gpio, Thomas Petazzoni, linux-kernel, Alexandre Belloni

The NXP PCA6416, documented at [1], is a variant of the PCA GPIO
expander with 16 GPIOs, and supporting an interrupt.

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

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 drivers/gpio/gpio-pca953x.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c
index 7e76830b3368..7fb4d51277e4 100644
--- a/drivers/gpio/gpio-pca953x.c
+++ b/drivers/gpio/gpio-pca953x.c
@@ -73,6 +73,7 @@
 #define PCA_CHIP_TYPE(x)	((x) & PCA_TYPE_MASK)
 
 static const struct i2c_device_id pca953x_id[] = {
+	{ "pca6416", 16 | PCA953X_TYPE | PCA_INT, },
 	{ "pca9505", 40 | PCA953X_TYPE | PCA_INT, },
 	{ "pca9534", 8  | PCA953X_TYPE | PCA_INT, },
 	{ "pca9535", 16 | PCA953X_TYPE | PCA_INT, },
@@ -1137,6 +1138,7 @@ static int pca953x_resume(struct device *dev)
 #define OF_957X(__nrgpio, __int) (void *)(__nrgpio | PCA957X_TYPE | __int)
 
 static const struct of_device_id pca953x_dt_ids[] = {
+	{ .compatible = "nxp,pca6416", .data = OF_953X(16, PCA_INT), },
 	{ .compatible = "nxp,pca9505", .data = OF_953X(40, PCA_INT), },
 	{ .compatible = "nxp,pca9534", .data = OF_953X( 8, PCA_INT), },
 	{ .compatible = "nxp,pca9535", .data = OF_953X(16, PCA_INT), },
-- 
2.20.1

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

* Re: [PATCH 1/2] dt-bindings: gpio: pca953x: document the nxp,pca6416
  2019-04-09 12:35 [PATCH 1/2] dt-bindings: gpio: pca953x: document the nxp,pca6416 Alexandre Belloni
  2019-04-09 12:35 ` [PATCH 2/2] gpio: pca953x: add support for pca6416 Alexandre Belloni
@ 2019-04-11 13:34 ` Linus Walleij
  1 sibling, 0 replies; 4+ messages in thread
From: Linus Walleij @ 2019-04-11 13:34 UTC (permalink / raw)
  To: Alexandre Belloni
  Cc: Bartosz Golaszewski, open list:GPIO SUBSYSTEM, Thomas Petazzoni,
	linux-kernel

On Tue, Apr 9, 2019 at 2:35 PM Alexandre Belloni
<alexandre.belloni@bootlin.com> wrote:

> The NXP PCA6416 is a variant of the PCA GPIO expander, with 16 GPIOs.
>
> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

Patch applied.

Yours,
Linus Walleij

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

* Re: [PATCH 2/2] gpio: pca953x: add support for pca6416
  2019-04-09 12:35 ` [PATCH 2/2] gpio: pca953x: add support for pca6416 Alexandre Belloni
@ 2019-04-11 13:35   ` Linus Walleij
  0 siblings, 0 replies; 4+ messages in thread
From: Linus Walleij @ 2019-04-11 13:35 UTC (permalink / raw)
  To: Alexandre Belloni
  Cc: Bartosz Golaszewski, open list:GPIO SUBSYSTEM, Thomas Petazzoni,
	linux-kernel

On Tue, Apr 9, 2019 at 2:35 PM Alexandre Belloni
<alexandre.belloni@bootlin.com> wrote:

> The NXP PCA6416, documented at [1], is a variant of the PCA GPIO
> expander with 16 GPIOs, and supporting an interrupt.
>
> [1] https://www.nxp.com/docs/en/data-sheet/PCA6416A.pdf
>
> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

Patch applied.

Yours,
Linus Walleij

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

end of thread, other threads:[~2019-04-11 13:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-09 12:35 [PATCH 1/2] dt-bindings: gpio: pca953x: document the nxp,pca6416 Alexandre Belloni
2019-04-09 12:35 ` [PATCH 2/2] gpio: pca953x: add support for pca6416 Alexandre Belloni
2019-04-11 13:35   ` Linus Walleij
2019-04-11 13:34 ` [PATCH 1/2] dt-bindings: gpio: pca953x: document the nxp,pca6416 Linus Walleij

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.