From: Bo Shen <voice.shen@gmail.com>
To: linux-arm-kernel@lists.infradead.org,
devicetree-discuss <devicetree-discuss@lists.ozlabs.org>
Cc: "Ferre, Nicolas" <Nicolas.FERRE@atmel.com>
Subject: dts: question about how to configure PIO used as i2c irq
Date: Mon, 15 Oct 2012 10:53:55 +0800 [thread overview]
Message-ID: <507B7AC3.7090904@gmail.com> (raw)
Hi All,
When moving atmel qt1070 linux driver with DT support. The atmel
qt1070 is an I2C device. I meet the following questions.
The qt1070 DT node
--<--------------
qt1070: keyboard@1b {
compatible = "atmel,qt1070";
reg = <0x1b>;
interrupt-parent = <&pioA>;
interrupts = <7 0x0>;
};
-->--------------
DT will parse this node and map irq, the i2c_client->irq. This can be
used directly in atmel qt1070 driver. However, the PIO which used as irq
need configure as a PIO input. Now, we can not use irq_to_gpio()
function to convert irq to gpio. So, if we can not configure this gpio.
If we configure the pio in board-dt.c, I think this is not a good
place. For example, if the kernel image support multiplatform, while on
these platform, using different pio for qt1070, so this will cause only
one platform can use qt1070.
So, for this question, how should I solve it? Would you please give
me some advice?
next reply other threads:[~2012-10-15 2:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-15 2:53 Bo Shen [this message]
[not found] ` <507B7AC3.7090904-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-10-15 5:57 ` dts: question about how to configure PIO used as i2c irq Jean-Christophe PLAGNIOL-VILLARD
[not found] ` <20121015055720.GQ12801-RQcB7r2h9QmfDR2tN2SG5Ni2O/JbrIOy@public.gmane.org>
2012-10-15 8:07 ` Nicolas Ferre
2012-10-19 6:56 ` Bo Shen
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=507B7AC3.7090904@gmail.com \
--to=voice.shen@gmail.com \
--cc=Nicolas.FERRE@atmel.com \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=linux-arm-kernel@lists.infradead.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).