In PLIC, interrupt source 0 is reserved and should not be used.
Therefore, the valid interrupt sources are from 1 to riscv,ndev
inclusive. This commit updates the documentation to clarify this point.
Signed-off-by: Yangyu Chen <cyy@cyyself.name>
---
.../bindings/interrupt-controller/sifive,plic-1.0.0.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml b/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml
index 388fc2c620c0..df9578bcac89 100644
--- a/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml
+++ b/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml
@@ -109,6 +109,8 @@ properties:
$ref: /schemas/types.yaml#/definitions/uint32
description:
Specifies how many external interrupts are supported by this controller.
+ Note that source 0 is reserved in PLIC, so the valid interrupt sources
+ are 1 to riscv,ndev inclusive.
clocks: true
--
2.51.0
On Wed, Feb 04, 2026 at 01:21:48AM +0800, Yangyu Chen wrote: > In PLIC, interrupt source 0 is reserved and should not be used. > Therefore, the valid interrupt sources are from 1 to riscv,ndev > inclusive. This commit updates the documentation to clarify this point. > > Signed-off-by: Yangyu Chen <cyy@cyyself.name> > --- > .../bindings/interrupt-controller/sifive,plic-1.0.0.yaml | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml b/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml > index 388fc2c620c0..df9578bcac89 100644 > --- a/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml > +++ b/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml > @@ -109,6 +109,8 @@ properties: > $ref: /schemas/types.yaml#/definitions/uint32 > description: > Specifies how many external interrupts are supported by this controller. > + Note that source 0 is reserved in PLIC, so the valid interrupt sources > + are 1 to riscv,ndev inclusive. The trm for mpfs says "in the plic, global interrupt id 0 means 'no interrupt'". That sounds subtly different to me than "reserved", but /shrug I think this could just be truncated to "Valid interrupt sources are 1 to riscv,ndev, inclusive.". Acked-by: Conor Dooley <conor.dooley@microchip.com>
The following commit has been merged into the irq/drivers branch of tip:
Commit-ID: 889588d750506d86ba16ae3b968b5ffc5937d5f8
Gitweb: https://git.kernel.org/tip/889588d750506d86ba16ae3b968b5ffc5937d5f8
Author: Yangyu Chen <cyy@cyyself.name>
AuthorDate: Wed, 04 Feb 2026 01:21:48 +08:00
Committer: Thomas Gleixner <tglx@kernel.org>
CommitterDate: Wed, 04 Feb 2026 11:13:58 +01:00
dt-bindings: interrupt-controller: sifive,plic: Clarify the riscv,ndev meaning in PLIC
In PLIC, interrupt source 0 is reserved and should not be used.
Therefore, the valid interrupt sources are from 1 to riscv,ndev
inclusive.
Update the documentation to clarify this point.
[ tglx: Fixup subject prefix ]
Signed-off-by: Yangyu Chen <cyy@cyyself.name>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/tencent_720A4669773B1EE15EC720869C35C2F0490A@qq.com
---
Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml b/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml
index 388fc2c..e026722 100644
--- a/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml
+++ b/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml
@@ -108,7 +108,9 @@ properties:
riscv,ndev:
$ref: /schemas/types.yaml#/definitions/uint32
description:
- Specifies how many external interrupts are supported by this controller.
+ Specifies how many external (device) interrupts are supported by this
+ controller. Note that source 0 is reserved in PLIC, so the valid
+ interrupt sources are 1 to riscv,ndev inclusive.
clocks: true
© 2016 - 2026 Red Hat, Inc.