Linux device tree interrupt IDs

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Linux device tree interrupt IDs

跳至解决方案
2,550 次查看
jasonhendrix
Contributor V

I'm trying to enable the SECMON_LP RTC on the LS1021ATWR dev board using the svns_rtc driver.  I am trying to create an entry in the device tree file ls1021a.dtsi.  The bindings documentation states that the interrupts must be specified.  From table 5-1 of the ls1021a ARM, I see that the SECMON module is tied to PPI interrupts 142 and 143.  But looking at the .dtsi, I can't map any of the interrupt IDs in the device tree to table 5-1.  Where can I find the proper device tree interrupt IDS for the SECMON_LP RTC?  Thanks.

-Jason

标签 (1)
1 解答
2,116 次查看
bpe
NXP Employee
NXP Employee

Basic information regarding interrupts property encoding can be found here:

Linux/Documentation/devicetree/bindings/arm/gic.txt - Linux Cross Reference - Free Electrons

The second cell, which is the interrupt number, is the chip Manual Table 5-1 value minus 32. See how

mapping is done in gic_irq_domain_xlate(), file irq-gic.c


Have a great day,
Platon

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

1 回复
2,117 次查看
bpe
NXP Employee
NXP Employee

Basic information regarding interrupts property encoding can be found here:

Linux/Documentation/devicetree/bindings/arm/gic.txt - Linux Cross Reference - Free Electrons

The second cell, which is the interrupt number, is the chip Manual Table 5-1 value minus 32. See how

mapping is done in gic_irq_domain_xlate(), file irq-gic.c


Have a great day,
Platon

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------