clk: imx8mq: Fix usdhc parents order
authorAbel Vesa <abel.vesa@nxp.com>
Thu, 15 Oct 2020 09:25:44 +0000 (12:25 +0300)
committerStephen Boyd <sboyd@kernel.org>
Tue, 20 Oct 2020 16:29:23 +0000 (09:29 -0700)
commitb159c63d82ff8ffddc6c6f0eb881b113b36ecad7
tree90cb48370b9582e4eaf3e92458610b1cde07e50d
parentdb2a28ef95bfdfc19554e3a09310cdaf9af61be6
clk: imx8mq: Fix usdhc parents order

According to the latest RM (see Table 5-1. Clock Root Table),
both usdhc root clocks have the parent order as follows:

000 - 25M_REF_CLK
001 - SYSTEM_PLL1_DIV2
010 - SYSTEM_PLL1_CLK
011 - SYSTEM_PLL2_DIV2
100 - SYSTEM_PLL3_CLK
101 - SYSTEM_PLL1_DIV3
110 - AUDIO_PLL2_CLK
111 - SYSTEM_PLL1_DIV8

So the audio_pll2_out and sys3_pll_out have to be swapped.

Fixes: b80522040cd3 ("clk: imx: Add clock driver for i.MX8MQ CCM")
Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Reported-by: Cosmin Stefan Stoica <cosmin.stoica@nxp.com>
Link: https://lore.kernel.org/r/1602753944-30757-1-git-send-email-abel.vesa@nxp.com
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/imx/clk-imx8mq.c