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 88963C77B7C for ; Tue, 9 May 2023 12:19:32 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 456158575B; Tue, 9 May 2023 14:19:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=rock-chips.com 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 7C57A8598A; Tue, 9 May 2023 14:19:29 +0200 (CEST) Received: from mail-m11879.qiye.163.com (mail-m11879.qiye.163.com [115.236.118.79]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C0D07856FA for ; Tue, 9 May 2023 14:19:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=rock-chips.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=kever.yang@rock-chips.com Received: from [192.168.0.116] (unknown [112.49.211.222]) by mail-m11879.qiye.163.com (Hmail) with ESMTPA id 2F8F368052D; Tue, 9 May 2023 20:16:51 +0800 (CST) Message-ID: Date: Tue, 9 May 2023 20:16:50 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH 7/8] rockchip: rk3568-rock-3a: Enable PCIe and NVMe support Content-Language: en-US To: Jonas Karlman , Simon Glass , Philipp Tomsich , Akash Gajjar Cc: Eugen Hristev , u-boot@lists.denx.de, =?UTF-8?B?5p6X5rabKOW6leWxguW5s+WPsCk=?= References: <20230422181943.889436-1-jonas@kwiboo.se> <20230422181943.889436-8-jonas@kwiboo.se> From: Kever Yang In-Reply-To: <20230422181943.889436-8-jonas@kwiboo.se> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVlDH0hPVhkeGBhKH09LSR9CQlUTARMWGhIXJBQOD1 lXWRgSC1lBWUpKSVVPQlVJSkpVSUlJWVdZFhoPEhUdFFlBWU9LSFVKTkxJSklVSktLVUpCWQY+ X-HM-Tid: 0a88007165312eb5kusn2f8f368052d X-HM-MType: 1 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6OTo6Agw6GD0ODSsSVhZJCyID LzxPFB5VSlVKTUNITUhPTUpKQk9LVTMWGhIXVRAeDR4JVQIaFRw7CRQYEFYYExILCFUYFBZFWVdZ EgtZQVlKSklVT0JVSUpKVUlJSVlXWQgBWUFITE5NNwY+ 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 Hi Jonas, On 2023/4/23 02:19, Jonas Karlman wrote: > Add missing pinctrl and defconfig options to enable PCIe and NVMe > support on Radxa ROCK 3 Model A. > > Signed-off-by: Jonas Karlman > --- > arch/arm/dts/rk3568-rock-3a-u-boot.dtsi | 14 ++++++++++++++ > configs/rock-3a-rk3568_defconfig | 4 ++++ > 2 files changed, 18 insertions(+) > > diff --git a/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi b/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi > index 8abee24c02c3..f3ee50949cc0 100644 > --- a/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi > +++ b/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi > @@ -19,6 +19,12 @@ > > &pinctrl { > bootph-pre-ram; > + > + pcie { > + pcie3x2_reset_h: pcie3x2-reset-h { > + rockchip,pins = <2 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>; > + }; > + }; > }; > > &pcfg_pull_up { > @@ -73,6 +79,14 @@ > bootph-pre-ram; > }; > > +&pcie2x1 { > + pinctrl-0 = <&pcie20m1_pins &pcie_reset_h>; > +}; > + > +&pcie3x2 { > + pinctrl-0 = <&pcie30x2m1_pins &pcie3x2_reset_h>; > +};     Did you really met issue without this patch?     The pcie using GPIO for reset and other function instead of pcie function, and these GPIOs's default setting is GPIO, so they should work by default. Thanks, - Kever > + > &sfc { > bootph-pre-ram; > u-boot,spl-sfc-no-dma; > diff --git a/configs/rock-3a-rk3568_defconfig b/configs/rock-3a-rk3568_defconfig > index 64864a300153..9d725b82a96a 100644 > --- a/configs/rock-3a-rk3568_defconfig > +++ b/configs/rock-3a-rk3568_defconfig > @@ -46,6 +46,7 @@ CONFIG_CMD_GPIO=y > CONFIG_CMD_GPT=y > CONFIG_CMD_I2C=y > CONFIG_CMD_MMC=y > +CONFIG_CMD_PCI=y > CONFIG_CMD_USB=y > # CONFIG_CMD_SETEXPR is not set > CONFIG_CMD_PMIC=y > @@ -70,6 +71,9 @@ CONFIG_SPI_FLASH_MACRONIX=y > CONFIG_SPI_FLASH_XTX=y > CONFIG_ETH_DESIGNWARE=y > CONFIG_GMAC_ROCKCHIP=y > +CONFIG_NVME_PCI=y > +CONFIG_PCI=y > +CONFIG_PCIE_DW_ROCKCHIP=y > CONFIG_PHY_ROCKCHIP_INNO_USB2=y > CONFIG_PHY_ROCKCHIP_NANENG_COMBOPHY=y > CONFIG_SPL_PINCTRL=y