interpretation of device tree block

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

interpretation of device tree block

Jump to solution
1,120 Views
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 Kudos
Reply
1 Solution
1,037 Views
igorpadykov
NXP Employee
NXP Employee

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

1.jpg

Best regards

igor

View solution in original post

0 Kudos
Reply
4 Replies
1,037 Views
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 Kudos
Reply
1,037 Views
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 Kudos
Reply
1,037 Views
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 Kudos
Reply
1,038 Views
igorpadykov
NXP Employee
NXP Employee

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

1.jpg

Best regards

igor

0 Kudos
Reply