Skip to content

Commit 531ee1f

Browse files
agnersShawn Guo
authored andcommitted
ARM: dts: vf610: fix clock definition for SAI2
So far, only the bus clock has been assigned, but in reality the SAI IP has for clock inputs. The driver has been updated to make use of the additional clock inputs by c3ecef2 ("ASoC: fsl_sai: add sai master mode support"). Due to a bug in the clock tree, the audio clock has been enabled none the less by the specified bus clock (see "ARM: imx: clk-vf610: fix SAI clock tree"), which made master mode even without the proper clock assigned working. This patch completes the clock definition for SAI2. On Vybrid, only two MCLK out of the four options are available (the first being the bus clock itself). See chapter 8.10.1.2.3 of the Vybrid Reference manual ("SAI transmitter and receiver options for MCLK selection"). Note: The audio clocks are only required in master mode. Signed-off-by: Stefan Agner <stefan@agner.ch> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
1 parent 3b60a26 commit 531ee1f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

arch/arm/boot/dts/vfxxx.dtsi

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,10 @@
178178
compatible = "fsl,vf610-sai";
179179
reg = <0x40031000 0x1000>;
180180
interrupts = <86 IRQ_TYPE_LEVEL_HIGH>;
181-
clocks = <&clks VF610_CLK_SAI2>;
182-
clock-names = "sai";
181+
clocks = <&clks VF610_CLK_SAI2>,
182+
<&clks VF610_CLK_SAI2_DIV>,
183+
<&clks 0>, <&clks 0>;
184+
clock-names = "bus", "mclk1", "mclk2", "mclk3";
183185
dma-names = "tx", "rx";
184186
dmas = <&edma0 0 21>,
185187
<&edma0 0 20>;

0 commit comments

Comments
 (0)