Renesas RZ/G2L (and alike SoC's) Interrupt Controller (IA55)

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

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

Maintainers (maintainers): "Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>", "Geert Uytterhoeven <geert+renesas@glider.be>"

IA55 performs various interrupt controls including synchronization for the external
interrupts of NMI, IRQ, and GPIOINT and the interrupts of the built-in peripheral
interrupts output by each IP. And it notifies the interrupt to the GIC
  - IRQ sense select for 8 external interrupts, mapped to 8 GIC SPI interrupts
  - GPIO pins used as external interrupt input pins, mapped to 32 GIC SPI interrupts
  - NMI edge select (NMI is not treated as NMI exception and supports fall edge and
    stand-up edge detection interrupts)

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): "renesas,r9a07g043u-irqc", "renesas,r9a07g044-irqc", "renesas,r9a07g054-irqc", "renesas,r9a08g045-irqc"

Item 2

Exact value (const): "renesas,rzg2l-irqc"

Rule 2

Exact value (const): "renesas,r9a07g043f-irqc"

#interrupt-cells — required here #

The first cell should contain a macro RZG2L_{NMI,IRQX} included in the include/dt-bindings/interrupt-controller/irqc-rzg2l.h and the second cell is used to specify the flag.

Exact value (const): 2

#address-cells — required here #

Exact value (const): 0

interrupt-controller — required here #

true — No constraints added by this property rule.

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Minimum number of items (minItems): 45

Array item rules (items) #

Item 1

NMI interrupt

Item 2

IRQ0 interrupt

Item 3

IRQ1 interrupt

Item 4

IRQ2 interrupt

Item 5

IRQ3 interrupt

Item 6

IRQ4 interrupt

Item 7

IRQ5 interrupt

Item 8

IRQ6 interrupt

Item 9

IRQ7 interrupt

Item 10

GPIO interrupt, TINT0

Item 11

GPIO interrupt, TINT1

Item 12

GPIO interrupt, TINT2

Item 13

GPIO interrupt, TINT3

Item 14

GPIO interrupt, TINT4

Item 15

GPIO interrupt, TINT5

Item 16

GPIO interrupt, TINT6

Item 17

GPIO interrupt, TINT7

Item 18

GPIO interrupt, TINT8

Item 19

GPIO interrupt, TINT9

Item 20

GPIO interrupt, TINT10

Item 21

GPIO interrupt, TINT11

Item 22

GPIO interrupt, TINT12

Item 23

GPIO interrupt, TINT13

Item 24

GPIO interrupt, TINT14

Item 25

GPIO interrupt, TINT15

Item 26

GPIO interrupt, TINT16

Item 27

GPIO interrupt, TINT17

Item 28

GPIO interrupt, TINT18

Item 29

GPIO interrupt, TINT19

Item 30

GPIO interrupt, TINT20

Item 31

GPIO interrupt, TINT21

Item 32

GPIO interrupt, TINT22

Item 33

GPIO interrupt, TINT23

Item 34

GPIO interrupt, TINT24

Item 35

GPIO interrupt, TINT25

Item 36

GPIO interrupt, TINT26

Item 37

GPIO interrupt, TINT27

Item 38

GPIO interrupt, TINT28

Item 39

GPIO interrupt, TINT29

Item 40

GPIO interrupt, TINT30

Item 41

GPIO interrupt, TINT31

Item 42

Bus error interrupt

Item 43

ECCRAM0 or combined ECCRAM0/1 1bit error interrupt

Item 44

ECCRAM0 or combined ECCRAM0/1 2bit error interrupt

Item 45

ECCRAM0 or combined ECCRAM0/1 error overflow interrupt

Item 46

ECCRAM1 1bit error interrupt

Item 47

ECCRAM1 2bit error interrupt

Item 48

ECCRAM1 error overflow interrupt

interrupt-names — required here #

Minimum number of items (minItems): 45

Array item rules (items) #

Item 1

Exact value (const): "nmi"

Item 2

Exact value (const): "irq0"

Item 3

Exact value (const): "irq1"

Item 4

Exact value (const): "irq2"

Item 5

Exact value (const): "irq3"

Item 6

Exact value (const): "irq4"

Item 7

Exact value (const): "irq5"

Item 8

Exact value (const): "irq6"

Item 9

Exact value (const): "irq7"

Item 10

Exact value (const): "tint0"

Item 11

Exact value (const): "tint1"

Item 12

Exact value (const): "tint2"

Item 13

Exact value (const): "tint3"

