ARM: dts: imx6sx-sabreauto: Add SPDIF support
authorShengjiu Wang <shengjiu.wang@nxp.com>
Thu, 18 Jun 2020 06:03:48 +0000 (14:03 +0800)
committerShawn Guo <shawnguo@kernel.org>
Mon, 13 Jul 2020 11:48:53 +0000 (19:48 +0800)
Add SPDIF support.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6sx-sabreauto.dts

index 8259244..772b8ac 100644 (file)
                enable-active-high;
                vin-supply = <&reg_can_en>;
        };
+
+       sound-spdif {
+               compatible = "fsl,imx-audio-spdif";
+               model = "imx-spdif";
+               spdif-controller = <&spdif>;
+               spdif-in;
+       };
 };
 
 &anaclk2 {
                >;
        };
 
+       pinctrl_spdif: spdifgrp {
+               fsl,pins = <
+                       MX6SX_PAD_ENET2_COL__SPDIF_IN           0x1b0b0
+               >;
+       };
+
        pinctrl_uart1: uart1grp {
                fsl,pins = <
                        MX6SX_PAD_GPIO1_IO04__UART1_DCE_TX              0x1b0b1
        };
 };
 
+&spdif {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_spdif>;
+       assigned-clocks = <&clks IMX6SX_CLK_SPDIF_PODF>;
+       assigned-clock-rates = <24576000>;
+       status = "okay";
+};
+
 &wdog1 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_wdog>;