[PATCH 2/3] emulation: qemu-sbsa: Move ITS node into GICv3 node

Patrick Rudolph patrick.rudolph at 9elements.com
Thu Mar 20 13:51:57 CET 2025


According to the binding [1] the ITS node should be a subnode of the
GICv3 node. Thus move it now that the driver binds subnodes as well.

1: https://www.kernel.org/doc/Documentation/devicetree/bindings/interrupt-controller/arm%2Cgic-v3.txt

Signed-off-by: Patrick Rudolph <patrick.rudolph at 9elements.com>
---
 arch/arm/dts/qemu-sbsa.dts            | 10 ++++++----
 board/emulation/qemu-sbsa/qemu-sbsa.c |  2 +-
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/arch/arm/dts/qemu-sbsa.dts b/arch/arm/dts/qemu-sbsa.dts
index ed00e501366..099b51b927f 100644
--- a/arch/arm/dts/qemu-sbsa.dts
+++ b/arch/arm/dts/qemu-sbsa.dts
@@ -97,11 +97,13 @@
 		      /bits/ 64 <0 0>,
 		      /bits/ 64 <SBSA_GIC_HBASE_ADDR SBSA_GIC_HBASE_LENGTH>,
 		      /bits/ 64 <SBSA_GIC_VBASE_ADDR SBSA_GIC_VBASE_LENGTH>;
-	};
 
-	its {
-		compatible = "arm,gic-v3-its";
-		status = "disabled";
+		its: msi-controller {
+			compatible = "arm,gic-v3-its";
+			msi-controller;
+			#msi-cells = <1>;
+			status = "disabled";
+		};
 	};
 };
 
diff --git a/board/emulation/qemu-sbsa/qemu-sbsa.c b/board/emulation/qemu-sbsa/qemu-sbsa.c
index 3943c924320..cf1d5acf5cb 100644
--- a/board/emulation/qemu-sbsa/qemu-sbsa.c
+++ b/board/emulation/qemu-sbsa/qemu-sbsa.c
@@ -202,7 +202,7 @@ static int fdtdec_fix_gic(void *fdt)
 	smc_get_gic_its_base(&gic_its_base);
 
 	if (gic_its_base != 0) {
-		offs = fdt_path_offset(fdt, "/its");
+		offs = fdt_path_offset(fdt, "/interrupt-controller/msi-controller");
 		if (offs < 0)
 			return offs;
 
-- 
2.48.1



More information about the U-Boot mailing list