S32G2 wkpu/irq linux configuration

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32G2 wkpu/irq linux configuration

1,827 Views
gse31
Contributor III

Hello,

Is there an example of how configuring linux (device tree / kernel config) for S32G2 to use wkpu pins as standard IRQ?

Thanks.

Tags (1)
0 Kudos
Reply
7 Replies

1,792 Views
nxf92355
NXP Employee
NXP Employee

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

0 Kudos
Reply

1,757 Views
gse31
Contributor III
Hi Tushar,
In your example, wkpu pins are configured by TF-A and linux does not use these pins.
We have a S32G2 custom board with 11 wkpu pins used as IRQ and they have to be managed by linux.
How to reference a wkpu pin as an interrupt source for a device node in the linux device tree?
Could you give me guidelines to achieve this ?
Thanks.
0 Kudos
Reply

1,284 Views
nxf92355
NXP Employee
NXP Employee

Hi Guillaume Seuru,

I raised a ticket to our internal team about your issue and will update here you as soon as possible

 

0 Kudos
Reply

1,137 Views
gse31
Contributor III

Hi Tushar,

Did you have a feedback ?

Thanks.

0 Kudos
Reply

1,129 Views
nxf92355
NXP Employee
NXP Employee

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

0 Kudos
Reply

1,108 Views
gse31
Contributor III

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.

0 Kudos
Reply

1,047 Views
nxf92355
NXP Employee
NXP Employee

Hi

our team is working on it , thanks for patient. i will get back as soon as possible

Regards ,

Tushar

0 Kudos
Reply