Commit 3e93dbd2 authored by Yang Yingliang's avatar Yang Yingliang Committed by Chen Jun
Browse files

dt-bindings/irqchip/mbigen: add example of MBIGEN generate SPIs



hulk inclusion
category: feature
bugzilla: 46791
CVE: N/A

-------------------------------------------------

Now MBIGEN can support to generate SPIs by writing
GICD_SETSPIR. Add dt example to help document.

Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: default avatarHanjun Guo <guohanjun@huawei.com>
Signed-off-by: default avatarzhangyi (F) <yi.zhang@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
parent 8d0f07d2
Loading
Loading
Loading
Loading
+16 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ Hisilicon designed mbigen to collect and generate interrupt.


Non-pci devices can connect to mbigen and generate the
interrupt by writing ITS register.
interrupt by writing GICD or ITS register.

The mbigen chip and devices connect to mbigen have the following properties:

@@ -64,6 +64,13 @@ Examples:
				num-pins = <2>;
				#interrupt-cells = <2>;
			};

			mbigen_spi_example:spi_example {
				interrupt-controller;
				msi-parent = <&gic>;
				num-pins = <2>;
				#interrupt-cells = <2>;
			};
	};

Devices connect to mbigen required properties:
@@ -82,3 +89,11 @@ Examples:
		interrupts =	<656 1>,
				<657 1>;
	};

	spi_example: spi0@0 {
		compatible = "spi,example";
		reg = <0 0 0 0>;
		interrupt-parent = <&mbigen_spi_example>;
		interrupts = <13 4>,
			     <14 4>;
	};