]> git.karo-electronics.de Git - linux-beck.git/commitdiff
gpio: 74x164: add dt support for nxp's 74x594
authorNicolas Saenz Julienne <nicolassaenzj@gmail.com>
Mon, 14 Mar 2016 23:32:10 +0000 (23:32 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 31 Mar 2016 08:25:51 +0000 (10:25 +0200)
The chip is also an 8 bit shift register which works out of the box as a GPO
expander with this patch

Signed-off-by: Nicolas Saenz Julienne <nicolassaenzj@gmail.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/devicetree/bindings/gpio/gpio-74x164.txt
drivers/gpio/gpio-74x164.c

index cc2608021f2629a93eef7b92ea8aed797e5772be..ce1b2231bf5dbf5ed0ca0703c51ba95a2202098b 100644 (file)
@@ -1,7 +1,9 @@
 * Generic 8-bits shift register GPIO driver
 
 Required properties:
-- compatible : Should be "fairchild,74hc595"
+- compatible: Should contain one of the following:
+    "fairchild,74hc595"
+    "nxp,74lvc594"
 - reg : chip select number
 - gpio-controller : Marks the device node as a gpio controller.
 - #gpio-cells : Should be two.  The first cell is the pin number and
index 62291a81c97f71409a60004206809c95b6b41e9d..80f9ddf13343c67edca44cc0fdf609882e71c868 100644 (file)
@@ -177,6 +177,7 @@ static int gen_74x164_remove(struct spi_device *spi)
 
 static const struct of_device_id gen_74x164_dt_ids[] = {
        { .compatible = "fairchild,74hc595" },
+       { .compatible = "nxp,74lvc594" },
        {},
 };
 MODULE_DEVICE_TABLE(of, gen_74x164_dt_ids);