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 E3D29C6FD1D for ; Fri, 17 Mar 2023 16:30:20 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AA9B7859B1; Fri, 17 Mar 2023 17:30:17 +0100 (CET) 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="J1kHs7BI"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BDF6D85984; Fri, 17 Mar 2023 17:30:15 +0100 (CET) Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) (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 3B3AD8596B for ; Fri, 17 Mar 2023 17:30:13 +0100 (CET) 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 eugen-station.. (38sdl30m26.codetel.net.do [66.98.60.38]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: ehristev) by madras.collabora.co.uk (Postfix) with ESMTPSA id 542B6660217D; Fri, 17 Mar 2023 16:30:11 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1679070612; bh=8qRcPurx0qXs4X+n8D05jRRlMiLSL6JcSf0FprcM+E8=; h=From:To:Cc:Subject:Date:From; b=J1kHs7BIxUmdqYwhrwYLYX9L0tQcz7nVDBc+poe1RZNcKIqf7FKLxP/RA/ouQF5tI nOeLEjwPc6BjNBMiRxCFap/As1RCzUX78Lf5+hTAMEghDeUUcwLceWf9uIOyPhuO1M 125izOqyhxXs7eIOD2tcwKj3Bv+MqwwoLEoEnhHZEUvKPrgJ26xVNRqS/ZLT2MNOax hr8tEzPDCq90Yu1Z47uJXe+/yWV5Hlb+7Og/TwAdvXFmYjzVX07GZUUK9VGKhjwUaF QS3hpFWQeTJ/IScKvUl4Pm8t+WNOROtieRoSRvJ9mVGT+7A14o2Uo6gXe4EbOLN6Aj 0CjvIcMMia4KQ== From: Eugen Hristev To: kever.yang@rock-chips.com, jagan@edgeble.ai, u-boot@lists.denx.de, jonas@kwiboo.se Cc: Eugen Hristev Subject: [PATCH v2 1/2] ARM: dts: rk3588-rock-5b-u-boot: add u-boot, dm-spl to pinctrl for sdmmc Date: Fri, 17 Mar 2023 18:29:56 +0200 Message-Id: <20230317162957.516267-1-eugen.hristev@collabora.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 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 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 --- 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>; -- 2.34.1