-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dt-bindings: intc: Convert ingenic,intc.txt to YAML
Convert the ingenic,intc.txt doc file to ingenic,intc.yaml. Some compatible strings now require a fallback, as the controller generally works the same across the SoCs families. Signed-off-by: Paul Cercueil <paul@crapouillou.net> Signed-off-by: Rob Herring <robh@kernel.org>
- Loading branch information
Paul Cercueil
authored and
Rob Herring
committed
May 11, 2020
1 parent
4b7cf35
commit 6e172df
Showing
2 changed files
with
63 additions
and
28 deletions.
There are no files selected for viewing
28 changes: 0 additions & 28 deletions
28
Documentation/devicetree/bindings/interrupt-controller/ingenic,intc.txt
This file was deleted.
Oops, something went wrong.
63 changes: 63 additions & 0 deletions
63
Documentation/devicetree/bindings/interrupt-controller/ingenic,intc.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/interrupt-controller/ingenic,intc.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Ingenic SoCs interrupt controller devicetree bindings | ||
|
||
maintainers: | ||
- Paul Cercueil <paul@crapouillou.net> | ||
|
||
properties: | ||
$nodename: | ||
pattern: "^interrupt-controller@[0-9a-f]+$" | ||
|
||
compatible: | ||
oneOf: | ||
- enum: | ||
- ingenic,jz4740-intc | ||
- ingenic,jz4760-intc | ||
- ingenic,jz4780-intc | ||
- items: | ||
- enum: | ||
- ingenic,jz4775-intc | ||
- ingenic,jz4770-intc | ||
- const: ingenic,jz4760-intc | ||
- items: | ||
- const: ingenic,x1000-intc | ||
- const: ingenic,jz4780-intc | ||
- items: | ||
- const: ingenic,jz4725b-intc | ||
- const: ingenic,jz4740-intc | ||
|
||
"#interrupt-cells": | ||
const: 1 | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
interrupts: | ||
maxItems: 1 | ||
|
||
interrupt-controller: true | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- interrupts | ||
- "#interrupt-cells" | ||
- interrupt-controller | ||
|
||
examples: | ||
- | | ||
intc: interrupt-controller@10001000 { | ||
compatible = "ingenic,jz4770-intc", "ingenic,jz4760-intc"; | ||
reg = <0x10001000 0x40>; | ||
interrupt-controller; | ||
#interrupt-cells = <1>; | ||
interrupt-parent = <&cpuintc>; | ||
interrupts = <2>; | ||
}; |