Skip to content

Commit f3ce2e1

Browse files
committed
dt-bindings: interrupt-controller: Convert qca,ar7100-cpu-intc to DT schema
Convert the Qualcomm Atheros ath79 CPU interrupt controller binding to schema format. Link: https://lore.kernel.org/r/20250505144817.1291980-1-robh@kernel.org Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
1 parent bbb1999 commit f3ce2e1

2 files changed

Lines changed: 61 additions & 44 deletions

File tree

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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/qca,ar7100-cpu-intc.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Qualcomm Atheros ath79 CPU interrupt controller
8+
9+
maintainers:
10+
- Alban Bedel <albeu@free.fr>
11+
12+
description:
13+
On most SoC the IRQ controller need to flush the DDR FIFO before running the
14+
interrupt handler of some devices. This is configured using the
15+
qca,ddr-wb-channels and qca,ddr-wb-channel-interrupts properties.
16+
17+
properties:
18+
compatible:
19+
oneOf:
20+
- items:
21+
- const: qca,ar9132-cpu-intc
22+
- const: qca,ar7100-cpu-intc
23+
- items:
24+
- const: qca,ar7100-cpu-intc
25+
26+
interrupt-controller: true
27+
28+
'#interrupt-cells':
29+
const: 1
30+
31+
qca,ddr-wb-channel-interrupts:
32+
description: List of interrupts needing a write buffer flush
33+
$ref: /schemas/types.yaml#/definitions/uint32-array
34+
35+
qca,ddr-wb-channels:
36+
description: List of write buffer channel phandles for each interrupt
37+
$ref: /schemas/types.yaml#/definitions/phandle-array
38+
39+
required:
40+
- compatible
41+
- interrupt-controller
42+
- '#interrupt-cells'
43+
44+
additionalProperties: false
45+
46+
examples:
47+
- |
48+
interrupt-controller {
49+
compatible = "qca,ar9132-cpu-intc", "qca,ar7100-cpu-intc";
50+
51+
interrupt-controller;
52+
#interrupt-cells = <1>;
53+
54+
qca,ddr-wb-channel-interrupts = <2>, <3>, <4>, <5>;
55+
qca,ddr-wb-channels = <&ddr_ctrl 3>, <&ddr_ctrl 2>,
56+
<&ddr_ctrl 0>, <&ddr_ctrl 1>;
57+
};
58+
59+
ddr_ctrl: memory-controller {
60+
#qca,ddr-wb-channel-cells = <1>;
61+
};

Documentation/devicetree/bindings/interrupt-controller/qca,ath79-cpu-intc.txt

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

0 commit comments

Comments
 (0)