gpio: pca953x: add compatibility for pcal6524 and pcal9555a
authorH. Nikolaus Schaller <hns@goldelico.com>
Sat, 10 Mar 2018 11:00:01 +0000 (12:00 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 27 Mar 2018 13:18:20 +0000 (15:18 +0200)
The Pyra-Handheld originally used the tca6424 but recently we have
replaced it by the pin and package compatible pcal6524. So let's
add this to the bindings and the driver.

And while we are at it, the pcal9555a does not have a compatible entry
either but is already supported by the device id table.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/devicetree/bindings/gpio/gpio-pca953x.txt
drivers/gpio/gpio-pca953x.c

index 0d0158728f897bd9fbeaa41e884955445ca1f062..d2a9376828369b33aaa4108ac5def0343f669409 100644 (file)
@@ -16,6 +16,8 @@ Required properties:
        nxp,pca9574
        nxp,pca9575
        nxp,pca9698
+       nxp,pcal6524
+       nxp,pcal9555a
        maxim,max7310
        maxim,max7312
        maxim,max7313
index a0a5f9730aa77b92ea5bc520c22f64b386edb583..d2ead4b1cf610745350171dff45c62542f1b7ff2 100644 (file)
@@ -70,6 +70,7 @@ static const struct i2c_device_id pca953x_id[] = {
        { "pca9575", 16 | PCA957X_TYPE | PCA_INT, },
        { "pca9698", 40 | PCA953X_TYPE, },
 
+       { "pcal6524", 24 | PCA953X_TYPE | PCA_INT | PCA_PCAL, },
        { "pcal9555a", 16 | PCA953X_TYPE | PCA_INT | PCA_PCAL, },
 
        { "max7310", 8  | PCA953X_TYPE, },
@@ -935,6 +936,9 @@ static const struct of_device_id pca953x_dt_ids[] = {
        { .compatible = "nxp,pca9575", .data = OF_957X(16, PCA_INT), },
        { .compatible = "nxp,pca9698", .data = OF_953X(40, 0), },
 
+       { .compatible = "nxp,pcal6524", .data = OF_953X(24, PCA_INT), },
+       { .compatible = "nxp,pcal9555a", .data = OF_953X(16, PCA_INT), },
+
        { .compatible = "maxim,max7310", .data = OF_953X( 8, 0), },
        { .compatible = "maxim,max7312", .data = OF_953X(16, PCA_INT), },
        { .compatible = "maxim,max7313", .data = OF_953X(16, PCA_INT), },