linux-stable/arch/arm64/boot/dts
Frank Li e47b39e90c arm64: dts: imx8-ss-dma: fix spi lpcg indices
commit f72b544a51 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: c4098885e7 ("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:23:39 +02:00
..
actions
allwinner arm64: dts: allwinner: h6: Add RX DMA channel for SPDIF 2024-03-26 18:16:49 -04:00
altera arm64: dts: socfpga: stratix10_swvp: drop unsupported DW MSHC properties 2024-01-03 18:10:40 -06:00
amazon arm64: dts: Fix dtc interrupt_provider warnings 2024-02-20 21:47:41 +01:00
amd
amlogic arm64: dts: amlogic: fix format for s4 uart node 2023-12-19 10:24:52 +01:00
apm
apple
arm arm64: dts: juno: Align thermal zone names with bindings 2023-12-12 10:04:51 +00:00
bitmain
broadcom arm64: dts: broadcom: bcmbca: bcm4908: drop invalid switch cells 2024-03-26 18:17:28 -04:00
cavium
exynos arm64: dts: exynos: gs101: comply with the new cmu_misc clock names 2024-01-22 11:39:42 +01:00
freescale arm64: dts: imx8-ss-dma: fix spi lpcg indices 2024-04-17 11:23:39 +02:00
hisilicon arm64: dts: hisilicon: hikey970-pmic: clean up SPMI node 2023-12-08 06:14:05 +00:00
intel arm64: dts: intel: minor whitespace cleanup around '=' 2024-01-03 18:10:40 -06:00
lg arm64: dts: Fix dtc interrupt_provider warnings 2024-02-20 21:47:41 +01:00
marvell arm64: dts: marvell: reorder crypto interrupts on Armada SoCs 2024-03-26 18:16:50 -04:00
mediatek arm64: dts: mt8195-cherry-tomato: change watchdog reset boot flow 2024-03-26 18:16:45 -04:00
microchip
nuvoton
nvidia arm64: tegra: Fix Tegra234 MGBE power-domains 2024-02-22 17:58:59 +01:00
qcom arm64: dts: qcom: qcs6490-rb3gen2: Declare GCC clocks protected 2024-04-13 13:09:59 +02:00
realtek
renesas arm64: dts: renesas: r8a779g0: Correct avb[01] reg sizes 2024-03-26 18:16:49 -04:00
rockchip arm64: dts: rockchip: fix rk3399 hdmi ports node 2024-04-13 13:09:59 +02:00
socionext
sprd arm64: dts: sprd: Change UMS512 idle-state nodename to match bindings 2023-12-28 16:10:39 +08:00
st arm64: dts: st: add bsec support to stm32mp25 2023-12-14 17:22:39 +01:00
synaptics
tesla arm64: dts: fsd: Add MFC related DT enteries 2023-12-13 15:06:00 +01:00
ti arm64: dts: ti: k3-am62p: Fix memory ranges for DMSS 2024-03-26 18:16:46 -04:00
toshiba
xilinx arm64: zynqmp: Add missing destination mailbox compatible 2023-12-13 16:52:47 +01:00
Makefile