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

dt-bindings: interrupt-controller: Convert marvell,odmi-controller to DT schema

Convert the Marvell On-Die Message interrupt controller binding to
schema format.

Drop the 'interrupt-controller' property which isn't relevant for an MSI
controller.

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

+54 -42
-42
Documentation/devicetree/bindings/interrupt-controller/marvell,odmi-controller.txt
··· 1 - 2 - * Marvell ODMI for MSI support 3 - 4 - Some Marvell SoCs have an On-Die Message Interrupt (ODMI) controller 5 - which can be used by on-board peripheral for MSI interrupts. 6 - 7 - Required properties: 8 - 9 - - compatible : The value here should contain: 10 - 11 - "marvell,ap806-odmi-controller", "marvell,odmi-controller". 12 - 13 - - interrupt,controller : Identifies the node as an interrupt controller. 14 - 15 - - msi-controller : Identifies the node as an MSI controller. 16 - 17 - - marvell,odmi-frames : Number of ODMI frames available. Each frame 18 - provides a number of events. 19 - 20 - - reg : List of register definitions, one for each 21 - ODMI frame. 22 - 23 - - marvell,spi-base : List of GIC base SPI interrupts, one for each 24 - ODMI frame. Those SPI interrupts are 0-based, 25 - i.e marvell,spi-base = <128> will use SPI #96. 26 - See Documentation/devicetree/bindings/interrupt-controller/arm,gic.yaml 27 - for details about the GIC Device Tree binding. 28 - 29 - Example: 30 - 31 - odmi: odmi@300000 { 32 - compatible = "marvell,ap806-odmi-controller", 33 - "marvell,odmi-controller"; 34 - interrupt-controller; 35 - msi-controller; 36 - marvell,odmi-frames = <4>; 37 - reg = <0x300000 0x4000>, 38 - <0x304000 0x4000>, 39 - <0x308000 0x4000>, 40 - <0x30C000 0x4000>; 41 - marvell,spi-base = <128>, <136>, <144>, <152>; 42 - };
+54
Documentation/devicetree/bindings/interrupt-controller/marvell,odmi-controller.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/marvell,odmi-controller.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Marvell ODMI controller 8 + 9 + maintainers: 10 + - Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 11 + 12 + description: 13 + Some Marvell SoCs have an On-Die Message Interrupt (ODMI) controller which can 14 + be used by on-board peripherals for MSI interrupts. 15 + 16 + properties: 17 + compatible: 18 + const: marvell,odmi-controller 19 + 20 + reg: 21 + description: List of register definitions, one for each ODMI frame. 22 + 23 + msi-controller: true 24 + 25 + marvell,odmi-frames: 26 + description: Number of ODMI frames available. Each frame provides a number of events. 27 + $ref: /schemas/types.yaml#/definitions/uint32 28 + 29 + marvell,spi-base: 30 + description: > 31 + List of GIC base SPI interrupts, one for each ODMI frame. Those SPI 32 + interrupts are 0-based, i.e. marvell,spi-base = <128> will use SPI #96. 33 + See Documentation/devicetree/bindings/interrupt-controller/arm,gic.yaml 34 + for details. 35 + $ref: /schemas/types.yaml#/definitions/uint32-array 36 + 37 + required: 38 + - compatible 39 + - reg 40 + - msi-controller 41 + - marvell,odmi-frames 42 + - marvell,spi-base 43 + 44 + additionalProperties: false 45 + 46 + examples: 47 + - | 48 + msi-controller@300000 { 49 + compatible = "marvell,odmi-controller"; 50 + msi-controller; 51 + marvell,odmi-frames = <4>; 52 + reg = <0x300000 0x4000>, <0x304000 0x4000>, <0x308000 0x4000>, <0x30C000 0x4000>; 53 + marvell,spi-base = <128>, <136>, <144>, <152>; 54 + };