Commit 69d812f5eb249bf30069f81dd508aa4548ec6eb1
1 parent
e7534198ab
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>
Showing 1 changed file with 16 additions and 4 deletions Side-by-side Diff
Documentation/devicetree/bindings/interrupt-controller/csky,mpintc.txt
... | ... | @@ -6,11 +6,16 @@ |
6 | 6 | SMP soc, and it also could be used in non-SMP system. |
7 | 7 | |
8 | 8 | Interrupt number definition: |
9 | - | |
10 | 9 | 0-15 : software irq, and we use 15 as our IPI_IRQ. |
11 | 10 | 16-31 : private irq, and we use 16 as the co-processor timer. |
12 | 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 | 20 | intc node bindings definition |
16 | 21 | ============================= |
17 | 22 | |
18 | 23 | |
19 | 24 | |
20 | 25 | |
... | ... | @@ -26,16 +31,23 @@ |
26 | 31 | - #interrupt-cells |
27 | 32 | Usage: required |
28 | 33 | Value type: <u32> |
29 | - Definition: must be <1> | |
34 | + Definition: <2> | |
30 | 35 | - interrupt-controller: |
31 | 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 | 42 | intc: interrupt-controller { |
37 | 43 | compatible = "csky,mpintc"; |
38 | - #interrupt-cells = <1>; | |
44 | + #interrupt-cells = <2>; | |
39 | 45 | interrupt-controller; |
46 | + }; | |
47 | + | |
48 | + device: device-example { | |
49 | + ... | |
50 | + interrupts = <34 IRQ_TYPE_EDGE_RISING>; | |
51 | + interrupt-parent = <&intc>; | |
40 | 52 | }; |