Skip to contentSkip to conversation

AM335x ICE: Add support for PCA9536 GPIO expander

PATCH In review Vignesh R 5 participants 8 messages May 19, 2016 – Jun 10, 2016

Subsystems (2)
lore
Share & tools
lore

Vignesh R

author
#0 lore raw

cover AM335x ICE: Add support for PCA9536 GPIO expander

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(+)
Signature · 1 line
2.8.2
author
#1 lore raw

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

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

---
 Documentation/devicetree/bindings/gpio/gpio-pca953x.txt | 1 +
 drivers/gpio/gpio-pca953x.c                             | 1 +
 2 files changed, 2 insertions(+)
Documentation/devicetree/bindings/gpio/gpio-pca953x.txt +1 -0
index 6b4a98f74be3..08dd15f89ba9 100644
@@ -21,6 +21,7 @@ Required properties:
 	maxim,max7313
 	maxim,max7315
 	ti,pca6107
+	ti,pca9536
 	ti,tca6408
 	ti,tca6416
 	ti,tca6424
drivers/gpio/gpio-pca953x.c +1 -0
index 5e3be32ebb8d..763028562d22 100644
@@ -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), },
Signature · 1 line
2.8.2
maintainer Acked-by on v1 1/2
#2 lore raw

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

Quoted 10 lines · 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

---
 Documentation/devicetree/bindings/gpio/gpio-pca953x.txt | 1 +
 drivers/gpio/gpio-pca953x.c                             | 1 +
 2 files changed, 2 insertions(+)
author
#4 lore raw

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

In reply to Vignesh R

AM335x ICE board has a TI PCA9536 chip connected to I2C0 at address 0x41. Add DT entry for the same.

---
 arch/arm/boot/dts/am335x-icev2.dts | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/boot/dts/am335x-icev2.dts +7 -0
index e271013e78a6..7d8b8fefdf08 100644
@@ -206,6 +206,13 @@
 		gpio-controller;
 		#gpio-cells = <2>;
 	};
+
+	pca9536: gpio at 41 {
+		compatible = "ti,pca9536";
+		reg = <0x41>;
+		gpio-controller;
+		#gpio-cells = <2>;
+	};
 };
 
 #include "tps65910.dtsi"
Signature · 1 line
2.8.2
Acked-by on v1 2/2
#5 lore raw

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

Quoted 16 lines · Vignesh R

AM335x ICE board has a TI PCA9536 chip connected to I2C0 at address 0x41. Add DT entry for the same.

---
 arch/arm/boot/dts/am335x-icev2.dts | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/boot/dts/am335x-icev2.dts +0 -0
index e271013e78a6..7d8b8fefdf08 100644
@@ -206,6 +206,13 @@
                gpio-controller;
                #gpio-cells = <2>;
        };

arch/arm/boot/dts/am335x-icev2.dts line 218

Quoted 10 lines
arch/arm/boot/dts/am335x-icev2.dts +7 -0
+
+       pca9536: gpio at 41 {
+               compatible = "ti,pca9536";
+               reg = <0x41>;
+               gpio-controller;
+               #gpio-cells = <2>;
+       };
 };
 
 #include "tps65910.dtsi"

M.K.

Quoted 8 lines

--
2.8.2

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#7 lore raw

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

Quoted 10 lines · Linus Walleij
Quoted 4 lines · Vignesh R

AM335x ICE board has a TI PCA9536 chip connected to I2C0 at address 0x41. Add DT entry for the same.

Pls take this through the ARM SoC TI git tree.

Applying this patch into omap-for-v4.8/dt thanks.

Tony