Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756654AbcCRU0o (ORCPT ); Fri, 18 Mar 2016 16:26:44 -0400 Received: from mail.kernel.org ([198.145.29.136]:55190 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755543AbcCRU0l (ORCPT ); Fri, 18 Mar 2016 16:26:41 -0400 Date: Fri, 18 Mar 2016 15:26:36 -0500 From: Rob Herring To: Nicolas Saenz Julienne Cc: linus.walleij@linaro.org, gnurou@gmail.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org Subject: Re: [PATCH] gpio: 74x164: add dt support for nxp's 74x594 Message-ID: <20160318202636.GA8849@rob-hp-laptop> References: <1457998330-8070-1-git-send-email-nicolassaenzj@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1457998330-8070-1-git-send-email-nicolassaenzj@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1851 Lines: 47 On Mon, Mar 14, 2016 at 11:32:10PM +0000, Nicolas Saenz Julienne wrote: > 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 > --- > Documentation/devicetree/bindings/gpio/gpio-74x164.txt | 4 +++- > drivers/gpio/gpio-74x164.c | 1 + > 2 files changed, 4 insertions(+), 1 deletion(-) Acked-by: Rob Herring > > diff --git a/Documentation/devicetree/bindings/gpio/gpio-74x164.txt b/Documentation/devicetree/bindings/gpio/gpio-74x164.txt > index cc26080..ce1b223 100644 > --- a/Documentation/devicetree/bindings/gpio/gpio-74x164.txt > +++ b/Documentation/devicetree/bindings/gpio/gpio-74x164.txt > @@ -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 > diff --git a/drivers/gpio/gpio-74x164.c b/drivers/gpio/gpio-74x164.c > index c81224f..ebd0d1a 100644 > --- a/drivers/gpio/gpio-74x164.c > +++ b/drivers/gpio/gpio-74x164.c > @@ -153,6 +153,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); > -- > 2.5.0 > > -- > To unsubscribe from this list: send the line "unsubscribe devicetree" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html