Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp124547lqb; Tue, 4 Jun 2024 07:02:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXhJBdVS1yRj8V/1Cwge5kTCBc99JklxTidsI6YIZeUBRcMQrehuZbbsLg/yjp3TQNbauWP7rR/UBE7vFJi3nY7lukxOzczwfmJco+Hnw== X-Google-Smtp-Source: AGHT+IEwLp7fTzCfath1oL05ir9ezSvfJoW1LEN5MGMMg3m3l+hGfX9IoUURPDzKFOhAWFwjmfpr X-Received: by 2002:a05:620a:9c6:b0:794:ee2e:c8ff with SMTP id af79cd13be357-794f5ccc820mr1311268685a.49.1717509721750; Tue, 04 Jun 2024 07:02:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717509721; cv=pass; d=google.com; s=arc-20160816; b=0hlZoe0kmynvL1xdNunONULfTdCkziUM3InyblFENv/ioMZHAD3z7ZBHpm1LQ8j+a+ 3vA8vNRcozI1OcIOVocmxxTkwTXg0V2xY46Xd3IIUNHkBczfTa6DGBMaTLIm7qEm8CJd /vRXgaQ7w5dUzqn+awQls47I22cH0uRiZ6cviA1vqD9n78jS4fTEBOf0/F2Xlgr2gjGX wlbVzqieYLTpts/EDOxBYNLihPdkkLYVemoGO3bVocRCUllJVdkULnuopLmmEcJ6rgO5 cpDP3jqz0RyTiu+q8D8Z2QJsHbncXmbPf4d20Opo5IYP7Gqir4A1q/kZ7tIVWjA1woKz mkPQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=ZO15/c99cng8KmrOPr9zGDcDFT92RnO2PgwISrWnIa4=; fh=4ICNKVo7MCS2eINXXAwpfYBKsrgFJPIS5gOBUknEPts=; b=qZyrASQlo7xjBhrg3726tsZqcq0lG7dQibrjmVoOqoFA09KswF9d3tMe5UT2/bmv9E PgPg70uCpP1op2RuiLAUwb+Os1Je8/xCGoefKL38OLC4m+7qGMdlH5VSm3z7lazqfC/W 0l3oQgDd0RVn/GtipcsbRbgvm/pQAJJIgJfPyKlv85wFYfxc6bbPUezwBEqD+RNDoZkw 4Hb9ZTUm4pTfItjNe898CBStHKvgTNrb5NIOFK6uG1679pZlBZhpOvDrtCZV6Z1ck+C9 cQs/XnoTejHV4IXRt6hAtaDqkapBUh4FtoOfcpFE5XWEa36bG1OUWEhdMMNXYWM8+1Rb JcrA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aphoHj1i; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-200770-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200770-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-794f3063206si1202339485a.379.2024.06.04.07.02.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 07:02:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200770-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aphoHj1i; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-200770-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200770-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 79C2D1C21C56 for ; Tue, 4 Jun 2024 14:02:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 928751442F0; Tue, 4 Jun 2024 14:00:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="aphoHj1i" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B43F9143C6D; Tue, 4 Jun 2024 14:00:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717509616; cv=none; b=uYBV1ti7gJJOfbqSoaX5GfhKjv9P3CfaKqsWda/vwTUuyULW8tpdauJvTV2aao4lrwjdwLNEMNvHijddlwdWTZu7vM0JDHJg7XxatEp21rDVqBQrxLf+bJUY5LIWnJOaEMcvgzlkEFr9DajlsWI3WFjzUIdtafFOg8kbzsmlwUg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717509616; c=relaxed/simple; bh=rFDucDznyAp9KdW6DmpqQ16mThJdgkTuPLsOXBQR5oo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=p9s4CZsSs3sy1b9eIY9ohOF3q7mElfFtjLlHPJtroW+z/cIJlzi0m6SA5/3Xk9uFv3yO3uWmE9eh4z5pe3RZPAfvzmVOqEVE0PPgz6uvFIp6HnHeINC9w0s/5rtGZ2+0XYKWg3UkAV/RoipbjTGHI7dx14jSrTIBwQxkJp0gQFM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=aphoHj1i; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 95D78C4AF09; Tue, 4 Jun 2024 14:00:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717509616; bh=rFDucDznyAp9KdW6DmpqQ16mThJdgkTuPLsOXBQR5oo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aphoHj1iBTcKQXKi3MxhatfTqitW3ZHgLOzyXkL3OgeTdWQNWhyfMdxW0Ozdhiy9C YwpUG9zWnVCBUllJExAftLctkpA7S4RfNL2B0yS38axBmxvOHl+EjIlHApG/Q/XoWF mhB4lDj22qWlJFtgjydgQvhIVZ/XDVa3ruenQPDberDElA8J+iNPJf1LXnI4S3h6ss tMqqif91QcvwQrzjeAvyTf3bOqyT5VypHgfAHvbu5V6MuxZBeuE+7aq33ehZVW9Ul1 ifm0plRpKbhDlSxzQ+9Q+vqbOphN2+DnK249Je9eIRlWo0uS5EYp81r73wRAHcsTUb XRvWKXiJzRXIQ== From: Michael Walle To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Li Yang Cc: Pengutronix Kernel Team , Fabio Estevam , Priit Laes , Michael Grzeschik , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Michael Walle Subject: [PATCH 08/10] ARM: dts: imx6qdl-kontron-samx6i: add SDIO_PWR_EN support Date: Tue, 4 Jun 2024 15:59:32 +0200 Message-Id: <20240604135934.1951189-9-mwalle@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240604135934.1951189-1-mwalle@kernel.org> References: <20240604135934.1951189-1-mwalle@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The module can enable/disable the SD card power supply and has it's dedicated pin SDIO_PWR_EN for that reason. This is esp. useful to be able to reset the SD card if it was in an UHS mode. Signed-off-by: Michael Walle --- .../dts/nxp/imx/imx6qdl-kontron-samx6i.dtsi | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/nxp/imx/imx6qdl-kontron-samx6i.dtsi b/arch/arm/boot/dts/nxp/imx/imx6qdl-kontron-samx6i.dtsi index 4d3cd338a707..d36743e47552 100644 --- a/arch/arm/boot/dts/nxp/imx/imx6qdl-kontron-samx6i.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx6qdl-kontron-samx6i.dtsi @@ -61,6 +61,18 @@ reg_3p3v_s5: regulator-3p3v-s5 { vin-supply = <®_smarc_suppy>; }; + reg_sdio: regulator-sdio { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_reg_sdio>; + regulator-name = "V_3V3_SD"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&gpio1 29 GPIO_ACTIVE_HIGH>; + off-on-delay-us = <20000>; + enable-active-high; + }; + reg_smarc_lcdbklt: regulator-smarc-lcdbklt { compatible = "regulator-fixed"; pinctrl-names = "default"; @@ -640,6 +652,12 @@ MX6QDL_PAD_SD1_CMD__PWM4_OUT 0x1b0b1 >; }; + pinctrl_reg_sdio: reg-sdiogrp { + fsl,pins = < + MX6QDL_PAD_ENET_TXD1__GPIO1_IO29 0x1b0b0 /* SDIO_PWR_EN */ + >; + }; + pinctrl_uart1: uart1grp { fsl,pins = < MX6QDL_PAD_CSI0_DAT11__UART1_RX_DATA 0x1b0b1 @@ -692,7 +710,6 @@ MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17059 MX6QDL_PAD_NANDF_CS1__GPIO6_IO14 0x1b0b0 /* CD */ MX6QDL_PAD_ENET_RXD1__GPIO1_IO26 0x1b0b0 /* WP */ - MX6QDL_PAD_ENET_TXD1__GPIO1_IO29 0x1b0b0 /* PWR_EN */ >; }; @@ -795,6 +812,7 @@ &usdhc3 { pinctrl-0 = <&pinctrl_usdhc3>; cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>; wp-gpios = <&gpio1 26 GPIO_ACTIVE_HIGH>; + vmmc-supply = <®_sdio>; no-1-8-v; }; -- 2.39.2