]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
riscv: sophgo: dts: Add msi controller for SG2042
authorChen Wang <unicorn_wang@outlook.com>
Wed, 26 Feb 2025 02:15:37 +0000 (10:15 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 26 Feb 2025 07:41:28 +0000 (08:41 +0100)
Add msi-controller node to dts for SG2042.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/f47c6c3f0309a543d495cb088d6c8c5750bb5647.1740535748.git.unicorn_wang@outlook.com
arch/riscv/boot/dts/sophgo/sg2042.dtsi

index e62ac51ac55abd922b5ef796ba8c2196383850c4..fef2a0e0f7a3f4d5181b0f7da1305d298ce54860 100644 (file)
                        #clock-cells = <1>;
                };
 
+               msi: msi-controller@7030010304 {
+                       compatible = "sophgo,sg2042-msi";
+                       reg = <0x70 0x30010304 0x0 0x4>,
+                             <0x70 0x30010300 0x0 0x4>;
+                       reg-names = "clr", "doorbell";
+                       msi-controller;
+                       #msi-cells = <0>;
+                       msi-ranges = <&intc 64 IRQ_TYPE_LEVEL_HIGH 32>;
+               };
+
                rpgate: clock-controller@7030010368 {
                        compatible = "sophgo,sg2042-rpgate";
                        reg = <0x70 0x30010368 0x0 0x98>;