Commit 2e8b4b6e authored by Mark Kettenis's avatar Mark Kettenis Committed by Rob Herring

dt-bindings: interrupt-controller: Convert MSI controller to json-schema

Split the MSI controller bindings from the MSI binding document
into DT schema format using json-schema.
Acked-by: default avatarMarc Zyngier <maz@kernel.org>
Signed-off-by: default avatarMark Kettenis <kettenis@openbsd.org>
Link: https://lore.kernel.org/r/20210921183420.436-2-kettenis@openbsd.orgSigned-off-by: default avatarRob Herring <robh@kernel.org>
parent 9ae54ce5
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/interrupt-controller/msi-controller.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: MSI controller
maintainers:
- Marc Zyngier <maz@kernel.org>
description: |
An MSI controller signals interrupts to a CPU when a write is made
to an MMIO address by some master. An MSI controller may feature a
number of doorbells.
properties:
"#msi-cells":
description: |
The number of cells in an msi-specifier, required if not zero.
Typically this will encode information related to sideband data,
and will not encode doorbells or payloads as these can be
configured dynamically.
The meaning of the msi-specifier is defined by the device tree
binding of the specific MSI controller.
enum: [0, 1]
msi-controller:
description:
Identifies the node as an MSI controller.
$ref: /schemas/types.yaml#/definitions/flag
dependencies:
"#msi-cells": [ msi-controller ]
additionalProperties: true
...@@ -88,6 +88,7 @@ required: ...@@ -88,6 +88,7 @@ required:
allOf: allOf:
- $ref: /schemas/pci/pci-bus.yaml# - $ref: /schemas/pci/pci-bus.yaml#
- $ref: /schemas/interrupt-controller/msi-controller.yaml#
- if: - if:
properties: properties:
compatible: compatible:
......
...@@ -11,6 +11,7 @@ maintainers: ...@@ -11,6 +11,7 @@ maintainers:
allOf: allOf:
- $ref: /schemas/pci/pci-bus.yaml# - $ref: /schemas/pci/pci-bus.yaml#
- $ref: /schemas/interrupt-controller/msi-controller.yaml#
properties: properties:
compatible: compatible:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment