Skip to content

Commit 9455570

Browse files
committed
dt-bindings: interrupt-controller: Convert ti,keystone-irq to DT schema
Convert the TI Keystone 2 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 dd0cea0 commit 9455570

File tree

2 files changed

+63
-36
lines changed

2 files changed

+63
-36
lines changed

Documentation/devicetree/bindings/interrupt-controller/ti,keystone-irq.txt

Lines changed: 0 additions & 36 deletions
This file was deleted.
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/ti,keystone-irq.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Keystone 2 IRQ controller IP
8+
9+
maintainers:
10+
- Grygorii Strashko <[email protected]>
11+
12+
description:
13+
On Keystone SOCs, DSP cores can send interrupts to ARM host using the IRQ
14+
controller IP. It provides 28 IRQ signals to ARM. The IRQ handler running on
15+
HOST OS can identify DSP signal source by analyzing SRCCx bits in IPCARx
16+
registers. This is one of the component used by the IPC mechanism used on
17+
Keystone SOCs.
18+
19+
properties:
20+
compatible:
21+
const: ti,keystone-irq
22+
23+
reg:
24+
maxItems: 1
25+
26+
interrupt-controller: true
27+
28+
'#interrupt-cells':
29+
const: 1
30+
31+
interrupts:
32+
maxItems: 1
33+
34+
ti,syscon-dev:
35+
description: Phandle and offset to syscon device
36+
$ref: /schemas/types.yaml#/definitions/phandle-array
37+
items:
38+
- items:
39+
- description: Phandle to syscon device control registers
40+
- description: Offset to control register
41+
42+
required:
43+
- compatible
44+
- reg
45+
- interrupt-controller
46+
- '#interrupt-cells'
47+
- interrupts
48+
- ti,syscon-dev
49+
50+
additionalProperties: false
51+
52+
examples:
53+
- |
54+
#include <dt-bindings/interrupt-controller/arm-gic.h>
55+
56+
interrupt-controller@2a0 {
57+
compatible = "ti,keystone-irq";
58+
reg = <0x2a0 0x4>;
59+
ti,syscon-dev = <&devctrl 0x2a0>;
60+
interrupts = <GIC_SPI 4 IRQ_TYPE_EDGE_RISING>;
61+
interrupt-controller;
62+
#interrupt-cells = <1>;
63+
};

0 commit comments

Comments
 (0)