From patchwork Mon Mar 14 16:29:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Krummenacher X-Patchwork-Id: 12780382 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 94622C433EF for ; Mon, 14 Mar 2022 16:33:49 +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=coEL7wrSG22YL36e1saoQyJV6y22V9OlWipzDOURPis=; b=MDF5h2WG3CJoGy X6a0LT6WBdL70dD4B7vfPUlWXMq8K1FnjiWOuuQT494w50S9TUdCbroMlzqYIzOzDuU9deTT/blBE 0PO4na35JS7iDPbbTV+ZsVIa7yLelZggaAu4j/wa1cjChy6tzCR33Kauzp49icONCemvPFYwoOiup oUBxjufPa4BltMvX2jZobi4+4T26lcKZ2ZKwr4koUwuXraVOuPAwDFeWx7F57jTvqjM+ZlJ1fuoIl VzaxThKe+Wz1YPX7j479wGT1+9VkfJ+7FaBLLiwH1ACdi0aDW6/TeltQHhv5pXwl0RNv6ouC1uAp0 JaKWBdM6n3BXcVwj3Lug==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nTncH-0061uC-OH; Mon, 14 Mar 2022 16:32:18 +0000 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nTnaU-00613h-FB for linux-arm-kernel@lists.infradead.org; Mon, 14 Mar 2022 16:30:27 +0000 Received: by mail-wm1-x32c.google.com with SMTP id r64so1929959wmr.4 for ; Mon, 14 Mar 2022 09:30:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=f7sn1A5Ozuehi07ptHlZt0U+bEDDAJG/k0sZ11rW7VA=; b=ha9K5e4RMjA2n83eAlkQwmiyQ03oTOZ/G3gMHrfi2TfD1gKrUnT5eKplz1j6yObapK DHmPHgxuQjt/F31S4IVQKmqLgVeZS24rBLwyHoo8lEwLq+KoA3lNb0Jtdtnge7JGj53c 6KgBArpuvS4plBKuUJe5Y2DK5BcjywzF2qdsyaXYTO6nweZPKLqvXyi8StpPiOmwxvJG xQdNv3gpfS+y9Qy2+PjGPFwun2WVahwTTxSkdcj03KKRHC/PXS0sy4fep/XEN0M6ZdcE ZeYivgqdlI7bQqg3ZO0r1/o8Op8RqVhcKBHIS2yKCOHbLeBmyNhaJNZIUmOBDzl9u7ml R40g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=f7sn1A5Ozuehi07ptHlZt0U+bEDDAJG/k0sZ11rW7VA=; b=2IbMW7ZMrIVXMnVTMbi19DaR8eNdj+iCBwqI7q9V4A65QYzwRYEuu2g9cBAH2xBl2M ty4EsUc9uornJ6DtMqzz1nFlyVDzZhYpzZIO7qFCffezn/xFjfGNvFezs5cMCffChdtQ Fe5a8x8GNOGYqNctfUDyUayUShN6jNKL3dTpfOnE1rUDHgd1lhwmZU/QO/vn6rxMTDO9 K7uk1DfI9qwAstLxOXRtVz6ip8qq2VfS+tU2BvshK/VxUxOue9DVRooNLqlW3GoThjHO vEm+D4BUROBq3/Qg+8dS+xK+X4CXK6dvT7tfTzvs1Z2mWI3qz98sVjis5EooYEsPb8dk +UQA== X-Gm-Message-State: AOAM5304pSgc5ttZ6sMmN6B0zKftmLppvREIrqtYP+ZfKt+hyu3bywDU E7SnmUV55qc/yWriCyRzWz8= X-Google-Smtp-Source: ABdhPJwAV+cOtsNQjo0fNzZI0Hh6k7GzMgJkaVZJ4u03DN68L7VD0Mif6uOiiq0bdwnCSpGEpt6vFA== X-Received: by 2002:a05:600c:4fd0:b0:389:dfc0:445e with SMTP id o16-20020a05600c4fd000b00389dfc0445emr39198wmq.68.1647275425218; Mon, 14 Mar 2022 09:30:25 -0700 (PDT) Received: from linuxdev2.toradex.int (31-10-206-124.static.upc.ch. [31.10.206.124]) by smtp.gmail.com with ESMTPSA id w10-20020a5d680a000000b001f1dabec837sm13476817wru.113.2022.03.14.09.30.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Mar 2022 09:30:24 -0700 (PDT) From: Max Krummenacher X-Google-Original-From: Max Krummenacher To: max.krummenacher@toradex.com Cc: Fabio Estevam , NXP Linux Team , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 11/14] ARM: dts: imx6dl-colibri: Add usdhc1 sleep pin configuration Date: Mon, 14 Mar 2022 17:29:55 +0100 Message-Id: <20220314162958.40361-12-max.krummenacher@toradex.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220314162958.40361-1-max.krummenacher@toradex.com> References: <20220314162958.40361-1-max.krummenacher@toradex.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220314_093026_565323_2F99A49A X-CRM114-Status: GOOD ( 13.36 ) 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 The Toradex board Iris V2 has a SD-card slot with switchable power. Add a pinctrl sleep used when the card power is off to avoid backfeeding to the card and add the "sleep" pinctrl to the usdhc1 controller. Signed-off-by: Max Krummenacher --- arch/arm/boot/dts/imx6qdl-colibri.dtsi | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6qdl-colibri.dtsi b/arch/arm/boot/dts/imx6qdl-colibri.dtsi index 1c3c34bbfe98..c383e0e4110c 100644 --- a/arch/arm/boot/dts/imx6qdl-colibri.dtsi +++ b/arch/arm/boot/dts/imx6qdl-colibri.dtsi @@ -680,10 +680,11 @@ bus-width = <4>; no-1-8-v; disable-wp; - pinctrl-names = "default", "state_100mhz", "state_200mhz"; + pinctrl-names = "default", "state_100mhz", "state_200mhz", "sleep"; pinctrl-0 = <&pinctrl_usdhc1 &pinctrl_mmc_cd>; pinctrl-1 = <&pinctrl_usdhc1_100mhz &pinctrl_mmc_cd>; pinctrl-2 = <&pinctrl_usdhc1_200mhz &pinctrl_mmc_cd>; + pinctrl-3 = <&pinctrl_usdhc1_sleep &pinctrl_mmc_cd_sleep>; vmmc-supply = <®_module_3v3>; vqmmc-supply = <&vgen3_reg>; status = "disabled"; @@ -951,6 +952,12 @@ >; }; + pinctrl_mmc_cd_sleep: mmccdslpgrp { + fsl,pins = < + MX6QDL_PAD_NANDF_D5__GPIO2_IO05 0x0 + >; + }; + pinctrl_pwm1: pwm1grp { fsl,pins = < MX6QDL_PAD_GPIO_9__PWM1_OUT 0x1b0b1 @@ -1097,6 +1104,18 @@ >; }; + /* avoid backfeeding with removed card power */ + pinctrl_usdhc1_sleep: usdhc1sleepgrp { + fsl,pins = < + MX6QDL_PAD_SD1_CMD__SD1_CMD 0x3000 + MX6QDL_PAD_SD1_CLK__SD1_CLK 0x3000 + MX6QDL_PAD_SD1_DAT0__SD1_DATA0 0x3000 + MX6QDL_PAD_SD1_DAT1__SD1_DATA1 0x3000 + MX6QDL_PAD_SD1_DAT2__SD1_DATA2 0x3000 + MX6QDL_PAD_SD1_DAT3__SD1_DATA3 0x3000 + >; + }; + pinctrl_usdhc3: usdhc3grp { fsl,pins = < MX6QDL_PAD_SD3_CMD__SD3_CMD 0x17059