From mboxrd@z Thu Jan 1 00:00:00 1970 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 DBAB8C7EE22 for ; Mon, 15 May 2023 13:44:14 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 313F3865B6; Mon, 15 May 2023 15:44:13 +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=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=collabora.com header.i=@collabora.com header.b="F9TMufSF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AD1C3865BA; Mon, 15 May 2023 15:44:11 +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 4CA82865B0 for ; Mon, 15 May 2023 15:44:09 +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 eugen-station.. (unknown [46.8.172.197]) (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 89BBE66058D2; Mon, 15 May 2023 14:44:08 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1684158248; bh=cLI+Ja36Gj3HbU7OL3utS+7UnVCE238Y8xZi5oqijVg=; h=From:To:Cc:Subject:Date:From; b=F9TMufSF3sIvRyrUkpcAupx9pOEroCUnmI4E3SotIMxqMwbwsx6jp8sccixVEfKJ9 wS32tx1TYsbFi1u0VKt93iEJhKPZveib30CoC+FoTzRDNYL87jDqPaStyU92rSPjJq 3aI4oG2SrbluTobULIYwJKDkdlPEctgOt3gB9JSnNQmDSdsKwoQ+7L0sWsff02Aark NrdSb+YpKCabc6rqGztIuRYmRevl5eEjN4BIphYlUWXg0MMA2Ew+Q5Ine8Us75PFsT Ph4kFX/8dJawy9JvIP4fZWBoNGkOP7WvsLm1yZicm+4Z/Oa5WR7SiszZmMDp1EmthB ++os8NAv9/uvQ== From: Eugen Hristev To: kever.yang@rock-chips.com Cc: u-boot@lists.denx.de, jonas@kwiboo.se, Eugen Hristev Subject: [PATCH v4 1/2] ARM: dts: rk3588-rock-5b-u-boot: add bootph-all to pinctrl for sdmmc Date: Mon, 15 May 2023 16:44:02 +0300 Message-Id: <20230515134403.38485-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 v4: - rebased on latest master: This is also on top of the USB 2.0 series ! Changes in v3: - change to bootph-all props. 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 53d029c60e8f..e9fcb7b92eb3 100644 --- a/arch/arm/dts/rk3588-rock-5b-u-boot.dtsi +++ b/arch/arm/dts/rk3588-rock-5b-u-boot.dtsi @@ -31,6 +31,8 @@ }; &pinctrl { + bootph-all; + usb { vcc5v0_host_en: vcc5v0-host-en { rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; @@ -38,11 +40,35 @@ }; }; +&pcfg_pull_up_drv_level_2 { + bootph-all; +}; + +&pcfg_pull_up { + bootph-all; +}; + &sdmmc { bus-width = <4>; status = "okay"; }; +&sdmmc_bus4 { + bootph-all; +}; + +&sdmmc_clk { + bootph-all; +}; + +&sdmmc_cmd { + bootph-all; +}; + +&sdmmc_det { + bootph-all; +}; + &sdhci { cap-mmc-highspeed; mmc-ddr-1_8v; -- 2.34.1