]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dt-bindings: interrupt-controller: Add Sophgo SG2044 MSI controller
authorInochi Amaoto <inochiama@gmail.com>
Sun, 13 Apr 2025 22:49:12 +0000 (06:49 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 14 Apr 2025 17:35:36 +0000 (19:35 +0200)
Like SG2042, SG2044 also uses an external MSI controller to provide
MSI interrupt for PCIe controllers. The difference between these
two MSI controllers are:

  1. SG2044 acks the interrupt by writing 0, SG2042 by setting the
     bit related to the interrupt.

  2. SG2044 uses interrupt number modulo 32 as MSI message data, but
     SG2042 uses the bit related to the interrupt.

Add support for the SG2044 MSI controller.

Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Chen Wang <wangchen20@iscas.ac.cn> # SG2042
Reviewed-by: Chen Wang <unicorn_wang@outlook.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/all/20250413224922.69719-2-inochiama@gmail.com
Documentation/devicetree/bindings/interrupt-controller/sophgo,sg2042-msi.yaml

index e1ffd55fa7bf824081e1d8486656deed1d849011..f6b8b1d92f7994765fdb1ec3d15c43ec6741f490 100644 (file)
@@ -18,7 +18,9 @@ allOf:
 
 properties:
   compatible:
-    const: sophgo,sg2042-msi
+    enum:
+      - sophgo,sg2042-msi
+      - sophgo,sg2044-msi
 
   reg:
     items: