浏览代码

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>
Gregory CLEMENT 13 年之前
父节点
当前提交
89f5df01c6
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/gpio/gpio-pca953x.c

+ 2 - 0
drivers/gpio/gpio-pca953x.c

@@ -46,6 +46,7 @@
 #define PCA957X_TYPE		0x2000
 #define PCA957X_TYPE		0x2000
 
 
 static const struct i2c_device_id pca953x_id[] = {
 static const struct i2c_device_id pca953x_id[] = {
+	{ "pca9505", 40 | PCA953X_TYPE | PCA_INT, },
 	{ "pca9534", 8  | PCA953X_TYPE | PCA_INT, },
 	{ "pca9534", 8  | PCA953X_TYPE | PCA_INT, },
 	{ "pca9535", 16 | PCA953X_TYPE | PCA_INT, },
 	{ "pca9535", 16 | PCA953X_TYPE | PCA_INT, },
 	{ "pca9536", 4  | PCA953X_TYPE, },
 	{ "pca9536", 4  | PCA953X_TYPE, },
@@ -835,6 +836,7 @@ static int pca953x_remove(struct i2c_client *client)
 }
 }
 
 
 static const struct of_device_id pca953x_dt_ids[] = {
 static const struct of_device_id pca953x_dt_ids[] = {
+	{ .compatible = "nxp,pca9505", },
 	{ .compatible = "nxp,pca9534", },
 	{ .compatible = "nxp,pca9534", },
 	{ .compatible = "nxp,pca9535", },
 	{ .compatible = "nxp,pca9535", },
 	{ .compatible = "nxp,pca9536", },
 	{ .compatible = "nxp,pca9536", },