arm64: dts: imx8mp: Enable SAI audio on Data Modul i.MX8M Plus eDM SBC
authorMarek Vasut <marex@denx.de>
Tue, 6 Feb 2024 12:55:17 +0000 (13:55 +0100)
committerShawn Guo <shawnguo@kernel.org>
Fri, 23 Feb 2024 04:00:46 +0000 (12:00 +0800)
commit340d538e3ba34dd840603c7ae36776dd39edb945
treedbeab77470c43ac0fee77c57413dfadf0a6ce475
parent616effc0272b5c4aff6ee12627503e703de0d74c
arm64: dts: imx8mp: Enable SAI audio on Data Modul i.MX8M Plus eDM SBC

Add SAI I2S and audio bindings to Data Modul i.MX8M Plus eDM SBC.

The SGTL5000 is attached to SAI3, however the SGTL5000 codec MCLK
must be supplied even if the SAI3 is not in use and is controlled
separately by the codec. The MCLK is also used to drive the codec
I2C block, so without MCLK, I2C access to the codec would not be
possible.

To provide such flexible MCLK control, use PWM4 with period 1 and
duty cycle 50% as 12 MHz clock source, as there is no direct way
to route MX8MP CCM clock to the MCLK pin. Use codec as bitclock
and frame clock master, so that the SGTL5000 PLL can be used to
generate derived clock.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mp-data-modul-edm-sbc.dts