Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4920974ybf; Wed, 4 Mar 2020 13:28:10 -0800 (PST) X-Google-Smtp-Source: ADFU+vv9gr/HDHeow8ASCuUM2Y4ZbMkI6buiDs6MivOPx/5VCM6rjfwL5QH1usaw3vBzLN9wD+vY X-Received: by 2002:a05:6830:1549:: with SMTP id l9mr3946374otp.236.1583357289956; Wed, 04 Mar 2020 13:28:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583357289; cv=none; d=google.com; s=arc-20160816; b=cxB1E8AfflFNGIA1jVttrKhyDj0W4MYzB11uLltvQE/qQh7UMOeh09X+VYVu42b0mr LH67Cc9S4qTnGYqrSPi189Ax4zb/3LjmjGwhZXPf8MMRg/7eQ13nM9J9v092ZAxnjuVl FyO7PESjR0H5B35YiHMjiFKmVz4oEyNL+j+/ozDl34LVCYioyXG8gIXlShkFpZpX1D4b XpjUWNyim9Xgxq5Yxpfp9bdqxgVHf2NCAJAuUCOhucPQIakIy0foMyJF3f49AMDbsGf5 +s+ahPiZBWz5lTEH5UnizqU01gQXAINK6a+Ml1TZc/L0tPDRx/jZ95W1yTVAC3sTxdZ8 hOjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=D3bC67t7HEedRANGFwMkQvmkdDBD+I7LHjq3Qt2bv+8=; b=yGjWOKFSh1ztxei/8F5jxOcnwzMZPlvD9ziPjc6dLqw3Lx7vstAFOFizZB9ZYsiMwO m9FjWDaTSJdRDFW/A/5G9zLzcAmiYsHk6PSdm3tGN8hJVY1tDYrSLl54TyhqBgBJB8cc lvclH7XNpClLFixHwWyTWvIFm9LOr7HsUt+1vWgaX3QIjrms6blV+fmPNglTdzHiNWn2 McftFRGYQ91QvlIRhDtWmoWTOFj8p0xL9AFahAEeuuYoNNr7P7jzjknYKccw2xKUML7X vokEFla9uIRnHaI2UFLyMhfhyq6HvSdL+XM52K9MduzkUvfNOE6iyEi1UTvDtCJL/kti hNTA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j184si1941315oih.216.2020.03.04.13.27.57; Wed, 04 Mar 2020 13:28:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388343AbgCDV1l (ORCPT + 99 others); Wed, 4 Mar 2020 16:27:41 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:42315 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387762AbgCDV1l (ORCPT ); Wed, 4 Mar 2020 16:27:41 -0500 X-Originating-IP: 90.76.143.236 Received: from localhost (lfbn-tou-1-1075-236.w90-76.abo.wanadoo.fr [90.76.143.236]) (Authenticated sender: antoine.tenart@bootlin.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 1C0AE60002; Wed, 4 Mar 2020 21:27:38 +0000 (UTC) Date: Wed, 4 Mar 2020 22:27:37 +0100 From: Antoine Tenart To: Hanna Hawa Cc: robh+dt@kernel.org, mark.rutland@arm.com, tsahee@annapurnalabs.com, antoine.tenart@bootlin.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: [PATCH v4 6/6] arm64: dts: amazon: add Amazon's Annapurna Labs Alpine v3 support Message-ID: <20200304212737.GN3179@kwain> References: <20200225112926.16518-1-hhhawa@amazon.com> <20200225112926.16518-7-hhhawa@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200225112926.16518-7-hhhawa@amazon.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > + compatible = "arm,armv8-timer"; > + interrupts = , > + , > + , > + ; > + }; > + gic: interrupt-controller@f0000000 { > + compatible = "arm,gic-v3"; > + #interrupt-cells = <3>; > + #address-cells = <0>; No need for this. > + 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). > + interrupts = ; > + }; > + > + 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? > + 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)? > + interrupts = ; > + 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. > + }; > + > + pcie@fbd00000 { Please order the nodes in increasing order. > + 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! Antoine -- Antoine T?nart, Bootlin Embedded Linux and Kernel engineering https://bootlin.com