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 smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9C297C5DF80 for ; Tue, 18 Aug 2026 09:00:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 4EB5D40752; Tue, 18 Aug 2026 09:00:40 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id RrSD7-Avgcu1; Tue, 18 Aug 2026 09:00:39 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=u-boot-bounces@lists.u-boot-project.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 8FEE94072F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.u-boot-project.org ; s=default; t=1787043639; bh=gl99Qp2Z8KTvwANJtGhic34Apg6/cIG4YARx9Ri6ahQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=pNTSYdjUtuYF8hAzVZ3ILPa/c1+lDufq9lL8K0Yz+qJew6tjZo2DPtGdoJxMFxeSt QKJmMwbsQIPXD1iDvjnr/JNcKTjIxffvFt4M06fSozJd4vDYSuDjvaSwHHK7133C8i pgqan1t7KZL3Q5oKhsTKTgH3x+VqHerCRcTf7AhN3lWXB/385Y9nO3fM0Nr7rlUG1f tO2Fwg/m+VCbLQuAtmL1jiuGOG1a9av7TTfXuezJHDRq8OTJDul8bOtVVfvCJtiibS cZs1jPGedCVLL5rQRKsiZBke305Jxw4UI1FAJzMB7mgmBx9syQTJ6VvRSuEoXqeS01 uF3c4HvEu0ypQ== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp4.osuosl.org (Postfix) with ESMTP id 8FEE94072F; Tue, 18 Aug 2026 09:00:39 +0000 (UTC) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists1.osuosl.org (Postfix) with ESMTP id B1FA5237 for ; Tue, 18 Aug 2026 09:00:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id A3EE140720 for ; Tue, 18 Aug 2026 09:00:36 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id Ifr962tjJzFP for ; Tue, 18 Aug 2026 09:00:35 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.4.254; helo=tor.source.kernel.org; envelope-from=linusw@kernel.org; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp4.osuosl.org B46204072F Authentication-Results: smtp4.osuosl.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org B46204072F Authentication-Results: smtp4.osuosl.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=bfXJh6Nn Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by smtp4.osuosl.org (Postfix) with ESMTPS id B46204072F for ; Tue, 18 Aug 2026 09:00:35 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 908B6601FB; Tue, 18 Aug 2026 09:00:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17ACF1F000E9; Tue, 18 Aug 2026 09:00:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1787043634; bh=gl99Qp2Z8KTvwANJtGhic34Apg6/cIG4YARx9Ri6ahQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=bfXJh6NnU7vn7uofCOHQjsRud8o5L+89mn+weY2Oyo3JvmPeCZRtygtTeQP7ly8tj cTvDTuDDHduXslmTyKNufRJIXka/CPocXTja9/UJARponcRxQRYNI29HtMs3mKJocn tpfmGMiGbELefcnkr97MJn0YIi+BLaAUAmLdvSD36P/w8FcZvIP1TOQ9IJrb4Zefmc mWxiOc2wcq0BlXmBznkl6sMray882MhgWexCtHVM4gzZevrsZNusiQ+7s07B/4e+Lz 9ITiYkB59x3ZMz+vJ0kuxQELM95TSatWk8vgRcwyZKqkSjGqFLDWs8ISpkYEDK3wOC WrSPKoV455ASg== From: Linus Walleij Date: Tue, 18 Aug 2026 11:00:26 +0200 Subject: [PATCH v3 02/11] mmc: arm_pl180: Configure Ux500 signal direction MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260818-ux500-external-sdcard-v3-2-a5d94930f3bb@kernel.org> References: <20260818-ux500-external-sdcard-v3-0-a5d94930f3bb@kernel.org> In-Reply-To: <20260818-ux500-external-sdcard-v3-0-a5d94930f3bb@kernel.org> To: u-boot@lists.u-boot-project.org, Tom Rini , Stefan Hansson , Stephan Gerhold Cc: Linus Walleij X-Mailer: b4 0.16.0 X-BeenThere: u-boot@lists.u-boot-project.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.u-boot-project.org The Ux500 MMCI variant can control external level-shifter signal directions through the power register. Parse the standard ST MMCI device tree properties and set the corresponding direction and feedback-clock bits. This is required by the external SD card slot on Samsung Janice, where commands cannot reach the card unless the direction controls are set. Reviewed-by: Stephan Gerhold Signed-off-by: Linus Walleij --- drivers/mmc/arm_pl180_mmci.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/mmc/arm_pl180_mmci.c b/drivers/mmc/arm_pl180_mmci.c index f00b0ff0dc95..af21b814641e 100644 --- a/drivers/mmc/arm_pl180_mmci.c +++ b/drivers/mmc/arm_pl180_mmci.c @@ -427,6 +427,19 @@ static int arm_pl180_mmc_probe(struct udevice *dev) host->version2 = false; /* ARM variant */ } + if (dev_read_bool(dev, "st,sig-dir-dat0")) + host->pwr_init |= SDI_PWR_DAT0DIREN; + if (dev_read_bool(dev, "st,sig-dir-dat2")) + host->pwr_init |= SDI_PWR_DAT2DIREN; + if (dev_read_bool(dev, "st,sig-dir-dat31")) + host->pwr_init |= SDI_PWR_DAT31DIREN; + if (dev_read_bool(dev, "st,sig-dir-dat74")) + host->pwr_init |= SDI_PWR_DAT74DIREN; + if (dev_read_bool(dev, "st,sig-dir-cmd")) + host->pwr_init |= SDI_PWR_CMDDIREN; + if (dev_read_bool(dev, "st,sig-pin-fbclk")) + host->pwr_init |= SDI_PWR_FBCLKEN; + gpio_request_by_name(dev, "cd-gpios", 0, &host->cd_gpio, GPIOD_IS_IN); ret = mmc_of_parse(dev, cfg); -- 2.55.0