Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1281839ybx; Thu, 7 Nov 2019 09:46:53 -0800 (PST) X-Google-Smtp-Source: APXvYqy351SpEWuoJg/p5UhdD8sPhXqIahLZ5pZlEJTvyE6syaexe88JH785zZG9kvmcVsTLjxxF X-Received: by 2002:a50:b262:: with SMTP id o89mr4891568edd.170.1573148813686; Thu, 07 Nov 2019 09:46:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573148813; cv=none; d=google.com; s=arc-20160816; b=M1Cy0lT9y44RYhIwPoXEgZMpiCfp0Ir5YEoktX0JYKV7u+zrDCSgJlekC/fK/ZsoyO 8K7WatX4HxgrwxX+rDUgTeo/JutUyHgDSn/Cx/tFn/hTGDqMl216FIMW9c5hbLR75632 iSDdcmCd5xSCIuMKq70PyvyPLJ+qG2ZQ4F7dvks7owNWqyknjoisem4Rrn2OG1Aj3Thp CVKtGWZFnPt3YrMa55QnJNqe1kivcadry5YPdstojCcDCVBJ4drLT+XBD5FDFQROSTcY Wl4AutLVBcX+kHjdxAfGKKHv8tM5hlAe7vIO1t9U0JojJif7yqMzAGI0DgG6Jbqa9upt Z78A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:subject:from:dkim-signature; bh=DlJ9HRfSWgnW46B5dMgL3JIatSQ7yLQooAxmkOgaILk=; b=HAEQkdoBQ0rIHldh5oc6KRgmg+vvjBqI2Cn7qRnv7aJhJeg15766fEoUZ8Wvp51unw sxPqLXpGUW+sgba/I22wrT3p1FCo2gKRrI3G3h9CSclBhpFzvr4yKnxb7sNOY4VBtuEm 8Pnz/b/pq+dYsWvm2AqyPoGfCm7XCJKmiqYV/PSQNtGmdvh6Osf0cPhN9ljx/+ETu5o+ ep/70UVn0yIrTpxVKe22BiaugsoaEyt2NqzHuMW5w65d68AjIh2u3ZJIZZUgwV35Vgz5 QVtC867WoBcVxZIhjUnq0EO9joZur7zQgH5gpqCFxbH5l6RURBzc+aJtr8wAuoeqrRgd T8JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=RaToiqBW; 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 oz10si1821893ejb.163.2019.11.07.09.46.30; Thu, 07 Nov 2019 09:46:53 -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; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=RaToiqBW; 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 S1730692AbfKGRpo (ORCPT + 99 others); Thu, 7 Nov 2019 12:45:44 -0500 Received: from mout.gmx.net ([212.227.17.22]:46439 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727132AbfKGRpn (ORCPT ); Thu, 7 Nov 2019 12:45:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1573148643; bh=BhpscKNMNJ87cTBKp5GFtuoSxVbnh8ZvmC4Rf1n+h38=; h=X-UI-Sender-Class:From:Subject:To:Cc:References:Date:In-Reply-To; b=RaToiqBWCAvSxDaMxZRFSFymlKvGhbrAenAP9CjmQ9ncFWyjKTrmLlqqMTP540Oiw wZgzk/QLak/osdn1/7tehwKUse8hKft4poRlu0GHyBgVgI/rQx4lxlokIv1yWRSryu 8FpJim92Vtuq8yXqBT8AZVneXuE0dwCshusY6gMQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.1.167] ([37.4.249.112]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MfpOT-1i0ZgY1UD3-00gJwl; Thu, 07 Nov 2019 18:44:03 +0100 From: Stefan Wahren Subject: [PATCH 2/4] ARM: dts: bcm2711: Enable PCIe controller To: Nicolas Saenz Julienne , 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 Cc: f.fainelli@gmail.com, phil@raspberrypi.org, linux-kernel@vger.kernel.org, mbrugger@suse.com, james.quinlan@broadcom.com References: <20191106214527.18736-1-nsaenzjulienne@suse.de> <20191106214527.18736-3-nsaenzjulienne@suse.de> Message-ID: <50074e33-17bf-d555-cbf6-4ec079472ecd@gmx.net> Date: Thu, 7 Nov 2019 18:44:00 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191106214527.18736-3-nsaenzjulienne@suse.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-US X-Provags-ID: V03:K1:J71S5xLJO6+jUF9K+xjRD+Q+1zl0v7N17CIk7oTTAhAWdhfX9iE 6oV3FcP2aidfN0utB8aFh+mDNyaafkadl5gfTeyt9zWl6bH0UCIecQmnTbhQeh06zo0qeaf +6aULk0CUOYAJeZkUgiqlqlkMej3uezBZhTIo57FltmjGnlGXEb/HMjecy8NVmRmWPFdRPb UigCrTZFbF+asJHhfzQEg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:veosRUOBoV8=:/i04foybdF2ZZJ9IZydkIN 5cXsh7t5WZLGlAvkV26q6iMgU/QY689bUjOp67Z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Y88GoJ7vEeRiGViTiG1psynfT7dS/3V4jYTQpNG19iD doY9ArT1FyY4sdaidh3fntp90pdd6UXnADGtEXDBpAJoQC9ShmSf1MFeygAFIyvumGiQS/TTj v/eCbK7W71PgkjLyHzKBOy+sTUVJ1B3pqYmC1kUX/s0iTWpDCn9sdzPQU9TI= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Nicolas, please move this patch behind the driver patches, which is the better orde= r. Am 06.11.19 um 22:45 schrieb Nicolas Saenz Julienne: > This enables bcm2711's PCIe bus, wich is hardwired to a VIA Technologies > XHCI USB 3.0 controller. AFAIU this only applies to the Raspberry Pi 4, since the VIA is outside of the SoC. > 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 =3D "simple-bus"; > + #address-cells =3D <2>; > + #size-cells =3D <1>; > + > + ranges =3D <0x0 0x7c000000 0x0 0xfc000000 0x03800000>, > + <0x6 0x00000000 0x6 0x00000000 0x40000000>; > + > + pcie_0: pcie@7d500000 { > + compatible =3D "brcm,bcm2711-pcie"; > + reg =3D <0x0 0x7d500000 0x9310>; > + msi-controller; > + msi-parent =3D <&pcie_0>; > + #address-cells =3D <3>; > + #interrupt-cells =3D <1>; > + #size-cells =3D <2>; > + linux,pci-domain =3D <0>; > + brcm,enable-ssc; > + interrupts =3D , > + ; > + interrupt-names =3D "pcie", "msi"; > + interrupt-map-mask =3D <0x0 0x0 0x0 0x7>; > + interrupt-map =3D <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 =3D <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 =3D <0x02000000 0x0 0x00000000 0x0 0x00000000 > + 0x0 0x80000000>; In case this bug will ever be fixed, do you see this as a future proof practical solution? > + }; > + }; > + > cpus: cpus { > #address-cells =3D <1>; > #size-cells =3D <0>;