Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp94603ybx; Wed, 6 Nov 2019 13:47:04 -0800 (PST) X-Google-Smtp-Source: APXvYqxtqGon5NcLIIr1GKaSAspkonxYgjFmHTXU7oLfR1cehEhCe7PxsiQ45U/rpS1gpsOFyrfU X-Received: by 2002:a17:906:6083:: with SMTP id t3mr37105312ejj.145.1573076824580; Wed, 06 Nov 2019 13:47:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573076824; cv=none; d=google.com; s=arc-20160816; b=Wvk5xDRPsubuh1EJo2FFuHCMWBydF3/jK2As5WNcMz1buYvp2fe59IsyCSMrHFRbMh XFx+LwYC1Yls9myIGX8tmbcRhZv83n6/Yq9fdVGYNh1ry2pbQbffQjrvOi44DruSzTNh 8fXIAChnlTbSzsivZbxfAraY1YvL4mnVHdbWtVczp9AZqAE1vmpCKRkeEos5ZDqd7CxO l+u9jNt7OoywvZh0F+MhRI/tTWQkdWdV8W1q2zpCWGWpOA+3+3sF82JY05LKltZAoO6X xczTvTLiAHc0tj1nWvW6vqoHiD8lVomN4jVuB+WrYMqPzk9QC2JNgTpZCn1Nodi3Vuta Bk9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=a/9o/UpOQSjf02RJCUzqKeBkgfnsur/CA1flTqudX80=; b=Ro5NJnPjJ/YnghjMBcl4sshmjUFGKCqnQWtbFKjPVcynXzYemvXHhxjTIL5zBplLwO R5KAtzR+hGjjgVUtUpFbXxBeXeQGHMhX3R3PNrxpfM74kor9NnnD6HRP3yfTgDkirm2f 9YynDFET9irf0XBM15Wo+EAH//Mk/9BV1sdDMT0gbNerckWPlh1wyAfRn6506/InHxsF sIqiz08Y7Ekkisvwj1UqHOpCSFgrhmnjYaAFOpiOamgeU5huzU3SMIeXbfkLdiYXc8fi jumlEkVTSZMQcSp47Km1bpIlccqgTpFyT6rh+0d8eCb04xycPcEaMxnMce9cw6oro+xK +esQ== 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 j15si119371ejv.335.2019.11.06.13.46.40; Wed, 06 Nov 2019 13:47: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 S1732633AbfKFVpw (ORCPT + 99 others); Wed, 6 Nov 2019 16:45:52 -0500 Received: from mx2.suse.de ([195.135.220.15]:35938 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732298AbfKFVpu (ORCPT ); Wed, 6 Nov 2019 16:45:50 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id D2C5EB3F6; Wed, 6 Nov 2019 21:45:48 +0000 (UTC) From: Nicolas Saenz Julienne To: Andrew Murray , 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 Cc: james.quinlan@broadcom.com, mbrugger@suse.com, f.fainelli@gmail.com, phil@raspberrypi.org, Nicolas Saenz Julienne , linux-kernel@vger.kernel.org Subject: [PATCH 2/4] ARM: dts: bcm2711: Enable PCIe controller Date: Wed, 6 Nov 2019 22:45:24 +0100 Message-Id: <20191106214527.18736-3-nsaenzjulienne@suse.de> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191106214527.18736-1-nsaenzjulienne@suse.de> References: <20191106214527.18736-1-nsaenzjulienne@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This enables bcm2711's PCIe bus, wich is hardwired to a VIA Technologies 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>; + 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>; + /* + * 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>; + }; + }; + cpus: cpus { #address-cells = <1>; #size-cells = <0>; -- 2.23.0