summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/interrupt-controller/msi-controller.yaml
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@openbsd.org>2021-09-21 21:34:12 +0300
committerRob Herring <robh@kernel.org>2021-09-27 19:54:51 +0300
commit2e8b4b6ebe56caed404982b703b5225857226225 (patch)
tree38c672b2efb26f18695360929d044f9d49f05526 /Documentation/devicetree/bindings/interrupt-controller/msi-controller.yaml
parent9ae54ce551e9661e7dfd7b8b3d32913162208f40 (diff)
downloadlinux-2e8b4b6ebe56caed404982b703b5225857226225.tar.xz
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: Marc Zyngier <maz@kernel.org> Signed-off-by: Mark Kettenis <kettenis@openbsd.org> Link: https://lore.kernel.org/r/20210921183420.436-2-kettenis@openbsd.org Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/interrupt-controller/msi-controller.yaml')
-rw-r--r--Documentation/devicetree/bindings/interrupt-controller/msi-controller.yaml38
1 files changed, 38 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/interrupt-controller/msi-controller.yaml b/Documentation/devicetree/bindings/interrupt-controller/msi-controller.yaml
new file mode 100644
index 000000000000..58d898d5b943
--- /dev/null
+++ b/Documentation/devicetree/bindings/interrupt-controller/msi-controller.yaml
@@ -0,0 +1,38 @@
+# 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