linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: wens@csie.org (Chen-Yu Tsai)
To: linux-arm-kernel@lists.infradead.org
Subject: [linux-sunxi] [PATCH 02/11] arm64: allwinner: a64: add NMI controller on A64
Date: Wed, 5 Apr 2017 19:59:04 +0800	[thread overview]
Message-ID: <CAGb2v64zZcxBEGn5KjP3LLNVCfLSN-+BN_51HAA4nAM-nWDWCA@mail.gmail.com> (raw)
In-Reply-To: <20170405072832.qunhfngatebcgn4q@lukather>

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

  reply	other threads:[~2017-04-05 11:59 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-04 18:01 [PATCH 00/11] AXP803 PMIC support for Pine64 Icenowy Zheng
2017-04-04 18:01 ` [PATCH 01/11] arm64: allwinner: a64: enable RSB on A64 Icenowy Zheng
2017-04-05  3:48   ` [linux-sunxi] " Chen-Yu Tsai
2017-04-04 18:01 ` [PATCH 02/11] arm64: allwinner: a64: add NMI controller " Icenowy Zheng
2017-04-05  3:51   ` [linux-sunxi] " Chen-Yu Tsai
2017-04-05  6:11     ` Maxime Ripard
2017-04-05  6:20       ` Chen-Yu Tsai
2017-04-05  7:28         ` Maxime Ripard
2017-04-05 11:59           ` Chen-Yu Tsai [this message]
2017-04-04 18:01 ` [PATCH 03/11] dt-bindings: add device tree binding for X-Powers AXP803 PMIC Icenowy Zheng
2017-04-05  3:52   ` [linux-sunxi] " Chen-Yu Tsai
2017-04-04 18:01 ` [PATCH 04/11] mfd: axp20x: support AXP803 variant Icenowy Zheng
2017-04-05 14:58   ` [linux-sunxi] " Chen-Yu Tsai
2017-04-04 18:01 ` [PATCH 05/11] arm64: allwinner: a64: add AXP803 node to Pine64 device tree Icenowy Zheng
2017-04-04 18:01 ` [PATCH 06/11] dt-bindings: add AXP803's regulator info Icenowy Zheng
2017-04-04 18:01 ` [PATCH 07/11] regulator: axp20x-regulator: add support for AXP803 Icenowy Zheng
2017-04-05 16:01   ` [linux-sunxi] " Chen-Yu Tsai
2017-04-04 18:01 ` [PATCH 08/11] mfd: axp20x: add axp20x-regulator cell " Icenowy Zheng
2017-04-04 18:01 ` [PATCH 09/11] arm64: allwinner: a64: add DTSI file for AXP803 PMIC Icenowy Zheng
2017-04-04 18:01 ` [PATCH 10/11] arm64: allwinner: a64: enable AXP803 regulators for Pine64 Icenowy Zheng
2017-04-05  6:13   ` Maxime Ripard
2017-04-04 18:01 ` [PATCH 11/11] arm64: allwinner: a64: enable Wi-Fi " Icenowy Zheng

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=CAGb2v64zZcxBEGn5KjP3LLNVCfLSN-+BN_51HAA4nAM-nWDWCA@mail.gmail.com \
    --to=wens@csie.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).