Skip to contentSkip to conversation

STM32 update uart4 pin configuration for low power

PATCH In review Erwan Le Ray 2 participants 5 messages May 28, 2020 – Jun 15, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover STM32 update uart4 pin configuration for low power

Update uart4 pin configuration for low power in pinctrl, and for ed/ev and dkx boards.

Erwan Le Ray (3):
ARM: dts: stm32: update uart4 pin configuration for low power on

    stm32mp157

ARM: dts: stm32: Update pin states for uart4 on stm32mp157c-ed1
ARM: dts: stm32: Update UART4 pin states on stm32mp15xx-dkx

 arch/arm/boot/dts/stm32mp15-pinctrl.dtsi | 17 +++++++++++++++++
 arch/arm/boot/dts/stm32mp157c-ed1.dts    |  4 +++-
 arch/arm/boot/dts/stm32mp15xx-dkx.dtsi   |  4 +++-
 3 files changed, 23 insertions(+), 2 deletions(-)
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/3 ARM: dts: stm32: update uart4 pin configuration for low power on stm32mp157

Sleep pin configuration is refined for low power modes:
- "sleep" (no wakeup & console suspend enabled): put pins in analog state to optimize power
- "idle" (wakeup capability): keep Rx pin in alternate function

arch/arm/boot/dts/stm32mp15-pinctrl.dtsi +17 -0
index 7eb858732d6d..7cf535dc05f5 100644
@@ -1648,6 +1648,23 @@
 		};
 	};
 
+	uart4_idle_pins_a: uart4-idle-0 {
+		   pins1 {
+			 pinmux = <STM32_PINMUX('G', 11, ANALOG)>; /* UART4_TX */
+		   };
+		   pins2 {
+			 pinmux = <STM32_PINMUX('B', 2, AF8)>; /* UART4_RX */
+			 bias-disable;
+		   };
+	};
+
+	uart4_sleep_pins_a: uart4-sleep-0 {
+		   pins {
+			pinmux = <STM32_PINMUX('G', 11, ANALOG)>, /* UART4_TX */
+				 <STM32_PINMUX('B', 2, ANALOG)>; /* UART4_RX */
+		    };
+	};
+
 	uart4_pins_b: uart4-1 {
 		pins1 {
 			pinmux = <STM32_PINMUX('D', 1, AF8)>; /* UART4_TX */
Signature · 1 line
2.17.1
#2 lore raw

PATCH 2/3 ARM: dts: stm32: Update pin states for uart4 on stm32mp157c-ed1

In reply to Erwan Le Ray

Add sleep and idle states to uart4 pin configuration.

arch/arm/boot/dts/stm32mp157c-ed1.dts +3 -1
index 32ccd50b4144..ca109dc18238 100644
@@ -353,8 +353,10 @@
 };
 
 &uart4 {
-	pinctrl-names = "default";
+	pinctrl-names = "default", "sleep", "idle";
 	pinctrl-0 = <&uart4_pins_a>;
+	pinctrl-1 = <&uart4_sleep_pins_a>;
+	pinctrl-2 = <&uart4_idle_pins_a>;
 	status = "okay";
 };
 
Signature · 1 line
2.17.1
#3 lore raw

PATCH 3/3 ARM: dts: stm32: Update UART4 pin states on stm32mp15xx-dkx

In reply to Erwan Le Ray

Add sleep and idle states to uart4 pin configuration.

arch/arm/boot/dts/stm32mp15xx-dkx.dtsi +3 -1
index 70db923a45f7..e5fdbc149bf4 100644
@@ -584,8 +584,10 @@
 };
 
 &uart4 {
-	pinctrl-names = "default";
+	pinctrl-names = "default", "sleep", "idle";
 	pinctrl-0 = <&uart4_pins_a>;
+	pinctrl-1 = <&uart4_sleep_pins_a>;
+	pinctrl-2 = <&uart4_idle_pins_a>;
 	status = "okay";
 };
 
Signature · 1 line
2.17.1
#4 lore raw
In reply to Erwan Le Ray

Hi Erwan

Quoted 5 lines · Erwan Le Ray

Update uart4 pin configuration for low power in pinctrl, and for ed/ev and dkx boards.

Erwan Le Ray (3):
ARM: dts: stm32: update uart4 pin configuration for low power on

Quoted 9 lines
     stm32mp157

ARM: dts: stm32: Update pin states for uart4 on stm32mp157c-ed1
ARM: dts: stm32: Update UART4 pin states on stm32mp15xx-dkx

  arch/arm/boot/dts/stm32mp15-pinctrl.dtsi | 17 +++++++++++++++++
  arch/arm/boot/dts/stm32mp157c-ed1.dts    |  4 +++-
  arch/arm/boot/dts/stm32mp15xx-dkx.dtsi   |  4 +++-
  3 files changed, 23 insertions(+), 2 deletions(-)

Series applied on stm32-next.

Regards
Alex

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel