Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: stm32: add system-clock-direction-out on stm32mp15xx-dkx

The commit 5725bce709db
("ASoC: simple-card-utils: Unify clock direction by clk_direction")
corrupts the audio on STM32MP15 DK sound cards.
The parent clock is not correctly set, because set_sai_ck_rate() is not
executed in stm32_sai_set_sysclk() callback.
This occurs because set_sysclk() is called with the wrong direction,
SND_SOC_CLOCK_IN instead of SND_SOC_CLOCK_OUT.

Add system-clock-direction-out property in SAI2A endpoint node of
STM32MP15XX-DKX device tree, to specify the MCLK clock direction.

Signed-off-by: Olivier Moysan <olivier.moysan@foss.st.com>
Link: https://lore.kernel.org/r/20250521150418.488152-1-olivier.moysan@foss.st.com
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>

authored by

Olivier Moysan and committed by
Alexandre Torgue
ebf53abe 9259e150

+1
+1
arch/arm/boot/dts/st/stm32mp15xx-dkx.dtsi
··· 515 515 remote-endpoint = <&cs42l51_tx_endpoint>; 516 516 dai-format = "i2s"; 517 517 mclk-fs = <256>; 518 + system-clock-direction-out; 518 519 dai-tdm-slot-num = <2>; 519 520 dai-tdm-slot-width = <32>; 520 521 };