irqchip: dw-apb-ictl: support hierarchy irq domain
Subsystems (5)
v6 cover irqchip: dw-apb-ictl: support hierarchy irq domain
v5 --> v6:
1. add Reviewed-by: Rob Herring <[email protected]> for Patch 4.
2. Some modifications are made to Patch 5:
1) add " |" for each "description:" property if its content exceeds one line, to tell the yaml keep the "newline" character.
2) add "..." to mark the end of the yaml file.
3) Change the name list of maintainers to the author of "snps,dw-apb-ictl.txt" maintainers:
- - Marc Zyngier <[email protected]>
+ - Sebastian Hesselbarth <[email protected]>
4) add "maxItems: 1" for property "reg".
5) for property "interrupts":
interrupts:
- minItems: 1
- maxItems: 65
+ maxItems: 1
6) move below descriptions under the top level property "description:"
description: |
Synopsys DesignWare provides interrupt controller IP for APB known as dw_apb_ictl. The IP is used as secondary interrupt controller in some SoCs with APB bus, e.g. Marvell Armada 1500. It can also be used as primary interrupt controller in some SoCs, e.g. Hisilicon SD5203.
+ The interrupt sources map to the corresponding bits in the interrupt
+ registers, i.e.
+ - 0 maps to bit 0 of low interrupts,
+ - 1 maps to bit 1 of low interrupts,
+ - 32 maps to bit 0 of high interrupts,
+ - 33 maps to bit 1 of high interrupts,
+ - (optional) fast interrupts start at 64.
+
For more details of 2-6), please refer https://lkml.org/lkml/2020/9/24/13
v4 --> v5:
1. Add WARN_ON(1) in set_handle_irq() if !GENERIC_IRQ_MULTI_HANDLER
2. Convert "snps,dw-apb-ictl.txt" to "snps,dw-apb-ictl.yaml"
3. Fix the errors detected by "snps,dw-apb-ictl.yaml" on arch/arc
v3 --> v4:
1. remove "gc->chip_types[0].chip.irq_eoi = irq_gc_noop;", the "chip.irq_eoi" hook is not needed by handle_level_irq(). Thanks for Marc Zyngier's review.
2. Add a new patch: define an empty function set_handle_irq() if !GENERIC_IRQ_MULTI_HANDLER to avoid compilation error on arch/arc system.
v2 --> v3:
1. change (1 << hwirq) to BIT(hwirq).
2. change __exception_irq_entry to __irq_entry, so we can "#include <linux/interrupt.h>" instead of "#include <asm/exception.h>". Ohterwise, an compilation error will be reported on arch/csky.
drivers/irqchip/irq-dw-apb-ictl.c:20:10: fatal error: asm/exception.h: No such file or directory
3. use "if (!parent || (np == parent))" to determine whether it is primary interrupt controller.
4. make the primary interrupt controller case also use function handle_level_irq(), I used handle_fasteoi_irq() as flow_handler before.
5. Other minor changes are not detailed.
v1 --> v2:
According to Marc Zyngier's suggestion, discard adding an independent SD5203-VIC driver, but make the dw-apb-ictl irqchip driver to support hierarchy irq domain. It was originally available only for secondary interrupt controller, now it can also be used as primary interrupt controller. The related dt-bindings is updated appropriately.
Add "Suggested-by: Marc Zyngier <[email protected]>". Add "Tested-by: Haoyu Lv <[email protected]>".
v1:
The interrupt controller of SD5203 SoC is VIC(vector 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 driver: "hisilicon,sd5203-vic".
Zhen Lei (6):
genirq: define an empty function set_handle_irq() if
!GENERIC_IRQ_MULTI_HANDLER
irqchip: dw-apb-ictl: prepare for support hierarchy irq domain
irqchip: dw-apb-ictl: support hierarchy irq domain
dt-bindings: dw-apb-ictl: support hierarchy irq domain
dt-bindings: dw-apb-ictl: convert to json-schema
ARC: [dts] fix the errors detected by dtbs_check
.../interrupt-controller/snps,dw-apb-ictl.txt | 31 -------- .../interrupt-controller/snps,dw-apb-ictl.yaml | 74 +++++++++++++++++++ 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_axc003_idu.dtsi | 2 +- drivers/irqchip/Kconfig | 2 +- drivers/irqchip/irq-dw-apb-ictl.c | 83 ++++++++++++++++++---- include/linux/irq.h | 6 ++ 10 files changed, 157 insertions(+), 49 deletions(-) delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.txt create mode 100644 Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.yaml
Signature · 1 line
1.8.3
PATCH v6 1/6 genirq: define an empty function set_handle_irq() if !GENERIC_IRQ_MULTI_HANDLER
To avoid compilation error if an irqchip driver references the function set_handle_irq() but may not select GENERIC_IRQ_MULTI_HANDLER on some systems.
For example, the Synopsys DesignWare APB interrupt controller (dw_apb_ictl) is used as the secondary interrupt controller on arc, csky, arm64, and most arm32 SoCs, and it's also used as the primary interrupt controller on Hisilicon SD5203 (an arm32 SoC). The latter need to use set_handle_irq() to register the top-level IRQ handler, but this multi irq handler registration mechanism is not implemented on arc system.
The input parameter "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.
--- include/linux/irq.h | 6 ++++++ 1 file changed, 6 insertions(+)
include/linux/irq.h +6 -0
@@ -1252,6 +1252,12 @@ void irq_matrix_free(struct irq_matrix *m, unsigned int cpu,* top-level IRQ handler. */ extern void (*handle_arch_irq)(struct pt_regs *)__ro_after_init ; +#else +#define set_handle_irq (handle_irq) \ + do { \ + (void)handle_irq; \ + WARN_ON(1); \ + } while (0)#endif #endif /* _LINUX_IRQ_H */
Signature · 1 line
1.8.3
[tip: irq/core] genirq: Add stub for set_handle_irq() when !GENERIC_IRQ_MULTI_HANDLER
The following commit has been merged into the irq/core branch of tip:
The following commit has been merged into the irq/core branch of tip:
Commit-ID: ea0c80d1764449acf2f70fdb25aec33800cd0348 Gitweb: https://git.kernel.org/tip/ea0c80d1764449acf2f70fdb25aec33800cd0348 Author: Zhen Lei <[email protected]> AuthorDate: Thu, 24 Sep 2020 15:17:49 +08:00 Committer: Marc Zyngier <[email protected]> CommitterDate: Fri, 25 Sep 2020 16:33:57 +01:00
genirq: Add stub for set_handle_irq() when !GENERIC_IRQ_MULTI_HANDLER
In order to avoid compilation errors when a driver references set_handle_irq(), but that the architecture doesn't select GENERIC_IRQ_MULTI_HANDLER, add a stub function that will just WARN_ON_ONCE() if ever used.
--- include/linux/irq.h | 6 ++++++ 1 file changed, 6 insertions(+)
include/linux/irq.h +6 -0
@@ -1252,6 +1252,12 @@ int __init set_handle_irq(void (*handle_irq)(struct pt_regs *));* top-level IRQ handler. */ extern void (*handle_arch_irq)(struct pt_regs *)__ro_after_init ; +#else +#define set_handle_irq (handle_irq) \ + do { \ + (void)handle_irq; \ + WARN_ON(1); \ + } while (0)#endif #endif /* _LINUX_IRQ_H */
PATCH v6 2/6 irqchip: dw-apb-ictl: prepare for support hierarchy irq domain
In reply to Zhen LeiRename some functions and variables in advance, to make the next patch looks more clear. The details are as follows:
1. rename dw_apb_ictl_handler() to dw_apb_ictl_handle_irq_cascaded().
2. change (1 << hwirq) to BIT(hwirq).
In function dw_apb_ictl_init():
1. rename local variable 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.
--- drivers/irqchip/irq-dw-apb-ictl.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-)
drivers/irqchip/irq-dw-apb-ictl.c +9 -8
@@ -26,7 +26,7 @@#define APB_INT_FINALSTATUS_H 0x34#define APB_INT_BASE_OFFSET 0x04 -static void dw_apb_ictl_handler (struct irq_desc *desc) +static void dw_apb_ictl_handle_irq_cascaded (struct irq_desc *desc) {struct irq_domain *d =irq_desc_get_handler_data (desc);struct irq_chip *chip =irq_desc_get_chip (desc);
@@ -43,7 +43,7 @@ static void dw_apb_ictl_handler(struct irq_desc *desc)u32 virq =irq_find_mapping (d, gc->irq_base + hwirq);generic_handle_irq (virq); - stat &= ~(1 << hwirq); + stat &= ~BIT (hwirq); } }
@@ -73,12 +73,13 @@ static int __init dw_apb_ictl_init(struct device_node *np,struct irq_domain *domain;struct irq_chip_generic *gc;void __iomem *iobase; -int ret, nrirqs, irq, i; +int ret, nrirqs, parent_irq, i;u32 reg; +const struct irq_domain_ops *domain_ops = &irq_generic_chip_ops;/* Map the parent interrupt for the chained handler */ - irq =irq_of_parse_and_map (np,0 ); -if (irq <=0 ) { + parent_irq =irq_of_parse_and_map (np,0 ); +if (parent_irq <=0 ) {pr_err ("%pOF: unable to parse irq\n" , np);return -EINVAL ; }
@@ -120,8 +121,7 @@ static int __init dw_apb_ictl_init(struct device_node *np,else nrirqs =fls (readl_relaxed (iobase +APB_INT_ENABLE_L )); - domain =irq_domain_add_linear (np, nrirqs, - &irq_generic_chip_ops,NULL ); + domain =irq_domain_add_linear (np, nrirqs, domain_ops,NULL );if (!domain) {pr_err ("%pOF: unable to add irq domain\n" , np); ret = -ENOMEM ;
@@ -146,7 +146,8 @@ static int __init dw_apb_ictl_init(struct device_node *np, gc->chip_types[0 ].chip.irq_resume = dw_apb_ictl_resume; } -irq_set_chained_handler_and_data (irq, dw_apb_ictl_handler, domain); +irq_set_chained_handler_and_data (parent_irq, + dw_apb_ictl_handle_irq_cascaded, domain);return 0 ;
Signature · 1 line
1.8.3
[tip: irq/core] irqchip/dw-apb-ictl: Refactor priot to introducing hierarchical irq domains
The following commit has been merged into the irq/core branch of tip:
The following commit has been merged into the irq/core branch of tip:
Commit-ID: d59f7d159891466361808522b63cf3548ea3ecb0 Gitweb: https://git.kernel.org/tip/d59f7d159891466361808522b63cf3548ea3ecb0 Author: Zhen Lei <[email protected]> AuthorDate: Thu, 24 Sep 2020 15:17:50 +08:00 Committer: Marc Zyngier <[email protected]> CommitterDate: Fri, 25 Sep 2020 16:49:09 +01:00
irqchip/dw-apb-ictl: Refactor priot to introducing hierarchical irq domains
Add the required abstractions that will help introducing hierarchical domain support to the dw-apb-ictl driver.
No functional change.
--- drivers/irqchip/irq-dw-apb-ictl.c | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-)
drivers/irqchip/irq-dw-apb-ictl.c +11 -8
@@ -26,7 +26,7 @@#define APB_INT_FINALSTATUS_H 0x34#define APB_INT_BASE_OFFSET 0x04 -static void dw_apb_ictl_handler (struct irq_desc *desc) +static void dw_apb_ictl_handle_irq_cascaded (struct irq_desc *desc) {struct irq_domain *d =irq_desc_get_handler_data (desc);struct irq_chip *chip =irq_desc_get_chip (desc);
@@ -43,7 +43,7 @@ static void dw_apb_ictl_handler(struct irq_desc *desc)u32 virq =irq_find_mapping (d, gc->irq_base + hwirq);generic_handle_irq (virq); - stat &= ~(1 << hwirq); + stat &= ~BIT (hwirq); } }
@@ -68,17 +68,20 @@ static void dw_apb_ictl_resume(struct irq_data *d)static int __init dw_apb_ictl_init (struct device_node *np,struct device_node *parent) { +const struct irq_domain_ops *domain_ops;unsigned int clr =IRQ_NOREQUEST |IRQ_NOPROBE |IRQ_NOAUTOEN ;struct resource r;struct irq_domain *domain;struct irq_chip_generic *gc;void __iomem *iobase; -int ret, nrirqs, irq, i; +int ret, nrirqs, parent_irq, i;u32 reg; + domain_ops = &irq_generic_chip_ops; +/* Map the parent interrupt for the chained handler */ - irq =irq_of_parse_and_map (np,0 ); -if (irq <=0 ) { + parent_irq =irq_of_parse_and_map (np,0 ); +if (parent_irq <=0 ) {pr_err ("%pOF: unable to parse irq\n" , np);return -EINVAL ; }
@@ -120,8 +123,7 @@ static int __init dw_apb_ictl_init(struct device_node *np,else nrirqs =fls (readl_relaxed (iobase +APB_INT_ENABLE_L )); - domain =irq_domain_add_linear (np, nrirqs, - &irq_generic_chip_ops,NULL ); + domain =irq_domain_add_linear (np, nrirqs, domain_ops,NULL );if (!domain) {pr_err ("%pOF: unable to add irq domain\n" , np); ret = -ENOMEM ;
@@ -146,7 +148,8 @@ static int __init dw_apb_ictl_init(struct device_node *np, gc->chip_types[0 ].chip.irq_resume = dw_apb_ictl_resume; } -irq_set_chained_handler_and_data (irq, dw_apb_ictl_handler, domain); +irq_set_chained_handler_and_data (parent_irq, + dw_apb_ictl_handle_irq_cascaded, domain);return 0 ;
PATCH v6 3/6 irqchip: dw-apb-ictl: support hierarchy irq domain
In reply to Zhen LeiAdd support to use dw-apb-ictl as primary interrupt controller.
--- drivers/irqchip/Kconfig | 2 +- drivers/irqchip/irq-dw-apb-ictl.c | 74 ++++++++++++++++++++++++++++++++++----- 2 files changed, 67 insertions(+), 9 deletions(-)
drivers/irqchip/Kconfig +1 -1
@@ -148,7 +148,7 @@ config DAVINCI_CP_INTC config DW_APB_ICTL bool select GENERIC_IRQ_CHIP - select IRQ_DOMAIN + select IRQ_DOMAIN_HIERARCHY config FARADAY_FTINTC010 bool
drivers/irqchip/irq-dw-apb-ictl.c +66 -8
105 lines not on this page · raw message
Signature · 1 line
1.8.3
[tip: irq/core] irqchip/dw-apb-ictl: Add primary interrupt controller support
The following commit has been merged into the irq/core branch of tip:
The following commit has been merged into the irq/core branch of tip:
Commit-ID: 54a38440b84f8933b555c23273deca6a396f6708 Gitweb: https://git.kernel.org/tip/54a38440b84f8933b555c23273deca6a396f6708 Author: Zhen Lei <[email protected]> AuthorDate: Thu, 24 Sep 2020 15:17:51 +08:00 Committer: Marc Zyngier <[email protected]> CommitterDate: Fri, 25 Sep 2020 16:49:14 +01:00
irqchip/dw-apb-ictl: Add primary interrupt controller support
Add support to use dw-apb-ictl as primary interrupt controller.
--- drivers/irqchip/Kconfig | 2 +- drivers/irqchip/irq-dw-apb-ictl.c | 72 ++++++++++++++++++++++++++---- 2 files changed, 65 insertions(+), 9 deletions(-)
drivers/irqchip/Kconfig +1 -1
@@ -148,7 +148,7 @@ config DAVINCI_CP_INTC config DW_APB_ICTL bool select GENERIC_IRQ_CHIP - select IRQ_DOMAIN + select IRQ_DOMAIN_HIERARCHY config FARADAY_FTINTC010 bool
drivers/irqchip/irq-dw-apb-ictl.c +64 -8
103 lines not on this page · raw message
PATCH v6 4/6 dt-bindings: dw-apb-ictl: support hierarchy irq domain
In reply to Zhen LeiAdd support to use dw-apb-ictl as primary interrupt controller.
--- .../bindings/interrupt-controller/snps,dw-apb-ictl.txt | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.txt +13 -1
@@ -2,7 +2,8 @@ Synopsys DesignWare APB interrupt controller (dw_apb_ictl) Synopsys DesignWare provides interrupt controller IP for APB known as dw_apb_ictl. The IP is used as secondary interrupt controller in some SoCs with -APB bus, e.g. Marvell Armada 1500. +APB bus, e.g. Marvell Armada 1500. It can also be used as primary interrupt +controller in some SoCs, e.g. Hisilicon SD5203. Required properties: - compatible: shall be "snps,dw-apb-ictl"
@@ -10,6 +11,8 @@ Required properties: region starting with ENABLE_LOW register - interrupt-controller: identifies the node as an interrupt controller - #interrupt-cells: number of cells to encode an interrupt-specifier, shall be 1 + +Additional required property when it's used as secondary interrupt controller: - interrupts: interrupt reference to primary interrupt controller The interrupt sources map to the corresponding bits in the interrupt
@@ -21,6 +24,7 @@ registers, i.e. - (optional) fast interrupts start at 64. Example: + /* dw_apb_ictl is used as secondary interrupt controller */ aic: interrupt-controller@3000 { compatible = "snps,dw-apb-ictl"; reg = <0x3000 0xc00>;
@@ -29,3 +33,11 @@ Example: interrupt-parent = <&gic>; interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; }; + + /* dw_apb_ictl is used as primary interrupt controller */ + vic: interrupt-controller@10130000 { + compatible = "snps,dw-apb-ictl"; + reg = <0x10130000 0x1000>; + interrupt-controller; + #interrupt-cells = <1>; + };
Signature · 1 line
1.8.3
[tip: irq/core] dt-bindings: dw-apb-ictl: Update binding to describe use as primary interrupt controller
The following commit has been merged into the irq/core branch of tip:
The following commit has been merged into the irq/core branch of tip:
Commit-ID: 8156b80fd4885d0ca9748e736441cc37f4eb476a Gitweb: https://git.kernel.org/tip/8156b80fd4885d0ca9748e736441cc37f4eb476a Author: Zhen Lei <[email protected]> AuthorDate: Thu, 24 Sep 2020 15:17:52 +08:00 Committer: Marc Zyngier <[email protected]> CommitterDate: Fri, 25 Sep 2020 16:49:15 +01:00
dt-bindings: dw-apb-ictl: Update binding to describe use as primary interrupt controller
Add the required updates to describe the use of dw-apb-ictl as a primary interrupt controller.
--- Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.txt | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.txt +13 -1
@@ -2,7 +2,8 @@ Synopsys DesignWare APB interrupt controller (dw_apb_ictl) Synopsys DesignWare provides interrupt controller IP for APB known as dw_apb_ictl. The IP is used as secondary interrupt controller in some SoCs with -APB bus, e.g. Marvell Armada 1500. +APB bus, e.g. Marvell Armada 1500. It can also be used as primary interrupt +controller in some SoCs, e.g. Hisilicon SD5203. Required properties: - compatible: shall be "snps,dw-apb-ictl"
@@ -10,6 +11,8 @@ Required properties: region starting with ENABLE_LOW register - interrupt-controller: identifies the node as an interrupt controller - #interrupt-cells: number of cells to encode an interrupt-specifier, shall be 1 + +Additional required property when it's used as secondary interrupt controller: - interrupts: interrupt reference to primary interrupt controller The interrupt sources map to the corresponding bits in the interrupt
@@ -21,6 +24,7 @@ registers, i.e. - (optional) fast interrupts start at 64. Example: + /* dw_apb_ictl is used as secondary interrupt controller */ aic: interrupt-controller@3000 { compatible = "snps,dw-apb-ictl"; reg = <0x3000 0xc00>;
@@ -29,3 +33,11 @@ Example: interrupt-parent = <&gic>; interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; }; + + /* dw_apb_ictl is used as primary interrupt controller */ + vic: interrupt-controller@10130000 { + compatible = "snps,dw-apb-ictl"; + reg = <0x10130000 0x1000>; + interrupt-controller; + #interrupt-cells = <1>; + };
PATCH v6 5/6 dt-bindings: dw-apb-ictl: convert to json-schema
In reply to Zhen LeiConvert the Synopsys DesignWare APB interrupt controller (dw_apb_ictl) binding to DT schema format using json-schema.
--- .../interrupt-controller/snps,dw-apb-ictl.txt | 43 ------------- .../interrupt-controller/snps,dw-apb-ictl.yaml | 74 ++++++++++++++++++++++ 2 files changed, 74 insertions(+), 43 deletions(-) delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.txt create mode 100644 Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.yaml
Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.txt deleted +0 -43
@@ -1,43 +0,0 @@ -Synopsys DesignWare APB interrupt controller (dw_apb_ictl) - -Synopsys DesignWare provides interrupt controller IP for APB known as -dw_apb_ictl. The IP is used as secondary interrupt controller in some SoCs with -APB bus, e.g. Marvell Armada 1500. It can also be used as primary interrupt -controller in some SoCs, e.g. Hisilicon SD5203. - -Required properties: -- compatible: shall be "snps,dw-apb-ictl" -- reg: physical base address of the controller and length of memory mapped - region starting with ENABLE_LOW register -- interrupt-controller: identifies the node as an interrupt controller -- #interrupt-cells: number of cells to encode an interrupt-specifier, shall be 1 - -Additional required property when it's used as secondary interrupt controller: -- interrupts: interrupt reference to primary interrupt controller - -The interrupt sources map to the corresponding bits in the interrupt -registers, i.e. -- 0 maps to bit 0 of low interrupts, -- 1 maps to bit 1 of low interrupts, -- 32 maps to bit 0 of high interrupts, -- 33 maps to bit 1 of high interrupts, -- (optional) fast interrupts start at 64. - -Example: - /* dw_apb_ictl is used as secondary interrupt controller */ - aic: interrupt-controller@3000 { - compatible = "snps,dw-apb-ictl"; - reg = <0x3000 0xc00>; - interrupt-controller; - #interrupt-cells = <1>; - interrupt-parent = <&gic>; - interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; - }; - - /* dw_apb_ictl is used as primary interrupt controller */ - vic: interrupt-controller@10130000 { - compatible = "snps,dw-apb-ictl"; - reg = <0x10130000 0x1000>; - interrupt-controller; - #interrupt-cells = <1>; - };
Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.yaml new file +74 -0
74 lines not on this page · raw message
Signature · 1 line
1.8.3
Re: [PATCH v6 5/6] dt-bindings: dw-apb-ictl: convert to json-schema
Hi Rob:
Do you have time to review this patch again?
Quoted 141 lines · 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 <[email protected]>--- .../interrupt-controller/snps,dw-apb-ictl.txt | 43 ------------- .../interrupt-controller/snps,dw-apb-ictl.yaml | 74 ++++++++++++++++++++++ 2 files changed, 74 insertions(+), 43 deletions(-) delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.txt create mode 100644 Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.yamlDocumentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.txt deleted +0
-43@@ -1,43 +0,0 @@ -Synopsys DesignWare APB interrupt controller (dw_apb_ictl) - -Synopsys DesignWare provides interrupt controller IP for APB known as -dw_apb_ictl. The IP is used as secondary interrupt controller in some SoCs with -APB bus, e.g. Marvell Armada 1500. It can also be used as primary interrupt -controller in some SoCs, e.g. Hisilicon SD5203. - -Required properties: -- compatible: shall be "snps,dw-apb-ictl" -- reg: physical base address of the controller and length of memory mapped - region starting with ENABLE_LOW register -- interrupt-controller: identifies the node as an interrupt controller -- #interrupt-cells: number of cells to encode an interrupt-specifier, shall be 1 - -Additional required property when it's used as secondary interrupt controller: -- interrupts: interrupt reference to primary interrupt controller - -The interrupt sources map to the corresponding bits in the interrupt -registers, i.e. -- 0 maps to bit 0 of low interrupts, -- 1 maps to bit 1 of low interrupts, -- 32 maps to bit 0 of high interrupts, -- 33 maps to bit 1 of high interrupts, -- (optional) fast interrupts start at 64. - -Example: - /* dw_apb_ictl is used as secondary interrupt controller */ - aic: interrupt-controller@3000 { - compatible = "snps,dw-apb-ictl"; - reg = <0x3000 0xc00>; - interrupt-controller; - #interrupt-cells = <1>; - interrupt-parent = <&gic>; - interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; - }; - - /* dw_apb_ictl is used as primary interrupt controller */ - vic: interrupt-controller@10130000 { - compatible = "snps,dw-apb-ictl"; - reg = <0x10130000 0x1000>; - interrupt-controller; - #interrupt-cells = <1>; - };Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.yaml new file +74
-0@@ -0,0 +1,74 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interrupt-controller/snps,dw-apb-ictl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Synopsys DesignWare APB interrupt controller (dw_apb_ictl) + +maintainers: + - Sebastian Hesselbarth <[email protected]> + +description: | + Synopsys DesignWare provides interrupt controller IP for APB known as + dw_apb_ictl. The IP is used as secondary interrupt controller in some SoCs + with APB bus, e.g. Marvell Armada 1500. It can also be used as primary + interrupt controller in some SoCs, e.g. Hisilicon SD5203. + + The interrupt sources map to the corresponding bits in the interrupt + registers, i.e. + - 0 maps to bit 0 of low interrupts, + - 1 maps to bit 1 of low interrupts, + - 32 maps to bit 0 of high interrupts, + - 33 maps to bit 1 of high interrupts, + - (optional) fast interrupts start at 64. + +allOf: + - $ref: /schemas/interrupt-controller.yaml# + +properties: + compatible: + const: snps,dw-apb-ictl + + interrupt-controller: true + + reg: + description: | + Physical base address of the controller and length of memory mapped + region starting with ENABLE_LOW register. + maxItems: 1 + + interrupts: + description: Interrupt reference to primary interrupt controller. + maxItems: 1 + + "#interrupt-cells": + description: Number of cells to encode an interrupt-specifier. + const: 1 + +required: + - compatible + - reg + - interrupt-controller + - '#interrupt-cells' + +examples: + - | + /* dw_apb_ictl is used as secondary interrupt controller */ + aic: interrupt-controller@3000 { + compatible = "snps,dw-apb-ictl"; + reg = <0x3000 0xc00>; + interrupt-controller; + #interrupt-cells = <1>; + interrupt-parent = <&gic>; + interrupts = <0 3 4>; + }; + + /* dw_apb_ictl is used as primary interrupt controller */ + vic: interrupt-controller@10130000 { + compatible = "snps,dw-apb-ictl"; + reg = <0x10130000 0x1000>; + interrupt-controller; + #interrupt-cells = <1>; + }; +...
Rob Herring
maintainerRe: [PATCH v6 5/6] dt-bindings: dw-apb-ictl: convert to json-schema
In reply to Zhen LeiQuoted 83 lines · 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 <[email protected]>--- .../interrupt-controller/snps,dw-apb-ictl.txt | 43 ------------- .../interrupt-controller/snps,dw-apb-ictl.yaml | 74 ++++++++++++++++++++++ 2 files changed, 74 insertions(+), 43 deletions(-) delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.txt create mode 100644 Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.yamlDocumentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.txt deleted +0
-43@@ -1,43 +0,0 @@ -Synopsys DesignWare APB interrupt controller (dw_apb_ictl) - -Synopsys DesignWare provides interrupt controller IP for APB known as -dw_apb_ictl. The IP is used as secondary interrupt controller in some SoCs with -APB bus, e.g. Marvell Armada 1500. It can also be used as primary interrupt -controller in some SoCs, e.g. Hisilicon SD5203. - -Required properties: -- compatible: shall be "snps,dw-apb-ictl" -- reg: physical base address of the controller and length of memory mapped - region starting with ENABLE_LOW register -- interrupt-controller: identifies the node as an interrupt controller -- #interrupt-cells: number of cells to encode an interrupt-specifier, shall be 1 - -Additional required property when it's used as secondary interrupt controller: -- interrupts: interrupt reference to primary interrupt controller - -The interrupt sources map to the corresponding bits in the interrupt -registers, i.e. -- 0 maps to bit 0 of low interrupts, -- 1 maps to bit 1 of low interrupts, -- 32 maps to bit 0 of high interrupts, -- 33 maps to bit 1 of high interrupts, -- (optional) fast interrupts start at 64. - -Example: - /* dw_apb_ictl is used as secondary interrupt controller */ - aic: interrupt-controller@3000 { - compatible = "snps,dw-apb-ictl"; - reg = <0x3000 0xc00>; - interrupt-controller; - #interrupt-cells = <1>; - interrupt-parent = <&gic>; - interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; - }; - - /* dw_apb_ictl is used as primary interrupt controller */ - vic: interrupt-controller@10130000 { - compatible = "snps,dw-apb-ictl"; - reg = <0x10130000 0x1000>; - interrupt-controller; - #interrupt-cells = <1>; - };Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.yaml new file +17
-0@@ -0,0 +1,74 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interrupt-controller/snps,dw-apb-ictl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Synopsys DesignWare APB interrupt controller (dw_apb_ictl) + +maintainers: + - Sebastian Hesselbarth <[email protected]> + +description: | + Synopsys DesignWare provides interrupt controller IP for APB known as + dw_apb_ictl. The IP is used as secondary interrupt controller in some SoCs + with APB bus, e.g. Marvell Armada 1500. It can also be used as primary + interrupt controller in some SoCs, e.g. Hisilicon SD5203. +
Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.yaml line 27
Quoted 10 lines
Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.yaml new file +10
-0+ The interrupt sources map to the corresponding bits in the interrupt + registers, i.e. + - 0 maps to bit 0 of low interrupts, + - 1 maps to bit 1 of low interrupts, + - 32 maps to bit 0 of high interrupts, + - 33 maps to bit 1 of high interrupts, + - (optional) fast interrupts start at 64. + +allOf: + - $ref: /schemas/interrupt-controller.yaml#
Don't need this. It's already selected based on node name.
Quoted 5 lines
Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.yaml new file +5
-0+ +properties: + compatible: + const: snps,dw-apb-ictl +
Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.yaml line 42
Quoted 10 lines
Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.yaml new file +10
-0+ interrupt-controller: true + + reg: + description: | + Physical base address of the controller and length of memory mapped + region starting with ENABLE_LOW register. + maxItems: 1 + + interrupts: + description: Interrupt reference to primary interrupt controller.
May not be primary. Could be another level in the middle. In any case, it's outside the scope of this binding, so just drop description.
Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.yaml line 46
Quoted 4 lines
Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.yaml new file +4
-0+ maxItems: 1 + + "#interrupt-cells": + description: Number of cells to encode an interrupt-specifier.
Can drop this.
Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.yaml line 53
Quoted 7 lines
Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.yaml new file +7
-0+ const: 1 + +required: + - compatible + - reg + - interrupt-controller + - '#interrupt-cells'
additionalProperties: false
Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.yaml line 58
Quoted 5 lines
Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.yaml new file +5
-0+ +examples: + - | + /* dw_apb_ictl is used as secondary interrupt controller */ + aic: interrupt-controller@3000 {
Drop unused label (aic).
Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.yaml line 68
Quoted 10 lines
Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.yaml new file +10
-0+ compatible = "snps,dw-apb-ictl"; + reg = <0x3000 0xc00>; + interrupt-controller; + #interrupt-cells = <1>; + interrupt-parent = <&gic>; + interrupts = <0 3 4>; + }; + + /* dw_apb_ictl is used as primary interrupt controller */ + vic: interrupt-controller@10130000 {
Same here.
Quoted 10 lines
Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.yaml new file +6
-0+ compatible = "snps,dw-apb-ictl"; + reg = <0x10130000 0x1000>; + interrupt-controller; + #interrupt-cells = <1>; + }; +...Signature · 1 line
1.8.3
Re: [PATCH v6 5/6] dt-bindings: dw-apb-ictl: convert to json-schema
Quoted 88 lines · Rob Herring
Quoted 87 lines · 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 <[email protected]>--- .../interrupt-controller/snps,dw-apb-ictl.txt | 43 ------------- .../interrupt-controller/snps,dw-apb-ictl.yaml | 74 ++++++++++++++++++++++ 2 files changed, 74 insertions(+), 43 deletions(-) delete mode 100644 Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.txt create mode 100644 Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.yamlDocumentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.txt deleted +0
-43@@ -1,43 +0,0 @@ -Synopsys DesignWare APB interrupt controller (dw_apb_ictl) - -Synopsys DesignWare provides interrupt controller IP for APB known as -dw_apb_ictl. The IP is used as secondary interrupt controller in some SoCs with -APB bus, e.g. Marvell Armada 1500. It can also be used as primary interrupt -controller in some SoCs, e.g. Hisilicon SD5203. - -Required properties: -- compatible: shall be "snps,dw-apb-ictl" -- reg: physical base address of the controller and length of memory mapped - region starting with ENABLE_LOW register -- interrupt-controller: identifies the node as an interrupt controller -- #interrupt-cells: number of cells to encode an interrupt-specifier, shall be 1 - -Additional required property when it's used as secondary interrupt controller: -- interrupts: interrupt reference to primary interrupt controller - -The interrupt sources map to the corresponding bits in the interrupt -registers, i.e. -- 0 maps to bit 0 of low interrupts, -- 1 maps to bit 1 of low interrupts, -- 32 maps to bit 0 of high interrupts, -- 33 maps to bit 1 of high interrupts, -- (optional) fast interrupts start at 64. - -Example: - /* dw_apb_ictl is used as secondary interrupt controller */ - aic: interrupt-controller@3000 { - compatible = "snps,dw-apb-ictl"; - reg = <0x3000 0xc00>; - interrupt-controller; - #interrupt-cells = <1>; - interrupt-parent = <&gic>; - interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; - }; - - /* dw_apb_ictl is used as primary interrupt controller */ - vic: interrupt-controller@10130000 { - compatible = "snps,dw-apb-ictl"; - reg = <0x10130000 0x1000>; - interrupt-controller; - #interrupt-cells = <1>; - };Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.yaml new file +21
-0@@ -0,0 +1,74 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interrupt-controller/snps,dw-apb-ictl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Synopsys DesignWare APB interrupt controller (dw_apb_ictl) + +maintainers: + - Sebastian Hesselbarth <[email protected]> + +description: | + Synopsys DesignWare provides interrupt controller IP for APB known as + dw_apb_ictl. The IP is used as secondary interrupt controller in some SoCs + with APB bus, e.g. Marvell Armada 1500. It can also be used as primary + interrupt controller in some SoCs, e.g. Hisilicon SD5203. + + The interrupt sources map to the corresponding bits in the interrupt + registers, i.e. + - 0 maps to bit 0 of low interrupts, + - 1 maps to bit 1 of low interrupts,
Quoted 8 lines
Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.yaml line 27
Quoted 6 lines
Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.yaml new file +6
-0+ - 32 maps to bit 0 of high interrupts, + - 33 maps to bit 1 of high interrupts, + - (optional) fast interrupts start at 64. + +allOf: + - $ref: /schemas/interrupt-controller.yaml#Don't need this. It's already selected based on node name.
OK, I will drop it.
Quoted 11 lines
Quoted 11 lines
Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.yaml new file +10
-0+ +properties: + compatible: + const: snps,dw-apb-ictl + + interrupt-controller: true + + reg: + description: | + Physical base address of the controller and length of memory mapped
Quoted 8 lines
Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.yaml line 42
Quoted 5 lines
Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.yaml new file +5
-0+ region starting with ENABLE_LOW register. + maxItems: 1 + + interrupts: + description: Interrupt reference to primary interrupt controller.May not be primary. Could be another level in the middle. In any case, it's outside the scope of this binding, so just drop description.
OK, I will drop this description. So I have learned that only the new binding properties need to be described. Instead of keeping the original description during the conversion.
Quoted 7 lines
Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.yaml line 46
Quoted 5 lines
Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.yaml new file +4
-0+ maxItems: 1 + + "#interrupt-cells": + description: Number of cells to encode an interrupt-specifier.Can drop this.
OK
Quoted 11 lines
Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.yaml line 53
Quoted 8 lines
Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.yaml new file +7
-0+ const: 1 + +required: + - compatible + - reg + - interrupt-controller + - '#interrupt-cells'additionalProperties: false
Quoted 7 lines
Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.yaml line 58
Quoted 5 lines
Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.yaml new file +5
-0+ +examples: + - | + /* dw_apb_ictl is used as secondary interrupt controller */ + aic: interrupt-controller@3000 {Drop unused label (aic).
OK
Quoted 12 lines
Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.yaml line 68
Quoted 11 lines
Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.yaml new file +10
-0+ compatible = "snps,dw-apb-ictl"; + reg = <0x3000 0xc00>; + interrupt-controller; + #interrupt-cells = <1>; + interrupt-parent = <&gic>; + interrupts = <0 3 4>; + }; + + /* dw_apb_ictl is used as primary interrupt controller */ + vic: interrupt-controller@10130000 {
Quoted 1 line
Same here.
OK, I will delete it.
Quoted 14 lines
Quoted 11 lines
Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.yaml new file +6
-0+ compatible = "snps,dw-apb-ictl"; + reg = <0x10130000 0x1000>; + interrupt-controller; + #interrupt-cells = <1>; + }; +...Signature · 1 line
1.8.3.
PATCH v6 6/6 ARC: [dts] fix the errors detected by dtbs_check
In reply to Zhen Leixxx/arc/boot/dts/axs101.dt.yaml: dw-apb-ictl@e0012000: $nodename:0: \
'dw-apb-ictl@e0012000' does not match '^interrupt-controller(@[0-9a-f,]+)*$' From schema: xxx/interrupt-controller/snps,dw-apb-ictl.yaml
The node name of the interrupt controller must start with "interrupt-controller" instead of "dw-apb-ictl".
--- 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_axc003_idu.dtsi | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
arch/arc/boot/dts/axc001.dtsi +1 -1
@@ -91,7 +91,7 @@ * avoid duplicating the MB dtsi file given that IRQ from * this intc to cpu intc are different for axs101 and axs103 */ - mb_intc: dw-apb-ictl@e0012000 { + mb_intc: interrupt-controller@e0012000 { #interrupt-cells = <1>; compatible = "snps,dw-apb-ictl"; reg = < 0x0 0xe0012000 0x0 0x200 >;
arch/arc/boot/dts/axc003.dtsi +1 -1
@@ -129,7 +129,7 @@ * avoid duplicating the MB dtsi file given that IRQ from * this intc to cpu intc are different for axs101 and axs103 */ - mb_intc: dw-apb-ictl@e0012000 { + mb_intc: interrupt-controller@e0012000 { #interrupt-cells = <1>; compatible = "snps,dw-apb-ictl"; reg = < 0x0 0xe0012000 0x0 0x200 >;
arch/arc/boot/dts/axc003_idu.dtsi +1 -1
@@ -135,7 +135,7 @@ * avoid duplicating the MB dtsi file given that IRQ from * this intc to cpu intc are different for axs101 and axs103 */ - mb_intc: dw-apb-ictl@e0012000 { + mb_intc: interrupt-controller@e0012000 { #interrupt-cells = <1>; compatible = "snps,dw-apb-ictl"; reg = < 0x0 0xe0012000 0x0 0x200 >;
arch/arc/boot/dts/vdk_axc003.dtsi +1 -1
@@ -46,7 +46,7 @@ }; - mb_intc: dw-apb-ictl@e0012000 { + mb_intc: interrupt-controller@e0012000 { #interrupt-cells = <1>; compatible = "snps,dw-apb-ictl"; reg = < 0xe0012000 0x200 >;
arch/arc/boot/dts/vdk_axc003_idu.dtsi +1 -1
@@ -54,7 +54,7 @@ }; - mb_intc: dw-apb-ictl@e0012000 { + mb_intc: interrupt-controller@e0012000 { #interrupt-cells = <1>; compatible = "snps,dw-apb-ictl"; reg = < 0xe0012000 0x200 >;
Signature · 8 lines
1.8.3 _______________________________________________ linux-snps-arc mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-snps-arc
Re: [PATCH v6 6/6] ARC: [dts] fix the errors detected by dtbs_check
Quoted 8 lines · Zhen Lei
xxx/arc/boot/dts/axs101.dt.yaml: dw-apb-ictl@e0012000: $nodename:0: \
'dw-apb-ictl@e0012000' does not match '^interrupt-controller(@[0-9a-f,]+)*$' From schema:xxx/interrupt-controller/snps,dw-apb-ictl.yamlThe node name of the interrupt controller must start with "interrupt-controller" instead of "dw-apb-ictl".
Signed-off-by Zhen Lei <[email protected]>
Thx, I've queued this up to ARC for-curr.
-Vineet
Quoted 74 lines
--- 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_axc003_idu.dtsi | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)arch/arc/boot/dts/axc001.dtsi +1
-1@@ -91,7 +91,7 @@ * avoid duplicating the MB dtsi file given that IRQ from * this intc to cpu intc are different for axs101 and axs103 */ - mb_intc: dw-apb-ictl@e0012000 { + mb_intc: interrupt-controller@e0012000 { #interrupt-cells = <1>; compatible = "snps,dw-apb-ictl"; reg = < 0x0 0xe0012000 0x0 0x200 >;arch/arc/boot/dts/axc003.dtsi +1
-1@@ -129,7 +129,7 @@ * avoid duplicating the MB dtsi file given that IRQ from * this intc to cpu intc are different for axs101 and axs103 */ - mb_intc: dw-apb-ictl@e0012000 { + mb_intc: interrupt-controller@e0012000 { #interrupt-cells = <1>; compatible = "snps,dw-apb-ictl"; reg = < 0x0 0xe0012000 0x0 0x200 >;arch/arc/boot/dts/axc003_idu.dtsi +1
-1@@ -135,7 +135,7 @@ * avoid duplicating the MB dtsi file given that IRQ from * this intc to cpu intc are different for axs101 and axs103 */ - mb_intc: dw-apb-ictl@e0012000 { + mb_intc: interrupt-controller@e0012000 { #interrupt-cells = <1>; compatible = "snps,dw-apb-ictl"; reg = < 0x0 0xe0012000 0x0 0x200 >;arch/arc/boot/dts/vdk_axc003.dtsi +1
-1@@ -46,7 +46,7 @@ }; - mb_intc: dw-apb-ictl@e0012000 { + mb_intc: interrupt-controller@e0012000 { #interrupt-cells = <1>; compatible = "snps,dw-apb-ictl"; reg = < 0xe0012000 0x200 >;arch/arc/boot/dts/vdk_axc003_idu.dtsi +1
-1@@ -54,7 +54,7 @@ }; - mb_intc: dw-apb-ictl@e0012000 { + mb_intc: interrupt-controller@e0012000 { #interrupt-cells = <1>; compatible = "snps,dw-apb-ictl"; reg = < 0xe0012000 0x200 >;
Marc Zyngier
AppliedQuoted 23 lines · Zhen Lei
v5 --> v6:
1. add Reviewed-by: Rob Herring <[email protected]> for Patch 4.
2. Some modifications are made to Patch 5:
1) add " |" for each "description:" property if its content exceeds one line, to tell the yaml keep the "newline" character.
2) add "..." to mark the end of the yaml file.
3) Change the name list of maintainers to the author of "snps,dw-apb-ictl.txt" maintainers:
- - Marc Zyngier <[email protected]>
+ - Sebastian Hesselbarth <[email protected]>
4) add "maxItems: 1" for property "reg".
5) for property "interrupts":
interrupts:
- minItems: 1
- maxItems: 65
+ maxItems: 1
6) move below descriptions under the top level property "description:"
description: |
Synopsys DesignWare provides interrupt controller IP for APB known asdw_apb_ictl. The IP is used as secondary interrupt controller in some SoCs with APB bus, e.g. Marvell Armada 1500. It can also be used as primary interrupt controller in some SoCs, e.g. Hisilicon SD5203.
Quoted 1 line
[...]
Applied to irq/irqchip-next, thanks!
[1/6] genirq: Add stub for set_handle_irq() when !GENERIC_IRQ_MULTI_HANDLER
commit: ea0c80d1764449acf2f70fdb25aec33800cd0348
[2/6] irqchip/dw-apb-ictl: Refactor priot to introducing hierarchical irq domains
commit: d59f7d159891466361808522b63cf3548ea3ecb0
[3/6] irqchip/dw-apb-ictl: Add primary interrupt controller support
commit: 54a38440b84f8933b555c23273deca6a396f6708
[4/6] dt-bindings: dw-apb-ictl: Update binding to describe use as primary interrupt controller
commit: 8156b80fd4885d0ca9748e736441cc37f4eb476aI have dropped patch 5 as it doesn't have Rob's Ack yet (and is not that critical) as well as patch 6 which is better routed via the ARC tree.
Cheers,
M.
Signature · 1 line
Without deviation from the norm, progress is not possible.
Quoted 24 lines · Marc Zyngier
Quoted 23 lines · Zhen Lei
v5 --> v6:
1. add Reviewed-by: Rob Herring <[email protected]> for Patch 4.
2. Some modifications are made to Patch 5:
1) add " |" for each "description:" property if its content exceeds one line, to tell the yaml keep the "newline" character.
2) add "..." to mark the end of the yaml file.
3) Change the name list of maintainers to the author of "snps,dw-apb-ictl.txt" maintainers:
- - Marc Zyngier <[email protected]>
+ - Sebastian Hesselbarth <[email protected]>
4) add "maxItems: 1" for property "reg".
5) for property "interrupts":
interrupts:
- minItems: 1
- maxItems: 65
+ maxItems: 1
6) move below descriptions under the top level property "description:"
description: |
Synopsys DesignWare provides interrupt controller IP for APB known asdw_apb_ictl. The IP is used as secondary interrupt controller in some SoCs with APB bus, e.g. Marvell Armada 1500. It can also be used as primary interrupt controller in some SoCs, e.g. Hisilicon SD5203.
Quoted 3 lines
Quoted 1 line
[...]
Applied to irq/irqchip-next, thanks!
Thank you very much. You have provided a lot of valuable review of this patch series.
Quoted 10 lines
[1/6] genirq: Add stub for
set_handle_irq()when !GENERIC_IRQ_MULTI_HANDLERcommit: ea0c80d1764449acf2f70fdb25aec33800cd0348 [2/6] irqchip/dw-apb-ictl: Refactor priot to introducing hierarchical irq domains commit: d59f7d159891466361808522b63cf3548ea3ecb0 [3/6] irqchip/dw-apb-ictl: Add primary interrupt controller support commit: 54a38440b84f8933b555c23273deca6a396f6708 [4/6] dt-bindings: dw-apb-ictl: Update binding to describe use as primary interrupt controller commit: 8156b80fd4885d0ca9748e736441cc37f4eb476a
Quoted 2 lines
I have dropped patch 5 as it doesn't have Rob's Ack yet (and is not that critical) as well as patch 6 which is better routed via the ARC tree.
OK. I will continue talking to Rob about patch 5. Rob suggested me to remove below allOf, but I have not done it. If the allOf should be removed, the 6/6 will be discarded.
+allOf:
+ - $ref: /schemas/interrupt-controller.yaml#
Quoted 5 lines
Cheers,
M.