From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shawn Guo Subject: Re: [PATCH 1/2] arm64: dts: ls1088: add smmu device node Date: Fri, 11 Jan 2019 16:39:58 +0800 Message-ID: <20190111083956.GF32649@dragon> References: <1545109016-1779-1-git-send-email-nipun.gupta@nxp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1545109016-1779-1-git-send-email-nipun.gupta@nxp.com> Sender: linux-kernel-owner@vger.kernel.org To: Nipun Gupta Cc: Leo Li , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "robin.murphy@arm.com" , "will.deacon@arm.com" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" List-Id: devicetree@vger.kernel.org On Tue, Dec 18, 2018 at 04:51:58AM +0000, Nipun Gupta wrote: > This patch also adds the iommu-map property in fsl-mc node, so > that fsl-mc can use iommu. > > Signed-off-by: Nipun Gupta > --- > These patches are based over: > git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git, > as there are couple of changes related to fsl-mc bus in this tree: > https://lore.kernel.org/patchwork/patch/1021020/ > > arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 92 +++++++++++++++++++++++++- > 1 file changed, 91 insertions(+), 1 deletion(-) > > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi > index de93b42..dec0c2d 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi > @@ -576,6 +576,7 @@ > reg = <0x00000008 0x0c000000 0 0x40>, /* MC portal base */ > <0x00000000 0x08340000 0 0x40000>; /* MC control reg */ > msi-parent = <&its>; > + iommu-map = <0 &smmu 0 0>; /* This is fixed-up by u-boot */ > #address-cells = <3>; > #size-cells = <1>; > > @@ -641,6 +642,96 @@ > }; > }; > }; > + > + smmu: iommu@5000000 { We are trying to keep the nodes with unit-address sorted in the address. I move the node to where it should be, and applied both patches. Shawn > + compatible = "arm,mmu-500"; > + reg = <0 0x5000000 0 0x800000>; > + #iommu-cells = <1>; > + stream-match-mask = <0x7C00>; > + #global-interrupts = <12>; > + // global secure fault > + interrupts = , > + // combined secure > + , > + // global non-secure fault > + , > + // combined non-secure > + , > + // performance counter interrupts 0-7 > + , > + , > + , > + , > + , > + , > + , > + , > + // per context interrupt, 64 interrupts > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + ; > + }; > }; > > firmware { > @@ -649,5 +740,4 @@ > method = "smc"; > }; > }; > - > }; > -- > 1.9.1 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel