All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/2] gpio: pca9570: Add DT bindings for NXP PCA9571
@ 2022-06-29 17:04 Lucas Stach
  2022-06-29 17:04 ` [PATCH v2 2/2] gpio: pca9570: add pca9571 support Lucas Stach
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Lucas Stach @ 2022-06-29 17:04 UTC (permalink / raw)
  To: Linus Walleij, Bartosz Golaszewski, Rob Herring, Krzysztof Kozlowski
  Cc: linux-gpio, devicetree, kernel, patchwork-lst

This patch adds device tree bindings for the NXP PCA9571,
a 8-bit I2C GPIO expander.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
 Documentation/devicetree/bindings/gpio/gpio-pca9570.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/gpio/gpio-pca9570.yaml b/Documentation/devicetree/bindings/gpio/gpio-pca9570.yaml
index 338c5312a106..1acaa0a3d35a 100644
--- a/Documentation/devicetree/bindings/gpio/gpio-pca9570.yaml
+++ b/Documentation/devicetree/bindings/gpio/gpio-pca9570.yaml
@@ -13,6 +13,7 @@ properties:
   compatible:
     enum:
       - nxp,pca9570
+      - nxp,pca9571
 
   reg:
     maxItems: 1
-- 
2.30.2


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

* [PATCH v2 2/2] gpio: pca9570: add pca9571 support
  2022-06-29 17:04 [PATCH v2 1/2] gpio: pca9570: Add DT bindings for NXP PCA9571 Lucas Stach
@ 2022-06-29 17:04 ` Lucas Stach
  2022-06-29 21:18   ` Andy Shevchenko
  2022-07-01  9:20   ` Bartosz Golaszewski
  2022-06-29 17:46 ` [PATCH v2 1/2] gpio: pca9570: Add DT bindings for NXP PCA9571 Krzysztof Kozlowski
  2022-07-01  9:19 ` Bartosz Golaszewski
  2 siblings, 2 replies; 6+ messages in thread
From: Lucas Stach @ 2022-06-29 17:04 UTC (permalink / raw)
  To: Linus Walleij, Bartosz Golaszewski, Rob Herring, Krzysztof Kozlowski
  Cc: linux-gpio, devicetree, kernel, patchwork-lst

The PCA9571 very similar to the PCA9570, it only differs in the
number of GPIOs.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
 drivers/gpio/gpio-pca9570.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpio/gpio-pca9570.c b/drivers/gpio/gpio-pca9570.c
