Skip to contentSkip to conversation

dt-bindings: interrupt-controller: Add arm,armv7m-nvic and fix #interrupt-cells

PATCH Applied Frank Li 2 participants 2 messages Jun 24, 2025 – Jun 27, 2025

Subsystems (3)
lore
Share & tools
lore

Frank Li

author maintainer
#0 lore raw

PATCH v3 1/1 dt-bindings: interrupt-controller: Add arm,armv7m-nvic and fix #interrupt-cells

According to existed dts arch/arm/boot/dts/armv7-m.dtsi and driver drivers/irqchip/irq-nvic.c, compatible string should be arm,armv7m-nvic,

Fix below CHECK_DTB warning:

arch/arm/boot/dts/nxp/vf/vf610m4-cosmic.dtb: /interrupt-controller@e000e100:
failed to match any schema with compatible: ['arm,armv7m-nvic']

---
change in v3
- keep arm,v7(6,8)m-nvic compatible string according to rob's suggestion
- allow 1 and 2 for #interrupt-cells according to rob's suggestion
- keep arm,num-irq-priority-bits as required according to rob's suggestion

change in v2:
- fix example interrupt-cells
- commit message add driver information
- remove unused compatible string

---
 .../devicetree/bindings/interrupt-controller/arm,nvic.yaml     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/interrupt-controller/arm,nvic.yaml +2 -1
index d89eca956c5fa..32dfa2bf05d84 100644
@@ -17,6 +17,7 @@ description:
 properties:
   compatible:
     enum:
+      - arm,armv7m-nvic # deprecated
       - arm,v6m-nvic
       - arm,v7m-nvic
       - arm,v8m-nvic
@@ -30,7 +31,7 @@ properties:
   interrupt-controller: true
 
   '#interrupt-cells':
-    const: 2
+    enum: [1, 2]
     description: |
       Number of cells to encode an interrupt source:
       first = interrupt number, second = priority.
Signature · 1 line
2.34.1
maintainer Applied
#1 lore raw
Quoted 15 lines · Frank Li

According to existed dts arch/arm/boot/dts/armv7-m.dtsi and driver drivers/irqchip/irq-nvic.c, compatible string should be arm,armv7m-nvic,

Fix below CHECK_DTB warning:

arch/arm/boot/dts/nxp/vf/vf610m4-cosmic.dtb: /interrupt-controller@e000e100:
failed to match any schema with compatible: ['arm,armv7m-nvic']

---
change in v3
- keep arm,v7(6,8)m-nvic compatible string according to rob's suggestion
- allow 1 and 2 for #interrupt-cells according to rob's suggestion
- keep arm,num-irq-priority-bits as required according to rob's suggestion

Quoted 8 lines

change in v2:
- fix example interrupt-cells
- commit message add driver information
- remove unused compatible string

---
 .../devicetree/bindings/interrupt-controller/arm,nvic.yaml     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Applied, thanks!