Sophgo SG2042 MSI Controller

Schema identifier ($id): "http://devicetree.org/schemas/interrupt-controller/sophgo,sg2042-msi.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Chen Wang <unicorn_wang@outlook.com>"

This interrupt controller is in Sophgo SG2042 for transforming interrupts from PCIe MSI to PLIC interrupts.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/interrupt-controller/msi-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "sophgo,sg2042-msi", "sophgo,sg2044-msi"

reg — required here #

Array item rules (items) #

Item 1

clear register

Item 2

msi doorbell address

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "clr"

Item 2

Exact value (const): "doorbell"

msi-controller — required here #

true — No constraints added by this property rule.

msi-ranges — required here #

Maximum number of items (maxItems): 1

#msi-cells — required here #

Exact value (const): 0

Required in this object (required): "compatible", "reg", "reg-names", "msi-controller", "msi-ranges", "#msi-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
msi-controller@30000000 {
  compatible = "sophgo,sg2042-msi";
  reg = <0x30000000 0x4>, <0x30000008 0x4>;
  reg-names = "clr", "doorbell";
  msi-controller;
  #msi-cells = <0>;
  msi-ranges = <&plic 64 IRQ_TYPE_LEVEL_HIGH 32>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Edit this page