Navigation Menu

Skip to content

Commit

Permalink
dts: Add base interrupt-controller to dts bindings
Browse files Browse the repository at this point in the history
Introduce a intc.yaml that interrupt controller bindings should inherit
from.  intc.yaml defines the properties "interrupt-controller" and
"#interrupt-cells" which all interrupt controllers should have.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
  • Loading branch information
galak committed Aug 9, 2019
1 parent b563f44 commit 786ecf6
Show file tree
Hide file tree
Showing 14 changed files with 33 additions and 13 deletions.
2 changes: 1 addition & 1 deletion dts/bindings/interrupt-controller/arm,v6m-nvic.yaml
Expand Up @@ -4,7 +4,7 @@ description: >
This binding describes the ARMv6-M Nested Vectored Interrupt Controller. This binding describes the ARMv6-M Nested Vectored Interrupt Controller.
inherits: inherits:
!include base.yaml !include [interrupt-controller.yaml, base.yaml]


properties: properties:
compatible: compatible:
Expand Down
2 changes: 1 addition & 1 deletion dts/bindings/interrupt-controller/arm,v7m-nvic.yaml
Expand Up @@ -4,7 +4,7 @@ description: >
This binding describes the ARMv7-M Nested Vectored Interrupt Controller. This binding describes the ARMv7-M Nested Vectored Interrupt Controller.
inherits: inherits:
!include base.yaml !include [interrupt-controller.yaml, base.yaml]


properties: properties:
compatible: compatible:
Expand Down
2 changes: 1 addition & 1 deletion dts/bindings/interrupt-controller/arm,v8m-nvic.yaml
Expand Up @@ -4,7 +4,7 @@ description: >
This binding describes the ARMv8-M Nested Vectored Interrupt Controller. This binding describes the ARMv8-M Nested Vectored Interrupt Controller.
inherits: inherits:
!include base.yaml !include [interrupt-controller.yaml, base.yaml]


properties: properties:
compatible: compatible:
Expand Down
2 changes: 1 addition & 1 deletion dts/bindings/interrupt-controller/intel,ioapic.yaml
Expand Up @@ -5,7 +5,7 @@ description: >
controller controller
inherits: inherits:
!include base.yaml !include [interrupt-controller.yaml, base.yaml]


properties: properties:
compatible: compatible:
Expand Down
20 changes: 20 additions & 0 deletions dts/bindings/interrupt-controller/interrupt-controller.yaml
@@ -0,0 +1,20 @@
#
# Copyright (c) 2019, Linaro Limited
#
# SPDX-License-Identifier: Apache-2.0
#

title: Interrupt Controller Base Structure

description: >
This binding gives the base structure for all Interrupt Controller devices
properties:
"interrupt-controller":
type: boolean
category: required
description: Convey's this node is an interrupt controller
"#interrupt-cells":
type: int
category: required
description: Number of items to expect in an interrupt specifier
Expand Up @@ -11,7 +11,7 @@ description: >
This binding describes the RV32M1 Event Unit This binding describes the RV32M1 Event Unit
inherits: inherits:
!include base.yaml !include [interrupt-controller.yaml, base.yaml]


properties: properties:
compatible: compatible:
Expand Down
Expand Up @@ -10,7 +10,7 @@ description: >
This binding describes the RV32M1 INTMUX IP This binding describes the RV32M1 INTMUX IP
inherits: inherits:
!include base.yaml !include [interrupt-controller.yaml, base.yaml]


properties: properties:
compatible: compatible:
Expand Down
2 changes: 1 addition & 1 deletion dts/bindings/interrupt-controller/riscv,cpu-intc.yaml
Expand Up @@ -10,7 +10,7 @@ description: >
This binding describes the RISC-V CPU Interrupt Controller This binding describes the RISC-V CPU Interrupt Controller
inherits: inherits:
!include base.yaml !include [interrupt-controller.yaml, base.yaml]


properties: properties:
compatible: compatible:
Expand Down
2 changes: 1 addition & 1 deletion dts/bindings/interrupt-controller/riscv,plic0.yaml
Expand Up @@ -10,7 +10,7 @@ description: >
This binding describes the RISC-V Platform-Local Interrupt Controller This binding describes the RISC-V Platform-Local Interrupt Controller
inherits: inherits:
!include base.yaml !include [interrupt-controller.yaml, base.yaml]


properties: properties:
reg: reg:
Expand Down
2 changes: 1 addition & 1 deletion dts/bindings/interrupt-controller/shared-irq.yaml
Expand Up @@ -4,7 +4,7 @@ description: >
This binding describes Shared IRQ interrupt dispatcher This binding describes Shared IRQ interrupt dispatcher
inherits: inherits:
!include base.yaml !include [interrupt-controller.yaml, base.yaml]


properties: properties:
compatible: compatible:
Expand Down
2 changes: 1 addition & 1 deletion dts/bindings/interrupt-controller/snps,arcv2-intc.yaml
Expand Up @@ -10,7 +10,7 @@ description: >
This binding describes the ARCV2 IRQ controller This binding describes the ARCV2 IRQ controller
inherits: inherits:
!include base.yaml !include [interrupt-controller.yaml, base.yaml]


properties: properties:
compatible: compatible:
Expand Down
Expand Up @@ -4,7 +4,7 @@ description: >
This binding describes DesignWare Programmable Interrupt controller This binding describes DesignWare Programmable Interrupt controller
inherits: inherits:
!include base.yaml !include [interrupt-controller.yaml, base.yaml]


properties: properties:
compatible: compatible:
Expand Down
2 changes: 1 addition & 1 deletion dts/bindings/interrupt-controller/vexriscv,intc0.yaml
Expand Up @@ -10,7 +10,7 @@ description: >
This binding describes LiteX VexRiscV Interrupt Controller This binding describes LiteX VexRiscV Interrupt Controller
inherits: inherits:
!include base.yaml !include [interrupt-controller.yaml, base.yaml]


properties: properties:
compatible: compatible:
Expand Down
2 changes: 1 addition & 1 deletion dts/bindings/interrupt-controller/xtensa,intc.yaml
Expand Up @@ -4,7 +4,7 @@ description: >
This binding describes Xtensa Core Interrupt controller This binding describes Xtensa Core Interrupt controller
inherits: inherits:
!include base.yaml !include [interrupt-controller.yaml, base.yaml]


properties: properties:
compatible: compatible:
Expand Down

0 comments on commit 786ecf6

Please sign in to comment.