Texas Instruments K3 Interrupt Router

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

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

Maintainers (maintainers): "Lokesh Vutla <lokeshvutla@ti.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/arm/keystone/ti,k3-sci-common.yaml#

The Interrupt Router (INTR) module provides a mechanism to mux M interrupt inputs to N interrupt outputs, where all M inputs are selectable to be driven per N output.

                                 Interrupt Router
                             +----------------------+
                             |  Inputs     Outputs  |
        +-------+            | +------+    +-----+  |
        | GPIO  |----------->| | irq0 |    |  0  |  |       Host IRQ
        +-------+            | +------+    +-----+  |      controller
                             |    .           .     |      +-------+
        +-------+            |    .           .     |----->|  IRQ  |
        | INTA  |----------->|    .           .     |      +-------+
        +-------+            |    .        +-----+  |
                             | +------+    |  N  |  |
                             | | irqM |    +-----+  |
                             | +------+             |
                             |                      |
                             +----------------------+

There is one register per output (MUXCNTL_N) that controls the selection. Configuration of these MUXCNTL_N registers is done by a system controller (like the Device Memory and Security Controller on K3 AM654 SoC). System controller will keep track of the used and unused registers within the Router. Driver should request the system controller to get the range of GIC IRQs assigned to the requesting hosts. It is the drivers responsibility to keep track of Host IRQs.

Communication between the host processor running an OS and the system controller happens through a protocol called TI System Control Interface (TISCI protocol).

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "ti,sci-intr"

ti,intr-trigger-type — not listed as required here #

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

Allowed values (enum): 1, 4

Should be one of the following.
  1 = If intr supports edge triggered interrupts.
  4 = If intr supports level triggered interrupts.

reg — not listed as required here #

Maximum number of items (maxItems): 1

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — required here #

Allowed values (enum): 1, 2

Number of cells in interrupt specifier. Depends on ti,intr-trigger-type:
- If ti,intr-trigger-type is present: must be 1
  The 1st cell should contain interrupt router input hw number.
- If ti,intr-trigger-type is absent: must be 2
  The 1st cell should contain interrupt router input hw number.
  The 2nd cell should contain interrupt trigger type (preserved by router).

ti,interrupt-ranges — required here #

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

Interrupt ranges that converts the INTR output hw irq numbers to parents's input interrupt numbers.

Array item rules (items) #

Array item rules (items)

Item 1

"output_irq" specifies the base for intr output irq

Item 2

"parent's input irq" specifies the base for parent irq

Item 3

"limit" specifies the limit for translation

Condition (if) #

Required in this object (required): "ti,intr-trigger-type"

When the condition matches (then) #

Properties and child nodes (properties) #

#interrupt-cells — not listed as required here #

Exact value (const): 1

Interrupt ID only. Interrupt type is specified globally

When the condition does not match (else) #

Properties and child nodes (properties) #

#interrupt-cells — not listed as required here #

Exact value (const): 2

Interrupt ID and corresponding interrupt type

Required in this object (required): "compatible", "interrupt-controller", "#interrupt-cells", "ti,sci", "ti,sci-dev-id", "ti,interrupt-ranges"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

main_gpio_intr: interrupt-controller0 {
    compatible = "ti,sci-intr";
    ti,intr-trigger-type = <1>;
    interrupt-controller;
    interrupt-parent = <&gic500>;
    #interrupt-cells = <1>;
    ti,sci = <&dmsc>;
    ti,sci-dev-id = <131>;
    ti,interrupt-ranges = <0 360 32>;
};
interrupt-controller {
    compatible = "ti,sci-intr";
    interrupt-controller;
    interrupt-parent = <&gic500>;
    #interrupt-cells = <2>;
    ti,sci = <&dmsc>;
    ti,sci-dev-id = <131>;
    ti,interrupt-ranges = <0 360 32>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page