diff options
| author | James Hogan <james.hogan@imgtec.com> | 2012-10-09 05:54:47 -0400 |
|---|---|---|
| committer | James Hogan <james.hogan@imgtec.com> | 2013-03-02 15:09:48 -0500 |
| commit | 5698c50d9da4ab2f57d98c64ea97675dcaf2a608 (patch) | |
| tree | 5b82a24daa8bbb85703489340cbfdcb00a2f20a4 /Documentation | |
| parent | 63047ea36070d11f902ab7d09a5a18aea037c0f7 (diff) | |
metag: Internal and external irqchips
Meta core internal interrupts (from HWSTATMETA and friends) are vectored
onto the TR1 core trigger for the current thread. This is demultiplexed
in irq-metag.c to individual Linux IRQs for each internal interrupt.
External SoC interrupts (from HWSTATEXT and friends) are vectored onto
the TR2 core trigger for the current thread. This is demultiplexed in
irq-metag-ext.c to individual Linux IRQs for each external SoC interrupt.
The external irqchip has devicetree bindings for configuring the number
of irq banks and the type of masking available.
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: Rob Herring <rob.herring@calxeda.com>
Cc: Rob Landley <rob@landley.net>
Cc: Dom Cobley <popcornmix@gmail.com>
Cc: Simon Arlott <simon@fire.lp0.eu>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: devicetree-discuss@lists.ozlabs.org
Cc: linux-doc@vger.kernel.org
Diffstat (limited to 'Documentation')
| -rw-r--r-- | Documentation/devicetree/bindings/metag/meta-intc.txt | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/metag/meta-intc.txt b/Documentation/devicetree/bindings/metag/meta-intc.txt new file mode 100644 index 000000000000..8c47dcbfabc6 --- /dev/null +++ b/Documentation/devicetree/bindings/metag/meta-intc.txt | |||
| @@ -0,0 +1,82 @@ | |||
| 1 | * Meta External Trigger Controller Binding | ||
| 2 | |||
| 3 | This binding specifies what properties must be available in the device tree | ||
| 4 | representation of a Meta external trigger controller. | ||
| 5 | |||
| 6 | Required properties: | ||
| 7 | |||
| 8 | - compatible: Specifies the compatibility list for the interrupt controller. | ||
| 9 | The type shall be <string> and the value shall include "img,meta-intc". | ||
| 10 | |||
| 11 | - num-banks: Specifies the number of interrupt banks (each of which can | ||
| 12 | handle 32 interrupt sources). | ||
| 13 | |||
| 14 | - interrupt-controller: The presence of this property identifies the node | ||
| 15 | as an interupt controller. No property value shall be defined. | ||
| 16 | |||
| 17 | - #interrupt-cells: Specifies the number of cells needed to encode an | ||
| 18 | interrupt source. The type shall be a <u32> and the value shall be 2. | ||
| 19 | |||
| 20 | - #address-cells: Specifies the number of cells needed to encode an | ||
| 21 | address. The type shall be <u32> and the value shall be 0. As such, | ||
| 22 | 'interrupt-map' nodes do not have to specify a parent unit address. | ||
| 23 | |||
| 24 | Optional properties: | ||
| 25 | |||
| 26 | - no-mask: The controller doesn't have any mask registers. | ||
| 27 | |||
| 28 | * Interrupt Specifier Definition | ||
| 29 | |||
| 30 | Interrupt specifiers consists of 2 cells encoded as follows: | ||
| 31 | |||
| 32 | - <1st-cell>: The interrupt-number that identifies the interrupt source. | ||
| 33 | |||
| 34 | - <2nd-cell>: The Linux interrupt flags containing level-sense information, | ||
| 35 | encoded as follows: | ||
| 36 | 1 = edge triggered | ||
| 37 | 4 = level-sensitive | ||
| 38 | |||
| 39 | * Examples | ||
| 40 | |||
| 41 | Example 1: | ||
| 42 | |||
| 43 | /* | ||
| 44 | * Meta external trigger block | ||
| 45 | */ | ||
| 46 | intc: intc { | ||
| 47 | // This is an interrupt controller node. | ||
| 48 | interrupt-controller; | ||
| 49 | |||
| 50 | // No address cells so that 'interrupt-map' nodes which | ||
| 51 | // reference this interrupt controller node do not need a parent | ||
| 52 | // address specifier. | ||
| 53 | #address-cells = <0>; | ||
| 54 | |||
| 55 | // Two cells to encode interrupt sources. | ||
| 56 | #interrupt-cells = <2>; | ||
| 57 | |||
| 58 | // Number of interrupt banks | ||
| 59 | num-banks = <2>; | ||
| 60 | |||
| 61 | // No HWMASKEXT is available (specify on Chorus2 and Comet ES1) | ||
| 62 | no-mask; | ||
| 63 | |||
| 64 | // Compatible with Meta hardware trigger block. | ||
| 65 | compatible = "img,meta-intc"; | ||
| 66 | }; | ||
| 67 | |||
| 68 | Example 2: | ||
| 69 | |||
| 70 | /* | ||
| 71 | * An interrupt generating device that is wired to a Meta external | ||
| 72 | * trigger block. | ||
| 73 | */ | ||
| 74 | uart1: uart@0x02004c00 { | ||
| 75 | // Interrupt source '5' that is level-sensitive. | ||
| 76 | // Note that there are only two cells as specified in the | ||
| 77 | // interrupt parent's '#interrupt-cells' property. | ||
| 78 | interrupts = <5 4 /* level */>; | ||
| 79 | |||
| 80 | // The interrupt controller that this device is wired to. | ||
| 81 | interrupt-parent = <&intc>; | ||
| 82 | }; | ||
