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 smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (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 B5352C5DF8C for ; Sun, 23 Aug 2026 20:39:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 9F05F80D13; Sun, 23 Aug 2026 20:39:38 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id iG7uPXQSUXaW; Sun, 23 Aug 2026 20:39:38 +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-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.u-boot-project.org; s=default; t=1787517578; 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=fN9kShUWkLAh9Wz6jLjqu2GXmj9vxUNopDH17Sd/MuA+LxWTGRIvS6mKIVgoDDP06 FUhL8686n3l+0WWpbFahlF/PcSk81v5J6v4oEZb8qFxJHe7Kc5d3Uo2spVP9Yo2UYu 5CbHv0k11bfRNXA4rlSdEPw7Leyb5kR76yke9Khlug9m+Zer46r3nHUlUUE5qypCRM j2fZf6jaCstRyITm8402MuQ5VltSbj75pyM3a584COsghuWXg7LEkwKOH2F38oNg1X FvslszC2cFA9uOAaSjQN0Aphszfwk/td4vPy1PIvvST61tb7HRZsrePb3rlbc9ifvQ U2i3iXz4vWSEw== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp1.osuosl.org (Postfix) with ESMTP id E731480D15; Sun, 23 Aug 2026 20:39:37 +0000 (UTC) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) by lists1.osuosl.org (Postfix) with ESMTP id F0D5C41A for ; Sun, 23 Aug 2026 20:39:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id E34F040056 for ; Sun, 23 Aug 2026 20:39:34 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id lz4LLL3Ogww7 for ; Sun, 23 Aug 2026 20:39:34 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2600:3c0a:e001:78e:0:1991:8:25; helo=sea.source.kernel.org; envelope-from=linusw@kernel.org; receiver= Authentication-Results: smtp2.osuosl.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=X/NT2DMq Received: from sea.source.kernel.org (sea.source.kernel.org [IPv6:2600:3c0a:e001:78e:0:1991:8:25]) by smtp2.osuosl.org (Postfix) with ESMTPS id 47A6D40057 for ; Sun, 23 Aug 2026 20:39:32 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 9D4E543ACB; Sun, 23 Aug 2026 20:39:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 53CBA1F000E9; Sun, 23 Aug 2026 20:39:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1787517572; bh=gl99Qp2Z8KTvwANJtGhic34Apg6/cIG4YARx9Ri6ahQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=X/NT2DMqftlWWPAt/zZQPPWnLIOxnRD808ozWasBCD6EdDwHk4C1vU8d+U2MZJKZU oXfLyQugsEQElnMY0mSMjPHpbeAa7QNbVzEjHv/YZ6EwI2gLpmkQmZ65kGYo35FMAw hYXqlhw2YyoJPUJeFG473+doZvV7CtOAvsVSy1qfXlKlUYwlaik9zFENLndpuh086L RWmaJVPAnlbk4VjEQTCp5GciWD7Mym0K2C6U2aw+MIW7OOAae15v8rq9YRhaEGLF55 gUIUziO4xW8tYOBsBZ4SiieWEqr9ztS3Qu6U9EYAp+08C7XjorZ8kcdjI4JeYN2qKT gVF34+INDe4cA== From: Linus Walleij Date: Sun, 23 Aug 2026 22:39:21 +0200 Subject: [PATCH v5 02/13] mmc: arm_pl180: Configure Ux500 signal direction MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260823-ux500-external-sdcard-v5-2-07ca794e2b94@kernel.org> References: <20260823-ux500-external-sdcard-v5-0-07ca794e2b94@kernel.org> In-Reply-To: <20260823-ux500-external-sdcard-v5-0-07ca794e2b94@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