Skip to content

Commit 84892ce

Browse files
committed
LoongArch: Update dts for Loongson-2K2000 to support PCI-MSI
Current dts file for Loongson-2K2000 misses the interrupt-controller & interrupt-cells descriptions in the msi-controller node, and misses the msi-parent link in the pci root node. Add them to support PCI-MSI. Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
1 parent b07b9f3 commit 84892ce

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

arch/loongarch/boot/dts/loongson-2k2000.dtsi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@
116116
msi: msi-controller@1fe01140 {
117117
compatible = "loongson,pch-msi-1.0";
118118
reg = <0x0 0x1fe01140 0x0 0x8>;
119+
interrupt-controller;
120+
#interrupt-cells = <1>;
119121
msi-controller;
120122
loongson,msi-base-vec = <64>;
121123
loongson,msi-num-vecs = <192>;
@@ -147,6 +149,7 @@
147149
#address-cells = <3>;
148150
#size-cells = <2>;
149151
device_type = "pci";
152+
msi-parent = <&msi>;
150153
bus-range = <0x0 0xff>;
151154
ranges = <0x01000000 0x0 0x00008000 0x0 0x18408000 0x0 0x00008000>,
152155
<0x02000000 0x0 0x60000000 0x0 0x60000000 0x0 0x20000000>;

0 commit comments

Comments
 (0)