blob: 38211f344dc8a3a8b69d62a55785de562b2b0c4a [file] [log] [blame]
Vladimir Zapolskiyd839e822016-04-25 04:00:23 +03001* NXP LPC32xx MIC, SIC1 and SIC2 Interrupt Controllers
Roland Stiggef5c42272012-04-22 12:01:19 +02002
3Required properties:
Vladimir Zapolskiyd839e822016-04-25 04:00:23 +03004- compatible: "nxp,lpc3220-mic" or "nxp,lpc3220-sic".
5- reg: should contain IC registers location and length.
6- interrupt-controller: identifies the node as an interrupt controller.
7- #interrupt-cells: the number of cells to define an interrupt, should be 2.
8 The first cell is the IRQ number, the second cell is used to specify
9 one of the supported IRQ types:
10 IRQ_TYPE_EDGE_RISING = low-to-high edge triggered,
11 IRQ_TYPE_EDGE_FALLING = high-to-low edge triggered,
12 IRQ_TYPE_LEVEL_HIGH = active high level-sensitive,
13 IRQ_TYPE_LEVEL_LOW = active low level-sensitive.
14 Reset value is IRQ_TYPE_LEVEL_LOW.
15
16Optional properties:
17- interrupt-parent: empty for MIC interrupt controller, link to parent
18 MIC interrupt controller for SIC1 and SIC2
19- interrupts: empty for MIC interrupt controller, cascaded MIC
20 hardware interrupts for SIC1 and SIC2
Roland Stiggef5c42272012-04-22 12:01:19 +020021
22Examples:
Vladimir Zapolskiyd839e822016-04-25 04:00:23 +030023
24 /* LPC32xx MIC, SIC1 and SIC2 interrupt controllers */
Roland Stiggef5c42272012-04-22 12:01:19 +020025 mic: interrupt-controller@40008000 {
26 compatible = "nxp,lpc3220-mic";
Vladimir Zapolskiyd839e822016-04-25 04:00:23 +030027 reg = <0x40008000 0x4000>;
Roland Stiggef5c42272012-04-22 12:01:19 +020028 interrupt-controller;
Roland Stiggef5c42272012-04-22 12:01:19 +020029 #interrupt-cells = <2>;
Roland Stiggef5c42272012-04-22 12:01:19 +020030 };
31
Vladimir Zapolskiyd839e822016-04-25 04:00:23 +030032 sic1: interrupt-controller@4000c000 {
33 compatible = "nxp,lpc3220-sic";
34 reg = <0x4000c000 0x4000>;
35 interrupt-controller;
36 #interrupt-cells = <2>;
37
38 interrupt-parent = <&mic>;
39 interrupts = <0 IRQ_TYPE_LEVEL_LOW>,
40 <30 IRQ_TYPE_LEVEL_LOW>;
41 };
42
43 sic2: interrupt-controller@40010000 {
44 compatible = "nxp,lpc3220-sic";
45 reg = <0x40010000 0x4000>;
46 interrupt-controller;
47 #interrupt-cells = <2>;
48
49 interrupt-parent = <&mic>;
50 interrupts = <1 IRQ_TYPE_LEVEL_LOW>,
51 <31 IRQ_TYPE_LEVEL_LOW>;
52 };
53
54 /* ADC */
Roland Stiggef5c42272012-04-22 12:01:19 +020055 adc@40048000 {
56 compatible = "nxp,lpc3220-adc";
57 reg = <0x40048000 0x1000>;
Vladimir Zapolskiyd839e822016-04-25 04:00:23 +030058 interrupt-parent = <&sic1>;
59 interrupts = <7 IRQ_TYPE_LEVEL_HIGH>;
Roland Stiggef5c42272012-04-22 12:01:19 +020060 };