Frank Li
a156f37b8e
arm64: dts: imx8-ss-dma: fix spi lpcg indices
...
commit f72b544a514c07d34a0d9d5380f5905b3731e647 upstream.
spi0_lpcg: clock-controller@5a400000 {
... Col0 Col1
clocks = <&clk IMX_SC_R_SPI_0 IMX_SC_PM_CLK_PER>,// 0 1
<&dma_ipg_clk>; // 1 4
clock-indices = <IMX_LPCG_CLK_0>, <IMX_LPCG_CLK_4>;
};
Col1: index, which existing dts try to get.
Col2: actual index in lpcg driver.
lpspi0: spi@5a000000 {
...
clocks = <&spi0_lpcg 0>, <&spi0_lpcg 1>;
^ ^
Should be:
clocks = <&spi0_lpcg IMX_LPCG_CLK_0>, <&spi0_lpcg IMX_LPCG_CLK_4>;
};
Arg0 is divided by 4 in lpcg driver. <&spi0_lpcg 0> and <&spi0_lpcg 1> are
IMX_SC_PM_CLK_PER. Although code can work, code logic is wrong. It should
use IMX_LPCG_CLK_0 and IMX_LPCG_CLK_4 for lpcg arg0.
Cc: stable@vger.kernel.org
Fixes: c4098885e790 ("arm64: dts: imx8dxl: add lpspi support")
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-04-17 11:19:35 +02:00
..
2024-01-31 16:18:56 -08:00
2024-02-23 09:24:47 +01:00
2024-04-17 11:19:26 +02:00
2024-04-17 11:19:35 +02:00
2024-02-23 09:24:47 +01:00
2024-04-03 15:28:55 +02:00
2023-10-11 14:27:37 +02:00
2024-04-03 15:28:36 +02:00
2024-02-16 19:10:52 +01:00
2023-09-05 10:15:22 -07:00
2024-03-26 18:19:10 -04:00
2024-02-16 19:10:52 +01:00
2023-09-05 10:09:31 -07:00
2024-04-03 15:28:54 +02:00
2024-04-10 16:35:46 +02:00
2024-04-10 16:36:04 +02:00
2024-04-10 16:36:04 +02:00
2024-02-16 19:10:52 +01:00
2024-04-10 16:35:46 +02:00
2024-02-23 09:25:03 +01:00
2024-04-13 13:07:39 +02:00
2024-02-23 09:24:47 +01:00
2024-02-23 09:24:54 +01:00