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 A8A87C77B6E for ; Fri, 14 Apr 2023 09:45:33 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0F8CA85B6E; Fri, 14 Apr 2023 11:45:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=quarantine dis=none) header.from=collabora.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=collabora.com header.i=@collabora.com header.b="Uzrd00Sk"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 78D4885B21; Fri, 14 Apr 2023 11:45:28 +0200 (CEST) Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) (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 9AF9185B21 for ; Fri, 14 Apr 2023 11:45:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=eugen.hristev@collabora.com Received: from [192.168.0.125] (unknown [82.76.24.202]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: ehristev) by madras.collabora.co.uk (Postfix) with ESMTPSA id B1E12660321F; Fri, 14 Apr 2023 10:45:24 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1681465525; bh=ifjq5mhUYy4y87Kz6jPqvbAl7WcZQQC4asB/uM1tPJM=; h=Date:Subject:To:References:From:In-Reply-To:From; b=Uzrd00SkszvDxATVB89Rh7TDKlerVFHG0pZuukvivPLnwao7cBkhYzYOUqxXhhdBj w4RvZyShqVGeqgYoAxcEcm1riENEbDiZUeyEMzd4XSwDdtgqVhrjdm217HaNY6RxAL BjguELBoaGVw1b+p+bCYRYMbnW7rQ3EiqmPJ49Yt9Ln1TpgmKrTDF6IeFD4XbSt2By MGsAcxbNXamvvltIVRJloi4zTdpRSJkdoSp4nr2k18n8aIdPkF14UtY/aXXHGk5gia A6ihg+lp+KDhp8TcrTut8PkkqM7ILCoAbsaei8QLudvXo2NzUP9LdIc3SV076wOA9p SRmD6HJbNLZuw== Message-ID: <453c3e68-d7b4-13e9-03aa-8e35092da5dc@collabora.com> Date: Fri, 14 Apr 2023 12:45:21 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v2 1/2] ARM: dts: rk3588-rock-5b-u-boot: add u-boot, dm-spl to pinctrl for sdmmc Content-Language: en-US To: Kever Yang , jagan@edgeble.ai, u-boot@lists.denx.de, jonas@kwiboo.se References: <20230317162957.516267-1-eugen.hristev@collabora.com> <18a7c43d-6e94-da79-358a-b1fa0b00d120@rock-chips.com> From: Eugen Hristev In-Reply-To: <18a7c43d-6e94-da79-358a-b1fa0b00d120@rock-chips.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 4/14/23 11:55, Kever Yang wrote: > > On 2023/3/18 00:29, Eugen Hristev wrote: >> To be able to initialize the pinctrl correctly at SPL level and read >> u-boot proper from SD-Card, the pinctrl must be initialized. >> >> Signed-off-by: Eugen Hristev > Reviewed-by: Kever Yang > Hi Kever, The properties must be changed to bootph, I will update and send a new version. Eugen > Thanks, > - Kever >> --- >> Changes in v2: >> - add u-boot,dm-spl to pull up nodes, to also setup the pull control >> correctly. Also, in the loop that initializes multiple pins, only the >> first will be muxed as the loop will break when the pull up node is not >> found. >> >>   arch/arm/dts/rk3588-rock-5b-u-boot.dtsi | 26 +++++++++++++++++++++++++ >>   1 file changed, 26 insertions(+) >> >> diff --git a/arch/arm/dts/rk3588-rock-5b-u-boot.dtsi >> b/arch/arm/dts/rk3588-rock-5b-u-boot.dtsi >> index e1d240baf35d..a9d506ba6515 100644 >> --- a/arch/arm/dts/rk3588-rock-5b-u-boot.dtsi >> +++ b/arch/arm/dts/rk3588-rock-5b-u-boot.dtsi >> @@ -124,6 +124,8 @@ >>   }; >>   &pinctrl { >> +    u-boot,dm-spl; >> + >>       usb { >>           vcc5v0_host_en: vcc5v0-host-en { >>               rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; >> @@ -131,6 +133,30 @@ >>       }; >>   }; >> +&pcfg_pull_up_drv_level_2 { >> +    u-boot,dm-spl; >> +}; >> + >> +&pcfg_pull_up { >> +    u-boot,dm-spl; >> +}; >> + >> +&sdmmc_bus4 { >> +    u-boot,dm-spl; >> +}; >> + >> +&sdmmc_clk { >> +    u-boot,dm-spl; >> +}; >> + >> +&sdmmc_cmd { >> +    u-boot,dm-spl; >> +}; >> + >> +&sdmmc_det { >> +    u-boot,dm-spl; >> +}; >> + >>   &usb_host0_ehci { >>       companion = <&usb_host0_ohci>; >>       phys = <&u2phy2_host>;