Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Guo Ren and committed by
Marc Zyngier
dc96f450 648f835a

+16 -4
+16 -4
Documentation/devicetree/bindings/interrupt-controller/csky,mpintc.txt
··· 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. 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 13 18 14 19 ============================= 15 20 intc node bindings definition ··· 31 26 - #interrupt-cells 32 27 Usage: required 33 28 Value type: <u32> 34 - Definition: must be <1> 29 + Definition: <2> 35 30 - interrupt-controller: 36 31 Usage: required 37 32 38 - Examples: 33 + Examples: ("interrupts = <irq_num IRQ_TYPE_XXX>") 39 34 --------- 35 + #include <dt-bindings/interrupt-controller/irq.h> 40 36 41 37 intc: interrupt-controller { 42 38 compatible = "csky,mpintc"; 43 - #interrupt-cells = <1>; 39 + #interrupt-cells = <2>; 44 40 interrupt-controller; 41 + }; 42 + 43 + device: device-example { 44 + ... 45 + interrupts = <34 IRQ_TYPE_EDGE_RISING>; 46 + interrupt-parent = <&intc>; 45 47 };