OSDN Git Service

gpio: pca953x: add support for pcal6416 type
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 3 Jan 2019 16:13:29 +0000 (17:13 +0100)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Thu, 14 Feb 2019 14:14:37 +0000 (15:14 +0100)
The NXP PCAL6416, documented at [1], is a variant of the PCA GPIO
expander with 16 GPIOs, and supporting an interrupt and the "extended"
features for interrupt, pull-up/pull-down configuration, etc.

[1] https://www.nxp.com/docs/en/data-sheet/PCAL6416A.pdf

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-pca953x.c

index 0dc9641..e26ee4b 100644 (file)
@@ -88,6 +88,7 @@ static const struct i2c_device_id pca953x_id[] = {
        { "pca9575", 16 | PCA957X_TYPE | PCA_INT, },
        { "pca9698", 40 | PCA953X_TYPE, },
 
+       { "pcal6416", 16 | PCA953X_TYPE | PCA_INT | PCA_PCAL, },
        { "pcal6524", 24 | PCA953X_TYPE | PCA_INT | PCA_PCAL, },
        { "pcal9555a", 16 | PCA953X_TYPE | PCA_INT | PCA_PCAL, },