Bumped by Community user
2 added the omitted compatible property as it is relevant for the question.
source | link

I'm trying to understand the device tree interrupts property and can not find a good explanation.

For example if there is a node with the following lines:

interrupt-parent = <&gpio5>;
interrupts = <9 0>;

How do I figure out what the magic numbers <9 0> relate to? Is it a bitmask, gpio port number, pin number, priority, edge or something else?

Theinterrupt-parent node look like this (I guess it would be similar for most ARM devices):

gpio5: gpio@1234 {
   /* compatible and= reg"fsl,imx7d-gpio", removed"fsl,imx35-gpio"; as not 
 relevant for thereg question!?= */<0x30240000 0x10000>;  
   interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
           <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
   gpio-controller;
   #gpio-cells = <2>;
   interrupt-controller;
   #interrupt-cells = <2>;
};

I'm trying to understand the device tree interrupts property and can not find a good explanation.

For example if there is a node with the following lines:

interrupt-parent = <&gpio5>;
interrupts = <9 0>;

How do I figure out what the magic numbers <9 0> relate to? Is it a bitmask, gpio port number, pin number, priority, edge or something else?

Theinterrupt-parent node look like this (I guess it would be similar for most ARM devices):

gpio5: gpio@1234 {
   /* compatible and reg removed as not relevant for the question!? */
   interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
           <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
   gpio-controller;
   #gpio-cells = <2>;
   interrupt-controller;
   #interrupt-cells = <2>;
};

I'm trying to understand the device tree interrupts property and can not find a good explanation.

For example if there is a node with the following lines:

interrupt-parent = <&gpio5>;
interrupts = <9 0>;

How do I figure out what the magic numbers <9 0> relate to? Is it a bitmask, gpio port number, pin number, priority, edge or something else?

Theinterrupt-parent node look like this (I guess it would be similar for most ARM devices):

gpio5: gpio@1234 {
   compatible = "fsl,imx7d-gpio", "fsl,imx35-gpio";   
   reg = <0x30240000 0x10000>;  
   interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
           <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
   gpio-controller;
   #gpio-cells = <2>;
   interrupt-controller;
   #interrupt-cells = <2>;
};
1
source | link

What are the values of the device tree interrupts property?

I'm trying to understand the device tree interrupts property and can not find a good explanation.

For example if there is a node with the following lines:

interrupt-parent = <&gpio5>;
interrupts = <9 0>;

How do I figure out what the magic numbers <9 0> relate to? Is it a bitmask, gpio port number, pin number, priority, edge or something else?

Theinterrupt-parent node look like this (I guess it would be similar for most ARM devices):

gpio5: gpio@1234 {
   /* compatible and reg removed as not relevant for the question!? */
   interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
           <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
   gpio-controller;
   #gpio-cells = <2>;
   interrupt-controller;
   #interrupt-cells = <2>;
};