Skip to content

Commit c67d52f

Browse files
committed
dt-bindings: interrupt-controller: Convert st,spear3xx-shirq to DT schema
Convert the SPEAr3xx Shared interrupt controller binding to schema format. It's a straight-forward conversion of the typical interrupt controller. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring (Arm) <[email protected]>
1 parent 9665ca7 commit c67d52f

File tree

2 files changed

+67
-44
lines changed

2 files changed

+67
-44
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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/st,spear300-shirq.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: SPEAr3xx Shared IRQ controller
8+
9+
maintainers:
10+
- Viresh Kumar <[email protected]>
11+
- Shiraz Hashim <[email protected]>
12+
13+
description: |
14+
SPEAr3xx architecture includes shared/multiplexed irqs for certain set of
15+
devices. The multiplexor provides a single interrupt to parent interrupt
16+
controller (VIC) on behalf of a group of devices.
17+
18+
There can be multiple groups available on SPEAr3xx variants but not exceeding
19+
4. The number of devices in a group can differ, further they may share same
20+
set of status/mask registers spanning across different bit masks. Also in some
21+
cases the group may not have enable or other registers. This makes software
22+
little complex.
23+
24+
A single node in the device tree is used to describe the shared interrupt
25+
multiplexer (one node for all groups). A group in the interrupt controller
26+
shares config/control registers with other groups. For example, a 32-bit
27+
interrupt enable/disable config register can accommodate up to 4 interrupt
28+
groups.
29+
30+
properties:
31+
compatible:
32+
enum:
33+
- st,spear300-shirq
34+
- st,spear310-shirq
35+
- st,spear320-shirq
36+
37+
reg:
38+
maxItems: 1
39+
40+
'#interrupt-cells':
41+
const: 1
42+
43+
interrupt-controller: true
44+
45+
interrupts:
46+
description: Interrupt specifier array for SHIRQ groups
47+
minItems: 1
48+
maxItems: 4
49+
50+
required:
51+
- compatible
52+
- reg
53+
- '#interrupt-cells'
54+
- interrupt-controller
55+
- interrupts
56+
57+
additionalProperties: false
58+
59+
examples:
60+
- |
61+
interrupt-controller@b3000000 {
62+
compatible = "st,spear320-shirq";
63+
reg = <0xb3000000 0x1000>;
64+
interrupts = <28 29 30 1>;
65+
#interrupt-cells = <1>;
66+
interrupt-controller;
67+
};

Documentation/devicetree/bindings/interrupt-controller/st,spear3xx-shirq.txt

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)