]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commitdiff
gpio: pca953x: Add support for TI PCA9536
authorVignesh R <vigneshr@ti.com>
Thu, 19 May 2016 06:47:29 +0000 (12:17 +0530)
committerSuresh Mangipudi <smangipudi@nvidia.com>
Thu, 17 Nov 2016 05:08:14 +0000 (10:38 +0530)
TI PCA9536 is 4-Bit I2C GPIO expander without interrupt support[1].
Add support for the same.

[1] TRM: http://www.ti.com/lit/ds/symlink/pca9536.pdf

Signed-off-by: Vignesh R <vigneshr@ti.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
(cherry picked from commit 353661dfe19512fa54c4662d4624dd946a2c8751)
Signed-off-by: Suresh Mangipudi <smangipudi@nvidia.com>
Documentation/devicetree/bindings/gpio/gpio-pca953x.txt
drivers/gpio/gpio-pca953x.c

index 6b4a98f74be3873ab999b822e485116b0c29fa97..08dd15f89ba9d17a08deadad7c355e347cd4961c 100644 (file)
@@ -21,6 +21,7 @@ Required properties:
        maxim,max7313
        maxim,max7315
        ti,pca6107
+       ti,pca9536
        ti,tca6408
        ti,tca6416
        ti,tca6424
index b13ad090e8a5136f8dd9c092ef71ede436f92343..99f73cc76088029072c3159cccb625c0985a7084 100644 (file)
@@ -903,6 +903,7 @@ static const struct of_device_id pca953x_dt_ids[] = {
        { .compatible = "maxim,max7315", .data = OF_953X( 8, PCA_INT), },
 
        { .compatible = "ti,pca6107", .data = OF_953X( 8, PCA_INT), },
+       { .compatible = "ti,pca9536", .data = OF_953X( 4, 0), },
        { .compatible = "ti,tca6408", .data = OF_953X( 8, PCA_INT), },
        { .compatible = "ti,tca6416", .data = OF_953X(16, PCA_INT), },
        { .compatible = "ti,tca6424", .data = OF_953X(24, PCA_INT), },