Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21602 Discussions

Sopc2dts: How to specify multiple interrupts

Altera_Forum
Honored Contributor II
1,773 Views

How do I write my board description file (xml) to get this output in the dts: 

 

interrupts = <0 176 4>, <0 177 4>; 

 

The following code does not work, I get all values listed as: <0 176 4 0 177 4> 

<DTAppend name="interrupts" parentlabel="pmu"> 

<val type="number">0</val> 

<val type="number">176</val> 

<val type="number">4</val> 

<val type="number">0</val> 

<val type="number">177</val> 

<val type="number">4</val> 

</DTAppend> 

 

Thanks in advance!
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
666 Views

not very sure if you cascaded two interrupt is working, maybe you can try by single interrupt first?

0 Kudos
Altera_Forum
Honored Contributor II
666 Views

Actually, this works fine.  

I compiled a dts with comma separated elements to dtb and back to dts. The new dts had all values listed in a single element. Compiling that file gives the same dtb as above. 

Both formats are valid :-) 

 

Ps. Have seen a dts with even more interrupts listed
0 Kudos
Altera_Forum
Honored Contributor II
666 Views

good sharing.. thanks!

0 Kudos
Reply