Skip to contentSkip to conversation

arm64: dts: rockchip: Assign RT5616 MCLK rate on rk3588-friendlyelec-cm3588

PATCH Applied Tom Vincent 2 participants 2 messages Apr 17, 2025 – Apr 26, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: rockchip: Assign RT5616 MCLK rate on rk3588-friendlyelec-cm3588

The Realtek RT5616 audio codec on the FriendlyElec CM3588 module fails to probe correctly due to the missing clock properties. This results in distorted analogue audio output.

Assign MCLK to 12.288 MHz, which allows the codec to advertise most of the standard sample rates per other RK3588 devices.

---
 arch/arm64/boot/dts/rockchip/rk3588-friendlyelec-cm3588.dtsi | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/rockchip/rk3588-friendlyelec-cm3588.dtsi +4 -0
index e3a9598b99fc..cacffc851584 100644
@@ -222,6 +222,10 @@ rt5616: audio-codec@1b {
 		compatible = "realtek,rt5616";
 		reg = <0x1b>;
 		#sound-dai-cells = <0>;
+		assigned-clocks = <&cru I2S0_8CH_MCLKOUT>;
+		assigned-clock-rates = <12288000>;
+		clocks = <&cru I2S0_8CH_MCLKOUT>;
+		clock-names = "mclk";
 	};
 };
 
Signature · 1 line
2.49.0
maintainer Applied
#1 lore raw
Quoted 8 lines · Tom Vincent

The Realtek RT5616 audio codec on the FriendlyElec CM3588 module fails to probe correctly due to the missing clock properties. This results in distorted analogue audio output.

Assign MCLK to 12.288 MHz, which allows the codec to advertise most of the standard sample rates per other RK3588 devices.

[...]

Applied, thanks!

[1/1] arm64: dts: rockchip: Assign RT5616 MCLK rate on rk3588-friendlyelec-cm3588

      commit: 5e6a4ee9799b202fefa8c6264647971f892f0264

Best regards,

Signature · 1 line
Heiko Stuebner <[email protected]>