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 6DADCC43334 for ; Mon, 27 Jun 2022 11:01:24 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2A56B84282; Mon, 27 Jun 2022 13:01:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=fris.de 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=fris.de header.i=@fris.de header.b="AhqKG/ZA"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DC84683FF8; Mon, 27 Jun 2022 13:01:11 +0200 (CEST) Received: from mail.fris.de (mail.fris.de [IPv6:2a01:4f8:c2c:390b::1]) (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 802E184282 for ; Mon, 27 Jun 2022 13:01:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=fris.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=frieder@fris.de Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 673FBC0126; Mon, 27 Jun 2022 13:01:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fris.de; s=dkim; t=1656327668; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=Wjm6wcyfJRO0k/yR6g/XMSfHVy83uRB+GA1HKszUCKA=; b=AhqKG/ZASCu+ruRtoLw5h+JMtAjWggL31Q3R/TBABQbduqE9RZvGG8XCdCxomRPPAKT+Uk fYu6pjwONMcZmDHqOCcVeyhpp4aPdUNwBbOtxWvfLgl0/UnBVU9bya67pzSQdDVB3TCtAq ZGrp25RIGX8DALRg8FdmqhGcuj4GzfB0apLlaKEYMX+RZuWYgK59X5anNcvhAJV98QSNy1 qNMlrhyrZE/MmDNh2e1+BXq2MiLqy1Bbum8M2U5U2McoS4REWvkWGRd6fhjydVieyYkI4U N/ObVDkG26/SdvuEWih1yrN98wMgM+JlTYwg62VxTW4msJ5rv1AkodlWxZswmg== From: Frieder Schrempf To: Tom Rini , Frieder Schrempf , u-boot@lists.denx.de Cc: Heiko Thiery , Fabio Estevam , Jaehoon Chung , Simon Glass Subject: [PATCH v2 2/2] imx: kontron-sl-mx8mm: Enable PCA9450 regulator driver and fix SD card access Date: Mon, 27 Jun 2022 13:00:59 +0200 Message-Id: <20220627110100.130033-2-frieder@fris.de> In-Reply-To: <20220627110100.130033-1-frieder@fris.de> References: <20220627110100.130033-1-frieder@fris.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 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.6 at phobos.denx.de X-Virus-Status: Clean From: Frieder Schrempf Currently accessing the SD card on USDHC2 fails with: => mmc dev 1 Card did not respond to voltage select! : -110 This is due to the fact that UHS modes are enabled in the defconfig and the devicetree, but the referenced LDO5 regulator (reg_nvcc_sd) is not available to switch the data lines from 3.3V to 1.8V mode. By enabling the regulator driver the vqmmc-supply is now available and the SD card works also in high speed modes: => mmc dev 1 switch to partitions #0, OK mmc1 is current device Please note that the board has a GPIO connected to the SD_VSEL signal of the PMIC. As the driver uses the LDO5CTRL_H register to set the voltage, we need to make sure that this GPIO (GPIO01_IO4) is set to a high level. Signed-off-by: Frieder Schrempf Reviewed-by: Fabio Estevam --- Changes in v2: * Add Fabio's R-b (Thanks!) --- configs/kontron-sl-mx8mm_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/kontron-sl-mx8mm_defconfig b/configs/kontron-sl-mx8mm_defconfig index 2e9d52522b2..727f99f0063 100644 --- a/configs/kontron-sl-mx8mm_defconfig +++ b/configs/kontron-sl-mx8mm_defconfig @@ -99,6 +99,7 @@ CONFIG_DM_PMIC=y CONFIG_DM_PMIC_PCA9450=y CONFIG_SPL_DM_PMIC_PCA9450=y CONFIG_DM_REGULATOR=y +CONFIG_DM_REGULATOR_PCA9450=y CONFIG_DM_RTC=y CONFIG_RTC_RV8803=y CONFIG_CONS_INDEX=2 -- 2.36.1