Skip to content

Commit 6127264

Browse files
jurenatkartben
authored andcommitted
dts: stm32f4: Add wkup-pin node
For the F4 MCU family, a new DT node is defined to specify the pins capable of waking the chip. Signed-off-by: Tomáš Juřena <[email protected]>
1 parent d700943 commit 6127264

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

dts/arm/st/f4/stm32f4.dtsi

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <zephyr/dt-bindings/adc/stm32f4_adc.h>
1919
#include <zephyr/dt-bindings/reset/stm32f2_4_7_reset.h>
2020
#include <zephyr/dt-bindings/sensor/qdec_stm32.h>
21+
#include <zephyr/dt-bindings/power/stm32_pwr.h>
2122
#include <freq.h>
2223

2324
/ {
@@ -586,6 +587,22 @@
586587
};
587588
};
588589

590+
pwr: power@40007000 {
591+
compatible = "st,stm32-pwr";
592+
reg = <0x40007000 0x400>; /* PWR register bank */
593+
status = "disabled";
594+
595+
wkup-pins-nb = <1>;
596+
597+
#address-cells = <1>;
598+
#size-cells = <0>;
599+
600+
wkup-pin@1 {
601+
reg = <0x1>;
602+
wkup-gpios = <&gpioa 0 STM32_PWR_WKUP_PIN_NOT_MUXED>;
603+
};
604+
};
605+
589606
die_temp: dietemp {
590607
compatible = "st,stm32-temp-cal";
591608
ts-cal1-addr = <0x1FFF7A2C>;

0 commit comments

Comments
 (0)