ACLINT Supervisor-level Software Interrupt Device

Schema identifier ($id): "http://devicetree.org/schemas/interrupt-controller/thead,c900-aclint-sswi.yaml#"

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

Maintainers (maintainers): "Inochi Amaoto <inochiama@outlook.com>"

The SSWI device is a part of the ACLINT device. It provides supervisor-level IPI functionality for a set of HARTs on a supported platforms. It provides a register to set an IPI (SETSSIP) for each HART connected to the SSWI device. See draft specification https://github.com/riscvarchive/riscv-aclint Following variants of the SSWI ACLINT supported, using dedicated compatible string - THEAD C900 - MIPS P8700

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "sophgo,sg2044-aclint-sswi"

Item 2

Exact value (const): "thead,c900-aclint-sswi"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "mips,p8700-aclint-sswi"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "anlogic,dr1v90-aclint-sswi"

Item 2

Exact value (const): "nuclei,ux900-aclint-sswi"

reg — required here #

Maximum number of items (maxItems): 1

#interrupt-cells — required here #

Exact value (const): 0

interrupt-controller — required here #

true — No constraints added by this property rule.

interrupts-extended — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4095

riscv,hart-indexes — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4095

A list of hart indexes that APLIC should use to address each hart that is mentioned in the "interrupts-extended"

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

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "#interrupt-cells", "interrupt-controller", "interrupts-extended"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "mips,p8700-aclint-sswi"

When the condition matches (then) #

Required in this object (required): "riscv,hart-indexes"

When the condition does not match (else) #

Properties and child nodes (properties)

riscv,hart-indexes — not listed as required here

false — Not permitted by this property rule.

Examples (examples) #

//Example 1
interrupt-controller@94000000 {
  compatible = "sophgo,sg2044-aclint-sswi", "thead,c900-aclint-sswi";
  reg = <0x94000000 0x00004000>;
  #interrupt-cells = <0>;
  interrupt-controller;
  interrupts-extended = <&cpu1intc 1>,
                        <&cpu2intc 1>,
                        <&cpu3intc 1>,
                        <&cpu4intc 1>;
};
//Example 2
interrupt-controller@94000000 {
  compatible = "mips,p8700-aclint-sswi";
  reg = <0x94000000 0x00004000>;
  #interrupt-cells = <0>;
  interrupt-controller;
  interrupts-extended = <&cpu1intc 1>,
                        <&cpu2intc 1>,
                        <&cpu3intc 1>,
                        <&cpu4intc 1>;
  riscv,hart-indexes = <0x0 0x1 0x10 0x11>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page