From: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>
To: Linus Walleij <linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Cc: "linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org"
<linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 1/6] ARM: integrator: get the LM interrupts from DT
Date: Tue, 8 Oct 2013 10:44:29 +0100 [thread overview]
Message-ID: <20131008094429.GC28972@e106331-lin.cambridge.arm.com> (raw)
In-Reply-To: <1380816177-3046-1-git-send-email-linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
[adding devicetree to Cc]
Hi Linus,
I missed this because I was neither Cc'd directly or through the
devicetree list. Please Cc devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org for DT patches in
future.
On Thu, Oct 03, 2013 at 05:02:57PM +0100, Linus Walleij wrote:
> The OF/DT boot path needs to get the LM (Logical Module)
> IRQs from the device tree for coherency. This augments the
> DT syscon node to contain these IRQs and alter the DT LM
> code to get them from there.
>
> Signed-off-by: Linus Walleij <linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
> ---
> Documentation/devicetree/bindings/arm/arm-boards | 20 ++++++++++++++++++++
> arch/arm/boot/dts/integratorap.dts | 3 +++
> arch/arm/mach-integrator/integrator_ap.c | 2 +-
> 3 files changed, 24 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/arm/arm-boards b/Documentation/devicetree/bindings/arm/arm-boards
> index db5858e..06e5370 100644
> --- a/Documentation/devicetree/bindings/arm/arm-boards
> +++ b/Documentation/devicetree/bindings/arm/arm-boards
> @@ -9,9 +9,29 @@ Required properties (in root node):
>
> FPGA type interrupt controllers, see the versatile-fpga-irq binding doc.
>
> +Required nodes:
> +
> In the root node the Integrator/CP must have a /cpcon node pointing
> to the CP control registers, and the Integrator/AP must have a
> /syscon node pointing to the Integrator/AP system controller.
> +The AP syscon node must include the logical module interrupts,
s/logical/logic/ (and below)
> +example:
> +
> +/dts-v1/;
> +/include/ "integrator.dtsi"
> +
> +/ {
> + model = "ARM Integrator/AP";
> + compatible = "arm,integrator-ap";
> +
> + syscon {
> + /* AP system controller registers */
> + reg = <0x11000000 0x100>;
> + interrupt-parent = <&pic>;
> + /* These are the logical module IRQs */
> + interrupts = <9 10 11 12>;
What order are these interrupts in? I assume ascending, starting at
module 0, but it would be nice to state that.
Also, could you please bracket entries in lists individually? It makes
it easy to read lists of composite values (interrupts, clocks, dmas),
regardless of how many cells an entry takes:
interrupts = <9>, <10>, <11>, <12>;
> + };
> +};
>
>
> ARM Versatile Application and Platform Baseboards
> diff --git a/arch/arm/boot/dts/integratorap.dts b/arch/arm/boot/dts/integratorap.dts
> index b6b82ec..7c8925f 100644
> --- a/arch/arm/boot/dts/integratorap.dts
> +++ b/arch/arm/boot/dts/integratorap.dts
> @@ -21,6 +21,9 @@
> syscon {
> /* AP system controller registers */
> reg = <0x11000000 0x100>;
> + interrupt-parent = <&pic>;
> + /* These are the logical module IRQs */
> + interrupts = <9 10 11 12>;
Same here.
Otherwise, this looks ok to me.
Cheers,
Mark.
> };
>
> timer0: timer@13000000 {
> diff --git a/arch/arm/mach-integrator/integrator_ap.c b/arch/arm/mach-integrator/integrator_ap.c
> index d9e95e6..f5fbd8a 100644
> --- a/arch/arm/mach-integrator/integrator_ap.c
> +++ b/arch/arm/mach-integrator/integrator_ap.c
> @@ -541,7 +541,7 @@ static void __init ap_init_of(void)
> lmdev->resource.start = 0xc0000000 + 0x10000000 * i;
> lmdev->resource.end = lmdev->resource.start + 0x0fffffff;
> lmdev->resource.flags = IORESOURCE_MEM;
> - lmdev->irq = IRQ_AP_EXPINT0 + i;
> + lmdev->irq = irq_of_parse_and_map(syscon, i);
> lmdev->id = i;
>
> lm_device_register(lmdev);
> --
> 1.8.3.1
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>
--
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
parent reply other threads:[~2013-10-08 9:44 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <1380816177-3046-1-git-send-email-linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>]
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=20131008094429.GC28972@e106331-lin.cambridge.arm.com \
--to=mark.rutland-5wv7dgnigg8@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@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).