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 D2F40C77B7C for ; Tue, 9 May 2023 11:02:43 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D0318847D7; Tue, 9 May 2023 13:02:41 +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 4A4D0847C5; Tue, 9 May 2023 13:02:40 +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 7168F85283 for ; Tue, 9 May 2023 13:02:35 +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 305716804AF; Tue, 9 May 2023 19:02:28 +0800 (CST) Message-ID: <8b382497-ca3e-a9ae-e188-92e3715133ee@rock-chips.com> Date: Tue, 9 May 2023 19:02:27 +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 07/14] rockchip: rk3568-rock-3a: Use pinctrl for sdmmc and sdhci in SPL Content-Language: en-US To: Jonas Karlman , Simon Glass , Philipp Tomsich , Akash Gajjar Cc: u-boot@lists.denx.de References: <20230422012309.402799-1-jonas@kwiboo.se> <20230422012309.402799-8-jonas@kwiboo.se> From: Kever Yang In-Reply-To: <20230422012309.402799-8-jonas@kwiboo.se> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVkaTUhCVkhNGUtMGENNHktJSlUTARMWGhIXJBQOD1 lXWRgSC1lBWUpKSVVPQlVJSkpVSUlJWVdZFhoPEhUdFFlBWU9LSFVKTkxJSklVSktLVUpCWQY+ X-HM-Tid: 0a88002d4ac62eb5kusn305716804af X-HM-MType: 1 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6N006PBw*Hj0WQiseLxcLNR42 UTAaCRZVSlVKTUNITUhLSk9DQ01PVTMWGhIXVRAeDR4JVQIaFRw7CRQYEFYYExILCFUYFBZFWVdZ EgtZQVlKSklVT0JVSUpKVUlJSVlXWQgBWUFIQktNNwY+ 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 On 2023/4/22 09:23, Jonas Karlman wrote: > Enable pinctrl for sdmmc and sdhci in SPL to support loading of FIT > image from SD and eMMC storage when booting from SPI NOR flash. > > Signed-off-by: Jonas Karlman Reviewed-by: Kever Yang Thanks, - Kever > --- > arch/arm/dts/rk3568-rock-3a-u-boot.dtsi | 52 +++++++++++++++++++++++++ > configs/rock-3a-rk3568_defconfig | 3 +- > 2 files changed, 54 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi b/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi > index 801c91af5b41..b2af3b1dbed6 100644 > --- a/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi > +++ b/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi > @@ -13,6 +13,58 @@ > }; > }; > > +&pinctrl { > + bootph-pre-ram; > +}; > + > +&pcfg_pull_up { > + bootph-pre-ram; > +}; > + > +&pcfg_pull_none { > + bootph-pre-ram; > +}; > + > +&pcfg_pull_up_drv_level_2 { > + bootph-pre-ram; > +}; > + > +&uart2m0_xfer { > + bootph-pre-ram; > +}; > + > +&sdmmc0_bus4 { > + bootph-pre-ram; > +}; > + > +&sdmmc0_clk { > + bootph-pre-ram; > +}; > + > +&sdmmc0_cmd { > + bootph-pre-ram; > +}; > + > +&sdmmc0_det { > + bootph-pre-ram; > +}; > + > +&emmc_bus8 { > + bootph-pre-ram; > +}; > + > +&emmc_clk { > + bootph-pre-ram; > +}; > + > +&emmc_cmd { > + bootph-pre-ram; > +}; > + > +&emmc_datastrobe { > + bootph-pre-ram; > +}; > + > &sdhci { > cap-mmc-highspeed; > mmc-ddr-1_8v; > diff --git a/configs/rock-3a-rk3568_defconfig b/configs/rock-3a-rk3568_defconfig > index 5126feb6b11d..2e556dc2c1a2 100644 > --- a/configs/rock-3a-rk3568_defconfig > +++ b/configs/rock-3a-rk3568_defconfig > @@ -46,7 +46,7 @@ CONFIG_CMD_REGULATOR=y > # CONFIG_SPL_DOS_PARTITION is not set > CONFIG_SPL_OF_CONTROL=y > CONFIG_OF_LIVE=y > -CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents" > +CONFIG_OF_SPL_REMOVE_PROPS="clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents" > CONFIG_SPL_REGMAP=y > CONFIG_SPL_SYSCON=y > CONFIG_SPL_CLK=y > @@ -63,6 +63,7 @@ CONFIG_ETH_DESIGNWARE=y > CONFIG_GMAC_ROCKCHIP=y > CONFIG_PHY_ROCKCHIP_INNO_USB2=y > CONFIG_PHY_ROCKCHIP_NANENG_COMBOPHY=y > +CONFIG_SPL_PINCTRL=y > CONFIG_DM_PMIC=y > CONFIG_PMIC_RK8XX=y > CONFIG_REGULATOR_RK8XX=y