arm64: dts: imx8mp: Add easrc node
authorAdam Ford <aford173@gmail.com>
Thu, 31 Aug 2023 04:44:29 +0000 (23:44 -0500)
committerShawn Guo <shawnguo@kernel.org>
Mon, 25 Sep 2023 01:11:17 +0000 (09:11 +0800)
The i.MX8MP has an asynchronous sample rate converter which seems
to be the same as what is available on the i.MX8M Nano.

Signed-off-by: Adam Ford <aford173@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mp.dtsi

index 6f2f50e1639c372e2355b41611b54a703355e380..ec51e72518e2483ebbed9f02b6c609a56e7c6b44 100644 (file)
                                        interrupts = <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>;
                                        status = "disabled";
                                };
+
+                               easrc: easrc@30c90000 {
+                                       compatible = "fsl,imx8mp-easrc", "fsl,imx8mn-easrc";
+                                       reg = <0x30c90000 0x10000>;
+                                       interrupts = <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>;
+                                       clocks = <&audio_blk_ctrl IMX8MP_CLK_AUDIOMIX_ASRC_IPG>;
+                                       clock-names = "mem";
+                                       dmas = <&sdma2 16 23 0> , <&sdma2 17 23 0>,
+                                              <&sdma2 18 23 0> , <&sdma2 19 23 0>,
+                                              <&sdma2 20 23 0> , <&sdma2 21 23 0>,
+                                              <&sdma2 22 23 0> , <&sdma2 23 23 0>;
+                                       dma-names = "ctx0_rx", "ctx0_tx",
+                                                   "ctx1_rx", "ctx1_tx",
+                                                   "ctx2_rx", "ctx2_tx",
+                                                   "ctx3_rx", "ctx3_tx";
+                                       firmware-name = "imx/easrc/easrc-imx8mn.bin";
+                                       fsl,asrc-rate = <8000>;
+                                       fsl,asrc-format = <2>;
+                                       status = "disabled";
+                               };
                        };
 
                        sdma3: dma-controller@30e00000 {