devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/2] dt-bindings: gpio: pca95xx: add entry for pcal6408
@ 2022-09-13 18:24 Nate Drude
  2022-09-13 18:24 ` [PATCH v2 2/2] gpio: pca953x: introduce support for nxp,pcal6408 Nate Drude
  2022-09-14 12:17 ` [PATCH v2 1/2] dt-bindings: gpio: pca95xx: add entry for pcal6408 Bartosz Golaszewski
  0 siblings, 2 replies; 3+ messages in thread
From: Nate Drude @ 2022-09-13 18:24 UTC (permalink / raw)
  To: Linus Walleij, Bartosz Golaszewski, Rob Herring,
	Krzysztof Kozlowski, linux-gpio, devicetree, linux-kernel
  Cc: eran.m, Nate Drude

The NXP PCAL6408 is the 8-bit version of PCAL6416.

Signed-off-by: Nate Drude <nate.d@variscite.com>
---
 Documentation/devicetree/bindings/gpio/gpio-pca95xx.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/gpio/gpio-pca95xx.yaml b/Documentation/devicetree/bindings/gpio/gpio-pca95xx.yaml
index 977b14db09b0..05a9fa92283f 100644
--- a/Documentation/devicetree/bindings/gpio/gpio-pca95xx.yaml
+++ b/Documentation/devicetree/bindings/gpio/gpio-pca95xx.yaml
@@ -47,6 +47,7 @@ properties:
       - nxp,pca9574
       - nxp,pca9575
       - nxp,pca9698
+      - nxp,pcal6408
       - nxp,pcal6416
       - nxp,pcal6524
       - nxp,pcal9535
-- 
2.37.3


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

* [PATCH v2 2/2] gpio: pca953x: introduce support for nxp,pcal6408
  2022-09-13 18:24 [PATCH v2 1/2] dt-bindings: gpio: pca95xx: add entry for pcal6408 Nate Drude
@ 2022-09-13 18:24 ` Nate Drude
  2022-09-14 12:17 ` [PATCH v2 1/2] dt-bindings: gpio: pca95xx: add entry for pcal6408 Bartosz Golaszewski
  1 sibling, 0 replies; 3+ messages in thread
From: Nate Drude @ 2022-09-13 18:24 UTC (permalink / raw)
  To: Linus Walleij, Bartosz Golaszewski, Rob Herring,
	Krzysztof Kozlowski, linux-gpio, devicetree, linux-kernel
  Cc: eran.m, Nate Drude

The NXP PCAL6408 is the 8-bit version of PCAL6416.

Signed-off-by: Nate Drude <nate.d@variscite.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 2925f4d8cef3..ba012ac7cd8c 100644
--- a/drivers/gpio/gpio-pca953x.c
+++ b/drivers/gpio/gpio-pca953x.c
@@ -89,6 +89,7 @@ static const struct i2c_device_id pca953x_id[] = {
 	{ "pca9575", 16 | PCA957X_TYPE | PCA_INT, },
 	{ "pca9698", 40 | PCA953X_TYPE, },
 
+	{ "pcal6408", 8 | PCA953X_TYPE | PCA_LATCH_INT, },
 	{ "pcal6416", 16 | PCA953X_TYPE | PCA_LATCH_INT, },
 	{ "pcal6524", 24 | PCA953X_TYPE | PCA_LATCH_INT, },
 	{ "pcal9535", 16 | PCA953X_TYPE | PCA_LATCH_INT, },
@@ -1243,6 +1244,7 @@ static const struct of_device_id pca953x_dt_ids[] = {
 	{ .compatible = "nxp,pca9575", .data = OF_957X(16, PCA_INT), },
 	{ .compatible = "nxp,pca9698", .data = OF_953X(40, 0), },
 
+	{ .compatible = "nxp,pcal6408", .data = OF_953X(8, PCA_LATCH_INT), },
 	{ .compatible = "nxp,pcal6416", .data = OF_953X(16, PCA_LATCH_INT), },
 	{ .compatible = "nxp,pcal6524", .data = OF_953X(24, PCA_LATCH_INT), },
 	{ .compatible = "nxp,pcal9535", .data = OF_953X(16, PCA_LATCH_INT), },
-- 
2.37.3


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

* Re: [PATCH v2 1/2] dt-bindings: gpio: pca95xx: add entry for pcal6408
  2022-09-13 18:24 [PATCH v2 1/2] dt-bindings: gpio: pca95xx: add entry for pcal6408 Nate Drude
  2022-09-13 18:24 ` [PATCH v2 2/2] gpio: pca953x: introduce support for nxp,pcal6408 Nate Drude
@ 2022-09-14 12:17 ` Bartosz Golaszewski
  1 sibling, 0 replies; 3+ messages in thread
From: Bartosz Golaszewski @ 2022-09-14 12:17 UTC (permalink / raw)
  To: Nate Drude
  Cc: Linus Walleij, Rob Herring, Krzysztof Kozlowski, linux-gpio,
	devicetree, linux-kernel, eran.m

On Tue, Sep 13, 2022 at 8:25 PM Nate Drude <nate.d@variscite.com> wrote:
>
> The NXP PCAL6408 is the 8-bit version of PCAL6416.
>
> Signed-off-by: Nate Drude <nate.d@variscite.com>
> ---
>  Documentation/devicetree/bindings/gpio/gpio-pca95xx.yaml | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/Documentation/devicetree/bindings/gpio/gpio-pca95xx.yaml b/Documentation/devicetree/bindings/gpio/gpio-pca95xx.yaml
> index 977b14db09b0..05a9fa92283f 100644
> --- a/Documentation/devicetree/bindings/gpio/gpio-pca95xx.yaml
> +++ b/Documentation/devicetree/bindings/gpio/gpio-pca95xx.yaml
> @@ -47,6 +47,7 @@ properties:
>        - nxp,pca9574
>        - nxp,pca9575
>        - nxp,pca9698
> +      - nxp,pcal6408
>        - nxp,pcal6416
>        - nxp,pcal6524
>        - nxp,pcal9535
> --
> 2.37.3
>

Both applied, thanks!

Bart

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

end of thread, other threads:[~2022-09-14 12:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-13 18:24 [PATCH v2 1/2] dt-bindings: gpio: pca95xx: add entry for pcal6408 Nate Drude
2022-09-13 18:24 ` [PATCH v2 2/2] gpio: pca953x: introduce support for nxp,pcal6408 Nate Drude
2022-09-14 12:17 ` [PATCH v2 1/2] dt-bindings: gpio: pca95xx: add entry for pcal6408 Bartosz Golaszewski

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