interpretation of device tree block

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

interpretation of device tree block

ソリューションへジャンプ
1,118件の閲覧回数
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>"

ラベル(5)
0 件の賞賛
返信
1 解決策
1,035件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

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

1.jpg

Best regards

igor

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
1,035件の閲覧回数
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,035件の閲覧回数
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,035件の閲覧回数
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,036件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

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

1.jpg

Best regards

igor

0 件の賞賛
返信