From patchwork Mon Oct 2 17:13:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Wolsieffer X-Patchwork-Id: 13406489 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 0F2E3E784B0 for ; Mon, 2 Oct 2023 17:14:43 +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=hW8VJvr1bALySg84m904IgNhpaoID39rOye9JgUmsLE=; b=c1JQTIur1F7Wk6 5H9ndraJJUBqXkQ8WKxdWMoIxjRYP+7+VHooJ7QCYUmqMmKyhOyE+k2iAQUDZtH+Uq7cGFpmmZYb6 RFesPKTssEi+aUv/xQIe1RkhPrBKr7uLe3K3p70ZKtgDAJKCfTR6qdfmLg6jRD3tTPmjmmwY6HgwW j8uEILSHZZwDEidKCnHB2IuL3XJiWjcE7Cj9xwCfALnRPoKDjWWmAhTvNTHRbS1CmVMB8u6jaNI0g JjX1BAzJp2U5J8u/LLRy857JRs3mqPLrOjKYa2GCnWhdXSYjRpWZfwJdRqUEUPnXqoI3R+/O0GyWs BudbuiXi2GTRjLaLIikQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qnMUq-00D874-2g; Mon, 02 Oct 2023 17:14:16 +0000 Received: from mail-vs1-xe35.google.com ([2607:f8b0:4864:20::e35]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qnMUo-00D84v-1X for linux-arm-kernel@lists.infradead.org; Mon, 02 Oct 2023 17:14:15 +0000 Received: by mail-vs1-xe35.google.com with SMTP id ada2fe7eead31-452b4fd977eso17643137.1 for ; Mon, 02 Oct 2023 10:14:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hefring-com.20230601.gappssmtp.com; s=20230601; t=1696266851; x=1696871651; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+Mtj4NCPRxZ6VOa3hAfKfXCzeZnGQjZkkPegFeXl3ak=; b=Ban1rxuqFh++nQzerPrvVC2GC+/plzsqQQLVuU4BVyiKa8x5OE5Ceo8h8oWrmOZ+hF nWhH3hKogie82qyiUjnsLY//DRiwWJdFVE5tKC0njyrW0nqPhfZeazDRNDFlDBRkIMhA GcaI/OgXlecXnfmba9RDkxYB+TkhYaX+GYAE62ATUCwBoTze8SR4CL2rWKKyIZQ59BJC 8a6/vLeOkVhkJACV0v5v4//n/QE0tqQ3SmV8TsuKPcJ0AmDgiBDFqsJBE7jlolz15Dz8 +MbHyB7rd3W1hAdgPam95giStBZ1HKaoW+faI/dYPglWGBR18j2XgQytPVmIvoGiXN5x 7a+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696266851; x=1696871651; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+Mtj4NCPRxZ6VOa3hAfKfXCzeZnGQjZkkPegFeXl3ak=; b=DYogAIK8befeJedOkzeEqAlx4aN8oo+NQWYufuQmoWDlHP9lFGKkUpolXesByE09m5 +K5fMVDHf739X9TxGPlercQDJTyZ4yLQnjz05dtDmATHdWVX+0bhceqjJpbAsGKZNhJ5 48w2jKMb1KN17PVzcDWGr9hWLb/LPDYbXHbcT+MIvDJIGTlvBoC0jyVF5gFAtjOUtCgc pIOwneV21O9CntC4o4fdmfLoC4yD8vC2km8s1ME/AwSFMXmkIUT+vD1YLMcKsnRkdUTe 9+F4diS+2c1XpVDsTv6s2dCNbgpwDGTwF6ePoeC3TEFCZKsRDo4jvu0zSLiCf/fvp1+x jgIQ== X-Gm-Message-State: AOJu0Yz5NVl9Y8eJHQXiVEu8rUYgx9iz0Zeojh7IkgRRJqpVhjbEnC5S btslkt71q7EmQo6qZwGpF3Spsg== X-Google-Smtp-Source: AGHT+IH3XNpYfmGvb7OL9Qkhu2zYZC2IvCPU6H6n+N4txNDekG4/DSCJW9S/TxcZ4yyvcTicsIFB7Q== X-Received: by 2002:a67:e8d0:0:b0:452:8717:1fa3 with SMTP id y16-20020a67e8d0000000b0045287171fa3mr10481368vsn.3.1696266850932; Mon, 02 Oct 2023 10:14:10 -0700 (PDT) Received: from localhost.localdomain ([50.212.55.89]) by smtp.gmail.com with ESMTPSA id dy52-20020a05620a60f400b007678973eaa1sm9132660qkb.127.2023.10.02.10.14.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 10:14:10 -0700 (PDT) From: Ben Wolsieffer To: linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Ben Wolsieffer Subject: [PATCH 1/2] ARM: dts: stm32: add stm32f7 SDIO sleep pins Date: Mon, 2 Oct 2023 13:13:38 -0400 Message-ID: <20231002171339.1594470-2-ben.wolsieffer@hefring.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231002171339.1594470-1-ben.wolsieffer@hefring.com> References: <20231002171339.1594470-1-ben.wolsieffer@hefring.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231002_101414_511735_4FBCC8FD X-CRM114-Status: GOOD ( 11.20 ) 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 Add SDIO sleep pin definitions that place the pins in analog mode to save power. Signed-off-by: Ben Wolsieffer --- arch/arm/boot/dts/st/stm32f7-pinctrl.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/st/stm32f7-pinctrl.dtsi b/arch/arm/boot/dts/st/stm32f7-pinctrl.dtsi index 9f65403295ca..26f91ca0d458 100644 --- a/arch/arm/boot/dts/st/stm32f7-pinctrl.dtsi +++ b/arch/arm/boot/dts/st/stm32f7-pinctrl.dtsi @@ -253,6 +253,17 @@ pins2 { }; }; + sdio_pins_sleep_a: sdio-pins-sleep-a-0 { + pins { + pinmux = , /* SDMMC1 D0 */ + , /* SDMMC1 D1 */ + , /* SDMMC1 D2 */ + , /* SDMMC1 D3 */ + , /* SDMMC1 CLK */ + ; /* SDMMC1 CMD */ + }; + }; + sdio_pins_b: sdio-pins-b-0 { pins { pinmux = , /* SDMMC2 D0 */ @@ -284,6 +295,17 @@ pins2 { }; }; + sdio_pins_sleep_b: sdio-pins-sleep-b-0 { + pins { + pinmux = , /* SDMMC2 D0 */ + , /* SDMMC2 D1 */ + , /* SDMMC2 D2 */ + , /* SDMMC2 D3 */ + , /* SDMMC2 CLK */ + ; /* SDMMC2 CMD */ + }; + }; + can1_pins_a: can1-0 { pins1 { pinmux = ; /* CAN1_TX */ From patchwork Mon Oct 2 17:13:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Wolsieffer X-Patchwork-Id: 13406488 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 DC289E784AB for ; Mon, 2 Oct 2023 17:14:40 +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=fea5Ifj3uCD5zKEkXNolgwXGkjyldnCp2OXElUNfrJE=; b=q3Z3Woha4m+eZM SXw9ygkUsDcJN9f7+GySBNlbIVf+utB2YDybmna4j/X9hzgi1pyQ5g7v6z4F+QSISlnN+aeDPfuH5 VFd8DVDG7JDcVkURuHLi9gdk1ZU8vqBljPE4XhkCqs7m0KrzRp/6I+jgV2ogOe1yeDrwxwnwVxH/2 d8ra4YXsB0pmgq4mB9ujdh1qCIsAJ+WmAa2QcD85nS46sHqQuNY8djspZRD6hfRKmYWmpAeEHbaut BipzzJXl/JEpi6Ofdybxp9o+oe8Uxn9nV95YyinjdFAWQmbIQIjqgTZfDR5Vzrfz4mA9Kauu+S0Gl ann+5lSzWTgxM3sE2/eA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qnMUr-00D87b-1G; Mon, 02 Oct 2023 17:14:17 +0000 Received: from mail-qk1-x72e.google.com ([2607:f8b0:4864:20::72e]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qnMUn-00D85P-2U for linux-arm-kernel@lists.infradead.org; Mon, 02 Oct 2023 17:14:16 +0000 Received: by mail-qk1-x72e.google.com with SMTP id af79cd13be357-77575233633so3023085a.0 for ; Mon, 02 Oct 2023 10:14:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hefring-com.20230601.gappssmtp.com; s=20230601; t=1696266852; x=1696871652; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=VNHPyhjdF/EgT+ErFOTgdy7sUGT7qrL3KrhKOabumMM=; b=Fy2hudCqmJwiSm9Z7ets+JcgnEG+uCSQt621gYk2HeBXvlfHSB7igfVZ2XDt+dTo04 cDdjIyhWQIMUOGnRqYNAjV4c33EeXrqhyOtv7iKbku2/1JNHXxC8LR2EH+a6mw2XQSj6 ZO9fpYT1oH9DSxUkTPh/89pnndSDCKKfJsIltZs8IgL+GVNevgC7HEDTGKJqufJednG2 ATKuTBQrOAtBp2fo0pJP1Tk4+BaDncnELCvJdZub8vjieia/Ww20trX4+EyCdlDlwq4s gN/Hbm7HWglirhLA15Kev+PH8367hbjPustKisCBLbv1h2F6WSGa9tdDQg2AxfjlIDej 8ulg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696266852; x=1696871652; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VNHPyhjdF/EgT+ErFOTgdy7sUGT7qrL3KrhKOabumMM=; b=qrKW8DgPzTrTBmVPZLrtILiUpA8B1CARdFFcBTcjfxUFYPsWZokCPZ+knwmupQ7PRC 4w8Fs+xeF0z8fiZYBWQB1Lb/3U/JUwy5axkP6um1EL5TrEz6VWRHMDGNTWbCmvYNOWhq l5rvtbyNUbJDsHWGK6CTZR9woXnYPwg+lXSXX3T8sLlJaa162TIWkikhoDDZ0Pilx2Bk gyG7+0m0TYekIr82k4VItIKH9M0WKT4M+cny7xVykM2jjzanW5sjsnVXwH/qbLVFeKl5 01wEt7m/igQy+/iGKhC4qd7eWbGomamhVr2j1/+K4aMF5fBtlQr6a9Z2+rwlIbd3Ct3b YQtA== X-Gm-Message-State: AOJu0YxLB/Yrv6otvD33Q+1a5XkfW9nvd6nUCixJu8vtnCV0A5eIO0Ze Q77TXIJIylYpqNrpMAyvhu26pw== X-Google-Smtp-Source: AGHT+IEWK9INZfqH54sojbPPQ04UX+zsKbgvbESo0CRSHjzA94kt7jBUvnzEPtI2+sJX7off71P2Fw== X-Received: by 2002:a05:620a:25ce:b0:76d:2f15:56a9 with SMTP id y14-20020a05620a25ce00b0076d2f1556a9mr12871693qko.31.1696266852065; Mon, 02 Oct 2023 10:14:12 -0700 (PDT) Received: from localhost.localdomain ([50.212.55.89]) by smtp.gmail.com with ESMTPSA id dy52-20020a05620a60f400b007678973eaa1sm9132660qkb.127.2023.10.02.10.14.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 10:14:11 -0700 (PDT) From: Ben Wolsieffer To: linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Ben Wolsieffer Subject: [PATCH 2/2] ARM: dts: stm32: add SDIO pinctrl sleep support on stm32f7 boards Date: Mon, 2 Oct 2023 13:13:39 -0400 Message-ID: <20231002171339.1594470-3-ben.wolsieffer@hefring.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231002171339.1594470-1-ben.wolsieffer@hefring.com> References: <20231002171339.1594470-1-ben.wolsieffer@hefring.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231002_101413_809932_502541AA X-CRM114-Status: GOOD ( 12.09 ) 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 Use the new analog mode SDIO pin definitions on the STM32F7 boards. Signed-off-by: Ben Wolsieffer --- arch/arm/boot/dts/st/stm32746g-eval.dts | 3 ++- arch/arm/boot/dts/st/stm32f746-disco.dts | 3 ++- arch/arm/boot/dts/st/stm32f769-disco.dts | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/st/stm32746g-eval.dts b/arch/arm/boot/dts/st/stm32746g-eval.dts index a293e65141c6..e9ac37b6eca0 100644 --- a/arch/arm/boot/dts/st/stm32746g-eval.dts +++ b/arch/arm/boot/dts/st/stm32746g-eval.dts @@ -188,9 +188,10 @@ &sdio1 { status = "okay"; vmmc-supply = <&mmc_vcard>; broken-cd; - pinctrl-names = "default", "opendrain"; + pinctrl-names = "default", "opendrain", "sleep"; pinctrl-0 = <&sdio_pins_a>; pinctrl-1 = <&sdio_pins_od_a>; + pinctrl-2 = <&sdio_pins_sleep_a>; bus-width = <4>; }; diff --git a/arch/arm/boot/dts/st/stm32f746-disco.dts b/arch/arm/boot/dts/st/stm32f746-disco.dts index c11616ed5fc6..b50461d676a7 100644 --- a/arch/arm/boot/dts/st/stm32f746-disco.dts +++ b/arch/arm/boot/dts/st/stm32f746-disco.dts @@ -103,9 +103,10 @@ &sdio1 { status = "okay"; vmmc-supply = <&mmc_vcard>; cd-gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; - pinctrl-names = "default", "opendrain"; + pinctrl-names = "default", "opendrain", "sleep"; pinctrl-0 = <&sdio_pins_a>; pinctrl-1 = <&sdio_pins_od_a>; + pinctrl-2 = <&sdio_pins_sleep_a>; bus-width = <4>; }; diff --git a/arch/arm/boot/dts/st/stm32f769-disco.dts b/arch/arm/boot/dts/st/stm32f769-disco.dts index b038d0ed39e8..5d12ae25b327 100644 --- a/arch/arm/boot/dts/st/stm32f769-disco.dts +++ b/arch/arm/boot/dts/st/stm32f769-disco.dts @@ -131,9 +131,10 @@ &sdio2 { vmmc-supply = <&mmc_vcard>; cd-gpios = <&gpioi 15 GPIO_ACTIVE_LOW>; broken-cd; - pinctrl-names = "default", "opendrain"; + pinctrl-names = "default", "opendrain", "sleep"; pinctrl-0 = <&sdio_pins_b>; pinctrl-1 = <&sdio_pins_od_b>; + pinctrl-2 = <&sdio_pins_sleep_b>; bus-width = <4>; };