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

dt-bindings: interrupt-controller: Convert opencores,or1k-pic to DT schema

Convert the OpenRISC PIC interrupt controller binding to schema
format. It's a straight-forward conversion of the typical interrupt
controller.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Stafford Horne <shorne@gmail.com>

authored by

Rob Herring (Arm) and committed by
Stafford Horne
e551ebdc af69647e

+38 -23
-23
Documentation/devicetree/bindings/interrupt-controller/opencores,or1k-pic.txt
··· 1 - OpenRISC 1000 Programmable Interrupt Controller 2 - 3 - Required properties: 4 - 5 - - compatible : should be "opencores,or1k-pic-level" for variants with 6 - level triggered interrupt lines, "opencores,or1k-pic-edge" for variants with 7 - edge triggered interrupt lines or "opencores,or1200-pic" for machines 8 - with the non-spec compliant or1200 type implementation. 9 - 10 - "opencores,or1k-pic" is also provided as an alias to "opencores,or1200-pic", 11 - but this is only for backwards compatibility. 12 - 13 - - interrupt-controller : Identifies the node as an interrupt controller 14 - - #interrupt-cells : Specifies the number of cells needed to encode an 15 - interrupt source. The value shall be 1. 16 - 17 - Example: 18 - 19 - intc: interrupt-controller { 20 - compatible = "opencores,or1k-pic-level"; 21 - interrupt-controller; 22 - #interrupt-cells = <1>; 23 - };
+38
Documentation/devicetree/bindings/interrupt-controller/opencores,or1k-pic.yaml
··· 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/opencores,or1k-pic.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: OpenRISC 1000 Programmable Interrupt Controller 8 + 9 + maintainers: 10 + - Stefan Kristiansson <stefan.kristiansson@saunalahti.fi> 11 + 12 + properties: 13 + compatible: 14 + enum: 15 + - opencores,or1k-pic-level 16 + - opencores,or1k-pic-edge 17 + - opencores,or1200-pic 18 + - opencores,or1k-pic 19 + 20 + interrupt-controller: true 21 + 22 + '#interrupt-cells': 23 + const: 1 24 + 25 + required: 26 + - compatible 27 + - interrupt-controller 28 + - '#interrupt-cells' 29 + 30 + additionalProperties: false 31 + 32 + examples: 33 + - | 34 + interrupt-controller { 35 + compatible = "opencores,or1k-pic-level"; 36 + interrupt-controller; 37 + #interrupt-cells = <1>; 38 + };