Vladimir Zapolskiy | d839e82 | 2016-04-25 04:00:23 +0300 | [diff] [blame] | 1 | * NXP LPC32xx MIC, SIC1 and SIC2 Interrupt Controllers |
Roland Stigge | f5c4227 | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 2 | |
| 3 | Required properties: |
Vladimir Zapolskiy | d839e82 | 2016-04-25 04:00:23 +0300 | [diff] [blame] | 4 | - 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 | |
| 16 | Optional 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 Stigge | f5c4227 | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 21 | |
| 22 | Examples: |
Vladimir Zapolskiy | d839e82 | 2016-04-25 04:00:23 +0300 | [diff] [blame] | 23 | |
| 24 | /* LPC32xx MIC, SIC1 and SIC2 interrupt controllers */ |
Roland Stigge | f5c4227 | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 25 | mic: interrupt-controller@40008000 { |
| 26 | compatible = "nxp,lpc3220-mic"; |
Vladimir Zapolskiy | d839e82 | 2016-04-25 04:00:23 +0300 | [diff] [blame] | 27 | reg = <0x40008000 0x4000>; |
Roland Stigge | f5c4227 | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 28 | interrupt-controller; |
Roland Stigge | f5c4227 | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 29 | #interrupt-cells = <2>; |
Roland Stigge | f5c4227 | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 30 | }; |
| 31 | |
Vladimir Zapolskiy | d839e82 | 2016-04-25 04:00:23 +0300 | [diff] [blame] | 32 | 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 Stigge | f5c4227 | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 55 | adc@40048000 { |
| 56 | compatible = "nxp,lpc3220-adc"; |
| 57 | reg = <0x40048000 0x1000>; |
Vladimir Zapolskiy | d839e82 | 2016-04-25 04:00:23 +0300 | [diff] [blame] | 58 | interrupt-parent = <&sic1>; |
| 59 | interrupts = <7 IRQ_TYPE_LEVEL_HIGH>; |
Roland Stigge | f5c4227 | 2012-04-22 12:01:19 +0200 | [diff] [blame] | 60 | }; |