Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3965591ybc; Tue, 26 Nov 2019 01:25:00 -0800 (PST) X-Google-Smtp-Source: APXvYqwvS84AxDi98/j3z4viy9Teg8hI23/N0NnOhdX3S0O5I9GCSZN69z1klgjlCoWcFqvV3KzW X-Received: by 2002:a17:906:32d7:: with SMTP id k23mr72478ejk.173.1574760300678; Tue, 26 Nov 2019 01:25:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574760300; cv=none; d=google.com; s=arc-20160816; b=Xq/Dchyv4+TcGTSJKU5hZnbbSNSINEbGOY6nLZ5jvF7+KmGXk7WwKzO9Vu02qsgHQh 4BtRlJ1pD5A2+0L2rR+afS5ccxg2+ed7u8txsaNrITOBviKLbjEMlOgE1YWhlL8PxhzW GUYkq98HJQD9BWDF2lNHwIkKK3cD6w+fyckgSGRllNc8RhvBvVBOuxjfI7aqfrwhk3Dt uAQ6afEo0Tu5smG7c6Ve1/YAA+GKE+d6Vg7aDi2woZyHOLf3bHNzoKHv2/Zr8SGM57B7 7PUyWjX6b0qaKBPC+6diwouJyDxXbpO7Igkf3JIhVleCtYu5UTBPfIPj7GI2cgq3YEpE llyw== 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=VaB0f6HEBpOPQBjcI7r3ljrjMs1i9WkF2YKysg+vWPs=; b=tCgHSyJ8VgDuB2f3w4NHNA97yYb7XxQbiW7e8LJWcs2CjgQjSQXq4ANPD+XCPkqsER dTvtTzZ8nEMP+qGCfNAsXVxqFyfazggHUwIbCZTMZqJGbJbIwXANXXQ7QeM8nM+o69ZN lWG/ubeQjAcYVXU7JWzVKFU+Z/yI3mvNB19uyHczYYcs9DnmtecDha1Wps7GrrJjNg4w AgDCGLmqhkLciVb7n0VDxRH0Huom0KCAmJgdCG7TerSLxO9HnAQLaqgb5lkLmhq/DuIp edgRtH4wy8TrHM600dGWbQR41rHshVDVnmEsXc6md08algAYJixtvY4qUoIH1hg+7G+D vvBA== 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 a16si6107450ejs.215.2019.11.26.01.24.36; Tue, 26 Nov 2019 01:25:00 -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 S1727603AbfKZJUn (ORCPT + 99 others); Tue, 26 Nov 2019 04:20:43 -0500 Received: from mx2.suse.de ([195.135.220.15]:47934 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727150AbfKZJUk (ORCPT ); Tue, 26 Nov 2019 04:20:40 -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 50643BAB1; Tue, 26 Nov 2019 09:20:38 +0000 (UTC) From: Nicolas Saenz Julienne To: andrew.murray@arm.com, maz@kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Mark Rutland , Eric Anholt , Stefan Wahren Cc: james.quinlan@broadcom.com, mbrugger@suse.com, f.fainelli@gmail.com, phil@raspberrypi.org, jeremy.linton@arm.com, linux-pci@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, Nicolas Saenz Julienne , devicetree@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 3/7] ARM: dts: bcm2711: Enable PCIe controller Date: Tue, 26 Nov 2019 10:19:41 +0100 Message-Id: <20191126091946.7970-4-nsaenzjulienne@suse.de> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191126091946.7970-1-nsaenzjulienne@suse.de> References: <20191126091946.7970-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, which is hardwired to a VIA Technologies XHCI USB 3.0 controller. Signed-off-by: Nicolas Saenz Julienne --- This will likely need a rebase once the RPi GENET patches land. Changes since v2: - Remove unused interrupt-map - correct dma-ranges to it's full size, non power of 2 bus DMA constraints now supported in linux-next[1] - add device_type - rename alias from pcie_0 to pcie0 Changes since v1: - remove linux,pci-domain [1] https://lkml.org/lkml/2019/11/21/235 arch/arm/boot/dts/bcm2711.dtsi | 41 ++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/arch/arm/boot/dts/bcm2711.dtsi b/arch/arm/boot/dts/bcm2711.dtsi index 667658497898..2e121fc8b3d0 100644 --- a/arch/arm/boot/dts/bcm2711.dtsi +++ b/arch/arm/boot/dts/bcm2711.dtsi @@ -288,6 +288,47 @@ IRQ_TYPE_LEVEL_LOW)>, 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>; + + pcie0: pcie@7d500000 { + compatible = "brcm,bcm2711-pcie"; + reg = <0x0 0x7d500000 0x9310>; + device_type = "pci"; + #address-cells = <3>; + #interrupt-cells = <1>; + #size-cells = <2>; + 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>; + msi-controller; + msi-parent = <&pcie0>; + + 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 0xc0000000>; + brcm,enable-ssc; + }; + }; + cpus: cpus { #address-cells = <1>; #size-cells = <0>; -- 2.24.0