arm64: dts: exynos5433: specify the SPI FIFO depth
authorTudor Ambarus <tudor.ambarus@linaro.org>
Fri, 16 Feb 2024 14:04:47 +0000 (14:04 +0000)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Mon, 25 Mar 2024 11:11:54 +0000 (12:11 +0100)
Up to now the SPI alias was used as an index into an array defined in
the SPI driver to determine the SPI FIFO depthj Drop the dependency on
the SPI alias and specify the SPI FIFO depth directly into the SPI node.

The FIFO depth were determined based on the SPI aliases that are defined
in exynos5433-tm2-common.dtsi:
spi0 = &spi_0;
spi1 = &spi_1;
spi2 = &spi_2;
spi3 = &spi_3;
spi4 = &spi_4;
spi-s3c64xx.c driver defines the following fifo_lvl_mask for the
"samsung,exynos5433-spi" compatible:
.fifo_lvl_mask  = { 0x1ff, 0x7f, 0x7f, 0x7f, 0x7f, 0x1ff},
Thus spi{0, 4} were considered having 256 byte FIFO depths, and
spi{1, 2, 3} having 64 byte FIFO depths. 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-6-tudor.ambarus@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
arch/arm64/boot/dts/exynos/exynos5433.dtsi

index 7fbbec04bff037a6f36757397f6bea4504cc385f..0b9053b9b2b500f06e0ea9bc472cc4d15a335d01 100644 (file)
                        pinctrl-names = "default";
                        pinctrl-0 = <&spi0_bus>;
                        num-cs = <1>;
+                       fifo-depth = <256>;
                        status = "disabled";
                };
 
                        pinctrl-names = "default";
                        pinctrl-0 = <&spi1_bus>;
                        num-cs = <1>;
+                       fifo-depth = <64>;
                        status = "disabled";
                };
 
                        pinctrl-names = "default";
                        pinctrl-0 = <&spi2_bus>;
                        num-cs = <1>;
+                       fifo-depth = <64>;
                        status = "disabled";
                };
 
                        pinctrl-names = "default";
                        pinctrl-0 = <&spi3_bus>;
                        num-cs = <1>;
+                       fifo-depth = <64>;
                        status = "disabled";
                };
 
                        pinctrl-names = "default";
                        pinctrl-0 = <&spi4_bus>;
                        num-cs = <1>;
+                       fifo-depth = <64>;
                        status = "disabled";
                };