Skip to content

Commit 8156b80

Browse files
Zhen LeiMarc Zyngier
authored andcommitted
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. Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com> [maz: commit message] Signed-off-by: Marc Zyngier <maz@kernel.org> Reviewed-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20200924071754.4509-5-thunder.leizhen@huawei.com
1 parent 54a3844 commit 8156b80

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.txt

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@ Synopsys DesignWare APB interrupt controller (dw_apb_ictl)
22

33
Synopsys DesignWare provides interrupt controller IP for APB known as
44
dw_apb_ictl. The IP is used as secondary interrupt controller in some SoCs with
5-
APB bus, e.g. Marvell Armada 1500.
5+
APB bus, e.g. Marvell Armada 1500. It can also be used as primary interrupt
6+
controller in some SoCs, e.g. Hisilicon SD5203.
67

78
Required properties:
89
- compatible: shall be "snps,dw-apb-ictl"
910
- reg: physical base address of the controller and length of memory mapped
1011
region starting with ENABLE_LOW register
1112
- interrupt-controller: identifies the node as an interrupt controller
1213
- #interrupt-cells: number of cells to encode an interrupt-specifier, shall be 1
14+
15+
Additional required property when it's used as secondary interrupt controller:
1316
- interrupts: interrupt reference to primary interrupt controller
1417

1518
The interrupt sources map to the corresponding bits in the interrupt
@@ -21,6 +24,7 @@ registers, i.e.
2124
- (optional) fast interrupts start at 64.
2225

2326
Example:
27+
/* dw_apb_ictl is used as secondary interrupt controller */
2428
aic: interrupt-controller@3000 {
2529
compatible = "snps,dw-apb-ictl";
2630
reg = <0x3000 0xc00>;
@@ -29,3 +33,11 @@ Example:
2933
interrupt-parent = <&gic>;
3034
interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
3135
};
36+
37+
/* dw_apb_ictl is used as primary interrupt controller */
38+
vic: interrupt-controller@10130000 {
39+
compatible = "snps,dw-apb-ictl";
40+
reg = <0x10130000 0x1000>;
41+
interrupt-controller;
42+
#interrupt-cells = <1>;
43+
};

0 commit comments

Comments
 (0)