]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: imx8ulp-evk: Add spdif sound card support
authorShengjiu Wang <shengjiu.wang@nxp.com>
Tue, 22 Oct 2024 05:29:19 +0000 (13:29 +0800)
committerShawn Guo <shawnguo@kernel.org>
Mon, 4 Nov 2024 08:46:31 +0000 (16:46 +0800)
Add spdif sound card support, configure the pinmux.

This sound card supports only playback sound
through HDMI interface.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8ulp-evk.dts

index 7d6d332fa7798f4ea31365eea1b6d235f4e40bd8..290a49bea2f7692a73ed9770a007b35b3d9c011e 100644 (file)
                        sound-dai = <&bt_sco_codec 1>;
                };
        };
+
+       sound-spdif {
+               compatible = "fsl,imx-audio-spdif";
+               model = "imx-spdif";
+               audio-cpu = <&spdif>;
+               audio-codec = <&spdif_out>;
+       };
+
+       spdif_out: spdif-out {
+               compatible = "linux,spdif-dit";
+               #sound-dai-cells = <0>;
+       };
 };
 
 &cm33 {
        status = "okay";
 };
 
+&spdif {
+       pinctrl-names = "default", "sleep";
+       pinctrl-0 = <&pinctrl_spdif>;
+       pinctrl-1 = <&pinctrl_spdif>;
+       assigned-clocks = <&cgc2 IMX8ULP_CLK_SPDIF_SEL>;
+       assigned-clock-parents = <&cgc1 IMX8ULP_CLK_SPLL3_PFD1_DIV1>;
+       status = "okay";
+};
+
 &usbotg1 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_usb1>;
                >;
        };
 
+       pinctrl_spdif: spdifgrp {
+               fsl,pins = <
+                       MX8ULP_PAD_PTF25__SPDIF_OUT1    0x43
+               >;
+       };
+
        pinctrl_typec1: typec1grp {
                fsl,pins = <
                        MX8ULP_PAD_PTF3__PTF3           0x3