Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Zhen Lei and committed by
Marc Zyngier
8156b80f 54a38440

+13 -1
+13 -1
Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.txt
··· 2 2 3 3 Synopsys DesignWare provides interrupt controller IP for APB known as 4 4 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. 6 7 7 8 Required properties: 8 9 - compatible: shall be "snps,dw-apb-ictl" ··· 11 10 region starting with ENABLE_LOW register 12 11 - interrupt-controller: identifies the node as an interrupt controller 13 12 - #interrupt-cells: number of cells to encode an interrupt-specifier, shall be 1 13 + 14 + Additional required property when it's used as secondary interrupt controller: 14 15 - interrupts: interrupt reference to primary interrupt controller 15 16 16 17 The interrupt sources map to the corresponding bits in the interrupt ··· 24 21 - (optional) fast interrupts start at 64. 25 22 26 23 Example: 24 + /* dw_apb_ictl is used as secondary interrupt controller */ 27 25 aic: interrupt-controller@3000 { 28 26 compatible = "snps,dw-apb-ictl"; 29 27 reg = <0x3000 0xc00>; ··· 32 28 #interrupt-cells = <1>; 33 29 interrupt-parent = <&gic>; 34 30 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; 31 + }; 32 + 33 + /* dw_apb_ictl is used as primary interrupt controller */ 34 + vic: interrupt-controller@10130000 { 35 + compatible = "snps,dw-apb-ictl"; 36 + reg = <0x10130000 0x1000>; 37 + interrupt-controller; 38 + #interrupt-cells = <1>; 35 39 };