Hello,
Is there an example of how configuring linux (device tree / kernel config) for S32G2 to use wkpu pins as standard IRQ?
Thanks.
Hi Guillaume Seuru
Hope you are doing well
There are no example for same, we are sorry for that. you can refer topic 23.3.3
Suspend to RAM with GPIO as Wakeup Source from Linux BSP 33.0 User Manual for S32G2 platforms.
let us know for more quarry
Regards ,
Tushar
Hi Guillaume Seuru,
I raised a ticket to our internal team about your issue and will update here you as soon as possible
Hi Tushar,
Did you have a feedback ?
Thanks.
Hi Guillaume Seuru
Below is response from our internal team
" The wkup pins are wire-ORed to generate a single interrupt to the GIC. The interrupt information for the s32g is in an excel attachment in the reference manual.
The wkpu interrupt is NVIC interrupt ID 213 and the device tree node should have the property:
interrupts = <GIC_SPI_213_IRQ_TYPE_type_active>;
type = RISING / LEVEL, active = HIGH / LEVEL Care needs to be taken to ensure that the wakeup function is masked for pins used as interrupts.
"
Regards ,
Tushar
Hi Tushar,
The only source code I found that manages the S32G wkpu peripheral is in TF-A.
The s32gen1_wkpu_enable_irqs function is used to enable IRQ for wkpu pins. But it seems to be called only when a platform suspend is requested from linux.
How and where can we configure wkpu to be used only for IRQ?
OK for GIC 213 in the linux device tree node, but which property to set for the wkpu pin number?
Thanks.
Hi
our team is working on it , thanks for patient. i will get back as soon as possible
Regards ,
Tushar