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 436C5C04A68 for ; Thu, 28 Jul 2022 06:33:24 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 629A883AC3; Thu, 28 Jul 2022 08:33:22 +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=1658990002; bh=Kz706rNinBexqEpBwW75kaLQ7nvGjqMFPhuHGtrdxqU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=RfZR8HOKeh5DI2wpbC78jlePojNtqL9LJlBGSviSXqG+iWPBtBLTecRuIj5GELJt2 ZKExWvowAZfg7JtuhmGYRbNTqmmYlsETjECxoFZTVJnP7k2398rRS1EixRvk8qPzxF o05rFVStb9yQbLJgvTt6ekoGs6bgh2H2SIDPjW3ur5sS/6l4FzJw9U0uF0exVYq3Ku XQ2hbN51XZsT+YmTIfZ6fTTEh1Oj7Qo/d5WeiOJttMaD72NVvrz7siZt95U/MaBz2T XPxhJCX1qo3JxpRoM5qp94lfoQ/+nW4wJUYp6XtdZ5wUm/14RP49f+yOhm5ng356y9 ZjDckZ7uoqTTw== Received: by phobos.denx.de (Postfix, from userid 109) id F106183F20; Thu, 28 Jul 2022 08:33:20 +0200 (CEST) Received: from mout-u-204.mailbox.org (mout-u-204.mailbox.org [80.241.59.204]) (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 DFA5683AB7 for ; Thu, 28 Jul 2022 08:33:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-204.mailbox.org (Postfix) with ESMTPS id 4LtgnW6CShz9sgW; Thu, 28 Jul 2022 08:33:03 +0200 (CEST) Message-ID: <5a1502f5-bcfa-afc8-4033-cf396d6b2ec2@denx.de> Date: Thu, 28 Jul 2022 08:33:03 +0200 MIME-Version: 1.0 Subject: Re: [PATCH] mvebu: pinctrl: apply SDHCI PHY config for A7K Content-Language: en-US To: =?UTF-8?Q?Pali_Roh=c3=a1r?= Cc: u-boot@lists.denx.de References: <20220725121302.9060-1-pali@kernel.org> From: Stefan Roese In-Reply-To: <20220725121302.9060-1-pali@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 25.07.22 14:13, Pali Rohár wrote: > From: Konstantin Porotchkin > > Current pin control driver applies SDHCI PHY MUX selection > when board DT calls for eMMC function on MPP wires. > However, for CP side eMMC, only the "armada-8k-cpm-pinctrl" > compatibility string is taken into account, which causes > CP-SDHCI on Armada-7K boards to fail. > This patch adds "armada-7k-pinctrl" compatibility string > handling for the CP-SDHCI PHY configuration case. > > Signed-off-by: Konstantin Porotchkin > Reviewed-by: Igal Liberman Reviewed-by: Stefan Roese Thanks, Stefan > --- > drivers/pinctrl/mvebu/pinctrl-mvebu.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/pinctrl/mvebu/pinctrl-mvebu.c b/drivers/pinctrl/mvebu/pinctrl-mvebu.c > index 536c6aff96e5..fd49a97b5b0a 100644 > --- a/drivers/pinctrl/mvebu/pinctrl-mvebu.c > +++ b/drivers/pinctrl/mvebu/pinctrl-mvebu.c > @@ -52,7 +52,9 @@ void mvebu_pinctl_emmc_set_mux(struct udevice *dev, u32 pin, u32 func) > EMMC_PHY_CTRL_SDPHY_EN); > } > } else if (!fdt_node_check_compatible(blob, node, > - "marvell,armada-8k-cpm-pinctrl")) { > + "marvell,armada-8k-cpm-pinctrl") || > + !fdt_node_check_compatible(blob, node, > + "marvell,armada-7k-pinctrl")) { > if ((pin == CP110_EMMC_CLK_PIN_ID) && > (func == CP110_EMMC_CLK_FUNC)) { > clrbits_le32(priv->base_reg + CP_EMMC_PHY_CTRL_REG, Viele Grüße, Stefan Roese -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de