Skip to content

Commit 39fc026

Browse files
leofthiratarobherring
authored andcommitted
dt-bindings: interrupt-controller: Convert nxp,lpc3220-mic.txt to yaml format
Convert NXP LPC3220-MIC to DT schema. Signed-off-by: Leonardo Felipe Takao Hirata <[email protected]> Acked-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring (Arm) <[email protected]>
1 parent a78f7a3 commit 39fc026

File tree

2 files changed

+68
-58
lines changed

2 files changed

+68
-58
lines changed

Documentation/devicetree/bindings/interrupt-controller/nxp,lpc3220-mic.txt

Lines changed: 0 additions & 58 deletions
This file was deleted.
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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/nxp,lpc3220-mic.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: NXP LPC32xx MIC, SIC1 and SIC2 Interrupt Controllers
8+
9+
maintainers:
10+
- Vladimir Zapolskiy <[email protected]>
11+
12+
properties:
13+
compatible:
14+
enum:
15+
- nxp,lpc3220-mic
16+
- nxp,lpc3220-sic
17+
18+
reg:
19+
maxItems: 1
20+
21+
interrupt-controller: true
22+
23+
'#interrupt-cells':
24+
const: 2
25+
26+
interrupts:
27+
items:
28+
- description: Regular interrupt request
29+
- description: Fast interrupt request
30+
31+
required:
32+
- compatible
33+
- reg
34+
- interrupt-controller
35+
- '#interrupt-cells'
36+
37+
allOf:
38+
- if:
39+
properties:
40+
compatible:
41+
contains:
42+
const: nxp,lpc3220-sic
43+
then:
44+
required:
45+
- interrupts
46+
47+
additionalProperties: false
48+
49+
examples:
50+
- |
51+
#include <dt-bindings/interrupt-controller/irq.h>
52+
53+
mic: interrupt-controller@40008000 {
54+
compatible = "nxp,lpc3220-mic";
55+
reg = <0x40008000 0x4000>;
56+
interrupt-controller;
57+
#interrupt-cells = <2>;
58+
};
59+
60+
interrupt-controller@4000c000 {
61+
compatible = "nxp,lpc3220-sic";
62+
reg = <0x4000c000 0x4000>;
63+
interrupt-controller;
64+
#interrupt-cells = <2>;
65+
interrupt-parent = <&mic>;
66+
interrupts = <0 IRQ_TYPE_LEVEL_LOW>,
67+
<30 IRQ_TYPE_LEVEL_LOW>;
68+
};

0 commit comments

Comments
 (0)