linux 设备树中中断

// 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";

};

  

posted @ 2020-11-28 11:15  卷哭你  阅读(482)  评论(0编辑  收藏  举报