Skip to content

Commit 65993c7

Browse files
ambaruskrzk
authored andcommitted
arm64: dts: exynos5433: 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 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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Krzysztof Kozlowski <[email protected]>
1 parent 4cece76 commit 65993c7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

arch/arm64/boot/dts/exynos/exynos5433.dtsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,6 +1468,7 @@
14681468
pinctrl-names = "default";
14691469
pinctrl-0 = <&spi0_bus>;
14701470
num-cs = <1>;
1471+
fifo-depth = <256>;
14711472
status = "disabled";
14721473
};
14731474

@@ -1487,6 +1488,7 @@
14871488
pinctrl-names = "default";
14881489
pinctrl-0 = <&spi1_bus>;
14891490
num-cs = <1>;
1491+
fifo-depth = <64>;
14901492
status = "disabled";
14911493
};
14921494

@@ -1506,6 +1508,7 @@
15061508
pinctrl-names = "default";
15071509
pinctrl-0 = <&spi2_bus>;
15081510
num-cs = <1>;
1511+
fifo-depth = <64>;
15091512
status = "disabled";
15101513
};
15111514

@@ -1525,6 +1528,7 @@
15251528
pinctrl-names = "default";
15261529
pinctrl-0 = <&spi3_bus>;
15271530
num-cs = <1>;
1531+
fifo-depth = <64>;
15281532
status = "disabled";
15291533
};
15301534

@@ -1544,6 +1548,7 @@
15441548
pinctrl-names = "default";
15451549
pinctrl-0 = <&spi4_bus>;
15461550
num-cs = <1>;
1551+
fifo-depth = <64>;
15471552
status = "disabled";
15481553
};
15491554

0 commit comments

Comments
 (0)