Jump to content
  • 0

Interrupt number in dts


xiaodongplayer

Question

2 answers to this question

Recommended Posts

Posted

Hi,

for assign one interrupt use this formula (subtract 32 to the value of the interrupt)

Interrupt in linux "61":

IRQ_F2P[15:0] == [91:84],[68:61] ==> 61 - 32 = 29

Value on DTS:

 interrupts = <0 29 4>;

Once started linux can check assignment with this command:

cat /proc/interrupts

From previous example:

           CPU0       CPU1
 27:          0          0       GIC  27  gt
 29:      10547      21880       GIC  29  twd
 35:          0          0       GIC  35  f800c000.ps7-ocmc
 39:         43          0       GIC  39  f8007100.ps7-xadc
 40:          0          0       GIC  40  f8007000.ps7-dev-cfg
 41:          0          0       GIC  41  f8005000.ps7-watchdog
 43:          0          0       GIC  43  ttc_clockevent
 45:          0          0       GIC  45  f8003000.ps7-dma
 46:          0          0       GIC  46  f8003000.ps7-dma
 47:          0          0       GIC  47  f8003000.ps7-dma
 48:          0          0       GIC  48  f8003000.ps7-dma
 49:          0          0       GIC  49  f8003000.ps7-dma
 51:          0          0       GIC  51  e000d000.ps7-qspi
 53:          0          0       GIC  53  ehci_hcd:usb1
 54:       3922          0       GIC  54  eth0
 56:       5259          0       GIC  56  mmc0
 57:       2368          0       GIC  57  cdns-i2c
 61:          0          0       GIC  61  xilinx-dma-controller			<<<<<< Example "61"
 62:          0          0       GIC  62  xilinx-dma-controller
 63:          0          0       GIC  63  xilinx-dma-controller
 72:          0          0       GIC  72  f8003000.ps7-dma
 73:          0          0       GIC  73  f8003000.ps7-dma
 74:          0          0       GIC  74  f8003000.ps7-dma
 75:          0          0       GIC  75  f8003000.ps7-dma
 82:         41          0       GIC  82  xuartps
IPI1:         0          0       Timer broadcast interrupts
IPI2:      3534       4487       Rescheduling interrupts
IPI3:         0          0       Function call interrupts
IPI4:        27         41       Single function call interrupts
IPI5:         0          0       CPU stop interrupts
IPI6:         1          0       IRQ work interrupts
IPI7:         0          0       completion interrupts

debugasm

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...