Item 14

Exact value (const): "tint4"

Item 15

Exact value (const): "tint5"

Item 16

Exact value (const): "tint6"

Item 17

Exact value (const): "tint7"

Item 18

Exact value (const): "tint8"

Item 19

Exact value (const): "tint9"

Item 20

Exact value (const): "tint10"

Item 21

Exact value (const): "tint11"

Item 22

Exact value (const): "tint12"

Item 23

Exact value (const): "tint13"

Item 24

Exact value (const): "tint14"

Item 25

Exact value (const): "tint15"

Item 26

Exact value (const): "tint16"

Item 27

Exact value (const): "tint17"

Item 28

Exact value (const): "tint18"

Item 29

Exact value (const): "tint19"

Item 30

Exact value (const): "tint20"

Item 31

Exact value (const): "tint21"

Item 32

Exact value (const): "tint22"

Item 33

Exact value (const): "tint23"

Item 34

Exact value (const): "tint24"

Item 35

Exact value (const): "tint25"

Item 36

Exact value (const): "tint26"

Item 37

Exact value (const): "tint27"

Item 38

Exact value (const): "tint28"

Item 39

Exact value (const): "tint29"

Item 40

Exact value (const): "tint30"

Item 41

Exact value (const): "tint31"

Item 42

Exact value (const): "bus-err"

Item 43

Exact value (const): "ec7tie1-0"

Item 44

Exact value (const): "ec7tie2-0"

Item 45

Exact value (const): "ec7tiovf-0"

Item 46

Exact value (const): "ec7tie1-1"

Item 47

Exact value (const): "ec7tie2-1"

Item 48

Exact value (const): "ec7tiovf-1"

clocks — required here #

Maximum number of items (maxItems): 2

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "clk"

Item 2

Exact value (const): "pclk"

power-domains — required here #

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "#interrupt-cells", "#address-cells", "interrupt-controller", "reg", "interrupts", "interrupt-names", "clocks", "clock-names", "power-domains", "resets"

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "renesas,r9a08g045-irqc"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Maximum number of items (maxItems): 45

interrupt-names — not listed as required here

Maximum number of items (maxItems): 45

When the condition does not match (else) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 48

interrupt-names — not listed as required here

Minimum number of items (minItems): 48

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/r9a07g044-cpg.h>

irqc: interrupt-controller@110a0000 {
    compatible = "renesas,r9a07g044-irqc", "renesas,rzg2l-irqc";
    reg = <0x110a0000 0x10000>;
    #interrupt-cells = <2>;
    #address-cells = <0>;
    interrupt-controller;
    interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 444 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 445 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 446 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 447 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 448 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 449 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 450 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 451 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 452 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 453 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 454 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 455 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 456 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 457 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 458 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 459 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 460 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 461 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 462 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 463 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 464 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 465 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 466 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 467 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 468 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 469 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 470 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 471 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 472 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 473 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 474 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 475 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 25 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 34 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 35 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 36 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 37 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 38 IRQ_TYPE_EDGE_RISING>,
                 <GIC_SPI 39 IRQ_TYPE_EDGE_RISING>;
    interrupt-names = "nmi",
                      "irq0", "irq1", "irq2", "irq3",
                      "irq4", "irq5", "irq6", "irq7",
                      "tint0", "tint1", "tint2", "tint3",
                      "tint4", "tint5", "tint6", "tint7",
                      "tint8", "tint9", "tint10", "tint11",
                      "tint12", "tint13", "tint14", "tint15",
                      "tint16", "tint17", "tint18", "tint19",
                      "tint20", "tint21", "tint22", "tint23",
                      "tint24", "tint25", "tint26", "tint27",
                      "tint28", "tint29", "tint30", "tint31",
                      "bus-err", "ec7tie1-0", "ec7tie2-0",
                      "ec7tiovf-0", "ec7tie1-1", "ec7tie2-1",
                      "ec7tiovf-1";
    clocks = <&cpg CPG_MOD R9A07G044_IA55_CLK>,
             <&cpg CPG_MOD R9A07G044_IA55_PCLK>;
    clock-names = "clk", "pclk";
    power-domains = <&cpg>;
    resets = <&cpg R9A07G044_IA55_RESETN>;
};

Source notes #

Annotations retained from the schema source

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

Line 27: RZ/G2UL

Line 28: RZ/G2{L,LC}

Line 29: RZ/V2L

Line 30: RZ/G3S

Line 33: RZ/Five

Edit this page