]> www.infradead.org Git - users/willy/xarray.git/commitdiff
arm64: dts: imx8mp: Configure dsp node for rproc usage
authorDaniel Baluta <daniel.baluta@nxp.com>
Thu, 20 Mar 2025 12:09:53 +0000 (14:09 +0200)
committerShawn Guo <shawnguo@kernel.org>
Tue, 22 Apr 2025 03:00:08 +0000 (11:00 +0800)
DSP can be used with various frameworks (e.g audio firmware, rproc).
Currently 'dsp' configuration is intended for audio firmware but it
doesn't work well with board level DTs (e.g imx8mp-evk) because
board level DT enables audio related IPs (e.g SAI) while audio firmware
needs this IPs disabled (because firmware will configure them).

So, configure 'dsp' node to be used with rproc. This way users will be
able to use board DT to use the DSP as long as they don't clash with
Audio IP configurations.

More comples usage of 'dsp' node (e.g by audio firmware) will need to
create a separate dts file (or an overlay).

This change follows the approach taken for other i.MX8 boards
in commit 391a319c81f6d7 ("arm64: dts: imx8-ss-audio: configure dsp node
for rproc usage")

Reviewed-by: Iuliana Prodan <iuliana.prodan@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mp.dtsi

index fc0d244cfd1e5caf3698621d964afa23d082a37c..708d3f61b4e126db1b891327858d2b8320c553cc 100644 (file)
                ranges;
 
                dsp_reserved: dsp@92400000 {
-                       reg = <0 0x92400000 0 0x2000000>;
+                       reg = <0 0x92400000 0 0x1000000>;
                        no-map;
                        status = "disabled";
                };
                };
 
                dsp: dsp@3b6e8000 {
-                       compatible = "fsl,imx8mp-dsp";
+                       compatible = "fsl,imx8mp-hifi4";
                        reg = <0x3b6e8000 0x88000>;
-                       mbox-names = "txdb0", "txdb1",
-                               "rxdb0", "rxdb1";
-                       mboxes = <&mu2 2 0>, <&mu2 2 1>,
-                               <&mu2 3 0>, <&mu2 3 1>;
-                       memory-region = <&dsp_reserved>;
+                       power-domains = <&pgc_audio>;
+                       mbox-names = "tx", "rx", "rxdb";
+                       mboxes = <&mu2 0 0>, <&mu2 1 0>, <&mu2 3 0>;
+                       firmware-name = "imx/dsp/hifi4.bin";
                        resets = <&audio_blk_ctrl IMX8MP_AUDIOMIX_DSP_RUNSTALL>;
                        reset-names = "runstall";
                        status = "disabled";