]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
gpio: pca953x: Add support for pca9506
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 15 Jan 2021 16:46:56 +0000 (17:46 +0100)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 15 Feb 2021 10:43:27 +0000 (11:43 +0100)
According to the reference manual "The PCA9505 is identical to the
PCA9506 except that it includes 100 kΩ internal pull-up resistors on all
the I/Os." So the pca9506 device can be considered identical to the
pca9505 for the gpio driver.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-pca953x.c

index 825b362eb4b7de2edb5cc5ba777e93c8d673efbc..5ea09fd01544482aaadda083a0dae7de0f54a924 100644 (file)
@@ -73,6 +73,7 @@
 static const struct i2c_device_id pca953x_id[] = {
        { "pca6416", 16 | PCA953X_TYPE | PCA_INT, },
        { "pca9505", 40 | PCA953X_TYPE | PCA_INT, },
+       { "pca9506", 40 | PCA953X_TYPE | PCA_INT, },
        { "pca9534", 8  | PCA953X_TYPE | PCA_INT, },
        { "pca9535", 16 | PCA953X_TYPE | PCA_INT, },
        { "pca9536", 4  | PCA953X_TYPE, },
@@ -1236,6 +1237,7 @@ static int pca953x_resume(struct device *dev)
 static const struct of_device_id pca953x_dt_ids[] = {
        { .compatible = "nxp,pca6416", .data = OF_953X(16, PCA_INT), },
        { .compatible = "nxp,pca9505", .data = OF_953X(40, PCA_INT), },
+       { .compatible = "nxp,pca9506", .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,pca9536", .data = OF_953X( 4, 0), },