2021-10-19 10:55 AM
EDIT: Found the solution, read for implementation
I'm trying to get the MPU to exit from standby.
PWR_ON goes to 0 as expected on shutdown, so far so good.
I'm using PA2 (WKUP2) but it's not working at all...
Is there anything special to setup in the device tree?
I am using discrete power supplies as instructed in the app notes. (PWR_ON to enable pins)
Here's my dts config for TF-A
&pwr_regulators{
status = "okay";
secure-status = "okay";
/* USER CODE BEGIN pwr_regulators */
system_suspend_supported_soc_modes = <
STM32_PM_CSLEEP_RUN
STM32_PM_CSTOP_ALLOW_LP_STOP
STM32_PM_CSTOP_ALLOW_STANDBY_DDR_SR
>;
system_off_soc_mode = <STM32_PM_CSTOP_ALLOW_STANDBY_DDR_OFF>;
/* USER CODE END pwr_regulators */
};Linux config part
wkup {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
autorepeat;
status = "okay";
button@2 {
label = "WakeUp2";
linux,code = <BTN_1>;
interrupts-extended = <&exti_pwr 56 IRQ_TYPE_EDGE_RISING>; // PA2
status = "okay";
wakeup-source;
};
};Thank you
Solved! Go to Solution.
2021-10-26 7:51 AM
The issue was the missing gpio-key (it's not documented...)
I've added it in the original post.
2021-10-25 3:17 AM
Any ideas?
2021-10-26 7:51 AM
The issue was the missing gpio-key (it's not documented...)
I've added it in the original post.
2021-10-27 12:42 AM
Hi @fpoussin ,
Well catch ! We will work to enhance documentation related to Wake Up.
For next time, please avoid using edit of original post and provide solution in comment.
Thx
Olivier
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.