arm: gic-v3: Scan for subnodes
authorPatrick Rudolph <patrick.rudolph@9elements.com>
Thu, 20 Mar 2025 12:51:56 +0000 (13:51 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 8 Apr 2025 22:23:27 +0000 (16:23 -0600)
According to the binding [1] the ITS node should be a subnode of the
GICv3 node. Since the ITS node has it's own driver, manually probe for
possible subnodes after binding since dm_scan_fdt() is not recursive.

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

Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
arch/arm/lib/gic-v3-its.c

index 51cc239..34f05e9 100644 (file)
@@ -232,6 +232,9 @@ U_BOOT_DRIVER(arm_gic_v3) = {
        .id             = UCLASS_IRQ,
        .of_match       = gic_v3_ids,
        .ops            = &arm_gic_v3_ops,
+#if CONFIG_IS_ENABLED(OF_REAL)
+       .bind           = dm_scan_fdt_dev,
+#endif
        ACPI_OPS_PTR(&gic_v3_acpi_ops)
 };