18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 28c2ecf20Sopenharmony_ci%YAML 1.2 38c2ecf20Sopenharmony_ci--- 48c2ecf20Sopenharmony_ci$id: http://devicetree.org/schemas/interrupt-controller/renesas,intc-irqpin.yaml# 58c2ecf20Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml# 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_cititle: Renesas Interrupt Controller (INTC) for external pins 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_cimaintainers: 108c2ecf20Sopenharmony_ci - Geert Uytterhoeven <geert+renesas@glider.be> 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ciproperties: 138c2ecf20Sopenharmony_ci compatible: 148c2ecf20Sopenharmony_ci items: 158c2ecf20Sopenharmony_ci - enum: 168c2ecf20Sopenharmony_ci - renesas,intc-irqpin-r8a7740 # R-Mobile A1 178c2ecf20Sopenharmony_ci - renesas,intc-irqpin-r8a7778 # R-Car M1A 188c2ecf20Sopenharmony_ci - renesas,intc-irqpin-r8a7779 # R-Car H1 198c2ecf20Sopenharmony_ci - renesas,intc-irqpin-sh73a0 # SH-Mobile AG5 208c2ecf20Sopenharmony_ci - const: renesas,intc-irqpin 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci reg: 238c2ecf20Sopenharmony_ci minItems: 5 248c2ecf20Sopenharmony_ci items: 258c2ecf20Sopenharmony_ci - description: Interrupt control register 268c2ecf20Sopenharmony_ci - description: Interrupt priority register 278c2ecf20Sopenharmony_ci - description: Interrupt source register 288c2ecf20Sopenharmony_ci - description: Interrupt mask register 298c2ecf20Sopenharmony_ci - description: Interrupt mask clear register 308c2ecf20Sopenharmony_ci - description: Interrupt control register for ICR0 with IRLM0 bit 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ci interrupt-controller: true 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci '#interrupt-cells': 358c2ecf20Sopenharmony_ci const: 2 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_ci interrupts: 388c2ecf20Sopenharmony_ci minItems: 1 398c2ecf20Sopenharmony_ci maxItems: 8 408c2ecf20Sopenharmony_ci 418c2ecf20Sopenharmony_ci sense-bitfield-width: 428c2ecf20Sopenharmony_ci $ref: /schemas/types.yaml#/definitions/uint32 438c2ecf20Sopenharmony_ci enum: [2, 4] 448c2ecf20Sopenharmony_ci default: 4 458c2ecf20Sopenharmony_ci description: 468c2ecf20Sopenharmony_ci Width of a single sense bitfield in the SENSE register, if different from the 478c2ecf20Sopenharmony_ci default. 488c2ecf20Sopenharmony_ci 498c2ecf20Sopenharmony_ci control-parent: 508c2ecf20Sopenharmony_ci type: boolean 518c2ecf20Sopenharmony_ci description: 528c2ecf20Sopenharmony_ci Disable and enable interrupts on the parent interrupt controller, needed for some 538c2ecf20Sopenharmony_ci broken implementations. 548c2ecf20Sopenharmony_ci 558c2ecf20Sopenharmony_ci clocks: 568c2ecf20Sopenharmony_ci maxItems: 1 578c2ecf20Sopenharmony_ci 588c2ecf20Sopenharmony_ci power-domains: 598c2ecf20Sopenharmony_ci maxItems: 1 608c2ecf20Sopenharmony_ci 618c2ecf20Sopenharmony_cirequired: 628c2ecf20Sopenharmony_ci - compatible 638c2ecf20Sopenharmony_ci - reg 648c2ecf20Sopenharmony_ci - interrupt-controller 658c2ecf20Sopenharmony_ci - '#interrupt-cells' 668c2ecf20Sopenharmony_ci - interrupts 678c2ecf20Sopenharmony_ci 688c2ecf20Sopenharmony_ciif: 698c2ecf20Sopenharmony_ci properties: 708c2ecf20Sopenharmony_ci compatible: 718c2ecf20Sopenharmony_ci contains: 728c2ecf20Sopenharmony_ci enum: 738c2ecf20Sopenharmony_ci - renesas,intc-irqpin-r8a7740 748c2ecf20Sopenharmony_ci - renesas,intc-irqpin-sh73a0 758c2ecf20Sopenharmony_cithen: 768c2ecf20Sopenharmony_ci required: 778c2ecf20Sopenharmony_ci - clocks 788c2ecf20Sopenharmony_ci - power-domains 798c2ecf20Sopenharmony_ci 808c2ecf20Sopenharmony_ciadditionalProperties: false 818c2ecf20Sopenharmony_ci 828c2ecf20Sopenharmony_ciexamples: 838c2ecf20Sopenharmony_ci - | 848c2ecf20Sopenharmony_ci #include <dt-bindings/clock/r8a7740-clock.h> 858c2ecf20Sopenharmony_ci #include <dt-bindings/interrupt-controller/arm-gic.h> 868c2ecf20Sopenharmony_ci #include <dt-bindings/interrupt-controller/irq.h> 878c2ecf20Sopenharmony_ci 888c2ecf20Sopenharmony_ci irqpin1: interrupt-controller@e6900004 { 898c2ecf20Sopenharmony_ci compatible = "renesas,intc-irqpin-r8a7740", "renesas,intc-irqpin"; 908c2ecf20Sopenharmony_ci reg = <0xe6900004 4>, 918c2ecf20Sopenharmony_ci <0xe6900014 4>, 928c2ecf20Sopenharmony_ci <0xe6900024 1>, 938c2ecf20Sopenharmony_ci <0xe6900044 1>, 948c2ecf20Sopenharmony_ci <0xe6900064 1>; 958c2ecf20Sopenharmony_ci interrupt-controller; 968c2ecf20Sopenharmony_ci #interrupt-cells = <2>; 978c2ecf20Sopenharmony_ci interrupts = <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>, 988c2ecf20Sopenharmony_ci <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>, 998c2ecf20Sopenharmony_ci <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>, 1008c2ecf20Sopenharmony_ci <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>, 1018c2ecf20Sopenharmony_ci <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>, 1028c2ecf20Sopenharmony_ci <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>, 1038c2ecf20Sopenharmony_ci <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>, 1048c2ecf20Sopenharmony_ci <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>; 1058c2ecf20Sopenharmony_ci clocks = <&mstp2_clks R8A7740_CLK_INTCA>; 1068c2ecf20Sopenharmony_ci power-domains = <&pd_a4s>; 1078c2ecf20Sopenharmony_ci }; 108