1 Specifying interrupt information for devices
2 ============================================
4 1) Interrupt client nodes
5 -------------------------
7 Nodes that describe devices which generate interrupts must contain an either an
8 "interrupts" property or an "interrupts-extended" property. These properties
9 contain a list of interrupt specifiers, one per output interrupt. The format of
10 the interrupt specifier is determined by the interrupt controller to which the
11 interrupts are routed; see section 2 below for details.
14 interrupt-parent = <&intc1>;
15 interrupts = <5 0>, <6 0>;
17 The "interrupt-parent" property is used to specify the controller to which
18 interrupts are routed and contains a single phandle referring to the interrupt
19 controller node. This property is inherited, so it may be specified in an
20 interrupt client node or in any of its parent nodes. Interrupts listed in the
21 "interrupts" property are always in reference to the node's interrupt parent.
23 The "interrupts-extended" property is a special form for use when a node needs
24 to reference multiple interrupt parents. Each entry in this property contains
25 both the parent phandle and the interrupt specifier. "interrupts-extended"
26 should only be used when a device has multiple interrupt parents.
29 interrupts-extended = <&intc1 5 1>, <&intc2 1 0>;
31 A device node may contain either "interrupts" or "interrupts-extended", but not
32 both. If both properties are present, then the operating system should log an
33 error and use only the data in "interrupts".
35 2) Interrupt controller nodes
36 -----------------------------
38 A device is marked as an interrupt controller with the "interrupt-controller"
39 property. This is a empty, boolean property. An additional "#interrupt-cells"
40 property defines the number of cells needed to specify a single interrupt.
42 It is the responsibility of the interrupt controller's binding to define the
43 length and format of the interrupt specifier. The following two variants are
48 The #interrupt-cells property is set to 1 and the single cell defines the
49 index of the interrupt within the controller.
54 compatible = "arm,versatile-vic";
56 #interrupt-cells = <1>;
57 reg = <0x10140000 0x1000>;
61 compatible = "arm,versatile-sic";
63 #interrupt-cells = <1>;
64 reg = <0x10003000 0x1000>;
65 interrupt-parent = <&vic>;
66 interrupts = <31>; /* Cascaded to vic */
71 The #interrupt-cells property is set to 2 and the first cell defines the
72 index of the interrupt within the controller, while the second cell is used
73 to specify any of the following flags:
74 - bits[3:0] trigger type and level flags
75 1 = low-to-high edge triggered
76 2 = high-to-low edge triggered
77 4 = active high level-sensitive
78 8 = active low level-sensitive
83 gpioext: gpio-adnp@41 {
84 compatible = "ad,gpio-adnp";
87 interrupt-parent = <&gpio>;
94 #interrupt-cells = <2>;
100 compatible = "smtc,sx8634";
103 interrupt-parent = <&gpioext>;
104 interrupts = <3 0x8>;
106 #address-cells = <1>;