Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dts: arm: st: stm32l4xx serie has 5 wakeup pins
Browse files Browse the repository at this point in the history
Add the wakeUp pins selection on its GPIO
for all the stm32l4xx devices
Change if needed (see the corresponding datasheet/RefMan)

Signed-off-by: Francois Ramu <[email protected]>
FRASTM committed Oct 23, 2024
1 parent 00f9bfb commit ab4cf24
Showing 4 changed files with 33 additions and 22 deletions.
23 changes: 23 additions & 0 deletions dts/arm/st/l4/stm32l4.dtsi
Original file line number Diff line number Diff line change
@@ -558,3 +558,26 @@
&nvic {
arm,num-irq-priority-bits = <4>;
};

/* Define by default the wkup pins for all the stm32L4. Adapt if needed. */
&pwr {
wkup-pin@1 {
wkup-gpios = <&gpioa 0 STM32_PWR_WKUP_PIN_SRC_0>;
};

wkup-pin@2 {
wkup-gpios = <&gpioc 13 STM32_PWR_WKUP_PIN_SRC_0>;
};

wkup-pin@3 {
wkup-gpios = <&gpioe 6 STM32_PWR_WKUP_PIN_SRC_0>;
};

wkup-pin@4 {
wkup-gpios = <&gpioa 2 STM32_PWR_WKUP_PIN_SRC_0>;
};

wkup-pin@5 {
wkup-gpios = <&gpioc 5 STM32_PWR_WKUP_PIN_SRC_0>;
};
};
4 changes: 4 additions & 0 deletions dts/arm/st/l4/stm32l412.dtsi
Original file line number Diff line number Diff line change
@@ -85,3 +85,7 @@
status = "disabled";
};
};

&pwr {
/delete-node/ wkup-pin@3;
};
6 changes: 6 additions & 0 deletions dts/arm/st/l4/stm32l432.dtsi
Original file line number Diff line number Diff line change
@@ -96,3 +96,9 @@
#phy-cells = <0>;
};
};

&pwr {
/delete-node/ wkup-pin@2;
/delete-node/ wkup-pin@3;
/delete-node/ wkup-pin@5;
};
22 changes: 0 additions & 22 deletions dts/arm/st/l4/stm32l4r5Xi.dtsi
Original file line number Diff line number Diff line change
@@ -17,25 +17,3 @@
};
};
};

&pwr {
wkup-pin@1 {
wkup-gpios = <&gpioa 0 STM32_PWR_WKUP_PIN_SRC_0>;
};

wkup-pin@2 {
wkup-gpios = <&gpioc 13 STM32_PWR_WKUP_PIN_SRC_0>;
};

wkup-pin@3 {
wkup-gpios = <&gpioe 6 STM32_PWR_WKUP_PIN_SRC_0>;
};

wkup-pin@4 {
wkup-gpios = <&gpioa 2 STM32_PWR_WKUP_PIN_SRC_0>;
};

wkup-pin@5 {
wkup-gpios = <&gpioc 5 STM32_PWR_WKUP_PIN_SRC_0>;
};
};

0 comments on commit ab4cf24

Please sign in to comment.