From: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>
To: Gerhard Sittig <gsi-ynQEQJNshbs@public.gmane.org>
Cc: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>,
"rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org"
<rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org>,
Pawel Moll <Pawel.Moll-5wv7dgnIgG8@public.gmane.org>,
"swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org"
<swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>,
"devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH 2/3] misc: bmp085: Add DT bindings for EOC gpio line and direct irq.
Date: Mon, 18 Nov 2013 23:28:40 +0100 [thread overview]
Message-ID: <201311182328.40743.arnd@arndb.de> (raw)
In-Reply-To: <20131118171747.GM17929-kDjWylLy9wD0K7fsECOQyeGNnDKD8DIp@public.gmane.org>
On Monday 18 November 2013, Gerhard Sittig wrote:
> [ trimmed Cc: list for DT ]
> [ is the bindings/gpio/8xxx_gpio.txt document incomplete? ]
>
> On Mon, Nov 18, 2013 at 12:38 +0100, Arnd Bergmann wrote:
> >
> > See Documentation/devicetree/bindings/gpio/8xxx_gpio.txt for an
> > example of a device whose interrupt line is connected to a gpio
> > controller. The key here is to set the "interrupt-parent" to
> > the gpio node and have the irq specifier define an interrupt
> > local to that node.
>
> I was wondering whether the gpio-controller nodes lack both the
> 'interrupt-controller' boolean flag as well as the
> '#interrupt-cells = <2>' property. The former may be optional,
> I'm not certain there. But the latter should be a hard
> requirement without which the 'funkyfpga' references cannot get
> parsed I'm afraid.
You are absolutely right, I picked an example that was actually
wrong.
> Am I missing something? Did I get the names right? Shall I send
> a patch? Is the code working without those specs since it
> assumes knowledge that was not specified in the device tree? And
> would this be against the idea that the binding should be
> "complete" and independent of who is interpreting the data? Or
> is the binding document just incomplete?
I think the problem is that this particular controller is never used
in "interrupts" properties, so nobody noticed the mistake. It probably
still works for gpio references and drivers using gpio_to_irq on those
numbers. It would be nice if you can send a patch to add those as
optional properties to the binding and the example. We can't really
make them mandatory properties now because that would make all existing
dts files with this controller invalid.
Arnd
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2013-11-18 22:28 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-14 21:46 [PATCH 0/3] Add EOC handling for bmp085 + DT and platform data updates Marek Belisko
[not found] ` <1384465609-26485-1-git-send-email-marek-xXXSsgcRVICgSpxsJD1C4w@public.gmane.org>
2013-11-14 21:46 ` [PATCH 1/3] misc: bmp085: Clean up and enable use of interrupt for completion Marek Belisko
2013-11-14 21:46 ` [PATCH 2/3] misc: bmp085: Add DT bindings for EOC gpio line and direct irq Marek Belisko
2013-11-15 13:56 ` Arnd Bergmann
2013-11-15 15:30 ` Mark Rutland
2013-11-15 18:47 ` Arnd Bergmann
2013-11-18 8:58 ` Belisko Marek
[not found] ` <CAAfyv346pUa9k3+9jdBX+EK8cV9GenaBxrAnVnKsbUPBoNBqrQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-11-18 11:38 ` Arnd Bergmann
[not found] ` <201311181238.40349.arnd-r2nGTMty4D4@public.gmane.org>
2013-11-18 17:17 ` Gerhard Sittig
[not found] ` <20131118171747.GM17929-kDjWylLy9wD0K7fsECOQyeGNnDKD8DIp@public.gmane.org>
2013-11-18 22:28 ` Arnd Bergmann [this message]
[not found] ` <201311182328.40743.arnd-r2nGTMty4D4@public.gmane.org>
2013-11-20 21:34 ` [PATCH v1 1/1] dt: binding: reword PowerPC 8xxx GPIO documentation Gerhard Sittig
[not found] ` <1384983293-11002-1-git-send-email-gsi-ynQEQJNshbs@public.gmane.org>
2013-11-20 23:50 ` Rob Herring
[not found] ` <CAL_JsqJvxA240QEreWPp2L+eNFQmhp0XV=qmO4QXqTga+RFuCQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-11-21 8:30 ` Gerhard Sittig
2013-11-21 0:49 ` Arnd Bergmann
[not found] ` <201311210149.43944.arnd-r2nGTMty4D4@public.gmane.org>
2013-11-21 8:34 ` Gerhard Sittig
2013-11-21 8:41 ` [PATCH v2 " Gerhard Sittig
[not found] ` <1385023304-15396-1-git-send-email-gsi-ynQEQJNshbs@public.gmane.org>
2013-12-03 6:02 ` Rob Herring
2013-11-20 23:23 ` [PATCH 2/3] misc: bmp085: Add DT bindings for EOC gpio line and direct irq Gerhard Sittig
2013-11-14 21:46 ` [PATCH 3/3] misc: bmp085: Add missing platform data Marek Belisko
2013-11-15 13:58 ` Arnd Bergmann
2013-11-16 8:23 ` Dr. H. Nikolaus Schaller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201311182328.40743.arnd@arndb.de \
--to=arnd-r2ngtmty4d4@public.gmane.org \
--cc=Pawel.Moll-5wv7dgnIgG8@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=gsi-ynQEQJNshbs@public.gmane.org \
--cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
--cc=rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org \
--cc=swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).