Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3AA46CD5BB8 for ; Sat, 23 May 2026 16:32:48 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4AC6B8486D; Sat, 23 May 2026 18:32:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=lst.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 56DE184874; Sat, 23 May 2026 18:32:44 +0200 (CEST) Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 709A184867 for ; Sat, 23 May 2026 18:32:42 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=lst.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=duwe@lst.de Received: by verein.lst.de (Postfix, from userid 2005) id 8EEA768BEB; Sat, 23 May 2026 18:32:39 +0200 (CEST) Subject: [PATCH v4 0/9] ARM: RPi5: Enable PCIe To: Peter Robinson , Matthias Brugger Cc: Tom Rini ,"Jan Čermák" ,Andrea della Porta ,"Ivan T. Ivanov" , Stanimir Varbanov , Oleksii Moisieiev , Volodymyr Babchuk , Marek Vasut ,Paul Barker ,Patrice Chotard ,Christian Marangi ,Patrick Delaunay ,Huan Zhou ,Gabriel Fernandez ,Kever Yang ,Jonas Karlman ,Joseph Chen ,Elaine Zhang , Pedro Falcato ,u-boot@lists.denx.de,duwe@lst.de Message-Id: <20260523163239.8EEA768BEB@verein.lst.de> Date: Sat, 23 May 2026 18:32:39 +0200 (CEST) From: duwe@lst.de (Torsten Duwe) X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Basic PCIe support for the RPi5. This is the prerequisite for PCIe slot adapters / HATs and NVMe storage. Those might require their own supporting drivers or changes. Changes from v3: - differentiate only between bcm2711 and -12. No possible future extensions for other chips. In particular, keep EXT_CFG_INDEX and EXT_CFG_DATA offsets fixed, no functions in the cfg struct that are the same for both, like bridge_sw_init_set and rc_mode. - pass error codes through the newly introduced reset call chain - some patches Reviewed-by Neil Armstrong Changes from v2: - fix wrong subject prefixes - make reset drivers only found on the RPi5 depend on ARCH_BCM283X - some patches Reviewed-by Peter Robinson Changes from v1: - fixed inbound window rewrite, which broke RPi4 - series Tested-by Pedro Falcato Andrea della Porta (1): pci: brcmstb: Fix PCIe bus numbers Torsten Duwe (8): ARM: bcm283x: Add bcm2712 PCIe memory window pci: brcmstb: Support different variants using a cfg struct reset: Add RPi5 brcmstb reset facilities reset: Add RPi5 rescal reset facilities pci: brcmstb: Get and use bridge and rescal reset properties pci: brcmstb: Fix iBAR size calculation pci: brcmstb: rework iBAR handling pci: brcmstb: Adapt to AXI bridge .../mach-bcm283x/include/mach/acpi/bcm2711.h | 6 + arch/arm/mach-bcm283x/init.c | 10 +- configs/rpi_arm64_defconfig | 2 + drivers/pci/pcie_brcmstb.c | 388 ++++++++++++++++-- drivers/reset/Kconfig | 16 + drivers/reset/Makefile | 2 + drivers/reset/reset-brcmstb-rescal.c | 103 +++++ drivers/reset/reset-brcmstb.c | 97 +++++ 8 files changed, 588 insertions(+), 36 deletions(-) create mode 100644 drivers/reset/reset-brcmstb-rescal.c create mode 100644 drivers/reset/reset-brcmstb.c -- 2.54.0