Skip to content

Commit 7cc9255

Browse files
committed
riscv: dts: sophgo: sg2044: add MSI device support for SG2044
Add MSI device tree node for SG2044. Reviewed-by: Chen Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Inochi Amaoto <[email protected]> Signed-off-by: Chen Wang <[email protected]> Signed-off-by: Chen Wang <[email protected]>
1 parent 817c89a commit 7cc9255

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

arch/riscv/boot/dts/sophgo/sg2044-sophgo-srd3-10.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@
6363
};
6464
};
6565

66+
&msi {
67+
status = "okay";
68+
};
69+
6670
&pwm {
6771
status = "okay";
6872
};

arch/riscv/boot/dts/sophgo/sg2044.dtsi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,17 @@
3232
#size-cells = <2>;
3333
ranges;
3434

35+
msi: msi-controller@6d50000000 {
36+
compatible = "sophgo,sg2044-msi";
37+
reg = <0x6d 0x50000000 0x0 0x800>,
38+
<0x0 0x7ee00000 0x0 0x40>;
39+
reg-names = "clr", "doorbell";
40+
#msi-cells = <0>;
41+
msi-controller;
42+
msi-ranges = <&intc 352 IRQ_TYPE_LEVEL_HIGH 512>;
43+
status = "disabled";
44+
};
45+
3546
spifmc0: spi@7001000000 {
3647
compatible = "sophgo,sg2044-spifmc-nor";
3748
reg = <0x70 0x01000000 0x0 0x4000000>;

0 commit comments

Comments
 (0)