[PATCH v6 4/6] dt-bindings: dw-apb-ictl: support hierarchy irq domain

2020-09-24 Thread Zhen Lei
Add support to use dw-apb-ictl as primary interrupt controller. Signed-off-by: Zhen Lei Reviewed-by: Rob Herring --- .../bindings/interrupt-controller/snps,dw-apb-ictl.txt | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings

[PATCH v6 0/6] irqchip: dw-apb-ictl: support hierarchy irq domain

2020-09-24 Thread Zhen Lei
ctor interrupt controller), it's based on Synopsys DesignWare APB interrupt controller (dw_apb_ictl) IP, but it can not directly use dw_apb_ictl driver. The main reason is that VIC is used as primary interrupt controller and dw_apb_ictl driver worked for secondary interrupt controller. So add a new

[PATCH v6 6/6] ARC: [dts] fix the errors detected by dtbs_check

2020-09-24 Thread Zhen Lei
nterrupt-controller" instead of "dw-apb-ictl". Signed-off-by: Zhen Lei --- arch/arc/boot/dts/axc001.dtsi | 2 +- arch/arc/boot/dts/axc003.dtsi | 2 +- arch/arc/boot/dts/axc003_idu.dtsi | 2 +- arch/arc/boot/dts/vdk_axc003.dtsi | 2 +- arch/arc/boot/dts/vdk

[PATCH v6 2/6] irqchip: dw-apb-ictl: prepare for support hierarchy irq domain

2020-09-24 Thread Zhen Lei
irq to parent_irq. 2. add "const struct irq_domain_ops *domain_ops = &irq_generic_chip_ops", then replace &irq_generic_chip_ops in other places with domain_ops. No functional change. Signed-off-by: Zhen Lei Tested-by: Haoyu Lv --- drivers/irqchip/irq-dw-apb-ictl.c | 17 +---

[PATCH v6 5/6] dt-bindings: dw-apb-ictl: convert to json-schema

2020-09-24 Thread Zhen Lei
Convert the Synopsys DesignWare APB interrupt controller (dw_apb_ictl) binding to DT schema format using json-schema. Signed-off-by: Zhen Lei --- .../interrupt-controller/snps,dw-apb-ictl.txt | 43 - .../interrupt-controller/snps,dw-apb-ictl.yaml | 74

[PATCH v6 3/6] irqchip: dw-apb-ictl: support hierarchy irq domain

2020-09-24 Thread Zhen Lei
Add support to use dw-apb-ictl as primary interrupt controller. Suggested-by: Marc Zyngier Signed-off-by: Zhen Lei Tested-by: Haoyu Lv --- drivers/irqchip/Kconfig | 2 +- drivers/irqchip/irq-dw-apb-ictl.c | 74 ++- 2 files changed, 67 insertions

[PATCH v6 1/6] genirq: define an empty function set_handle_irq() if !GENERIC_IRQ_MULTI_HANDLER

2020-09-24 Thread Zhen Lei
meter "handle_irq" maybe defined as static and only set_handle_irq() references it. This will trigger "defined but not used" warning. So add "(void)handle_irq" to suppress it. Signed-off-by: Zhen Lei --- include/linux/irq.h | 6 ++ 1 file changed, 6 insertions(+)

[PATCH v5 1/6] genirq: define an empty function set_handle_irq() if !GENERIC_IRQ_MULTI_HANDLER

2020-09-18 Thread Zhen Lei
meter "handle_irq" maybe defined as static and only set_handle_irq() references it. This will trigger "defined but not used" warning. So add "(void)handle_irq" to suppress it. Signed-off-by: Zhen Lei --- include/linux/irq.h | 6 ++ 1 file changed, 6 insertions(+)

[PATCH v5 2/6] irqchip: dw-apb-ictl: prepare for support hierarchy irq domain

2020-09-18 Thread Zhen Lei
irq to parent_irq. 2. add "const struct irq_domain_ops *domain_ops = &irq_generic_chip_ops", then replace &irq_generic_chip_ops in other places with domain_ops. No functional change. Signed-off-by: Zhen Lei Tested-by: Haoyu Lv --- drivers/irqchip/irq-dw-apb-ictl.c | 17 +---

[PATCH v5 6/6] ARC: [dts] fix the errors detected by dtbs_check

2020-09-18 Thread Zhen Lei
nterrupt-controller" instead of "dw-apb-ictl". Signed-off-by: Zhen Lei --- arch/arc/boot/dts/axc001.dtsi | 2 +- arch/arc/boot/dts/axc003.dtsi | 2 +- arch/arc/boot/dts/axc003_idu.dtsi | 2 +- arch/arc/boot/dts/vdk_axc003.dtsi | 2 +- arch/arc/boot/dts/vdk

[PATCH v5 0/6] irqchip: dw-apb-ictl: support hierarchy irq domain

2020-09-18 Thread Zhen Lei
pt controller (dw_apb_ictl) IP, but it can not directly use dw_apb_ictl driver. The main reason is that VIC is used as primary interrupt controller and dw_apb_ictl driver worked for secondary interrupt controller. So add a new driver: "hisilicon,sd5203-vic". Zhen Lei (6): genirq: define an em

[PATCH v5 4/6] dt-bindings: dw-apb-ictl: support hierarchy irq domain

2020-09-18 Thread Zhen Lei
Add support to use dw-apb-ictl as primary interrupt controller. Signed-off-by: Zhen Lei --- .../bindings/interrupt-controller/snps,dw-apb-ictl.txt | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/interrupt-controller/snps

[PATCH v5 5/6] dt-bindings: dw-apb-ictl: convert to json-schema

2020-09-18 Thread Zhen Lei
Convert the Synopsys DesignWare APB interrupt controller (dw_apb_ictl) binding to DT schema format using json-schema. Signed-off-by: Zhen Lei --- .../interrupt-controller/snps,dw-apb-ictl.txt | 43 - .../interrupt-controller/snps,dw-apb-ictl.yaml | 75

[PATCH v5 3/6] irqchip: dw-apb-ictl: support hierarchy irq domain

2020-09-18 Thread Zhen Lei
Add support to use dw-apb-ictl as primary interrupt controller. Suggested-by: Marc Zyngier Signed-off-by: Zhen Lei Tested-by: Haoyu Lv --- drivers/irqchip/Kconfig | 2 +- drivers/irqchip/irq-dw-apb-ictl.c | 74 ++- 2 files changed, 67 insertions