]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
arm64: dts: imx8mp-evk: Add audio XCVR sound card
authorShengjiu Wang <shengjiu.wang@nxp.com>
Thu, 27 Jun 2024 09:53:01 +0000 (17:53 +0800)
committerShawn Guo <shawnguo@kernel.org>
Mon, 1 Jul 2024 14:21:46 +0000 (22:21 +0800)
Add audio XCVR sound card, which supports SPDIF TX & RX,
eARC RX, ARC RX functions.

HDMI_HPD is shared with the HDMI module so use pinctrl_hog.

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

index c2c708c492c0ebe2ebec4081d0d5817db28e4615..a64e8a6c830d3b5db9b3cda7a8e5c98ce3f4ba87 100644 (file)
                };
        };
 
+       sound-xcvr {
+               compatible = "fsl,imx-audio-card";
+               model = "imx-audio-xcvr";
+
+               pri-dai-link {
+                       link-name = "XCVR PCM";
+
+                       cpu {
+                               sound-dai = <&xcvr>;
+                       };
+               };
+       };
+
        reserved-memory {
                #address-cells = <2>;
                #size-cells = <2>;
        status = "okay";
 };
 
+&xcvr {
+       #sound-dai-cells = <0>;
+       status = "okay";
+};
+
 &iomuxc {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_hog>;
+
        pinctrl_audio_pwr_reg: audiopwrreggrp {
                fsl,pins = <
                        MX8MP_IOMUXC_SAI3_RXC__GPIO4_IO29               0xd6
                >;
        };
 
+       pinctrl_hog: hoggrp {
+               fsl,pins = <
+                       MX8MP_IOMUXC_HDMI_HPD__HDMIMIX_HDMI_HPD         0x40000010
+               >;
+       };
+
        pinctrl_i2c1: i2c1grp {
                fsl,pins = <
                        MX8MP_IOMUXC_I2C1_SCL__I2C1_SCL         0x400001c2