Re: [PATCH] arm64: dts: imx8mp-msc-sm2s: Add sound card
From: Krzysztof Kozlowski
Date: Wed Feb 22 2023 - 13:20:21 EST
On 22/02/2023 18:25, Luca Ceresoli wrote:
> The MSC SM2-MB-EP1 carrier board for the SM2S-IMX8PLUS SMARC module has an
> NXPP SGTL5000 audio codec connected to I2S-0 (sai2).
>
> This requires to:
>
> * add the power supplies (always on)
> * enable sai2 with pinmuxes
> * reparent the CLKOUT1 clock that feeds the codec SYS_MCLK to
> IMX8MP_CLK_24M in order it to generate an accurate 24 MHz rate
>
> Signed-off-by: Luca Ceresoli <luca.ceresoli@xxxxxxxxxxx>
> ---
> .../dts/freescale/imx8mp-msc-sm2s-ep1.dts | 60 +++++++++++++++++++
> 1 file changed, 60 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/freescale/imx8mp-msc-sm2s-ep1.dts b/arch/arm64/boot/dts/freescale/imx8mp-msc-sm2s-ep1.dts
> index 470ff8e31e32..894d9809f76d 100644
> --- a/arch/arm64/boot/dts/freescale/imx8mp-msc-sm2s-ep1.dts
> +++ b/arch/arm64/boot/dts/freescale/imx8mp-msc-sm2s-ep1.dts
> @@ -14,6 +14,57 @@ / {
> compatible = "avnet,sm2s-imx8mp-14N0600E-ep1",
> "avnet,sm2s-imx8mp-14N0600E", "avnet,sm2s-imx8mp",
> "fsl,imx8mp";
> +
> + reg_vcc_3v3_audio: 3v3_audio_regulator {
No underscores in node names.
> + compatible = "regulator-fixed";
> + regulator-name = "VCC_3V3_AUD";
> + regulator-min-microvolt = <3300000>;
> + regulator-max-microvolt = <3300000>;
> + };
> +
> + reg_vcc_1v8_audio: 1v8_audio_regulator {
> + compatible = "regulator-fixed";
> + regulator-name = "VCC_1V8_AUD";
> + regulator-min-microvolt = <1800000>;
> + regulator-max-microvolt = <1800000>;
> + };
> +
> + sgtl5000-sound {
Just: sound
Best regards,
Krzysztof