diff options
author | Guo Ren <ren_guo@c-sky.com> | 2019-06-06 03:37:32 -0400 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2019-06-11 07:28:13 -0400 |
commit | dc96f45074a55f307d9618ebd444991fc643836c (patch) | |
tree | 14900c77e5ae0161559654d32102f56494f58f26 | |
parent | 648f835a028f4f7f031a89bc099e363d4292e5b9 (diff) |
dt-bindings: interrupt-controller: Update csky mpintc
Add trigger type setting for csky,mpintc. The driver also could
support #interrupt-cells <1> and it wouldn't invalidate existing
DTs. Here we only show the complete format.
Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Reviewed-by: Rob Herring <robh+dt@kernel.org>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
-rw-r--r-- | Documentation/devicetree/bindings/interrupt-controller/csky,mpintc.txt | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/Documentation/devicetree/bindings/interrupt-controller/csky,mpintc.txt b/Documentation/devicetree/bindings/interrupt-controller/csky,mpintc.txt index ab921f1698fb..e13405355166 100644 --- a/Documentation/devicetree/bindings/interrupt-controller/csky,mpintc.txt +++ b/Documentation/devicetree/bindings/interrupt-controller/csky,mpintc.txt | |||
@@ -6,11 +6,16 @@ C-SKY Multi-processors Interrupt Controller is designed for ck807/ck810/ck860 | |||
6 | SMP soc, and it also could be used in non-SMP system. | 6 | SMP soc, and it also could be used in non-SMP system. |
7 | 7 | ||
8 | Interrupt number definition: | 8 | Interrupt number definition: |
9 | |||
10 | 0-15 : software irq, and we use 15 as our IPI_IRQ. | 9 | 0-15 : software irq, and we use 15 as our IPI_IRQ. |
11 | 16-31 : private irq, and we use 16 as the co-processor timer. | 10 | 16-31 : private irq, and we use 16 as the co-processor timer. |
12 | 31-1024: common irq for soc ip. | 11 | 31-1024: common irq for soc ip. |
13 | 12 | ||
13 | Interrupt triger mode: (Defined in dt-bindings/interrupt-controller/irq.h) | ||
14 | IRQ_TYPE_LEVEL_HIGH (default) | ||
15 | IRQ_TYPE_LEVEL_LOW | ||
16 | IRQ_TYPE_EDGE_RISING | ||
17 | IRQ_TYPE_EDGE_FALLING | ||
18 | |||
14 | ============================= | 19 | ============================= |
15 | intc node bindings definition | 20 | intc node bindings definition |
16 | ============================= | 21 | ============================= |
@@ -26,15 +31,22 @@ intc node bindings definition | |||
26 | - #interrupt-cells | 31 | - #interrupt-cells |
27 | Usage: required | 32 | Usage: required |
28 | Value type: <u32> | 33 | Value type: <u32> |
29 | Definition: must be <1> | 34 | Definition: <2> |
30 | - interrupt-controller: | 35 | - interrupt-controller: |
31 | Usage: required | 36 | Usage: required |
32 | 37 | ||
33 | Examples: | 38 | Examples: ("interrupts = <irq_num IRQ_TYPE_XXX>") |
34 | --------- | 39 | --------- |
40 | #include <dt-bindings/interrupt-controller/irq.h> | ||
35 | 41 | ||
36 | intc: interrupt-controller { | 42 | intc: interrupt-controller { |
37 | compatible = "csky,mpintc"; | 43 | compatible = "csky,mpintc"; |
38 | #interrupt-cells = <1>; | 44 | #interrupt-cells = <2>; |
39 | interrupt-controller; | 45 | interrupt-controller; |
40 | }; | 46 | }; |
47 | |||
48 | device: device-example { | ||
49 | ... | ||
50 | interrupts = <34 IRQ_TYPE_EDGE_RISING>; | ||
51 | interrupt-parent = <&intc>; | ||
52 | }; | ||