diff options
author | Gregory CLEMENT <gregory.clement@free-electrons.com> | 2013-01-22 16:10:24 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-01-25 03:03:40 -0500 |
commit | 89f5df01c6b7f2471267bc55b1ecb196c98e195f (patch) | |
tree | f7b093fa081478e853ef10f6fc261c941ad5996f /drivers/gpio | |
parent | f5f0b7aa897ebf6b0d077356a787526212460dd7 (diff) |
gpio: pca953x: add support for pca9505
Now that pca953x driver can handle GPIO expanders with more than 32
bits this patch adds the support for the pca9505 which cam with 40
GPIOs.
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpio-pca953x.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c index b35ba0690163..3a68aed91114 100644 --- a/drivers/gpio/gpio-pca953x.c +++ b/drivers/gpio/gpio-pca953x.c | |||
@@ -46,6 +46,7 @@ | |||
46 | #define PCA957X_TYPE 0x2000 | 46 | #define PCA957X_TYPE 0x2000 |
47 | 47 | ||
48 | static const struct i2c_device_id pca953x_id[] = { | 48 | static const struct i2c_device_id pca953x_id[] = { |
49 | { "pca9505", 40 | PCA953X_TYPE | PCA_INT, }, | ||
49 | { "pca9534", 8 | PCA953X_TYPE | PCA_INT, }, | 50 | { "pca9534", 8 | PCA953X_TYPE | PCA_INT, }, |
50 | { "pca9535", 16 | PCA953X_TYPE | PCA_INT, }, | 51 | { "pca9535", 16 | PCA953X_TYPE | PCA_INT, }, |
51 | { "pca9536", 4 | PCA953X_TYPE, }, | 52 | { "pca9536", 4 | PCA953X_TYPE, }, |
@@ -835,6 +836,7 @@ static int pca953x_remove(struct i2c_client *client) | |||
835 | } | 836 | } |
836 | 837 | ||
837 | static const struct of_device_id pca953x_dt_ids[] = { | 838 | static const struct of_device_id pca953x_dt_ids[] = { |
839 | { .compatible = "nxp,pca9505", }, | ||
838 | { .compatible = "nxp,pca9534", }, | 840 | { .compatible = "nxp,pca9534", }, |
839 | { .compatible = "nxp,pca9535", }, | 841 | { .compatible = "nxp,pca9535", }, |
840 | { .compatible = "nxp,pca9536", }, | 842 | { .compatible = "nxp,pca9536", }, |