Skip to content

Commit 9a4d392

Browse files
committed
dt-bindings: interrupt-controller: Convert csky,apb-intc to DT schema
Convert the C-SKY APB interrupt controller binding to schema format. It's a straight-forward conversion of the typical interrupt controller. Link: https://lore.kernel.org/r/20250505144636.1288261-1-robh@kernel.org Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
1 parent 3cbc6d0 commit 9a4d392

2 files changed

Lines changed: 54 additions & 62 deletions

File tree

Documentation/devicetree/bindings/interrupt-controller/csky,apb-intc.txt

Lines changed: 0 additions & 62 deletions
This file was deleted.
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/csky,apb-intc.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: C-SKY APB Interrupt Controller
8+
9+
maintainers:
10+
- Guo Ren <guoren@kernel.org>
11+
12+
description: >
13+
C-SKY APB Interrupt Controller is a simple soc interrupt controller on the apb
14+
bus and we only use it as root irq controller.
15+
16+
- csky,apb-intc is used in a lot of csky fpgas and socs, it support 64 irq nums.
17+
- csky,dual-apb-intc consists of 2 apb-intc and 128 irq nums supported.
18+
- csky,gx6605s-intc is gx6605s soc internal irq interrupt controller, 64 irq nums.
19+
20+
properties:
21+
compatible:
22+
enum:
23+
- csky,apb-intc
24+
- csky,dual-apb-intc
25+
- csky,gx6605s-intc
26+
27+
reg:
28+
maxItems: 1
29+
30+
'#interrupt-cells':
31+
const: 1
32+
33+
interrupt-controller: true
34+
35+
csky,support-pulse-signal:
36+
type: boolean
37+
description: Support for pulse signal flag.
38+
39+
additionalProperties: false
40+
41+
required:
42+
- compatible
43+
- reg
44+
- '#interrupt-cells'
45+
- interrupt-controller
46+
47+
examples:
48+
- |
49+
intc: interrupt-controller@500000 {
50+
compatible = "csky,apb-intc";
51+
#interrupt-cells = <1>;
52+
reg = <0x00500000 0x400>;
53+
interrupt-controller;
54+
};

0 commit comments

Comments
 (0)