Andes machine-level software interrupt controller

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

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

In the Andes platform such as QiLai SoC, the PLIC module is instantiated a second time with all interrupt sources tied to zero as the software interrupt controller (PLIC_SW). PLIC_SW directly connects to the machine-mode inter-processor interrupt lines of CPUs, so RISC-V per-CPU local interrupt controller is the parent interrupt controller for PLIC_SW. PLIC_SW can generate machine-mode inter-processor interrupts through programming its registers.

Maintainers (maintainers): "Ben Zong-You Xie <ben717@andestech.com>"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "andestech,qilai-plicsw"

Item 2

Exact value (const): "andestech,plicsw"

reg — required here #

Maximum number of items (maxItems): 1

interrupts-extended — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 15872

Specifies which harts are connected to the PLIC_SW. Each item must points to a riscv,cpu-intc node, which has a riscv cpu node as parent.

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "interrupts-extended"

Examples (examples) #

interrupt-controller@400000 {
  compatible = "andestech,qilai-plicsw", "andestech,plicsw";
  reg = <0x400000 0x400000>;
  interrupts-extended = <&cpu0intc 3>,
                        <&cpu1intc 3>,
                        <&cpu2intc 3>,
                        <&cpu3intc 3>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page