ARM: dts: samsung: exynos4: specify the SPI FIFO depth
authorTudor Ambarus <tudor.ambarus@linaro.org>
Fri, 16 Feb 2024 14:04:44 +0000 (14:04 +0000)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Mon, 25 Mar 2024 11:11:10 +0000 (12:11 +0100)
commitf743fedc881b38a62ee47d752e59ab1ddb247052
tree8f414d62aec795d5e9acab68d189bbd5064bdb43
parent43dc9f88ff4db5c932cfb35cfe4bfeff25ed60e2
ARM: dts: samsung: exynos4: specify the SPI FIFO depth

Up to now the SPI alias was used as an index into an array defined in
the SPI driver to determine the SPI FIFO depth. Drop the dependency on
the SPI alias and specify the SPI FIFO depth directly into the SPI node.

exynos4.dtsi defines the following SPI aliases:
spi0 = &spi_0;
spi1 = &spi_1;
spi2 = &spi_2;
spi-s3c64xx.c driver defines the following fifo_lvl_mask for the
"samsung,exynos4210-spi" compatible:
.fifo_lvl_mask  = { 0x1ff, 0x7F, 0x7F },
Thus spi0 was considered having a 256 byte FIFO depth, and spi1 and spi2
having 64 byte FIFO depth each. Update device tree with these FIFO depths.
No functional change expected.

Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Link: https://lore.kernel.org/r/20240216140449.2564625-3-tudor.ambarus@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
arch/arm/boot/dts/samsung/exynos4.dtsi