Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp308344ybh; Wed, 11 Mar 2020 01:23:10 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuvWXI+xcBiCk+bbUIjmNcPCyjLpk8UCVHOWLC5uGuKGKSAxulBWEBvO2G+o7I7apg1K/ti X-Received: by 2002:a4a:3e90:: with SMTP id t138mr47132oot.24.1583914990443; Wed, 11 Mar 2020 01:23:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583914990; cv=none; d=google.com; s=arc-20160816; b=lOw9dwci/wLYAdwykD4kke098l8YvlUN8kQKA8dUs1+dksonF3xfRmaLtT0E70mnZI LAU6iIujWr/F208rMa43ZpbBQbJ1UTo0tGbuMliM6KQDg85pLzcVlUJp56mxgHGhormP GgohdGBhz6LY4o1DhslhCEkc0Zt5Yzr1tv4Bh1I2aC0nOj8S+7UI/FiEjgPEjVSF5LVf KYNuOC+90Y1KVI5LdN24qELK5AVFzuUZHA5oWzoaHcAjTrgYfYFuR49xWCIkpTjHDOZV e5FJwf1mTaLUNzZ7CfQSSSep1VsGTV33HTtETg66bygSNrRpIKJKrx0jgab+43sCYqOA nczg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4M46XJftZuH25+6Aa2Jikn0toFV3eZ0ROcxCUrQNerI=; b=r4sh6+/xV3WiDZksOGi0w4X49QytoaaS+ZwBhKPMslmnPEfz5mYxax9aLoP7goFZM6 i3bLvaeNkwA0SaTS4N5BatcFuK41/nohjTiSTK+QbDAIZOtKNgTHamFWcNW+Yq/ehbKM ea/srUCHeGTLHac5uN4gK5Z6jxv1TZyyYFYFuL/eLYCnGhLVsOLKKfOWkfxhvThy28bJ j2zR3X/iHVxN/mUmv8xTRa15I0ERprKu9Eyn+K3OjIUvCdpyQH2AZiofZiAhfMO5T627 J/5FM51Oon+n3/rpxyIZZX3vfz7qDNQFnrGR8cWZ+jz/EOcWYRVWGOQEk3JJsgNPSOLS go7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EQFu+RDg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f17si46640oou.12.2020.03.11.01.22.58; Wed, 11 Mar 2020 01:23:10 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=EQFu+RDg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728614AbgCKIVY (ORCPT + 99 others); Wed, 11 Mar 2020 04:21:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:54682 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726097AbgCKIVX (ORCPT ); Wed, 11 Mar 2020 04:21:23 -0400 Received: from dragon (80.251.214.228.16clouds.com [80.251.214.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1AABB20866; Wed, 11 Mar 2020 08:21:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583914882; bh=xOsCy17pMnIpN8H6F7yfTfdZSqkG2zR+BQaWBdsM8Ew=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EQFu+RDgOck99iq5cpUODmlkEEvvRJB9iQ8d/Pcc/SkS8NJ2/c0WYgYces3+rwr0+ Ie/m2HlmM+BB8bcRVCxWun+TT3lToNZdm4w0YFJfKLS8FHbFVNREAAFvwZIda3r+0H VjDJeZpVanZ/rWZKdhv7D2IwZoPQ5nhqHw1GHj1I= Date: Wed, 11 Mar 2020 16:21:17 +0800 From: Shawn Guo To: Zhiqiang Hou Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, michael@walle.cc, leoyang.li@nxp.com, Mingkai.Hu@nxp.com, Minghuan.Lian@nxp.com, Xiaowei Bao Subject: Re: [PATCHv7] arm64: dts: ls1028a: Add PCIe controller DT nodes Message-ID: <20200311082117.GA29269@dragon> References: <20200302042305.15639-1-Zhiqiang.Hou@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200302042305.15639-1-Zhiqiang.Hou@nxp.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 02, 2020 at 12:23:05PM +0800, Zhiqiang Hou wrote: > From: Xiaowei Bao > > LS1028a implements 2 PCIe 3.0 controllers. > > Signed-off-by: Xiaowei Bao > Signed-off-by: Hou Zhiqiang > Tested-by: Michael Walle > --- > V7: > - Rebased the patch to the latest code base. > - Added property 'iommu-map'. > > .../arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 54 +++++++++++++++++++ > 1 file changed, 54 insertions(+) > > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi > index 41c9633293fb..3f31641dcced 100644 > --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi > @@ -717,6 +717,60 @@ > #thermal-sensor-cells = <1>; > }; > > + pcie@3400000 { Please keep nodes sorted in unit-address. Shawn > + compatible = "fsl,ls1028a-pcie"; > + reg = <0x00 0x03400000 0x0 0x00100000 /* controller registers */ > + 0x80 0x00000000 0x0 0x00002000>; /* configuration space */ > + reg-names = "regs", "config"; > + interrupts = , /* PME interrupt */ > + ; /* aer interrupt */ > + interrupt-names = "pme", "aer"; > + #address-cells = <3>; > + #size-cells = <2>; > + device_type = "pci"; > + dma-coherent; > + num-viewport = <8>; > + bus-range = <0x0 0xff>; > + ranges = <0x81000000 0x0 0x00000000 0x80 0x00010000 0x0 0x00010000 /* downstream I/O */ > + 0x82000000 0x0 0x40000000 0x80 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */ > + msi-parent = <&its>; > + #interrupt-cells = <1>; > + interrupt-map-mask = <0 0 0 7>; > + interrupt-map = <0000 0 0 1 &gic 0 0 GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>, > + <0000 0 0 2 &gic 0 0 GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>, > + <0000 0 0 3 &gic 0 0 GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>, > + <0000 0 0 4 &gic 0 0 GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>; > + iommu-map = <0 &smmu 0 1>; /* Fixed-up by bootloader */ > + status = "disabled"; > + }; > + > + pcie@3500000 { > + compatible = "fsl,ls1028a-pcie"; > + reg = <0x00 0x03500000 0x0 0x00100000 /* controller registers */ > + 0x88 0x00000000 0x0 0x00002000>; /* configuration space */ > + reg-names = "regs", "config"; > + interrupts = , > + ; > + interrupt-names = "pme", "aer"; > + #address-cells = <3>; > + #size-cells = <2>; > + device_type = "pci"; > + dma-coherent; > + num-viewport = <8>; > + bus-range = <0x0 0xff>; > + ranges = <0x81000000 0x0 0x00000000 0x88 0x00010000 0x0 0x00010000 /* downstream I/O */ > + 0x82000000 0x0 0x40000000 0x88 0x40000000 0x0 0x40000000>; /* non-prefetchable memory */ > + msi-parent = <&its>; > + #interrupt-cells = <1>; > + interrupt-map-mask = <0 0 0 7>; > + interrupt-map = <0000 0 0 1 &gic 0 0 GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>, > + <0000 0 0 2 &gic 0 0 GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>, > + <0000 0 0 3 &gic 0 0 GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>, > + <0000 0 0 4 &gic 0 0 GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>; > + iommu-map = <0 &smmu 0 1>; /* Fixed-up by bootloader */ > + status = "disabled"; > + }; > + > pcie@1f0000000 { /* Integrated Endpoint Root Complex */ > compatible = "pci-host-ecam-generic"; > reg = <0x01 0xf0000000 0x0 0x100000>; > -- > 2.17.1 >