MLK-15951: ARM64: dts: fsl-imx8qxp: Fix SAI master clock assignment
authorMihai Serban <mihai.serban@nxp.com>
Tue, 11 Jul 2017 11:05:40 +0000 (14:05 +0300)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:33:33 +0000 (15:33 -0500)
The SAI driver maps the DTS master clock names to the registers settings
that select the audio Master Clock used for internally generated bit clock
when SAI operates in master mode.
The mapping is defined as follows:

mclk0 -> Bus Clock
mclk1 -> Master Clock (MCLK) 1
mclk2 -> Master Clock (MCLK) 2
mclk3 -> Master Clock (MCLK) 3

In iMX8QXP the SAIs are connected to MCLK 1 so we have to use it in DTS.

Signed-off-by: Mihai Serban <mihai.serban@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
arch/arm64/boot/dts/freescale/fsl-imx8qxp.dtsi

index 0cbb234..eec7beb 100644 (file)
                reg = <0x0 0x59040000 0x0 0x10000>;
                interrupts = <GIC_SPI 314 IRQ_TYPE_LEVEL_HIGH>;
                clocks = <&clk IMX8QXP_AUD_SAI_0_IPG>,
-                       <&clk IMX8QXP_AUD_SAI_0_MCLK>,
                        <&clk IMX8QXP_CLK_DUMMY>,
+                       <&clk IMX8QXP_AUD_SAI_0_MCLK>,
                        <&clk IMX8QXP_CLK_DUMMY>,
                        <&clk IMX8QXP_CLK_DUMMY>;
                clock-names = "bus", "mclk0", "mclk1", "mclk2", "mclk3";