[PATCH 2/2] bus: simple-pm-bus: probe the Layerscape SCFG node

Ioana Ciornei posted 2 patches 2 months, 1 week ago
There is a newer version of this series
[PATCH 2/2] bus: simple-pm-bus: probe the Layerscape SCFG node
Posted by Ioana Ciornei 2 months, 1 week ago
Make the simple-pm-bus driver probe the Layerscape SCFG dt nodes and
populate platform_device from its child dt nodes.

This is now needed because its child interrupt-controller - ls-extirq -
is being handled as a platform_device instead of being initialized
through the IRQCHIP_DECLARE infrastructure.

Fixes: 1b1f04d8271e ("of/irq: Ignore interrupt parent for nodes without interrupts")
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
---
 drivers/bus/simple-pm-bus.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/bus/simple-pm-bus.c b/drivers/bus/simple-pm-bus.c
index d8e029e7e53f..3f00d953fb9a 100644
--- a/drivers/bus/simple-pm-bus.c
+++ b/drivers/bus/simple-pm-bus.c
@@ -142,6 +142,12 @@ static const struct of_device_id simple_pm_bus_of_match[] = {
 	{ .compatible = "simple-mfd",	.data = ONLY_BUS },
 	{ .compatible = "isa",		.data = ONLY_BUS },
 	{ .compatible = "arm,amba-bus",	.data = ONLY_BUS },
+	{ .compatible = "fsl,ls1021a-scfg", },
+	{ .compatible = "fsl,ls1043a-scfg", },
+	{ .compatible = "fsl,ls1046a-scfg", },
+	{ .compatible = "fsl,ls1088a-isc", },
+	{ .compatible = "fsl,ls2080a-isc", },
+	{ .compatible = "fsl,lx2160a-isc", },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, simple_pm_bus_of_match);
-- 
2.25.1
Re: [PATCH 2/2] bus: simple-pm-bus: probe the Layerscape SCFG node
Posted by Geert Uytterhoeven 2 months ago
On Thu, 4 Dec 2025 at 18:43, Ioana Ciornei <ioana.ciornei@nxp.com> wrote:
> Make the simple-pm-bus driver probe the Layerscape SCFG dt nodes and
> populate platform_device from its child dt nodes.
>
> This is now needed because its child interrupt-controller - ls-extirq -
> is being handled as a platform_device instead of being initialized
> through the IRQCHIP_DECLARE infrastructure.
>
> Fixes: 1b1f04d8271e ("of/irq: Ignore interrupt parent for nodes without interrupts")
> Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds