[PATCH 1/6] clk: mxl: Look up the CGU regmap by device node

From: Daniel Golle

Date: Wed Dec 02 2026 - 15:56:30 EST


The CGU binding defines "intel,cgu-lgm" as the only compatible of the
clock controller node. syscon_node_to_regmap() creates a regmap only for
nodes which also carry the "syscon" compatible and fails for all others,
with -EPROBE_DEFER since commit b73d5593bfde ("mfd: syscon: Return
-EPROBE_DEFER if the syscon is not found"). The driver hence never
probes with a device tree which follows the binding, and the consumers
of its clocks, the console UART included, never probe either.

Use device_node_to_regmap(), which creates the regmap for the node of
the clock controller itself.

Fixes: 036177310bac ("clk: mxl: Switch from direct readl/writel based IO to regmap based IO")
Signed-off-by: Daniel Golle <daniel@xxxxxxxxxxxxxx>
---
drivers/clk/x86/clk-lgm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/x86/clk-lgm.c b/drivers/clk/x86/clk-lgm.c
index e3cad72431c3d..7d3c59437d963 100644
--- a/drivers/clk/x86/clk-lgm.c
+++ b/drivers/clk/x86/clk-lgm.c
@@ -434,7 +434,7 @@ static int lgm_cgu_probe(struct platform_device *pdev)

ctx->clk_data.num = CLK_NR_CLKS;

- ctx->membase = syscon_node_to_regmap(np);
+ ctx->membase = device_node_to_regmap(np);
if (IS_ERR(ctx->membase)) {
dev_err(dev, "Failed to get clk CGU iomem\n");
return PTR_ERR(ctx->membase);
--
2.56.1