From: <Eugen.Hristev@microchip.com>
To: <clement.leger@bootlin.com>, <Ludovic.Desroches@microchip.com>
Cc: <u-boot@lists.denx.de>, <Nicolas.Ferre@microchip.com>,
<thomas.petazzoni@bootlin.com>, <Claudiu.Beznea@microchip.com>
Subject: Re: [PATCH v6 2/4] ARM: dts: at91: sama5d2: add AIC node
Date: Wed, 9 Mar 2022 09:45:01 +0000 [thread overview]
Message-ID: <cb070f38-e6cd-f9e3-4cdd-f95cecbc8080@microchip.com> (raw)
In-Reply-To: <20220309092259.76543-3-clement.leger@bootlin.com>
On 3/9/22 11:22 AM, Clément Léger wrote:
> When using interrupts property, a global interrupt controller needs to
> be added to avoid warnings when compiling device-tree:
>
> arch/arm/dts/at91-sama5d2_xplained.dtb: Warning (interrupts_property):
> /ahb/apb/timer@f800c000: Missing interrupt-parent
>
> Add AIC node as the sama5d2 global interrupt controller.
>
> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
> ---
> arch/arm/dts/sama5d2.dtsi | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/arch/arm/dts/sama5d2.dtsi b/arch/arm/dts/sama5d2.dtsi
> index 038cd73c03..1904f16eb6 100644
> --- a/arch/arm/dts/sama5d2.dtsi
> +++ b/arch/arm/dts/sama5d2.dtsi
> @@ -3,6 +3,7 @@
> / {
> model = "Atmel SAMA5D2 family SoC";
> compatible = "atmel,sama5d2";
> + interrupt-parent = <&aic>;
>
> aliases {
> spi0 = &spi0;
> @@ -762,6 +763,15 @@
> status = "disabled";
> };
>
> + aic: interrupt-controller@fc020000 {
> + compatible = "atmel,sama5d2-aic";
> + reg = <0xfc020000 0x200>;
> + #interrupt-cells = <3>;
> + interrupt-controller;
> + atmel,external-irqs = <49>;
> + status = "disabled";
> + };
Hello Clement,
Any reason to not use the exact node from Linux ?
aic: interrupt-controller@fc020000 {
#interrupt-cells = <3>;
compatible = "atmel,sama5d2-aic";
interrupt-controller;
reg = <0xfc020000 0x200>;
atmel,external-irqs = <49>;
};
I would like to avoid any difference between Uboot and Linux, unless
really required.
Don't worry if the node is enabled, it's no problem with that. It won't
be probed due to several reasons: no driver and no need for it, since
Uboot is based on lazy probing.
Eugen
> +
> i2c1: i2c@fc028000 {
> compatible = "atmel,sama5d2-i2c";
> reg = <0xfc028000 0x100>;
> --
> 2.34.1
>
next prev parent reply other threads:[~2022-03-09 9:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-09 9:22 [PATCH v6 0/4] add TCB driver for sama5d2 Clément Léger
2022-03-09 9:22 ` [PATCH v6 1/4] timer: atmel_tcb_timer: add atmel_tcb driver Clément Léger
2022-03-10 12:54 ` Claudiu.Beznea
2022-03-09 9:22 ` [PATCH v6 2/4] ARM: dts: at91: sama5d2: add AIC node Clément Léger
2022-03-09 9:45 ` Eugen.Hristev [this message]
2022-03-09 9:53 ` Clément Léger
2022-03-09 9:22 ` [PATCH v6 3/4] ARM: dts: at91: sama5d2: add TCB node Clément Léger
2022-03-09 9:22 ` [PATCH v6 4/4] configs: sama5d2: enable option CONFIG_ATMEL_TCB_TIMER Clément Léger
2022-03-10 12:55 ` Claudiu.Beznea
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=cb070f38-e6cd-f9e3-4cdd-f95cecbc8080@microchip.com \
--to=eugen.hristev@microchip.com \
--cc=Claudiu.Beznea@microchip.com \
--cc=Ludovic.Desroches@microchip.com \
--cc=Nicolas.Ferre@microchip.com \
--cc=clement.leger@bootlin.com \
--cc=thomas.petazzoni@bootlin.com \
--cc=u-boot@lists.denx.de \
/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