EcoNet EN751221 Interrupt Controller
Schema identifier ($id): "http://devicetree.org/schemas/interrupt-controller/econet,en751221-intc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Caleb James DeLisle <cjd@cjdns.fr>"
The EcoNet EN751221 Interrupt Controller is a simple interrupt controller designed for the MIPS 34Kc MT SMP processor with 2 VPEs. Each interrupt can be routed to either VPE but not both, so to support per-CPU interrupts, a secondary IRQ number is allocated to control masking/unmasking on VPE#1. For lack of a better term we call these "shadow interrupts". The assignment of shadow interrupts is defined by the SoC integrator when wiring the interrupt lines, so they are configurable in the device tree.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/interrupt-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "econet,en751221-intc"
reg — required here #
Maximum number of items (maxItems): 1
#interrupt-cells — required here #
Exact value (const): 1
interrupt-controller — required here #
true — No constraints added by this property rule.
interrupts — required here #
Maximum number of items (maxItems): 1
Interrupt line connecting this controller to its parent.
econet,shadow-interrupts — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-matrix
An array of interrupt number pairs where each pair represents a shadow interrupt relationship. The first number in each pair is the primary IRQ, and the second is its shadow IRQ used for VPE#1 control. For example, <8 3> means IRQ 8 is shadowed by IRQ 3, so IRQ 3 cannot be mapped, but when VPE#1 requests IRQ 8, it will manipulate the IRQ 3 mask bit.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 20
Array item rules (items) #
Array item rules (
items)Item 1
primary per-CPU IRQ
Item 2
shadow IRQ number
Required in this object (required): "compatible", "reg", "interrupt-controller", "#interrupt-cells", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
interrupt-controller@1fb40000 {
compatible = "econet,en751221-intc";
reg = <0x1fb40000 0x100>;
interrupt-controller;
#interrupt-cells = <1>;
interrupt-parent = <&cpuintc>;
interrupts = <2>;
econet,shadow-interrupts = <7 2>, <8 3>, <13 12>, <30 29>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)