cancel
Showing results for 
Search instead for 
Did you mean: 

Exit from standby

fpoussin
Associate III

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

1 ACCEPTED SOLUTION

Accepted Solutions
fpoussin
Associate III

The issue was the missing gpio-key (it's not documented...)

I've added it in the original post.

View solution in original post

3 REPLIES 3
fpoussin
Associate III

Any ideas?

fpoussin
Associate III

The issue was the missing gpio-key (it's not documented...)

I've added it in the original post.

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

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.