Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: irq: Convert Allwinner IRQ Controller to a schema

The Allwinner SoCs have an interrupt controller supported in Linux, with a
matching Device Tree binding.

Now that we have the DT validation in place, let's convert the device tree
bindings for that controller over to a YAML schemas.

Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Maxime Ripard and committed by
Rob Herring
2eccb565 a7bcae59

+47 -20
+47
Documentation/devicetree/bindings/interrupt-controller/allwinner,sun4i-a10-ic.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/interrupt-controller/allwinner,sun4i-a10-ic.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Allwinner A10 Interrupt Controller Device Tree Bindings 8 + 9 + maintainers: 10 + - Chen-Yu Tsai <wens@csie.org> 11 + - Maxime Ripard <maxime.ripard@bootlin.com> 12 + 13 + allOf: 14 + - $ref: /schemas/interrupt-controller.yaml# 15 + 16 + properties: 17 + "#interrupt-cells": 18 + const: 1 19 + 20 + compatible: 21 + enum: 22 + - allwinner,sun4i-a10-ic 23 + - allwinner,suniv-f1c100s-ic 24 + 25 + reg: 26 + maxItems: 1 27 + 28 + interrupt-controller: true 29 + 30 + required: 31 + - "#interrupt-cells" 32 + - compatible 33 + - reg 34 + - interrupt-controller 35 + 36 + additionalProperties: false 37 + 38 + examples: 39 + - | 40 + intc: interrupt-controller@1c20400 { 41 + compatible = "allwinner,sun4i-a10-ic"; 42 + reg = <0x01c20400 0x400>; 43 + interrupt-controller; 44 + #interrupt-cells = <1>; 45 + }; 46 + 47 + ...
-20
Documentation/devicetree/bindings/interrupt-controller/allwinner,sun4i-ic.txt
··· 1 - Allwinner Sunxi Interrupt Controller 2 - 3 - Required properties: 4 - 5 - - compatible : should be one of the following: 6 - "allwinner,sun4i-a10-ic" 7 - "allwinner,suniv-f1c100s-ic" 8 - - reg : Specifies base physical address and size of the registers. 9 - - interrupt-controller : Identifies the node as an interrupt controller 10 - - #interrupt-cells : Specifies the number of cells needed to encode an 11 - interrupt source. The value shall be 1. 12 - 13 - Example: 14 - 15 - intc: interrupt-controller { 16 - compatible = "allwinner,sun4i-a10-ic"; 17 - reg = <0x01c20400 0x400>; 18 - interrupt-controller; 19 - #interrupt-cells = <1>; 20 - };