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 C45FDC6FD18 for ; Sat, 22 Apr 2023 18:20:12 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2FCF586464; Sat, 22 Apr 2023 20:19:57 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kwiboo.se header.i=@kwiboo.se header.b="DkaUxuJo"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 72CF486009; Sat, 22 Apr 2023 20:19:51 +0200 (CEST) Received: from s.wrqvtzvf.outbound-mail.sendgrid.net (s.wrqvtzvf.outbound-mail.sendgrid.net [149.72.126.143]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 137D786006 for ; Sat, 22 Apr 2023 20:19:47 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bounces+31435339-7456-u-boot=lists.denx.de@em2124.kwiboo.se DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=from:subject:mime-version:to:cc:content-transfer-encoding: content-type:cc:content-type:from:subject:to; s=s1; bh=4yjOF6hi0dmhIOVxhYa8XatN9UlzKwNmzpnSbonTIHc=; b=DkaUxuJoMBzRZ2yv/nHq/bjtiaDpOc3lZSKtjP8WNNqnJ/W1XwlmO1VpKnh1M2UylAtm Mgw1ho4WKjknV/xTZ6BQ+HiLXWLEbUhBaEJyjtk7NRtze545olr3XB1vxpA83J8xAjWP4O NdZKdVDtcmMx/i/1YWDaR5zXQiQwGA/4o/fAYAi0lovw+sail71wnMSRm7sR/Sz/4wAA0r ECyOKhAQBHGuvdKUxEDRA3rGqC6TgK/o0RuMaRq+fpADSVcf/nzB5ticpZeLDduG67bM5C lF3gBKQ/9mDSZ/J2Q/7U1TPUgibKBlCaduJ69snIRp/td+d96bciTsx6eJacRAMw== Received: by filterdrecv-7946957d94-d4bhm with SMTP id filterdrecv-7946957d94-d4bhm-1-64442541-10 2023-04-22 18:19:45.707538495 +0000 UTC m=+5165279.376622573 Received: from bionic.localdomain (unknown) by geopod-ismtpd-6 (SG) with ESMTP id U9OJF3vgRdmPQAa16XIvjw Sat, 22 Apr 2023 18:19:45.219 +0000 (UTC) From: Jonas Karlman Subject: [PATCH 0/8] rockchip: Fix PCIe and NVMe support on RK3568 Date: Sat, 22 Apr 2023 18:19:45 +0000 (UTC) Message-Id: <20230422181943.889436-1-jonas@kwiboo.se> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 X-SG-EID: =?us-ascii?Q?TdbjyGynYnRZWhH+7lKUQJL+ZxmxpowvO2O9SQF5CwCVrYgcwUXgU5DKUU3QxA?= =?us-ascii?Q?fZekEeQsTe+RrMu3cja6a0hzGTvzvg+m6iY83Hw?= =?us-ascii?Q?jRzkgziw61afrCa2hCLoTiGz0aOoYIzkd5lSktm?= =?us-ascii?Q?nzwGCSPyhLF6WvNJcU3DLOvLdtPf=2FjcsLdGk32I?= =?us-ascii?Q?P2cHjPs=2F9q+ZoEkU0FyAU3q+dMJosxvcu=2FZA49I?= =?us-ascii?Q?PxApfdiYTn7DkpbCaFdn2iCrQNKS5xTmo6KG=2F7?= To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Eugen Hristev , u-boot@lists.denx.de, Jonas Karlman X-Entity-ID: P7KYpSJvGCELWjBME/J5tg== Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii 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 This series fixes and enables PCIe and NVMe support on RK3568. It depends on prior series by Eugen Hristev, [1] and [2] that adds PCIe support on RK3588 and also [3] that add basic reference counting to gpio regulators. Patch 1-2 fixes main issue in the driver to be usable on RK3568. Patch 3 fixes a long wait time during probe when no device is attached. Patch 4 hides BARs of the root complex that could claim the entire memory region during PCI autoconfig. Patch 5 adds support for the gpios prop to the fixed regulators driver. Patch 6 adds a missing clock to the clock driver. Patch 7 enables PCIe and NVMe support on rk3568-rock-3a. Patch 8 updates the device tree with new reg and ranges values. For a clean apply of patch 7, the series at [4] may be needed. I have tested that a Samsung 970 EVO NVMe is detected on a ROCK 3A, BusDevFun VendorId DeviceId Device Class Sub-Class 01.00.00 0x1d87 0x3566 Bridge device 0x04 02.00.00 0x144d 0xa808 Mass storage controller 0x08 and I have also verified that the network controller continues to be detected on a ROCK 5B. BusDevFun VendorId DeviceId Device Class Sub-Class 00.00.00 0x1d87 0x3588 Bridge device 0x04 01.00.00 0x10ec 0x8125 Network controller 0x00 This series can also be found at [5]. [1] https://patchwork.ozlabs.org/project/uboot/patch/20230413141103.268571-1-eugen.hristev@collabora.com/ [2] https://patchwork.ozlabs.org/project/uboot/patch/20230417091951.4640-1-eugen.hristev@collabora.com/ [3] https://patchwork.ozlabs.org/project/uboot/patch/20230419134526.128800-1-eugen.hristev@collabora.com/ [4] https://patchwork.ozlabs.org/project/uboot/cover/20230422012309.402799-1-jonas@kwiboo.se/ [5] https://github.com/Kwiboo/u-boot-rockchip/commits/rk3568-pcie-v1 Jonas Karlman (8): pci: pcie_dw_rockchip: Get config region from reg prop pci: pcie_dw_rockchip: Use regulator_set_enable_if_allowed pci: pcie_dw_rockchip: Speed up link probe pci: pcie_dw_rockchip: Hide BARs of the root complex regulator: fixed: Add support for gpios prop rockchip: clk: clk_rk3568: Add CLK_PCIEPHY2_REF support rockchip: rk3568-rock-3a: Enable PCIe and NVMe support rockchip: rk356x: Update PCIe config, IO and memory regions arch/arm/dts/rk3568-rock-3a-u-boot.dtsi | 14 +++ arch/arm/dts/rk3568.dtsi | 14 +-- arch/arm/dts/rk356x.dtsi | 7 +- configs/rock-3a-rk3568_defconfig | 4 + drivers/clk/rockchip/clk_rk3568.c | 1 + drivers/pci/pcie_dw_common.c | 10 +- drivers/pci/pcie_dw_rockchip.c | 128 +++++++++++++++--------- drivers/power/regulator/fixed.c | 5 +- 8 files changed, 123 insertions(+), 60 deletions(-) -- 2.40.0