About GPIO interrupt issues

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

About GPIO interrupt issues

1,603 Views
435761040
Contributor II

I am having a problem with a GPIO interrupt configuration.
I used the MCP2515 to do the extended CAN of the S32V234. Now I can find the MCP2515 device in the system, but when I start CAN,
Ip link set can0 up type can bitrate 500000

Report the following error

Root@s32v234sbc:~# ip link set can0 up type can bitrate 500000
[ 43.275115] genirq: Setting trigger mode 2 for irq 117 failed (gic_set_type+0x0/0x48)
[ 43.284214] mcp251x spi0.0: failed to acquire irq 117
[43.290157] A link change request failed with some changes committed already. Interface can0 may have been left with an inconsistent configuration, please check.
RTNETLINK answers: Invalid argument

There should be a problem with the GPIO interrupt set for the MCP2515.
The GPIO interrupt pin assigned to the MCP2515 on the hardware is GPIO15. How do I match it in the configuration? Need a corresponding GIC interrupt?

The current configuration is

Interrupts = <0 15 0x2>;

20181206160049.png

The above picture is the pin definition I found, this is a multiplexed pin. I also tried 605 but still the same result.

Can anyone tell me how the S32V234SBC interrupt configuration is paired?

0 Kudos
1 Reply

1,224 Views
435761040
Contributor II

I can't see my interrupt pin

root@s32v234sbc:~# cat /proc/interrupts
CPU0 CPU1 CPU2 CPU3
3: 51423 11671 2490 4129 GIC 27 Edge arch_timer
10: 272 0 0 0 GIC 40 Level edma-tx_0-15
11: 9 0 0 0 GIC 41 Level edma-tx_16-31
12: 0 0 0 0 GIC 42 Level edma-err
17: 0 0 0 0 GIC 67 Level 40032000.ethernet
18: 0 0 0 0 GIC 68 Level 40032000.ethernet
19: 0 0 0 0 GIC 69 Level 40032000.ethernet
20: 14859 0 0 0 GIC 70 Level 40032000.ethernet
22: 687 0 0 0 GIC 99 Level 40051000.i2c
25: 2 0 0 0 GIC 93 Level 40057000.spi
26: 5400 0 0 0 GIC 60 Level mmc0
28: 0 0 0 0 GIC 127 Level 2d-ace
31: 0 0 0 0 GIC 71 Level 4004d000.adc
40: 0 0 0 0 GIC 100 Level 400b8000.i2c
41: 47 0 0 0 GIC 101 Level 400ba000.i2c
44: 2 0 0 0 GIC 94 Level 400c0000.spi
45: 0 0 0 0 GIC 96 Level 400c2000.spi
IPI0: 1403 5550 1000 1088 Rescheduling interrupts
IPI1: 42 29 63 58 Function call interrupts
IPI2: 0 0 0 0 CPU stop interrupts
IPI3: 0 0 0 0 Timer broadcast interrupts
IPI4: 1 0 0 0 IRQ work interrupts

0 Kudos