Skip to contentSkip to conversation

arm64: dts: imx8mp-phyboard-pollux-peb-av-10: Fix SAI master assignment

PATCH Applied Primoz Fiser 3 participants 3 messages Aug 31

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

PATCH v2 1/1 arm64: dts: imx8mp-phyboard-pollux-peb-av-10: Fix SAI master assignment

The dailink_master label was placed on the codec sub-node instead of the CPU sub-node, configuring the codec as I2S bitclock/frame master with SAI2 as slave. On this board, BCLK and LRCLK are wired the other way around: SAI2 must be bus master, with the codec as I2S slave.

Move dailink_master to the CPU sub-node so SAI2 drives BCLK and LRCLK, fixing broken audio on the PHYTEC phyBOARD-Pollux-i.MX8MP board with PEB-AV-10 Audio/Video expansion board. Also remove the spurious clocks property from the codec sub-node, which had no effect in this topology.

Fixes 7012f551081f ("arm64: dts: imx8mp pollux: add expansion board overlay")

---
Changes in v2:
- reword commit message to avoid topology confusion

Link to v1: https://lore.kernel.org/all/[email protected]/

 .../boot/dts/freescale/imx8mp-phyboard-pollux-peb-av-10.dtsi | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-peb-av-10.dtsi +2 -3
index bb740f845855..8957b24a7ad2 100644
@@ -77,13 +77,12 @@ sound {
 			"MIC3R", "Microphone Jack",
 			"Microphone Jack", "Mic Bias";
 
-		simple-audio-card,cpu {
+		dailink_master: simple-audio-card,cpu {
 			sound-dai = <&sai2>;
 		};
 
-		dailink_master: simple-audio-card,codec {
+		simple-audio-card,codec {
 			sound-dai = <&codec>;
-			clocks = <&clk IMX8MP_CLK_SAI2>;
 		};
 	};
 };
Signature · 1 line
2.34.1
Reviewed-by on v2 1/1
#1 lore raw
Quoted 5 lines

The dailink_master label was placed on the codec sub-node instead of the CPU sub-node, configuring the codec as I2S bitclock/frame master with SAI2 as slave. On this board, BCLK and LRCLK are wired the other way around: SAI2 must be bus master, with the codec as I2S slave.

Quoted 7 lines

Move dailink_master to the CPU sub-node so SAI2 drives BCLK and LRCLK, fixing broken audio on the PHYTEC phyBOARD-Pollux-i.MX8MP board with PEB-AV-10 Audio/Video expansion board. Also remove the spurious clocks property from the codec sub-node, which had no effect in this topology.

Fixes 7012f551081f ("arm64: dts: imx8mp pollux: add expansion board overlay")

Regards,
Chancel Liu

Quoted 29 lines

---
Changes in v2:
- reword commit message to avoid topology confusion

Link to v1: https://lore.kernel.org/all/[email protected]/

 .../boot/dts/freescale/imx8mp-phyboard-pollux-peb-av-10.dtsi | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/freescale/imx8mp-phyboard-pollux-peb-av-10.dtsi +2 -3
index bb740f845855..8957b24a7ad2 100644
@@ -77,13 +77,12 @@ sound {
 			"MIC3R", "Microphone Jack",
 			"Microphone Jack", "Mic Bias";
 
-		simple-audio-card,cpu {
+		dailink_master: simple-audio-card,cpu {
 			sound-dai = <&sai2>;
 		};
 
-		dailink_master: simple-audio-card,codec {
+		simple-audio-card,codec {
 			sound-dai = <&codec>;
-			clocks = <&clk IMX8MP_CLK_SAI2>;
 		};
 	};
 };
#2 lore raw
In reply to Primoz Fiser

From: Frank Li <[email protected]>

Quoted 11 lines · Primoz Fiser

The dailink_master label was placed on the codec sub-node instead of the CPU sub-node, configuring the codec as I2S bitclock/frame master with SAI2 as slave. On this board, BCLK and LRCLK are wired the other way around: SAI2 must be bus master, with the codec as I2S slave.

Move dailink_master to the CPU sub-node so SAI2 drives BCLK and LRCLK, fixing broken audio on the PHYTEC phyBOARD-Pollux-i.MX8MP board with PEB-AV-10 Audio/Video expansion board. Also remove the spurious clocks property from the codec sub-node, which had no effect in this topology.

[...]

Applied, thanks!

[1/1] arm64: dts: imx8mp-phyboard-pollux-peb-av-10: Fix SAI master assignment

      commit: 1c3f5701bc0ff5cbe56bdae76157047d47051d44

Best regards,

Signature · 1 line
Frank Li <[email protected]>