[PATCH 0/2] AM335x ICE: Add support for PCA9536 GPIO expander

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH 0/2] AM335x ICE: Add support for PCA9536 GPIO expander

Vignesh R


This patch series adds support for TI PCA9536 GPIO expander present on
AM335x ICE board.

Vignesh R (2):
  gpio: pca953x: Add support for TI PCA9536
  ARM: dts: am335x-icev2: Add DT node for TI PCA9536

 Documentation/devicetree/bindings/gpio/gpio-pca953x.txt | 1 +
 arch/arm/boot/dts/am335x-icev2.dts                      | 7 +++++++
 drivers/gpio/gpio-pca953x.c                             | 1 +
 3 files changed, 9 insertions(+)

--
2.8.2

Reply | Threaded
Open this post in threaded view
|

[PATCH 1/2] gpio: pca953x: Add support for TI PCA9536

Vignesh R
TI PCA9536 is 4-Bit I2C GPIO expander without interrupt support[1].
Add support for the same.

[1] TRM: http://www.ti.com/lit/ds/symlink/pca9536.pdf

Signed-off-by: Vignesh R <[hidden email]>
---
 Documentation/devicetree/bindings/gpio/gpio-pca953x.txt | 1 +
 drivers/gpio/gpio-pca953x.c                             | 1 +
 2 files changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/gpio/gpio-pca953x.txt b/Documentation/devicetree/bindings/gpio/gpio-pca953x.txt
index 6b4a98f74be3..08dd15f89ba9 100644
--- a/Documentation/devicetree/bindings/gpio/gpio-pca953x.txt
+++ b/Documentation/devicetree/bindings/gpio/gpio-pca953x.txt
@@ -21,6 +21,7 @@ Required properties:
  maxim,max7313
  maxim,max7315
  ti,pca6107
+ ti,pca9536
  ti,tca6408
  ti,tca6416
  ti,tca6424
diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c
index 5e3be32ebb8d..763028562d22 100644
--- a/drivers/gpio/gpio-pca953x.c
+++ b/drivers/gpio/gpio-pca953x.c
@@ -861,6 +861,7 @@ static const struct of_device_id pca953x_dt_ids[] = {
  { .compatible = "maxim,max7315", .data = OF_953X( 8, PCA_INT), },
 
  { .compatible = "ti,pca6107", .data = OF_953X( 8, PCA_INT), },
+ { .compatible = "ti,pca9536", .data = OF_953X( 4, 0), },
  { .compatible = "ti,tca6408", .data = OF_953X( 8, PCA_INT), },
  { .compatible = "ti,tca6416", .data = OF_953X(16, PCA_INT), },
  { .compatible = "ti,tca6424", .data = OF_953X(24, PCA_INT), },
--
2.8.2

Reply | Threaded
Open this post in threaded view
|

[PATCH 2/2] ARM: dts: am335x-icev2: Add DT node for TI PCA9536

Vignesh R
In reply to this post by Vignesh R
AM335x ICE board has a TI PCA9536 chip connected to I2C0 at address
0x41. Add DT entry for the same.

Signed-off-by: Vignesh R <[hidden email]>
---
 arch/arm/boot/dts/am335x-icev2.dts | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm/boot/dts/am335x-icev2.dts b/arch/arm/boot/dts/am335x-icev2.dts
index e271013e78a6..7d8b8fefdf08 100644
--- a/arch/arm/boot/dts/am335x-icev2.dts
+++ b/arch/arm/boot/dts/am335x-icev2.dts
@@ -206,6 +206,13 @@
  gpio-controller;
  #gpio-cells = <2>;
  };
+
+ pca9536: gpio@41 {
+ compatible = "ti,pca9536";
+ reg = <0x41>;
+ gpio-controller;
+ #gpio-cells = <2>;
+ };
 };
 
 #include "tps65910.dtsi"
--
2.8.2

Reply | Threaded
Open this post in threaded view
|

Re: [PATCH 2/2] ARM: dts: am335x-icev2: Add DT node for TI PCA9536

Martinez Kristofer
On Thu, May 19, 2016 at 2:47 PM, Vignesh R <[hidden email]> wrote:

> AM335x ICE board has a TI PCA9536 chip connected to I2C0 at address
> 0x41. Add DT entry for the same.
>
> Signed-off-by: Vignesh R <[hidden email]>
> ---
>  arch/arm/boot/dts/am335x-icev2.dts | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/arch/arm/boot/dts/am335x-icev2.dts b/arch/arm/boot/dts/am335x-icev2.dts
> index e271013e78a6..7d8b8fefdf08 100644
> --- a/arch/arm/boot/dts/am335x-icev2.dts
> +++ b/arch/arm/boot/dts/am335x-icev2.dts
> @@ -206,6 +206,13 @@
>                 gpio-controller;
>                 #gpio-cells = <2>;
>         };
> +
> +       pca9536: gpio@41 {
> +               compatible = "ti,pca9536";
> +               reg = <0x41>;
> +               gpio-controller;
> +               #gpio-cells = <2>;
> +       };
>  };
>
>  #include "tps65910.dtsi"

Acked-by: Kristofer Martinez <[hidden email]>

M.K.

> --
> 2.8.2
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> [hidden email]
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH 1/2] gpio: pca953x: Add support for TI PCA9536

Rob Herring-3
In reply to this post by Vignesh R
On Thu, May 19, 2016 at 12:17:29PM +0530, Vignesh R wrote:

> TI PCA9536 is 4-Bit I2C GPIO expander without interrupt support[1].
> Add support for the same.
>
> [1] TRM: http://www.ti.com/lit/ds/symlink/pca9536.pdf
>
> Signed-off-by: Vignesh R <[hidden email]>
> ---
>  Documentation/devicetree/bindings/gpio/gpio-pca953x.txt | 1 +
>  drivers/gpio/gpio-pca953x.c                             | 1 +
>  2 files changed, 2 insertions(+)

Acked-by: Rob Herring <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH 2/2] ARM: dts: am335x-icev2: Add DT node for TI PCA9536

Linus Walleij
In reply to this post by Vignesh R
On Thu, May 19, 2016 at 8:47 AM, Vignesh R <[hidden email]> wrote:

> AM335x ICE board has a TI PCA9536 chip connected to I2C0 at address
> 0x41. Add DT entry for the same.
>
> Signed-off-by: Vignesh R <[hidden email]>

Acked-by: Linus Walleij <[hidden email]>

Pls take this through the ARM SoC TI git tree.

Yours,
Linus Walleij
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH 1/2] gpio: pca953x: Add support for TI PCA9536

Linus Walleij
In reply to this post by Vignesh R
On Thu, May 19, 2016 at 8:47 AM, Vignesh R <[hidden email]> wrote:

> TI PCA9536 is 4-Bit I2C GPIO expander without interrupt support[1].
> Add support for the same.
>
> [1] TRM: http://www.ti.com/lit/ds/symlink/pca9536.pdf
>
> Signed-off-by: Vignesh R <[hidden email]>

Patch applied with Rob's ACK.

Yours,
Linus Walleij