interpretation of device tree block

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

interpretation of device tree block

跳至解决方案
1,117 次查看
damienhuang
Contributor IV

Hi,

Could someone help to interpret the below device tree structure  in imx6qdl.dtsi?

gpio4: gpio@020a8000 {

                compatible = "fsl,imx6q-gpio", "fsl,imx35-gpio";

                reg = <0x020a8000 0x4000>;

                interrupts = <0 72 0x04 0 73 0x04>;

                gpio-controller;

                #gpio-cells = <2>;

                interrupt-controller;

                #interrupt-cells = <2>;

            };

my problem is I can not figure out the meaning of "interrupts = <0 72 0x04 0 73 0x04>"

0 项奖励
回复
1 解答
1,034 次查看
igorpadykov
NXP Employee
NXP Employee

below part of AN5125, assuming two cells (so six values):

1.jpg

Best regards

igor

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,034 次查看
damienhuang
Contributor IV

combining your info and the fsl-imx-gpio.txt, I think the 6 values were belong to two interrupts

     first interrupt

          the first byte is type of interrupt (0 = spi interrupt, 1 = ppi interrupt)

          the seconds byte is the port that hosts the low 16 pins

          the third byte is the interrupt level

     second interrupt

          the fourth byte is the same of the first byte

          the fifth byte is the port that hosts the high 16 pins

          the sixth byte is the interrupt level

0 项奖励
回复
1,034 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Damien

description can be found on p.8 AN5125 http://cache.nxp.com/files/32bit/doc/app_note/AN5125.pdf  or

http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/Documentation/devicetree/bindings/g...

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
1,034 次查看
damienhuang
Contributor IV

thanks igor for your message.

Even after read through the links you provided, I am still not able to understand the data block I listed with this question. Because in my data block there are six value inside structure "interrupts", but the links only talked with 2 values situation.

Do you have more info?

Best regards,

Damien

0 项奖励
回复
1,035 次查看
igorpadykov
NXP Employee
NXP Employee

below part of AN5125, assuming two cells (so six values):

1.jpg

Best regards

igor

0 项奖励
回复