mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
Document RZ/G3L (R9A08G046) IRQC. The IRQC block on the RZ/G3L SoC is nearly identical to that found on the RZ/G3S SoC, with the following differences: it supports more external interrupts and GPT error interrupts, and adds registers for GPT/MTU interrupt selection and shared interrupt selection between external interrupt and TINT. A new compatible string "renesas,r9a08g046-irqc" is therefore introduced for the RZ/G3L SoC. Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Link: https://patch.msgid.link/20260325192451.172562-3-biju.das.jz@bp.renesas.com
238 lines
8.0 KiB
YAML
238 lines
8.0 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/interrupt-controller/renesas,rzg2l-irqc.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Renesas RZ/G2L (and alike SoC's) Interrupt Controller (IA55)
|
|
|
|
maintainers:
|
|
- Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
|
|
- Geert Uytterhoeven <geert+renesas@glider.be>
|
|
|
|
description: |
|
|
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:
|
|
compatible:
|
|
oneOf:
|
|
- items:
|
|
- enum:
|
|
- renesas,r9a07g043u-irqc # RZ/G2UL
|
|
- renesas,r9a07g044-irqc # RZ/G2{L,LC}
|
|
- renesas,r9a07g054-irqc # RZ/V2L
|
|
- renesas,r9a08g045-irqc # RZ/G3S
|
|
- const: renesas,rzg2l-irqc
|
|
|
|
- enum:
|
|
- renesas,r9a07g043f-irqc # RZ/Five
|
|
- renesas,r9a08g046-irqc # RZ/G3L
|
|
|
|
'#interrupt-cells':
|
|
description: 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.
|
|
const: 2
|
|
|
|
'#address-cells':
|
|
const: 0
|
|
|
|
interrupt-controller: true
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
interrupts:
|
|
minItems: 45
|
|
maxItems: 61
|
|
|
|
interrupt-names:
|
|
minItems: 45
|
|
maxItems: 61
|
|
items:
|
|
oneOf:
|
|
- description: NMI interrupt
|
|
const: nmi
|
|
- description: External IRQ interrupt
|
|
pattern: '^irq([0-9]|1[0-5])$'
|
|
- description: GPIO interrupt
|
|
pattern: '^tint([0-9]|1[0-9]|2[0-9]|3[0-1])$'
|
|
- description: Bus error interrupt
|
|
const: bus-err
|
|
- description: ECCRAM0 or combined ECCRAM0/1 1bit error interrupt
|
|
const: ec7tie1-0
|
|
- description: ECCRAM0 or combined ECCRAM0/1 2bit error interrupt
|
|
const: ec7tie2-0
|
|
- description: ECCRAM0 or combined ECCRAM0/1 error overflow interrupt
|
|
const: ec7tiovf-0
|
|
- description: ECCRAM1 1bit error interrupt
|
|
const: ec7tie1-1
|
|
- description: ECCRAM1 2bit error interrupt
|
|
const: ec7tie2-1
|
|
- description: ECCRAM1 error overflow interrupt
|
|
const: ec7tiovf-1
|
|
- description: Integrated GPT Error interrupt
|
|
pattern: '^ovfunf([0-7])$'
|
|
|
|
clocks:
|
|
maxItems: 2
|
|
|
|
clock-names:
|
|
items:
|
|
- const: clk
|
|
- const: pclk
|
|
|
|
power-domains:
|
|
maxItems: 1
|
|
|
|
resets:
|
|
maxItems: 1
|
|
|
|
required:
|
|
- compatible
|
|
- '#interrupt-cells'
|
|
- '#address-cells'
|
|
- interrupt-controller
|
|
- reg
|
|
- interrupts
|
|
- interrupt-names
|
|
- clocks
|
|
- clock-names
|
|
- power-domains
|
|
- resets
|
|
|
|
allOf:
|
|
- $ref: /schemas/interrupt-controller.yaml#
|
|
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
enum:
|
|
- renesas,r9a07g043f-irqc
|
|
- renesas,r9a07g043u-irqc
|
|
- renesas,r9a07g044-irqc
|
|
- renesas,r9a07g054-irqc
|
|
then:
|
|
properties:
|
|
interrupts:
|
|
minItems: 48
|
|
maxItems: 48
|
|
interrupt-names:
|
|
minItems: 48
|
|
maxItems: 48
|
|
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
enum:
|
|
- renesas,r9a08g045-irqc
|
|
then:
|
|
properties:
|
|
interrupts:
|
|
maxItems: 45
|
|
interrupt-names:
|
|
maxItems: 45
|
|
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
contains:
|
|
enum:
|
|
- renesas,r9a08g046-irqc
|
|
then:
|
|
properties:
|
|
interrupts:
|
|
minItems: 61
|
|
interrupt-names:
|
|
minItems: 61
|
|
|
|
unevaluatedProperties: false
|
|
|
|
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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PI 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>;
|
|
};
|