Skip to content

Commit 237d961

Browse files
MikeLooijmansLinus Walleij
authored andcommitted
gpio: pca953x: Add support for the NXP PCAL9554B/C
The NXP PCAL9554B is a variant of the PCA953x GPIO expander, with 8 GPIOs, latched interrupts and some advanced configuration options. The "C" version only differs in I2C address. Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl> Reviewed-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Link: https://lore.kernel.org/r/20200930092053.2114-2-mike.looijmans@topic.nl Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 3d5a465 commit 237d961

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/gpio/gpio-pca953x.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ static const struct i2c_device_id pca953x_id[] = {
9090
{ "pcal6416", 16 | PCA953X_TYPE | PCA_LATCH_INT, },
9191
{ "pcal6524", 24 | PCA953X_TYPE | PCA_LATCH_INT, },
9292
{ "pcal9535", 16 | PCA953X_TYPE | PCA_LATCH_INT, },
93+
{ "pcal9554b", 8 | PCA953X_TYPE | PCA_LATCH_INT, },
9394
{ "pcal9555a", 16 | PCA953X_TYPE | PCA_LATCH_INT, },
9495

9596
{ "max7310", 8 | PCA953X_TYPE, },
@@ -1234,6 +1235,7 @@ static const struct of_device_id pca953x_dt_ids[] = {
12341235
{ .compatible = "nxp,pcal6416", .data = OF_953X(16, PCA_LATCH_INT), },
12351236
{ .compatible = "nxp,pcal6524", .data = OF_953X(24, PCA_LATCH_INT), },
12361237
{ .compatible = "nxp,pcal9535", .data = OF_953X(16, PCA_LATCH_INT), },
1238+
{ .compatible = "nxp,pcal9554b", .data = OF_953X( 8, PCA_LATCH_INT), },
12371239
{ .compatible = "nxp,pcal9555a", .data = OF_953X(16, PCA_LATCH_INT), },
12381240

12391241
{ .compatible = "maxim,max7310", .data = OF_953X( 8, 0), },

0 commit comments

Comments
 (0)