mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Hawa, Hanna" <hhhawa@amazon.com>
To: Antoine Tenart <antoine.tenart@bootlin.com>
Cc: <robh+dt@kernel.org>, <mark.rutland@arm.com>,
	<tsahee@annapurnalabs.com>, <mchehab+samsung@kernel.org>,
	<davem@davemloft.net>, <gregkh@linuxfoundation.org>,
	<Jonathan.Cameron@huawei.com>, <tglx@linutronix.de>,
	<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>, <dwmw@amazon.co.uk>,
	<benh@amazon.com>, <ronenk@amazon.com>, <talel@amazon.com>,
	<jonnyc@amazon.com>, <hanochu@amazon.com>, <eitan@amazon.com>
Subject: Re: [EXTERNAL][PATCH v4 6/6] arm64: dts: amazon: add Amazon's Annapurna Labs Alpine v3 support
Date: Thu, 5 Mar 2020 19:14:06 +0200	[thread overview]
Message-ID: <7a1c1b59-f12d-5839-beea-6af5e7998640@amazon.com> (raw)
In-Reply-To: <20200304212737.GN3179@kwain>

Hi Antonie,

Thanks for reviewing,

On 3/4/2020 11:27 PM, Antoine Tenart wrote:
> CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and know the content is safe.
> 
> 
> 
> Hello,
> 
> Sorry, I'm a bit late to the party...
> 
> On Tue, Feb 25, 2020 at 01:29:26PM +0200, Hanna Hawa wrote:
>> diff --git a/arch/arm64/boot/dts/amazon/alpine-v3.dtsi b/arch/arm64/boot/dts/amazon/alpine-v3.dtsi
>> +     arch-timer {
> 
> Please use 'timer' instead.

Will be fixed

> 
>> +             compatible = "arm,armv8-timer";
>> +             interrupts = <GIC_PPI 0xd IRQ_TYPE_LEVEL_LOW>,
>> +                          <GIC_PPI 0xe IRQ_TYPE_LEVEL_LOW>,
>> +                          <GIC_PPI 0xb IRQ_TYPE_LEVEL_LOW>,
>> +                          <GIC_PPI 0xa IRQ_TYPE_LEVEL_LOW>;
>> +     };
> 
>> +             gic: interrupt-controller@f0000000 {
>> +                     compatible = "arm,gic-v3";
>> +                     #interrupt-cells = <3>;
>> +                     #address-cells = <0>;
> 
> No need for this.

Will be removed

> 
>> +                     interrupt-controller;
>> +                     reg = <0x0 0xf0800000 0 0x10000>,
>> +                           <0x0 0xf0a00000 0 0x200000>,
>> +                           <0x0 0xf0000000 0 0x2000>,
>> +                           <0x0 0xf0010000 0 0x1000>,
>> +                           <0x0 0xf0020000 0 0x2000>;
> 
> Please add comments here, see alpine-v2.dtsi (or other dtsi in
> arch/arm64).

Will be added.

> 
>> +                     interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
>> +             };
>> +
>> +             msix: msix@fbe00000 {
>> +                     compatible = "al,alpine-msix";
>> +                     reg = <0x0 0xfbe00000 0x0 0x100000>;
>> +                     interrupt-controller;
>> +                     msi-controller;
>> +                     al,msi-base-spi = <160>;
>> +                     al,msi-num-spis = <800>;
>> +                     interrupt-parent = <&gic>;
>> +             };
>> +
>> +             uart0: serial@fd883000 {
> 
> Looking at the Alpine v2 dtsi, this node was put in an io-fabric bus. It
> seems to me the Alpine v3 dtsi is very similar. Would it apply as well?

V3 very similar to V2, will add to io-fabric bus and will add missing 
uart devices.

> 
>> +                     compatible = "ns16550a";
>> +                     reg = <0x0 0xfd883000 0x0 0x1000>;
>> +                     clock-frequency = <0>;
> 
> Is the frequency set to 0 on purpose? Or is it set by a firmware at boot
> time (if so please add a comment)?

It's updated by firmware, will add a comment.

> 
>> +                     interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
>> +                     reg-shift = <2>;
>> +                     reg-io-width = <4>;
> 
> Since you're enabling this node explicitly in the dts, you can set it to
> disabled by default.

Ack

> 
>> +             };
>> +
>> +             pcie@fbd00000 {
> 
> Please order the nodes in increasing order.

Ack

> 
>> +                     compatible = "pci-host-ecam-generic";
>> +                     device_type = "pci";
>> +                     #size-cells = <2>;
>> +                     #address-cells = <3>;
>> +                     #interrupt-cells = <1>;
>> +                     reg = <0x0 0xfbd00000 0x0 0x100000>;
>> +                     interrupt-map-mask = <0xf800 0 0 7>;
>> +                     /* 8 x legacy interrupts for SATA only */
>> +                     interrupt-map = <0x4000 0 0 1 &gic 0 57 IRQ_TYPE_LEVEL_HIGH>,
>> +                                     <0x4800 0 0 1 &gic 0 58 IRQ_TYPE_LEVEL_HIGH>,
>> +                                     <0x5000 0 0 1 &gic 0 59 IRQ_TYPE_LEVEL_HIGH>,
>> +                                     <0x5800 0 0 1 &gic 0 60 IRQ_TYPE_LEVEL_HIGH>,
>> +                                     <0x6000 0 0 1 &gic 0 61 IRQ_TYPE_LEVEL_HIGH>,
>> +                                     <0x6800 0 0 1 &gic 0 62 IRQ_TYPE_LEVEL_HIGH>,
>> +                                     <0x7000 0 0 1 &gic 0 63 IRQ_TYPE_LEVEL_HIGH>,
>> +                                     <0x7800 0 0 1 &gic 0 64 IRQ_TYPE_LEVEL_HIGH>;
>> +                     ranges = <0x02000000 0x0 0xfe000000 0x0 0xfe000000 0x0 0x1000000>;
>> +                     bus-range = <0x00 0x00>;
>> +                     msi-parent = <&msix>;
>> +             };
>> +     };
>> +};
> 
> The rest of the series looks good.
Thanks

