Skip to content

Commit f698ee1

Browse files
robherringstffrdhrn
authored andcommitted
dt-bindings: interrupt-controller: Convert openrisc,ompic to DT schema
Convert the OpenRISC OMPIC interrupt controller binding to schema format. It's a straight-forward conversion of the typical interrupt controller. Signed-off-by: Rob Herring (Arm) <[email protected]> Signed-off-by: Stafford Horne <[email protected]>
1 parent e551ebd commit f698ee1

File tree

2 files changed

+45
-22
lines changed

2 files changed

+45
-22
lines changed

Documentation/devicetree/bindings/interrupt-controller/openrisc,ompic.txt

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/interrupt-controller/openrisc,ompic.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Open Multi-Processor Interrupt Controller
8+
9+
maintainers:
10+
- Stafford Horne <[email protected]>
11+
12+
properties:
13+
compatible:
14+
items:
15+
- const: openrisc,ompic
16+
17+
reg:
18+
maxItems: 1
19+
20+
interrupt-controller: true
21+
22+
'#interrupt-cells':
23+
const: 0
24+
25+
interrupts:
26+
maxItems: 1
27+
28+
required:
29+
- compatible
30+
- reg
31+
- interrupt-controller
32+
- '#interrupt-cells'
33+
- interrupts
34+
35+
additionalProperties: false
36+
37+
examples:
38+
- |
39+
interrupt-controller@98000000 {
40+
compatible = "openrisc,ompic";
41+
reg = <0x98000000 16>;
42+
interrupt-controller;
43+
#interrupt-cells = <0>;
44+
interrupts = <1>;
45+
};

0 commit comments

Comments
 (0)