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

dt-bindings: interrupt-controller: Convert ti,omap4-wugen-mpu to DT schema

Convert the TI Wakeup Generator interrupt controller binding to schema
format. It's a straight-forward conversion of the typical interrupt
controller.

Link: https://lore.kernel.org/r/20250505144913.1293967-1-robh@kernel.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

+55 -31
-31
Documentation/devicetree/bindings/interrupt-controller/ti,omap4-wugen-mpu.txt
··· 1 - TI OMAP4 Wake-up Generator 2 - 3 - All TI OMAP4/5 (and their derivatives) an interrupt controller that 4 - routes interrupts to the GIC, and also serves as a wakeup source. It 5 - is also referred to as "WUGEN-MPU", hence the name of the binding. 6 - 7 - Required properties: 8 - 9 - - compatible : should contain at least "ti,omap4-wugen-mpu" or 10 - "ti,omap5-wugen-mpu" 11 - - reg : Specifies base physical address and size of the registers. 12 - - interrupt-controller : Identifies the node as an interrupt controller. 13 - - #interrupt-cells : Specifies the number of cells needed to encode an 14 - interrupt source. The value must be 3. 15 - 16 - Notes: 17 - 18 - - Because this HW ultimately routes interrupts to the GIC, the 19 - interrupt specifier must be that of the GIC. 20 - - Only SPIs can use the WUGEN as an interrupt parent. SGIs and PPIs 21 - are explicitly forbidden. 22 - 23 - Example: 24 - 25 - wakeupgen: interrupt-controller@48281000 { 26 - compatible = "ti,omap5-wugen-mpu", "ti,omap4-wugen-mpu"; 27 - interrupt-controller; 28 - #interrupt-cells = <3>; 29 - reg = <0x48281000 0x1000>; 30 - interrupt-parent = <&gic>; 31 - };
+55
Documentation/devicetree/bindings/interrupt-controller/ti,omap4-wugen-mpu.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/ti,omap4-wugen-mpu.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: TI OMAP4 Wake-up Generator 8 + 9 + maintainers: 10 + - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> 11 + 12 + description: > 13 + All TI OMAP4/5 (and their derivatives) are interrupt controllers that route 14 + interrupts to the GIC, and also serve as wakeup sources. They are also 15 + referred to as "WUGEN-MPU", hence the name of the binding. 16 + 17 + Notes: 18 + 19 + - Because this HW ultimately routes interrupts to the GIC, the interrupt 20 + specifier must be that of the GIC. 21 + - Only SPIs can use the WUGEN as an interrupt parent. SGIs and PPIs are 22 + explicitly forbidden. 23 + 24 + properties: 25 + compatible: 26 + oneOf: 27 + - items: 28 + - const: ti,omap5-wugen-mpu 29 + - const: ti,omap4-wugen-mpu 30 + - const: ti,omap4-wugen-mpu 31 + 32 + reg: 33 + maxItems: 1 34 + 35 + interrupt-controller: true 36 + 37 + '#interrupt-cells': 38 + const: 3 39 + 40 + required: 41 + - compatible 42 + - reg 43 + - interrupt-controller 44 + - '#interrupt-cells' 45 + 46 + additionalProperties: false 47 + 48 + examples: 49 + - | 50 + interrupt-controller@48281000 { 51 + compatible = "ti,omap5-wugen-mpu", "ti,omap4-wugen-mpu"; 52 + reg = <0x48281000 0x1000>; 53 + interrupt-controller; 54 + #interrupt-cells = <3>; 55 + };