arm64: dts: imx8mn: Add node for SPDIF
authorAdam Ford <aford173@gmail.com>
Sat, 7 Nov 2020 11:58:08 +0000 (05:58 -0600)
committerShawn Guo <shawnguo@kernel.org>
Tue, 1 Dec 2020 01:35:27 +0000 (09:35 +0800)
The i.MX8M Nano can support SPDIF which is compatible to the
IP used on the i.MX35.

Add the node.

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

index 2087fe8..31ca1f3 100644 (file)
                                        status = "disabled";
                                };
 
+                               spdif1: spdif@30090000 {
+                                       compatible = "fsl,imx35-spdif";
+                                       reg = <0x30090000 0x10000>;
+                                       interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
+                                       clocks = <&clk IMX8MN_CLK_AUDIO_AHB>, /* core */
+                                                <&clk IMX8MN_CLK_24M>, /* rxtx0 */
+                                                <&clk IMX8MN_CLK_SPDIF1>, /* rxtx1 */
+                                                <&clk IMX8MN_CLK_DUMMY>, /* rxtx2 */
+                                                <&clk IMX8MN_CLK_DUMMY>, /* rxtx3 */
+                                                <&clk IMX8MN_CLK_DUMMY>, /* rxtx4 */
+                                                <&clk IMX8MN_CLK_AUDIO_AHB>, /* rxtx5 */
+                                                <&clk IMX8MN_CLK_DUMMY>, /* rxtx6 */
+                                                <&clk IMX8MN_CLK_DUMMY>, /* rxtx7 */
+                                                <&clk IMX8MN_CLK_DUMMY>; /* spba */
+                                       clock-names = "core", "rxtx0",
+                                                     "rxtx1", "rxtx2",
+                                                     "rxtx3", "rxtx4",
+                                                     "rxtx5", "rxtx6",
+                                                     "rxtx7", "spba";
+                                       dmas = <&sdma2 28 18 0>, <&sdma2 29 18 0>;
+                                       dma-names = "rx", "tx";
+                                       status = "disabled";
+                               };
+
                                sai7: sai@300b0000 {
                                        compatible = "fsl,imx8mm-sai", "fsl,imx8mq-sai";
                                        reg = <0x300b0000 0x10000>;