Regards,
Hanna

> 
> Thanks!
> Antoine
> 
> --
> Antoine Ténart, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
> 

      reply	other threads:[~2020-03-05 17:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-25 11:29 [PATCH v4 0/6] Amazon's Annapurna Labs Alpine v3 device-tree Hanna Hawa
2020-02-25 11:29 ` [PATCH v4 1/6] dt-bindings: arm: amazon: rename al,alpine DT binding to amazon,al Hanna Hawa
2020-02-25 11:29 ` [PATCH v4 2/6] arm64: dts: amazon: rename al folder to be amazon Hanna Hawa
2020-02-25 11:29 ` [PATCH v4 3/6] dt-bindings: arm: amazon: update maintainers of amazon,al DT bindings Hanna Hawa
2020-02-25 11:29 ` [PATCH v4 4/6] dt-bindings: arm: amazon: add missing alpine-v2 DT binding Hanna Hawa
2020-02-25 11:29 ` [PATCH v4 5/6] dt-bindings: arm: amazon: add Amazon Annapurna Labs Alpine V3 Hanna Hawa
2020-02-25 11:29 ` [PATCH v4 6/6] arm64: dts: amazon: add Amazon's Annapurna Labs Alpine v3 support Hanna Hawa
2020-03-04 21:27   ` Antoine Tenart
2020-03-05 17:14     ` Hawa, Hanna [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=7a1c1b59-f12d-5839-beea-6af5e7998640@amazon.com \
    --to=hhhawa@amazon.com \
    --cc=Jonathan.Cameron@huawei.com \
    --cc=antoine.tenart@bootlin.com \
    --cc=benh@amazon.com \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=dwmw@amazon.co.uk \
    --cc=eitan@amazon.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=hanochu@amazon.com \
    --cc=jonnyc@amazon.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=mchehab+samsung@kernel.org \
    --cc=robh+dt@kernel.org \
    --cc=ronenk@amazon.com \
    --cc=talel@amazon.com \
    --cc=tglx@linutronix.de \
    --cc=tsahee@annapurnalabs.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

all inboxes | Powered by JetHome®