index cb2b2f735c15..ab2a652964ec 100644
--- a/drivers/gpio/gpio-pca9570.c
+++ b/drivers/gpio/gpio-pca9570.c
@@ -121,12 +121,14 @@ static int pca9570_probe(struct i2c_client *client)
 
 static const struct i2c_device_id pca9570_id_table[] = {
 	{ "pca9570", 4 },
+	{ "pca9571", 8 },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(i2c, pca9570_id_table);
 
 static const struct of_device_id pca9570_of_match_table[] = {
 	{ .compatible = "nxp,pca9570", .data = (void *)4 },
+	{ .compatible = "nxp,pca9571", .data = (void *)8 },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, pca9570_of_match_table);
-- 
2.30.2


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

* Re: [PATCH v2 1/2] gpio: pca9570: Add DT bindings for NXP PCA9571
  2022-06-29 17:04 [PATCH v2 1/2] gpio: pca9570: Add DT bindings for NXP PCA9571 Lucas Stach
  2022-06-29 17:04 ` [PATCH v2 2/2] gpio: pca9570: add pca9571 support Lucas Stach
@ 2022-06-29 17:46 ` Krzysztof Kozlowski
  2022-07-01  9:19 ` Bartosz Golaszewski
  2 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-29 17:46 UTC (permalink / raw)
  To: Lucas Stach, Linus Walleij, Bartosz Golaszewski, Rob Herring,
	Krzysztof Kozlowski
  Cc: linux-gpio, devicetree, kernel, patchwork-lst

On 29/06/2022 19:04, Lucas Stach wrote:
> This patch adds device tree bindings for the NXP PCA9571,
> a 8-bit I2C GPIO expander.
> 
> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
> ---
>  Documentation/devicetree/bindings/gpio/gpio-pca9570.yaml | 1 +
>  1 file changed, 1 insertion(+)
> 


Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>


Best regards,
Krzysztof

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

* Re: [PATCH v2 2/2] gpio: pca9570: add pca9571 support
  2022-06-29 17:04 ` [PATCH v2 2/2] gpio: pca9570: add pca9571 support Lucas Stach
@ 2022-06-29 21:18   ` Andy Shevchenko
  2022-07-01  9:20   ` Bartosz Golaszewski
  1 sibling, 0 replies; 6+ messages in thread
From: Andy Shevchenko @ 2022-06-29 21:18 UTC (permalink / raw)
  To: Lucas Stach
  Cc: Linus Walleij, Bartosz Golaszewski, Rob Herring,
	Krzysztof Kozlowski, open list:GPIO SUBSYSTEM, devicetree,
	Sascha Hauer, patchwork-lst

On Wed, Jun 29, 2022 at 7:18 PM Lucas Stach <l.stach@pengutronix.de> wrote:
>
> The PCA9571 very similar to the PCA9570, it only differs in the
> number of GPIOs.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>

> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
> ---
>  drivers/gpio/gpio-pca9570.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpio/gpio-pca9570.c b/drivers/gpio/gpio-pca9570.c
> index cb2b2f735c15..ab2a652964ec 100644
> --- a/drivers/gpio/gpio-pca9570.c
> +++ b/drivers/gpio/gpio-pca9570.c
> @@ -121,12 +121,14 @@ static int pca9570_probe(struct i2c_client *client)
>
>  static const struct i2c_device_id pca9570_id_table[] = {
>         { "pca9570", 4 },
> +       { "pca9571", 8 },
>         { /* sentinel */ }
>  };
>  MODULE_DEVICE_TABLE(i2c, pca9570_id_table);
>
>  static const struct of_device_id pca9570_of_match_table[] = {
>         { .compatible = "nxp,pca9570", .data = (void *)4 },
> +       { .compatible = "nxp,pca9571", .data = (void *)8 },
>         { /* sentinel */ }
>  };
>  MODULE_DEVICE_TABLE(of, pca9570_of_match_table);
> --
> 2.30.2
>


-- 
With Best Regards,
Andy Shevchenko

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

* Re: [PATCH v2 1/2] gpio: pca9570: Add DT bindings for NXP PCA9571
  2022-06-29 17:04 [PATCH v2 1/2] gpio: pca9570: Add DT bindings for NXP PCA9571 Lucas Stach
  2022-06-29 17:04 ` [PATCH v2 2/2] gpio: pca9570: add pca9571 support Lucas Stach
  2022-06-29 17:46 ` [PATCH v2 1/2] gpio: pca9570: Add DT bindings for NXP PCA9571 Krzysztof Kozlowski
@ 2022-07-01  9:19 ` Bartosz Golaszewski
  2 siblings, 0 replies; 6+ messages in thread
From: Bartosz Golaszewski @ 2022-07-01  9:19 UTC (permalink / raw)
  To: Lucas Stach
  Cc: Linus Walleij, Rob Herring, Krzysztof Kozlowski, linux-gpio,
	devicetree, kernel, patchwork-lst

On Wed, Jun 29, 2022 at 7:04 PM Lucas Stach <l.stach@pengutronix.de> wrote:
>
> This patch adds device tree bindings for the NXP PCA9571,
> a 8-bit I2C GPIO expander.
>
> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
> ---
>  Documentation/devicetree/bindings/gpio/gpio-pca9570.yaml | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/Documentation/devicetree/bindings/gpio/gpio-pca9570.yaml b/Documentation/devicetree/bindings/gpio/gpio-pca9570.yaml
> index 338c5312a106..1acaa0a3d35a 100644
> --- a/Documentation/devicetree/bindings/gpio/gpio-pca9570.yaml
> +++ b/Documentation/devicetree/bindings/gpio/gpio-pca9570.yaml
> @@ -13,6 +13,7 @@ properties:
>    compatible:
>      enum:
>        - nxp,pca9570
> +      - nxp,pca9571
>
>    reg:
>      maxItems: 1
> --
> 2.30.2
>

Applied, thanks!

Bart

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

* Re: [PATCH v2 2/2] gpio: pca9570: add pca9571 support
  2022-06-29 17:04 ` [PATCH v2 2/2] gpio: pca9570: add pca9571 support Lucas Stach
  2022-06-29 21:18   ` Andy Shevchenko
@ 2022-07-01  9:20   ` Bartosz Golaszewski
  1 sibling, 0 replies; 6+ messages in thread
From: Bartosz Golaszewski @ 2022-07-01  9:20 UTC (permalink / raw)
  To: Lucas Stach
  Cc: Linus Walleij, Rob Herring, Krzysztof Kozlowski, linux-gpio,
	devicetree, kernel, patchwork-lst

On Wed, Jun 29, 2022 at 7:04 PM Lucas Stach <l.stach@pengutronix.de> wrote:
>
> The PCA9571 very similar to the PCA9570, it only differs in the
> number of GPIOs.
>
> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
> ---
>  drivers/gpio/gpio-pca9570.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpio/gpio-pca9570.c b/drivers/gpio/gpio-pca9570.c
> index cb2b2f735c15..ab2a652964ec 100644
> --- a/drivers/gpio/gpio-pca9570.c
> +++ b/drivers/gpio/gpio-pca9570.c
> @@ -121,12 +121,14 @@ static int pca9570_probe(struct i2c_client *client)
>
>  static const struct i2c_device_id pca9570_id_table[] = {
>         { "pca9570", 4 },
> +       { "pca9571", 8 },
>         { /* sentinel */ }
>  };
>  MODULE_DEVICE_TABLE(i2c, pca9570_id_table);
>
>  static const struct of_device_id pca9570_of_match_table[] = {
>         { .compatible = "nxp,pca9570", .data = (void *)4 },
> +       { .compatible = "nxp,pca9571", .data = (void *)8 },
>         { /* sentinel */ }
>  };
>  MODULE_DEVICE_TABLE(of, pca9570_of_match_table);
> --
> 2.30.2
>

Applied, thanks!

Bart

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

end of thread, other threads:[~2022-07-01  9:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-29 17:04 [PATCH v2 1/2] gpio: pca9570: Add DT bindings for NXP PCA9571 Lucas Stach
2022-06-29 17:04 ` [PATCH v2 2/2] gpio: pca9570: add pca9571 support Lucas Stach
2022-06-29 21:18   ` Andy Shevchenko
2022-07-01  9:20   ` Bartosz Golaszewski
2022-06-29 17:46 ` [PATCH v2 1/2] gpio: pca9570: Add DT bindings for NXP PCA9571 Krzysztof Kozlowski
2022-07-01  9:19 ` Bartosz Golaszewski

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.