Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1616283 > unrolled thread

[PATCH 02/11] arm64: allwinner: a64: add NMI controller on A64

Started byIcenowy Zheng <icenowy@aosc.io>
First post2017-04-04 20:10 +0200
Last post2017-04-05 14:10 +0200
Articles 6 — 3 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 02/11] arm64: allwinner: a64: add NMI controller on A64 Icenowy Zheng <icenowy@aosc.io> - 2017-04-04 20:10 +0200
    Re: [linux-sunxi] [PATCH 02/11] arm64: allwinner: a64: add NMI  controller on A64 Chen-Yu Tsai <wens@csie.org> - 2017-04-05 06:00 +0200
      Re: [linux-sunxi] [PATCH 02/11] arm64: allwinner: a64: add NMI  controller on A64 Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-04-05 08:20 +0200
        Re: [linux-sunxi] [PATCH 02/11] arm64: allwinner: a64: add NMI  controller on A64 Chen-Yu Tsai <wens@csie.org> - 2017-04-05 08:30 +0200
          Re: [linux-sunxi] [PATCH 02/11] arm64: allwinner: a64: add NMI  controller on A64 Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-04-05 09:30 +0200
            Re: [linux-sunxi] [PATCH 02/11] arm64: allwinner: a64: add NMI  controller on A64 Chen-Yu Tsai <wens@csie.org> - 2017-04-05 14:10 +0200

#1616283 — [PATCH 02/11] arm64: allwinner: a64: add NMI controller on A64

FromIcenowy Zheng <icenowy@aosc.io>
Date2017-04-04 20:10 +0200
Subject[PATCH 02/11] arm64: allwinner: a64: add NMI controller on A64
Message-ID<tsB3Y-8pK-23@gated-at.bofh.it>
Allwinner A64 SoC features a NMI controller, which is usually connected
to the AXP PMIC.

Add support for it.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
---
 arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
index 9a75b1c7c91a..f907a64e6f0c 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
@@ -401,6 +401,14 @@
 				     <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
 		};
 
