Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp782607ybx; Thu, 7 Nov 2019 02:38:04 -0800 (PST) X-Google-Smtp-Source: APXvYqxz237xVVPBaBSdfDOlw0IbMOv9wvhlwSdrvu6qp3GwzHGXKe/Fi7tXvxYXCpvMgXDUlNzl X-Received: by 2002:a50:e60d:: with SMTP id y13mr2618976edm.199.1573123084828; Thu, 07 Nov 2019 02:38:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573123084; cv=none; d=google.com; s=arc-20160816; b=WXTrDRDwvOVKCI0KjVlauMtm/m3D/YTFNTRLhMpSKjxYkPluz/2RmwO+ugb9irrnvK dOKHHJ7UDt0XbUPrVkaJF7Gjk74lQ/8VdL5KiLqVxboPuK6/7KiIcEMMLiAwyD1Uk8JI p3nF4HW7vT9U6eHsY2MeCyEIuAHUn+HIo5KVoGa67elnWCdU6TMG6aqtJRheLK1fcqJy Tq1wq6boEE50rFh20aLkYXZZ3yFnPwYSVJyIKnkTSxCatE/5ThVDJ4I27hQlKMQs5I3h zewzh4DBJm+jciFICxnSSiOH1iKqawZvCu633amsp50rywubXf0CveLiG4KFwG97Gvx2 1CSw== 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; bh=xfquTeaFp9YTjF0AEyX/NG9BESSv346tf7ccHXUO1bA=; b=0ex/pb4eQZtJUj/i/9Azl1eIJWeg+KOfGlUoPG0qcW8b1Aw7rFfBoq2QLnS3PoWmUX ENeyoGTb6i/fuZnAXSGi/XM+2eehcPUq+M0dYZ5Qzaw1DWapd2YLx3lKJUSU6gAVeq5b vPcI+aqBuYomp71ReZQHRm17o/qs5C0YgBYJbXl9KV/NJXCxbS04kYCev80smGgurUb6 NEbX1c3dAa4k/fbn5KPH19gwbufumtlCzszFBYvUZO7nGm2Yh3hE6tkwO0L8w92jv1l+ fBqTXCubAbOdXMSio7dQV73BeIja3H87/RE9l+Lo6VbxsNpK2UkneLwKwUO/Eo1lNVwv EHMw== 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 f13si1185232ejw.297.2019.11.07.02.37.41; Thu, 07 Nov 2019 02:38:04 -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 S2388107AbfKGKhK (ORCPT + 99 others); Thu, 7 Nov 2019 05:37:10 -0500 Received: from foss.arm.com ([217.140.110.172]:53890 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727278AbfKGKhJ (ORCPT ); Thu, 7 Nov 2019 05:37:09 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EB1091FB; Thu, 7 Nov 2019 02:37:08 -0800 (PST) Received: from localhost (unknown [10.37.6.20]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 50D633F71A; Thu, 7 Nov 2019 02:37:08 -0800 (PST) Date: Thu, 7 Nov 2019 10:37:06 +0000 From: Andrew Murray To: Nicolas Saenz Julienne Cc: linux-pci@vger.kernel.org, devicetree@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Rob Herring , Mark Rutland , Eric Anholt , Stefan Wahren , james.quinlan@broadcom.com, mbrugger@suse.com, f.fainelli@gmail.com, phil@raspberrypi.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/4] ARM: dts: bcm2711: Enable PCIe controller Message-ID: <20191107103705.GX9723@e119886-lin.cambridge.arm.com> References: <20191106214527.18736-1-nsaenzjulienne@suse.de> <20191106214527.18736-3-nsaenzjulienne@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191106214527.18736-3-nsaenzjulienne@suse.de> User-Agent: Mutt/1.10.1+81 (426a6c1) (2018-08-26) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 06, 2019 at 10:45:24PM +0100, Nicolas Saenz Julienne wrote: > This enables bcm2711's PCIe bus, wich is hardwired to a VIA Technologies s/wich/which/ > XHCI USB 3.0 controller. > > Signed-off-by: Nicolas Saenz Julienne > --- > arch/arm/boot/dts/bcm2711.dtsi | 47 ++++++++++++++++++++++++++++++++++ > 1 file changed, 47 insertions(+) > > diff --git a/arch/arm/boot/dts/bcm2711.dtsi b/arch/arm/boot/dts/bcm2711.dtsi > index a9d84e28f245..c7b2e7b57da6 100644 > --- a/arch/arm/boot/dts/bcm2711.dtsi > +++ b/arch/arm/boot/dts/bcm2711.dtsi > @@ -288,6 +288,53 @@ > arm,cpu-registers-not-fw-configured; > }; > > + scb { > + compatible = "simple-bus"; > + #address-cells = <2>; > + #size-cells = <1>; > + > + ranges = <0x0 0x7c000000 0x0 0xfc000000 0x03800000>, > + <0x6 0x00000000 0x6 0x00000000 0x40000000>; > + > + pcie_0: pcie@7d500000 { > + compatible = "brcm,bcm2711-pcie"; > + reg = <0x0 0x7d500000 0x9310>; > + msi-controller; > + msi-parent = <&pcie_0>; > + #address-cells = <3>; > + #interrupt-cells = <1>; > + #size-cells = <2>; > + linux,pci-domain = <0>; pci-domain is unlikely to be needed here. > + brcm,enable-ssc; > + interrupts = , > + ; > + interrupt-names = "pcie", "msi"; > + interrupt-map-mask = <0x0 0x0 0x0 0x7>; > + interrupt-map = <0 0 0 1 &gicv2 GIC_SPI 143 > + IRQ_TYPE_LEVEL_HIGH > + 0 0 0 2 &gicv2 GIC_SPI 144 > + IRQ_TYPE_LEVEL_HIGH > + 0 0 0 3 &gicv2 GIC_SPI 145 > + IRQ_TYPE_LEVEL_HIGH > + 0 0 0 4 &gicv2 GIC_SPI 146 > + IRQ_TYPE_LEVEL_HIGH>; > + > + ranges = <0x02000000 0x0 0xf8000000 0x6 0x00000000 > + 0x0 0x04000000>; Is legacy I/O supported by this controller? > + /* > + * The wrapper around the PCIe block has a bug > + * preventing it from accessing beyond the first 3GB of > + * memory. As the bus DMA mask is rounded up to the > + * closest power of two of the dma-range size, we're > + * forced to set the limit at 2GB. This can be > + * harmlessly changed in the future once the DMA code > + * handles non power of two DMA limits. > + */ > + dma-ranges = <0x02000000 0x0 0x00000000 0x0 0x00000000 > + 0x0 0x80000000>; > + }; > + }; Thanks, Andrew Murray > + > cpus: cpus { > #address-cells = <1>; > #size-cells = <0>; > -- > 2.23.0 >