Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758104Ab3JKOJF (ORCPT ); Fri, 11 Oct 2013 10:09:05 -0400 Received: from mail-ie0-f182.google.com ([209.85.223.182]:55976 "EHLO mail-ie0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758050Ab3JKOJA (ORCPT ); Fri, 11 Oct 2013 10:09:00 -0400 MIME-Version: 1.0 In-Reply-To: <1380902596-4693-2-git-send-email-sujithkv@ti.com> References: <1380902596-4693-1-git-send-email-sujithkv@ti.com> <1380902596-4693-2-git-send-email-sujithkv@ti.com> Date: Fri, 11 Oct 2013 16:09:00 +0200 Message-ID: Subject: Re: [PATCH v3 1/3] gpio: davinci: add OF support From: Linus Walleij To: Prabhakar Lad Cc: "devicetree@vger.kernel.org" , DLOS , "linux-gpio@vger.kernel.org" , LDOC , LKML , LAK , Sekhar Nori , Rob Herring , Pawel Moll , Mark Rutland , Stephen Warren , Ian Campbell , Rob Landley Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2339 Lines: 64 On Fri, Oct 4, 2013 at 6:03 PM, Prabhakar Lad wrote: > This patch adds OF parser support for davinci gpio > driver and also appropriate documentation in gpio-davinci.txt > located at Documentation/devicetree/bindings/gpio/. > > Signed-off-by: KV Sujith > Signed-off-by: Philip Avinash > Acked-by: Linus Walleij ^Don't trust this guy. > [prabhakar.csengg@gmail.com: simplified the OF code and also > the commit message] > Signed-off-by: Lad, Prabhakar > --- > .../devicetree/bindings/gpio/gpio-davinci.txt | 34 +++++++++++ > drivers/gpio/gpio-davinci.c | 60 +++++++++++++++++++- > 2 files changed, 91 insertions(+), 3 deletions(-) > create mode 100644 Documentation/devicetree/bindings/gpio/gpio-davinci.txt > > diff --git a/Documentation/devicetree/bindings/gpio/gpio-davinci.txt b/Documentation/devicetree/bindings/gpio/gpio-davinci.txt > new file mode 100644 > index 0000000..87abd3b > --- /dev/null > +++ b/Documentation/devicetree/bindings/gpio/gpio-davinci.txt > @@ -0,0 +1,34 @@ > +Davinci GPIO controller bindings > + > +Required Properties: > +- compatible: should be "ti,dm6441-gpio" > + > +- reg: Physical base address of the controller and the size of memory mapped > + registers. > + > +- gpio-controller : Marks the device node as a gpio controller. > + > +- interrupts: Array of GPIO interrupt number. > + > +- ngpio: The number of GPIO pins supported. > + > +- ti,davinci-gpio-irq-base: Base from where GPIO interrupt numbering starts. What is this? If I have ever ACKed this I have been drunk. I take it back. This "base" is a Linux-specific thing and has no place in the device tree, and shall not be there. You have to find some way to avoid this, what do you think some other OS should do with this value... All IRQs in Linux are assumed to be dynamically assigned numbers nowadays, with a property like this you can never switch on SPARSE_IRQ for the DaVinci. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/