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 BD658CCA47C for ; Thu, 23 Jun 2022 17:44:14 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3360684343; Thu, 23 Jun 2022 19:44: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=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="Tht9/+do"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C24998432F; Thu, 23 Jun 2022 19:42:33 +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 B7BD683FF6 for ; Thu, 23 Jun 2022 19:42:31 +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 CD08FC017B; Thu, 23 Jun 2022 19:42:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fris.de; s=dkim; t=1656006151; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=VBd3rWw4F8fC53/sTFD6M/BYr7dma1oRENDhZFGYvzs=; b=Tht9/+doai2uGGXq/FMZIsJf0YkEP8wwBTzaA3nUVDAv9MTn0sxNlS1VXcw91C/6y8orV8 UCyyHKBiLG+3F80h22aW8Yf2NVbYzYT48OTGwHWiYV5hbnt+phuj9bXoGer8Sv4u9tp7tN 2tr7IXCzkDu8onLdj0Zqng/YT1bYlsJjkb6xSq774VJZ1IjiXa95xELeTmt0LjeAC11UGS yzou3aWrSAnUazB0411ysHrdlttmo2XAE0Qby0P+kwHEB1HRs33jXdBRkVk4ksCzB6gttH dVqbe3v19mkz6wVz9XzMZco/0P60a2UQW8/FcOZ/9sc4OAVM2l79ix7plD7MSQ== From: Frieder Schrempf To: Frieder Schrempf , u-boot@lists.denx.de Cc: Heiko Thiery , Tom Rini , Fabio Estevam , Jaehoon Chung , Simon Glass Subject: [PATCH 2/2] imx: kontron-sl-mx8mm: Enable PCA9450 regulator driver and fix SD card access Date: Thu, 23 Jun 2022 19:42:15 +0200 Message-Id: <20220623174215.299989-2-frieder@fris.de> In-Reply-To: <20220623174215.299989-1-frieder@fris.de> References: <20220623174215.299989-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 --- Hi Tom, sorry for another late fix. I just keep discovering things that are broken. Please note that this depends on a driver change in patch 1 of this series. --- 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