From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751860AbbLIPMV (ORCPT ); Wed, 9 Dec 2015 10:12:21 -0500 Received: from foss.arm.com ([217.140.101.70]:50175 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750841AbbLIPMT (ORCPT ); Wed, 9 Dec 2015 10:12:19 -0500 Message-ID: <566844D0.2040604@arm.com> Date: Wed, 09 Dec 2015 15:12:16 +0000 From: Marc Zyngier Organization: ARM Ltd User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-Version: 1.0 To: Andre Przywara , robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk CC: catalin.marinas@arm.com, will.deacon@arm.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, galak@codeaurora.org, drjones@redhat.com Subject: Re: [PATCH 4/4] arm64: dts: add .dts for GICv3 Foundation model References: <1444729069-27922-1-git-send-email-andre.przywara@arm.com> <1444729069-27922-5-git-send-email-andre.przywara@arm.com> In-Reply-To: <1444729069-27922-5-git-send-email-andre.przywara@arm.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13/10/15 10:37, Andre Przywara wrote: > The ARMv8 Foundation model sports a command line parameter to use > a GICv3 emulation instead of the default GICv2 interrupt controller. > Add a new .dts file which reuses most of the definitions of the > existing model while just adding the required properties for the > GICv3 node. > This allows the public Foundation model to run with a GICv3. > > Signed-off-by: Andre Przywara > --- > arch/arm64/boot/dts/arm/Makefile | 2 +- > arch/arm64/boot/dts/arm/foundation-v8-gicv3.dts | 30 +++++++++++++++++++++++++ > 2 files changed, 31 insertions(+), 1 deletion(-) > create mode 100644 arch/arm64/boot/dts/arm/foundation-v8-gicv3.dts > > diff --git a/arch/arm64/boot/dts/arm/Makefile b/arch/arm64/boot/dts/arm/Makefile > index bb3c072..46d342d 100644 > --- a/arch/arm64/boot/dts/arm/Makefile > +++ b/arch/arm64/boot/dts/arm/Makefile > @@ -1,4 +1,4 @@ > -dtb-$(CONFIG_ARCH_VEXPRESS) += foundation-v8.dtb > +dtb-$(CONFIG_ARCH_VEXPRESS) += foundation-v8.dtb foundation-v8-gicv3.dtb > dtb-$(CONFIG_ARCH_VEXPRESS) += juno.dtb juno-r1.dtb > dtb-$(CONFIG_ARCH_VEXPRESS) += rtsm_ve-aemv8a.dtb > dtb-$(CONFIG_ARCH_VEXPRESS) += vexpress-v2f-1xv7-ca53x2.dtb > diff --git a/arch/arm64/boot/dts/arm/foundation-v8-gicv3.dts b/arch/arm64/boot/dts/arm/foundation-v8-gicv3.dts > new file mode 100644 > index 0000000..ecdbe98 > --- /dev/null > +++ b/arch/arm64/boot/dts/arm/foundation-v8-gicv3.dts > @@ -0,0 +1,30 @@ > +/* > + * ARM Ltd. > + * > + * ARMv8 Foundation model DTS (GICv3 configuration) > + */ > + > +#include "foundation-v8.dtsi" > + > +/ { > + gic: interrupt-controller@2f000000 { > + compatible = "arm,gic-v3"; > + #interrupt-cells = <3>; > + #address-cells = <2>; > + #size-cells = <2>; > + ranges; > + interrupt-controller; > + reg = <0x0 0x2f000000 0x0 0x10000>, > + <0x0 0x2f100000 0x0 0x200000>, > + <0x0 0x2c000000 0x0 0x2000>, > + <0x0 0x2c010000 0x0 0x2000>, > + <0x0 0x2c02f000 0x0 0x2000>; > + interrupts = <1 9 0xf04>; You can remove the 'f' from the GIC maintenance interrupt - this doesn't mean anything on GICv3. > + > + its: its@2f020000 { > + compatible = "arm,gic-v3-its"; > + msi-controller; > + reg = <0x0 0x2f020000 0x0 0x20000>; > + }; > + }; > +}; > Thanks, M. -- Jazz is not dead. It just smells funny...