+		nmi_intc: interrupt-controller@01f00c0c {
+			compatible = "allwinner,sun6i-a31-sc-nmi";
+			interrupt-controller;
+			#interrupt-cells = <2>;
+			reg = <0x01f00c0c 0x38>;
+			interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
+		};
+
 		r_ccu: clock@1f01400 {
 			compatible = "allwinner,sun50i-a64-r-ccu";
 			reg = <0x01f01400 0x100>;
-- 
2.12.2

[toc] | [next] | [standalone]


#1616553 — Re: [linux-sunxi] [PATCH 02/11] arm64: allwinner: a64: add NMI controller on A64

FromChen-Yu Tsai <wens@csie.org>
Date2017-04-05 06:00 +0200
SubjectRe: [linux-sunxi] [PATCH 02/11] arm64: allwinner: a64: add NMI controller on A64
Message-ID<tsKgV-5Kg-5@gated-at.bofh.it>
In reply to#1616283
On Wed, Apr 5, 2017 at 2:01 AM, Icenowy Zheng <icenowy@aosc.io> wrote:
> Allwinner A64 SoC features a NMI controller, which is usually connected
> to the AXP PMIC.
>
> Add support for it.
>
> Signed-off-by: Icenowy Zheng <icenowy@aosc.io>

This might not be the best representation of the R_INTC block. Though
we'd need to change it for all SoCs if we want to be accurate. For now,

Acked-by: Chen-Yu Tsai <wens@csie.org>

[toc] | [prev] | [next] | [standalone]


#1616603 — Re: [linux-sunxi] [PATCH 02/11] arm64: allwinner: a64: add NMI controller on A64

FromMaxime Ripard <maxime.ripard@free-electrons.com>
Date2017-04-05 08:20 +0200
SubjectRe: [linux-sunxi] [PATCH 02/11] arm64: allwinner: a64: add NMI controller on A64
Message-ID<tsMsq-7lZ-17@gated-at.bofh.it>
In reply to#1616553

[Multipart message — attachments visible in raw view] — view raw

On Wed, Apr 05, 2017 at 11:51:45AM +0800, Chen-Yu Tsai wrote:
> On Wed, Apr 5, 2017 at 2:01 AM, Icenowy Zheng <icenowy@aosc.io> wrote:
> > Allwinner A64 SoC features a NMI controller, which is usually connected
> > to the AXP PMIC.
> >
> > Add support for it.
> >
> > Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
> 
> This might not be the best representation of the R_INTC block. Though
> we'd need to change it for all SoCs if we want to be accurate. For now,

What do you think would be a good representation?

Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

[toc] | [prev] | [next] | [standalone]


#1616607 — Re: [linux-sunxi] [PATCH 02/11] arm64: allwinner: a64: add NMI controller on A64

FromChen-Yu Tsai <wens@csie.org>
Date2017-04-05 08:30 +0200
SubjectRe: [linux-sunxi] [PATCH 02/11] arm64: allwinner: a64: add NMI controller on A64
Message-ID<tsMC6-7pf-21@gated-at.bofh.it>
In reply to#1616603
On Wed, Apr 5, 2017 at 2:11 PM, Maxime Ripard
<maxime.ripard@free-electrons.com> wrote:
> On Wed, Apr 05, 2017 at 11:51:45AM +0800, Chen-Yu Tsai wrote:
>> On Wed, Apr 5, 2017 at 2:01 AM, Icenowy Zheng <icenowy@aosc.io> wrote:
>> > Allwinner A64 SoC features a NMI controller, which is usually connected
>> > to the AXP PMIC.
>> >
>> > Add support for it.
>> >
>> > Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
>>
>> This might not be the best representation of the R_INTC block. Though
>> we'd need to change it for all SoCs if we want to be accurate. For now,
>
> What do you think would be a good representation?

My gut feeling is that this is the old INTC from sun4/5i. It's supposed
to be the interrupt controller for the embedded low power core. I've not
done a thorough comparison though.

ChenYu

[toc] | [prev] | [next] | [standalone]


#1616649 — Re: [linux-sunxi] [PATCH 02/11] arm64: allwinner: a64: add NMI controller on A64

FromMaxime Ripard <maxime.ripard@free-electrons.com>
Date2017-04-05 09:30 +0200
SubjectRe: [linux-sunxi] [PATCH 02/11] arm64: allwinner: a64: add NMI controller on A64
Message-ID<tsNya-82s-9@gated-at.bofh.it>
In reply to#1616607

[Multipart message — attachments visible in raw view] — view raw

On Wed, Apr 05, 2017 at 02:20:31PM +0800, Chen-Yu Tsai wrote:
> On Wed, Apr 5, 2017 at 2:11 PM, Maxime Ripard
> <maxime.ripard@free-electrons.com> wrote:
> > On Wed, Apr 05, 2017 at 11:51:45AM +0800, Chen-Yu Tsai wrote:
> >> On Wed, Apr 5, 2017 at 2:01 AM, Icenowy Zheng <icenowy@aosc.io> wrote:
> >> > Allwinner A64 SoC features a NMI controller, which is usually connected
> >> > to the AXP PMIC.
> >> >
> >> > Add support for it.
> >> >
> >> > Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
> >>
> >> This might not be the best representation of the R_INTC block. Though
> >> we'd need to change it for all SoCs if we want to be accurate. For now,
> >
> > What do you think would be a good representation?
> 
> My gut feeling is that this is the old INTC from sun4/5i.

Ah, that would make sense.

> It's supposed to be the interrupt controller for the embedded low
> power core. I've not done a thorough comparison though.

Do we have some documentation / code for this one?

Thanks,
Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

[toc] | [prev] | [next] | [standalone]


#1616874 — Re: [linux-sunxi] [PATCH 02/11] arm64: allwinner: a64: add NMI controller on A64

FromChen-Yu Tsai <wens@csie.org>
Date2017-04-05 14:10 +0200
SubjectRe: [linux-sunxi] [PATCH 02/11] arm64: allwinner: a64: add NMI controller on A64
Message-ID<tsRV7-2sp-5@gated-at.bofh.it>
In reply to#1616649
On Wed, Apr 5, 2017 at 3:28 PM, Maxime Ripard
<maxime.ripard@free-electrons.com> wrote:
> On Wed, Apr 05, 2017 at 02:20:31PM +0800, Chen-Yu Tsai wrote:
>> On Wed, Apr 5, 2017 at 2:11 PM, Maxime Ripard
>> <maxime.ripard@free-electrons.com> wrote:
>> > On Wed, Apr 05, 2017 at 11:51:45AM +0800, Chen-Yu Tsai wrote:
>> >> On Wed, Apr 5, 2017 at 2:01 AM, Icenowy Zheng <icenowy@aosc.io> wrote:
>> >> > Allwinner A64 SoC features a NMI controller, which is usually connected
>> >> > to the AXP PMIC.
>> >> >
>> >> > Add support for it.
>> >> >
>> >> > Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
>> >>
>> >> This might not be the best representation of the R_INTC block. Though
>> >> we'd need to change it for all SoCs if we want to be accurate. For now,
>> >
>> > What do you think would be a good representation?
>>
>> My gut feeling is that this is the old INTC from sun4/5i.
>
> Ah, that would make sense.
>
>> It's supposed to be the interrupt controller for the embedded low
>> power core. I've not done a thorough comparison though.
>
> Do we have some documentation / code for this one?

I can't remember where or if I saw any. If Allwinner ever released
any source code for the OpenRISC core we could actually verify it.

However the base address of this block, in addition to the register
offsets found in the driver for "allwinner,sun6i-a31-sc-nmi" do match
up with the sun4i irqchip. The question is if any of the other interrupt
lines are hooked up, and if yes, to what. A possibility would be that
it has all the interrupt lines in the SoC also hooked up, at the same
numbers as the GIC (minus 32). It would feed both the GIC and CPUS.
This is just an educated guess though.

Regards
ChenYu

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web