gpio: Add support for the PCAL9535
Subsystems (2)
PATCH v2 2/2 gpio: pca953x: Add support for the PCAL9535
In reply to Jan KiszkaFrom: Jan Kiszka <[email protected]>
The PCAL9535 [1] is compatible to the PCA9535. Additionally, it comes with interrupt support and input latching. Other features are not supported by the GPIO subsystem.
[1] https://www.nxp.com/docs/en/data-sheet/PCAL9535A.pdf
--- drivers/gpio/gpio-pca953x.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpio/gpio-pca953x.c +1 -0
@@ -1131,6 +1131,7 @@ static const struct of_device_id pca953x_dt_ids[] = { { .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), }, + { .compatible = "nxp,pcal9535", .data = OF_953X(16, PCA_LATCH_INT), }, { .compatible = "nxp,pca9536", .data = OF_953X( 4, 0), }, { .compatible = "nxp,pca9537", .data = OF_953X( 4, PCA_INT), }, { .compatible = "nxp,pca9538", .data = OF_953X( 8, PCA_INT), },
Signature · 1 line
2.26.2
v2 cover gpio: Add support for the PCAL9535
Changes in v2:
- add dt binding update
Jan
Jan Kiszka (2):
dt-bindings: gpio: pca953x: add nxp,pcal9535
gpio: pca953x: Add support for the PCAL9535
Documentation/devicetree/bindings/gpio/gpio-pca953x.txt | 1 + drivers/gpio/gpio-pca953x.c | 1 + 2 files changed, 2 insertions(+)
Signature · 1 line
2.26.2
PATCH v2 1/2 dt-bindings: gpio: pca953x: add nxp,pcal9535
From: Jan Kiszka <[email protected]>
The NXP PCAL9535 is an extended variant of the PCA9535.
--- Documentation/devicetree/bindings/gpio/gpio-pca953x.txt | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/gpio/gpio-pca953x.txt +1 -0
@@ -19,6 +19,7 @@ Required properties: nxp,pca9698 nxp,pcal6416 nxp,pcal6524 + nxp,pcal9535 nxp,pcal9555a maxim,max7310 maxim,max7312
Signature · 1 line
2.26.2
Re: [PATCH v2 2/2] gpio: pca953x: Add support for the PCAL9535
In reply to Jan KiszkaQuoted 6 lines · Jan Kiszka
From: Jan Kiszka <[email protected]>
The PCAL9535 [1] is compatible to the PCA9535. Additionally, it comes with interrupt support and input latching. Other features are not supported by the GPIO subsystem.
Same comments as per v1.
Quoted 1 line
Datasheet: ...
...
Review static const struct of_device_id pca953x_dt_ids[] = {
Quoted 1 line
(quoted diff) +0
-0@@ -1131,6 +1131,7 @@ static const struct of_device_id pca953x_dt_ids[] = {
i2c ID table
Signature · 2 lines
With Best Regards, Andy Shevchenko