Thread (36 messages) flat view 36 messages, 8 authors, 2023-02-24

Re: [PATCH] arm64: dts: imx8mp-msc-sm2s: Add sound card

From: Marek Vasut <marex@denx.de>
Date: 2023-02-22 18:39:43
Also in: linux-devicetree, lkml

On 2/22/23 18:59, Marco Felsch wrote:
Hi Luca,

On 23-02-22, Luca Ceresoli wrote:
quoted
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@bootlin.com>
---
  .../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";
...
quoted
+/* I2S-0 = sai2 */
+&sai2 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_sai2>;
+
+	assigned-clocks = <&clk IMX8MP_CLK_SAI2>;
+	assigned-clock-parents = <&clk IMX8MP_AUDIO_PLL1_OUT>;
+	assigned-clock-rates = <12288000>;
+
+	fsl,sai-mclk-direction-output;
+	status = "okay";
  };
Do you have some downstream patches for the sai interfaces? AFAIR Marek
worked on this but the patches are not mainlien yet.
I guess it is time to resubmit these.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help