forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/Documentation/devicetree/bindings/interrupt-controller/snps,dw-apb-ictl.txt
....@@ -2,7 +2,8 @@
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"
....@@ -10,6 +11,8 @@
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 @@
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 @@
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
+ };