From patchwork Mon Apr 11 15:22:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Krummenacher X-Patchwork-Id: 12809328 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 B8E79C433EF for ; Mon, 11 Apr 2022 15:26:20 +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=3Indtx7Gq3nu9hVMU1adh673XKDPM4dDmIQq1Mc/8IQ=; b=g6X70zCQH5zBIm kNJp4+wH+5hW02XhLP4CFoepX5cHcjlWNL0pdeX/sm88rzmi0wkUHaXE4G6UX1u523k0n3XkCDSwN W3SCvUrDj28ns4aj1jV/DN7OW/1TZm7H+w7FTtBPPHlk8vKBtuGv7Dw6vUqZxkqzrYZfkShQCaIH0 PWUOYXpbzL2D3xnbTm032RhHqXlIb2M1B48jVqa2tbTWcBqwN5o0PLAICksfWjBB2rXT7cb8APpPH NWTpRSaFTOEpWGBN9au4/IoJDH2wRMsrHdAsTqy5RkFc32MTp4tCxvNWNvu+CRxXb99ws1dw05eGR DFOX3180R9h8YhzuF8RQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ndvuU-009X9Y-7e; Mon, 11 Apr 2022 15:24:58 +0000 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ndvsZ-009W7p-Pe for linux-arm-kernel@lists.infradead.org; Mon, 11 Apr 2022 15:23:01 +0000 Received: by mail-wr1-x433.google.com with SMTP id r13so23528317wrr.9 for ; Mon, 11 Apr 2022 08:22:59 -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=VzoF0NzW809mCpL/YQGaNbrwhO30YcPreUZTtAfsVfo=; b=MSDwGxyt+JaxRCSLH+OWyCwcevK3/Gp33DZ/nv2pU7zStbg4A215tcVIWtb+0UxS6H YcF+2NoQ5+SEzpSrgCBWduk8B8cXz9NNJbZ34wlgxEcNTbYrBjRkpdU/kG2P9kysCERi JChZw6G3or5q3UVWaYLN6lok3RryyFUGUt6oY1hAY6OK4g4qtgv1FhFyQ+cy0z9arkuQ 7RngKOccF9rcL7WmAexMYazi2S//Gk+gU+RBvpuf066Ki52q2DJ/GKPaSX9IYEoB3WW7 yXa3+dpkeFvTINo/IUsJ1O8cOKLpXzKkVceXkvRHuL1oiCh1aUNA6uRXMSYjaS8GVg1t 74EQ== 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=VzoF0NzW809mCpL/YQGaNbrwhO30YcPreUZTtAfsVfo=; b=xIan4RjFC7Yi7rQAGqxRDQMldcmD096mn999OxiDGHXvKROxdIWE7oar5/mPe6dlaS lgP6YSyIRJYF/u7dVk8Jl0bsBI7qT+/KembkjNplbFiUvgEPso6xSPlPMJldTxwEImro 5b2TBRRDsWF+SQ2+xmfKNpZt9QaVmHoC1o0o/iBwDRFReCNOoe75U++qB8IULuH/b/42 oloZg7Q0fQdg3NqEuFMm/2oqEaRjON/gj6kGKtcMfFHNPs2BsXv99RcSNJEkFq2TmhBL bury/6iQ53L6VwgcWeT6B0w6abQa6TWez7XLJfebSn4QqTrx2EjP3XrEulm4et056wRU F3MQ== X-Gm-Message-State: AOAM530rMwMvxH6l5f5SgEAslfjm/66kHz4T79RiN9j22iYtsc5Ghw5d ASwbj+Wu8OZ/RRtTZajED7U= X-Google-Smtp-Source: ABdhPJxdq2S0YTjPnyM1ng+Zy5N32fYPlqP7RD+KGQd+AOjAeS1qHrT2n7BSGQyCSVMfd13ij5fAAA== X-Received: by 2002:adf:ee81:0:b0:206:1b32:d6f2 with SMTP id b1-20020adfee81000000b002061b32d6f2mr24755166wro.144.1649690578198; Mon, 11 Apr 2022 08:22:58 -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 a9-20020a7bc1c9000000b0038eb67e966esm5209374wmj.29.2022.04.11.08.22.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Apr 2022 08:22:57 -0700 (PDT) From: Max Krummenacher To: max.krummenacher@toradex.com Cc: Fabio Estevam , Krzysztof Kozlowski , 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 v2 11/14] ARM: dts: imx6dl-colibri: Add usdhc1 sleep pin configuration Date: Mon, 11 Apr 2022 17:22:31 +0200 Message-Id: <20220411152234.12678-12-max.oss.09@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220411152234.12678-1-max.oss.09@gmail.com> References: <20220411152234.12678-1-max.oss.09@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220411_082259_914733_5253637A X-CRM114-Status: GOOD ( 14.07 ) 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: Max Krummenacher 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 --- (no changes since v1) 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