From patchwork Thu Mar 24 15:56:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 12790824 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 4F440C433EF for ; Thu, 24 Mar 2022 16:01:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=nPZ3X1QtgEeXEJWNTJfrFapVvCmnLgsDJDffGXZmqB0=; b=KSqErmjL9JshjD HsnzZowUplsWB6E84n/MI57bk5bDYJX1c01gLn27iHfWSj10umw9GHVoZ3fbdB8vAQtoNEAuSaMz5 Tlw7lpI3ZKweeCHEviQLbtZA50Divb67YBos7ngylvdVf29w4kUpiPGLUoKlyv3CUbHAOI/FTOxlO 6pzOseDBzzzNenb+76EgA6z8gPk0FOkca/BqMVjd+gX9h/OmYXNYURDbmASjPYt3Jxyws263uBgAD lyENMbOZ+oSFkAyv3YYWit5/HYh1fNOnlG5n0mXHvy+JmkeKvq6LzpxBTvrf31Z3QzlRL8tTOJFet TjlTEOQIrlPUM+QLRP3g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nXPss-00H6Yu-77; Thu, 24 Mar 2022 16:00:23 +0000 Received: from mout.perfora.net ([74.208.4.197]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nXPqH-00H5DA-7K for linux-arm-kernel@lists.infradead.org; Thu, 24 Mar 2022 15:57:42 +0000 Received: from localhost.localdomain ([81.221.85.15]) by mrelay.perfora.net (mreueus004 [74.208.5.2]) with ESMTPSA (Nemesis) id 1N0WTY-1oIcbr2d1A-00wVDS; Thu, 24 Mar 2022 16:57:28 +0100 From: Marcel Ziswiler To: linux-arm-kernel@lists.infradead.org Cc: Marcel Ziswiler , Andrejs Cainikovs , Arnd Bergmann , Fabio Estevam , Frank Rowand , Krzysztof Kozlowski , NXP Linux Team , Olof Johansson , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 10/10] arm64: dts: imx8mm-verdin: add sd1 sleep pinctrl Date: Thu, 24 Mar 2022 16:56:49 +0100 Message-Id: <20220324155649.285924-11-marcel@ziswiler.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220324155649.285924-1-marcel@ziswiler.com> References: <20220324155649.285924-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:WIrHfN3/v5DuBXh1t3yffOL9Tw5KZ5XlFYczKupNGYPAq+n7WrD DANHRumWHhXIDVaf5JkUfT73VjmJ3TxuLZLkvYoo+whWoIpDQDlfGTZkKXwNSlX6QrvCWRN JSwyuxdjOSsQnE7ioFOyD3AP4IqtET8rzkithDHYiNVUDifnkxX8xFv2MgIN68tCuxTTbHO FpUEyqMuarciUkQLdUIUA== X-UI-Out-Filterresults: notjunk:1;V03:K0:jTvlto+j76Q=:H8J00gum5WgD7Mb3KULfw8 x5bhjAs6fgiFIVkMO+yilqNZUYUfRk4FzUllQQGohPGBRq1mI/fnylRIHXoEVxKYUezhamNje 8SC9L6FGlKwCCtUJtncClymECLE4QfY1NiSEoaoA7Uvq3DAFC00fS/3s9Ff8CGxGWU6EsVR99 lQx0/5TQB9OsIkbyU7VRXK0KwN10wen31Plupp4JNA2/+rrjomCTshNzMJWIrlRowlhhkuOKe +GUCZmVrGBcM8jKfUGvzk9jrmNBVu12HujwXfLUyvtDDcS0kbcz2oc1M2AIRhnfnEq+dTgCWO mcJHg0IaMeKFo6LB+WkCGY7tDstDH9llnAARQO0PO1SG4FXYsMDy6ICc3SpMrMBg8mv95fUVY rKFbM3iplHc3IoqK1X5MFRNSkxFxDdAoe4tCbtpVYbUvpJiiNIV4ZKGfQ+h2iK//kdj9blf/2 n+07MaVOBzmY/l6jErS3w1G4nMzyOHUqpRQ/Bt9BDkGXQfoYy9j73TtJxpYI2CpJqV87Lex56 0Dj/3tsTSceyeqiu5IgENy1baytJNmpOE/8djt5kYa1kNZ7fv/1oFrQ4c+QiPUJApvjwLuLqe 2GYzaX6H9BS8wmvHBETqadgirPnyiLNSMyQzb7BxMivs7oM+WEE4c5SN6HOmD9p/kSVaY6/ei ngVGJZPb/D6yxdTX13Uoq+DExZd58ngmIvK2O19uoBuApOfsI87p6FegtTpqhEp5ykWKGTL6t 6BsX+JWnkwjW5eAw X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220324_085741_419043_FFA0024F X-CRM114-Status: UNSURE ( 9.32 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Marcel Ziswiler Add SD1 sleep pinctrl to avoid backfeeding during sleep. Signed-off-by: Marcel Ziswiler --- .../boot/dts/freescale/imx8mm-verdin.dtsi | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi index 97dd7a00d63b..eafa88d980b3 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi @@ -757,10 +757,11 @@ &usdhc2 { bus-width = <4>; cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>; disable-wp; - pinctrl-names = "default", "state_100mhz", "state_200mhz"; + pinctrl-names = "default", "state_100mhz", "state_200mhz", "sleep"; pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_cd>; pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_cd>; pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_cd>; + pinctrl-3 = <&pinctrl_usdhc2_sleep>, <&pinctrl_usdhc2_cd_sleep>; vmmc-supply = <®_usdhc2_vmmc>; }; @@ -1174,6 +1175,11 @@ pinctrl_usdhc2_cd: usdhc2cdgrp { ; /* SODIMM 84 */ }; + pinctrl_usdhc2_cd_sleep: usdhc2cdslpgrp { + fsl,pins = + ; /* SODIMM 84 */ + }; + pinctrl_usdhc2_pwr_en: usdhc2pwrengrp { fsl,pins = ; /* SODIMM 76 */ @@ -1216,6 +1222,18 @@ pinctrl_usdhc2_200mhz: usdhc2-200mhzgrp { ; }; + /* Avoid backfeeding with removed card power */ + pinctrl_usdhc2_sleep: usdhc2slpgrp { + fsl,pins = + , + , + , + , + , + , + ; + }; + /* * On-module Wi-Fi/BT or type specific SDHC interface * (e.g. on X52 extension slot of Verdin Development Board)