Skip to content

Commit e551ebd

Browse files
robherringstffrdhrn
authored andcommitted
dt-bindings: interrupt-controller: Convert opencores,or1k-pic to DT schema
Convert the OpenRISC PIC 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 af69647 commit e551ebd

File tree

2 files changed

+38
-23
lines changed

2 files changed

+38
-23
lines changed

Documentation/devicetree/bindings/interrupt-controller/opencores,or1k-pic.txt

Lines changed: 0 additions & 23 deletions
This file was deleted.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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/opencores,or1k-pic.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: OpenRISC 1000 Programmable Interrupt Controller
8+
9+
maintainers:
10+
- Stefan Kristiansson <[email protected]>
11+
12+
properties:
13+
compatible:
14+
enum:
15+
- opencores,or1k-pic-level
16+
- opencores,or1k-pic-edge
17+
- opencores,or1200-pic
18+
- opencores,or1k-pic
19+
20+
interrupt-controller: true
21+
22+
'#interrupt-cells':
23+
const: 1
24+
25+
required:
26+
- compatible
27+
- interrupt-controller
28+
- '#interrupt-cells'
29+
30+
additionalProperties: false
31+
32+
examples:
33+
- |
34+
interrupt-controller {
35+
compatible = "opencores,or1k-pic-level";
36+
interrupt-controller;
37+
#interrupt-cells = <1>;
38+
};

0 commit comments

Comments
 (0)