From: Laurentiu Tudor <b10716@freescale.com>
To: <linuxppc-dev@lists.ozlabs.org>, Ran Shalit <ranshalit@gmail.com>
Subject: Re: using general IRQs
Date: Mon, 17 Aug 2015 13:37:36 +0300 [thread overview]
Message-ID: <55D1B970.1020405@freescale.com> (raw)
In-Reply-To: <CAJ2oMhLX18merCHtge0oOQ2DSQ8BE1Zd=dAuPWzyTRNmr-DLiA@mail.gmail.com>
On 08/10/2015 10:48 AM, Ran Shalit wrote:
> Hello,
>
> MPC8349 has general IRQ numbered 0-7,
> It is required to bind these IRQs with some routine , i.e. they are
> not used with any specific driver.
>
> - Should they be configured as gpios in device tree so that we can use
> the gpio as irq in linux ? Is there any example ?
If it's a gpio then yes, you need to use it as a gpio. Not familiar with MPC8349,
but newer FSL chips can select between gpio or irq through a RCW field (IRQ_BASE?).
Note that for gpios there's special apis, such as: of_get_gpio(), gpio_request_one() a.s.o.
Also you'll need to update your device tree node to something like:
intc2@0{
compatible = "intc2";
reg = <0 0x1000>;
gpios = <&gpio0 4 0>;
};
See Documentation/gpio.txt for more info.
---
Best Regards, Laurentiu
prev parent reply other threads:[~2015-08-17 14:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-10 7:48 using general IRQs Ran Shalit
2015-08-10 10:40 ` Ran Shalit
2015-08-11 2:29 ` Scott Wood
2015-08-11 3:45 ` Ran Shalit
2015-08-11 3:47 ` Scott Wood
2015-08-11 6:27 ` Ran Shalit
2015-08-17 10:37 ` Laurentiu Tudor [this message]
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=55D1B970.1020405@freescale.com \
--to=b10716@freescale.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=ranshalit@gmail.com \
/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).