arm64: dts: imx8mn: Enable Asynchronous Sample Rate Converter
authorAdam Ford <aford173@gmail.com>
Sat, 7 Nov 2020 11:58:05 +0000 (05:58 -0600)
committerShawn Guo <shawnguo@kernel.org>
Tue, 1 Dec 2020 01:35:27 +0000 (09:35 +0800)
The driver exists for the Enhanced Asynchronous Sample Rate Converter
(EASRC) Controller, but there isn't a device tree entry for it.

On the vendor kernel, they put this on a spba-bus for SDMA support.

Add the node for the spba-bus with the easrc node inside.

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

index d5cb8ab..412e4a7 100644 (file)
                        #size-cells = <1>;
                        ranges;
 
+                       spba: bus@30000000 {
+                               compatible = "fsl,spba-bus", "simple-bus";
+                               #address-cells = <1>;
+                               #size-cells = <1>;
+                               reg = <0x30000000 0x100000>;
+                               ranges;
+
+                               easrc: easrc@300c0000 {
+                                       compatible = "fsl,imx8mn-easrc";
+                                       reg = <0x300c0000 0x10000>;
+                                       interrupts = <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>;
+                                       clocks = <&clk IMX8MN_CLK_ASRC_ROOT>;
+                                       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";
+                               };
+                       };
+
                        gpio1: gpio@30200000 {
                                compatible = "fsl,imx8mn-gpio", "fsl,imx35-gpio";
                                reg = <0x30200000 0x10000>;