Skip to content

Commit d60df7f

Browse files
smaeulMarc Zyngier
authored andcommitted
dt-bindings: interrupt-controller: Require trigger type for T-HEAD PLIC
The RISC-V PLIC specification unfortunately allows PLIC implementations to ignore edges seen while an edge-triggered interrupt is being handled: Depending on the design of the device and the interrupt handler, in between sending an interrupt request and receiving notice of its handler’s completion, the gateway might either ignore additional matching edges or increment a counter of pending interrupts. Like the NCEPLIC100, the T-HEAD C900 PLIC also has this behavior. Thus it also needs to inform software about each interrupt's trigger type, so the driver can use the right interrupt flow. Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Signed-off-by: Samuel Holland <samuel@sholland.org> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20220630100241.35233-4-samuel@sholland.org
1 parent dd46337 commit d60df7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ description:
3333
it is not included in the interrupt specifier. In the second case, software
3434
needs to know the trigger type, so it can reorder the interrupt flow to avoid
3535
missing interrupts. This special handling is needed by at least the Renesas
36-
RZ/Five SoC (AX45MP AndesCore with a NCEPLIC100).
36+
RZ/Five SoC (AX45MP AndesCore with a NCEPLIC100) and the T-HEAD C900 PLIC.
3737

3838
While the RISC-V ISA doesn't specify a memory layout for the PLIC, the
3939
"sifive,plic-1.0.0" device is a concrete implementation of the PLIC that
@@ -112,6 +112,7 @@ allOf:
112112
contains:
113113
enum:
114114
- andestech,nceplic100
115+
- thead,c900-plic
115116

116117
then:
117118
properties:

0 commit comments

Comments
 (0)