mbox series

[V2,0/2] Loongson: irqchip: Add loongson-eiointc DT init support

Message ID cover.1676289084.git.zhoubinbin@loongson.cn
Headers show
Series Loongson: irqchip: Add loongson-eiointc DT init support | expand

Message

Binbin Zhou Feb. 13, 2023, 12:15 p.m. UTC
Hi all:

Add EIOINTC irqchip DT support, which is needed for Loongson chips
that are DT-based and support EIOINTC, such as the Loongson-2K0500 SOC.

We need to handle the "parent_irq" and "eio-num-vecs" parameters passed
from DTS.

Thanks.

---
V2:
- Add the dt-bindings file (1/2);
- patch(2/2)
  - Remove forgotten debugging messages;
  - Rename properties name: "vec_count"->"loongson,eio-num-vecs";
  - Change compatible string name to "loongson,eiointc-1.0".

Binbin Zhou (2):
  dt-bindings: interrupt-controller: Add Loongson EIOINTC
  irqchip/loongson-eiointc: Add DT init support

 .../loongson,eiointc.yaml                     |  80 ++++++++++++
 drivers/irqchip/irq-loongson-eiointc.c        | 119 +++++++++++++-----
 2 files changed, 165 insertions(+), 34 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,eiointc.yaml

Comments

Huacai Chen Feb. 13, 2023, 2:28 p.m. UTC | #1
Reviewed-by: Huacai Chen <chenhuacai@loongson.cn>

On Mon, Feb 13, 2023 at 8:15 PM Binbin Zhou <zhoubinbin@loongson.cn> wrote:
>
> Hi all:
>
> Add EIOINTC irqchip DT support, which is needed for Loongson chips
> that are DT-based and support EIOINTC, such as the Loongson-2K0500 SOC.
>
> We need to handle the "parent_irq" and "eio-num-vecs" parameters passed
> from DTS.
>
> Thanks.
>
> ---
> V2:
> - Add the dt-bindings file (1/2);
> - patch(2/2)
>   - Remove forgotten debugging messages;
>   - Rename properties name: "vec_count"->"loongson,eio-num-vecs";
>   - Change compatible string name to "loongson,eiointc-1.0".
>
> Binbin Zhou (2):
>   dt-bindings: interrupt-controller: Add Loongson EIOINTC
>   irqchip/loongson-eiointc: Add DT init support
>
>  .../loongson,eiointc.yaml                     |  80 ++++++++++++
>  drivers/irqchip/irq-loongson-eiointc.c        | 119 +++++++++++++-----
>  2 files changed, 165 insertions(+), 34 deletions(-)
>  create mode 100644 Documentation/devicetree/bindings/interrupt-controller/loongson,eiointc.yaml
>
> --
> 2.39.0
>
>