ASoC: SOF: imx8m: Fix DSP control regmap retrieval
authorDaniel Baluta <daniel.baluta@nxp.com>
Mon, 15 Jul 2024 15:16:53 +0000 (18:16 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 15 Jul 2024 18:08:09 +0000 (19:08 +0100)
According to Documentation/devicetree/bindings/dsp/fsl,dsp.yaml
fsl,dsp-ctrl is a phandle to syscon block so we need to use correct
function to retrieve it.

Currently there is no SOF DSP DTS merged into mainline so there is no
need to support the old way of retrieving the dsp control node.

Fixes: 9ba23717b292 ("ASoC: SOF: imx8m: Implement DSP start")
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Link: https://patch.msgid.link/20240715151653.114751-1-daniel.baluta@oss.nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/imx/imx8m.c

index 1c7019c..cdd1e79 100644 (file)
@@ -234,7 +234,7 @@ static int imx8m_probe(struct snd_sof_dev *sdev)
        /* set default mailbox offset for FW ready message */
        sdev->dsp_box.offset = MBOX_OFFSET;
 
-       priv->regmap = syscon_regmap_lookup_by_compatible("fsl,dsp-ctrl");
+       priv->regmap = syscon_regmap_lookup_by_phandle(np, "fsl,dsp-ctrl");
        if (IS_ERR(priv->regmap)) {
                dev_err(sdev->dev, "cannot find dsp-ctrl registers");
                ret = PTR_ERR(priv->regmap);