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 39616C433EF for ; Thu, 23 Jun 2022 17:58:59 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6B3BD8437A; Thu, 23 Jun 2022 19:58:57 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1656007137; bh=qWW9p8dhXp1Gpcnf+LJ7eMAfns/TyegG1Sr4OMtzo4k=; h=Date:From:To:Cc:Subject:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=JFwCiiSxSKWPmnUHoOPauEjR5LFzKb82vCvgKaqmhe/CGi2VkykbAQBYYF+CI/Nch Q+vPopY93FEgDBKy7/slnpxjqUGJEdu2drqAnRdRlIKyrWqtZdhXAp7kej2f+qZDg5 Z8mNJdw9WWtiTwuLdOhaV2fn/ZdfmzDePnzWF40rcvvyeMsNtW85ab9wXopzcBeGV0 LVLEuGVPeVFDOPi1vxfVlZoTms+D2H4HGOKs4mzJlQTKe5KLGCdfwU7nABivp1TyKM 6HRiHY4gHmfEXgYRgfs/ZXXI3tAuedzQCN1nHpEq5zP63yBol+L9imgKFhQ8KH8Gyh 4H4rdHq7c1aLQ== Received: from mail.denx.de (unknown [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: festevam@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 11DAE8435C; Thu, 23 Jun 2022 19:58:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1656007136; bh=qWW9p8dhXp1Gpcnf+LJ7eMAfns/TyegG1Sr4OMtzo4k=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=gj4aBka9KrJsoOVBOs8WiEbX9ZLPNgQpbGSas63YJQOeYBt2qCH8LhmVedJgkQvTc WThuXlLBp9L6e/qa/DTfnqjH7NieIzHCMr1Aouc23LdbzqCdKvXCygZ6ImBfK8fqvp T03TIFXYGyJ9B+qM4XS5IA7D2qK92oqQr1Ky/oGGl7TMAItQio+LoyB10TKpKEk3eT y3zQzSxF15QasE69ptyoKgHdGV+c8s9RqUT+jfu0hu0n4/ZJvf3fPOhW1ZkmiuhBEq NqySaTEW+VK5S+ksKlS/sd7g0D55MEaybFSHue0GTUReyNqYD0BJWXMo550BtBeWL4 4Af6bnk8vTB6A== MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 23 Jun 2022 14:58:56 -0300 From: Fabio Estevam To: Frieder Schrempf Cc: Frieder Schrempf , u-boot@lists.denx.de, Heiko Thiery , Tom Rini , Jaehoon Chung , Simon Glass Subject: Re: [PATCH 2/2] imx: kontron-sl-mx8mm: Enable PCA9450 regulator driver and fix SD card access In-Reply-To: <20220623174215.299989-2-frieder@fris.de> References: <20220623174215.299989-1-frieder@fris.de> <20220623174215.299989-2-frieder@fris.de> Message-ID: <9b4117822598fc05be324e6df327d076@denx.de> X-Sender: festevam@denx.de User-Agent: Roundcube Webmail/1.3.6 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 On 23/06/2022 14:42, Frieder Schrempf wrote: > 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