devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Antonio Borneo <antonio.borneo@foss.st.com>
To: Linus Walleij <linus.walleij@linaro.org>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Maxime Coquelin <mcoquelin.stm32@gmail.com>,
	Alexandre Torgue <alexandre.torgue@foss.st.com>,
	<linux-gpio@vger.kernel.org>, <devicetree@vger.kernel.org>,
	<linux-stm32@st-md-mailman.stormreply.com>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-kernel@vger.kernel.org>
Cc: "Antonio Borneo" <antonio.borneo@foss.st.com>,
	"Clément Le Goffic" <legoffic.clement@gmail.com>,
	"Amelie Delaunay" <amelie.delaunay@foss.st.com>,
	"Pascal Paillet" <p.paillet@foss.st.com>
Subject: [PATCH v2 14/15] arm64: dts: st: add pinctrl to usart2 on stm32mp215f-dk board
Date: Tue, 18 Nov 2025 17:19:35 +0100	[thread overview]
Message-ID: <20251118161936.1085477-15-antonio.borneo@foss.st.com> (raw)
In-Reply-To: <20251118161936.1085477-1-antonio.borneo@foss.st.com>

From: Amelie Delaunay <amelie.delaunay@foss.st.com>

Add the pinctrl properties to the existing node usart2 on the board
stm32mp215f-dk.
While there, add also the boot phase tags to usart2 node.

Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Signed-off-by: Antonio Borneo <antonio.borneo@foss.st.com>
---
 arch/arm64/boot/dts/st/stm32mp21-pinctrl.dtsi | 32 +++++++++++++++++++
 arch/arm64/boot/dts/st/stm32mp215f-dk.dts     | 17 ++++++++++
 2 files changed, 49 insertions(+)

diff --git a/arch/arm64/boot/dts/st/stm32mp21-pinctrl.dtsi b/arch/arm64/boot/dts/st/stm32mp21-pinctrl.dtsi
index 7e9b74f3d9d96..01d64a1f0760f 100644
--- a/arch/arm64/boot/dts/st/stm32mp21-pinctrl.dtsi
+++ b/arch/arm64/boot/dts/st/stm32mp21-pinctrl.dtsi
@@ -4,3 +4,35 @@
  * Author: Amelie Delaunay <amelie.delaunay@foss.st.com> for STMicroelectronics.
  */
 #include <dt-bindings/pinctrl/stm32-pinfunc.h>
+
+&pinctrl {
+	usart2_pins_a: usart2-0 {
+		pins1 {
+			pinmux = <STM32_PINMUX('A', 4, AF6)>; /* USART2_TX */
+			bias-disable;
+			drive-push-pull;
+			slew-rate = <0>;
+		};
+		pins2 {
+			pinmux = <STM32_PINMUX('A', 8, AF8)>; /* USART2_RX */
+			bias-disable;
+		};
+	};
+
+	usart2_idle_pins_a: usart2-idle-0 {
+		pins1 {
+			pinmux = <STM32_PINMUX('A', 4, ANALOG)>; /* USART2_TX */
+		};
+		pins2 {
+			pinmux = <STM32_PINMUX('A', 8, AF8)>; /* USART2_RX */
+			bias-disable;
+		};
+	};
+
+	usart2_sleep_pins_a: usart2-sleep-0 {
+		pins {
+			pinmux = <STM32_PINMUX('A', 4, ANALOG)>, /* USART2_TX */
+				 <STM32_PINMUX('A', 8, ANALOG)>; /* USART2_RX */
+		};
+	};
+};
diff --git a/arch/arm64/boot/dts/st/stm32mp215f-dk.dts b/arch/arm64/boot/dts/st/stm32mp215f-dk.dts
index 7bdaeaa5ab0fb..8571dcf427fc4 100644
--- a/arch/arm64/boot/dts/st/stm32mp215f-dk.dts
+++ b/arch/arm64/boot/dts/st/stm32mp215f-dk.dts
@@ -8,6 +8,8 @@
 
 #include "stm32mp215.dtsi"
 #include "stm32mp21xf.dtsi"
+#include "stm32mp21-pinctrl.dtsi"
+#include "stm32mp21xxan-pinctrl.dtsi"
 
 / {
 	model = "STMicroelectronics STM32MP215F-DK Discovery Board";
@@ -45,5 +47,20 @@ &arm_wdt {
 };
 
 &usart2 {
+	bootph-all;
+	pinctrl-names = "default", "idle", "sleep";
+	pinctrl-0 = <&usart2_pins_a>;
+	pinctrl-1 = <&usart2_idle_pins_a>;
+	pinctrl-2 = <&usart2_sleep_pins_a>;
 	status = "okay";
 };
+
+&usart2_pins_a {
+	bootph-all;
+	pins1 {
+		bootph-all;
+	};
+	pins2 {
+		bootph-all;
+	};
+};
-- 
2.34.1


  parent reply	other threads:[~2025-11-18 17:05 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-18 16:19 [PATCH v2 00/15] pinctrl: stm32: rework SoC package and add STM32MP21 Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 01/15] pinctrl: stm32: accept string value for property 'st,package' Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 02/15] dt-bindings: pinctrl: stm32: use strings for enum " Antonio Borneo
2025-11-19  7:27   ` Krzysztof Kozlowski
2025-11-19 14:16   ` Linus Walleij
2025-11-20  9:50     ` Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 03/15] arm: dts: stm32: update property 'st,package' to new bindings Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 04/15] arm64: dts: st: " Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 05/15] pinctrl: stm32: add new package to stm32mp257 pinctrl support Antonio Borneo
2025-11-20  4:25   ` kernel test robot
2025-11-18 16:19 ` [PATCH v2 06/15] dt-bindings: " Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 07/15] arm64: dts: st: add new package file for stm32mp25 pinctrl Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 08/15] pinctrl: stm32: add stm32mp215 pinctrl support Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 09/15] dt-bindings: pinctrl: stm32: support for stm32mp215 and additional packages Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 10/15] arm64: dts: st: introduce stm32mp21 pinctrl files Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 11/15] arm64: dts: st: add interrupt to optee node on stm32mp21 Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 12/15] arm64: dts: st: add exti1 and exti2 nodes " Antonio Borneo
2025-11-18 16:19 ` [PATCH v2 13/15] arm64: dts: st: add pinctrl " Antonio Borneo
2025-11-18 16:19 ` Antonio Borneo [this message]
2025-11-18 16:19 ` [PATCH v2 15/15] arm64: dts: st: add heartbeat LED on stm32mp215f-dk board Antonio Borneo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251118161936.1085477-15-antonio.borneo@foss.st.com \
    --to=antonio.borneo@foss.st.com \
    --cc=alexandre.torgue@foss.st.com \
    --cc=amelie.delaunay@foss.st.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=legoffic.clement@gmail.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-stm32@st-md-mailman.stormreply.com \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=p.paillet@foss.st.com \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).