linux 设备树中中断

摘要:
//文档/设备树/绑定/手臂/逻辑。Txt#中断单元为31:中断=,;2: 0spiinterrupt,1PPIinterrupt;spi0-987PPI[0-15]3:[3:0]isflags1=从低到高触发2=从高到低
// Documenation/devicetree/binding/arm/gic.txt 
#interrput-cells 为3 
1:interrupts=<0 168 4 >,<0 169 4>;
2:0 spi interrupts,1 for PPI interrupts;
spi 0-987  PPI [0-15]
3:[3:0] is flags  1= low-to-high edge trigged
                  2= high-to-low edget trigged
                  4= active high level-sensitive
                  8=active low level-sensitive 
SPI 多个中断号
interrupts = <0 168 4 >,<0 169 4 >
//int platform_get_irq(struct platform_devices*dev,unsigned int num);

statict int fsl_edma_irq_init(struct platform_device*pdev,struct fsl_edma_engine*fsl_edma)
{
   fsl_ema->txirq = platform_get_irq_byname(pdev,"edma-tx");
   fsl_ema->errirq = platform_get_irq_byname(pdev,"edma-err");
}

edma0: dma-controller@400180000{

	   compatible = "fsl,vf610-edma";
       interrupts = <0 8 IRQ_TYPE_LEVEL_HIGH>,
	   	            <0 9 IRQ_TYPE_LEVEL_HIGH>;

	   interrupt-names = "edma-tx","edma-err";

};

  

免责声明:文章转载自《linux 设备树中中断》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇Python Web 开发的十个框架【转载】react antD 日期选择下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章