Hello AKudr.1 (Community Member)
In fact IRQ EXTI from 55 to 60. are respectively connected to wkup pin 1 to 6. These wakeup pins are hardcoded. you can refer to the Datasheet they are respectively
wakeup-gpios = <&gpioa 0 GPIO_ACTIVE_HIGH>,
<&gpioa 2 GPIO_ACTIVE_HIGH>,
<&gpioc 13 GPIO_ACTIVE_HIGH>,
<&gpioi 8 GPIO_ACTIVE_HIGH>,
<&gpioi 11 GPIO_ACTIVE_HIGH>,
<&gpioc 1 GPIO_ACTIVE_HIGH>;
IRQ EXTI 55 corresponds to PA0, IRQ EXTI 56 to PA2, etc..
Therefore to use PI8 and PI11 you need to use respectively in your DT:
interrupts-extended = <&exti_pwr 58 IRQ_TYPE_EDGE_FALLING>;
interrupts-extended = <&exti_pwr 59 IRQ_TYPE_EDGE_FALLING>;
The corresponding driver need to use the IRQ EXTI. As an example driver you can use "gpio-keys"
/
...
test_wkup {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
autorepeat;
status = "okay";
button@4 {
label = "WakeUp4";
linux,code = <BTN_1>;
interrupts-extended = <&exti_pwr 58 IRQ_TYPE_EDGE_FALLING>;
status = "okay";
wakeup-source;
};
};
root@stm32mp1:~# cat /sys/kernel/debug/wakeup_sources
name active_count event_count wakeup_count expire_count e
test_wkup 5 5 0 0 0
10000000.m4 0 0 0 0 0
mmc1 0 0 0 0 0
mmc0 0 0 0 0 0
5c002000.i2c:stpmic@33:onkey 0 0 0 0
alarmtimer.0.auto 0 0 0 0 0
5c004000.rtc 0 0 0 0 0
deleted 0 0 0
Regards,
Olivier