Skip to content

Commit c852b68

Browse files
committed
tests: drivers: spi: spi_loopback: Update slow rates for MAX32 boards
The requested SPI clock rate and the actual rate that is set can be different depending on the peripheral clock and divisors available to the SPI peripheral. For some MAX32 SoCs, actual rate ended up being higher than the devicetree setting. This would then cause latency tests to fail as transfers finish earlier than minimum expected duration. Update the test frequency values in several MAX32 board overlays to pass latency tests. Signed-off-by: Tahsin Mutlugun <Tahsin.Mutlugun@analog.com>
1 parent bee1205 commit c852b68

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

tests/drivers/spi/spi_loopback/boards/max32666fthr_max32666_cpu0.overlay

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
slow@0 {
1212
compatible = "test-spi-loopback-slow";
1313
reg = <0>;
14-
spi-max-frequency = <128000>;
14+
spi-max-frequency = <150000>;
1515
};
1616
fast@0 {
1717
compatible = "test-spi-loopback-fast";

tests/drivers/spi/spi_loopback/boards/max32675evkit.overlay

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
slow@0 {
1212
compatible = "test-spi-loopback-slow";
1313
reg = <0>;
14-
spi-max-frequency = <128000>;
14+
spi-max-frequency = <125000>;
1515
};
1616
fast@0 {
1717
compatible = "test-spi-loopback-fast";

tests/drivers/spi/spi_loopback/boards/max32690evkit_max32690_m4.overlay

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
slow@0 {
1212
compatible = "test-spi-loopback-slow";
1313
reg = <0>;
14-
spi-max-frequency = <128000>;
14+
spi-max-frequency = <125000>;
1515
};
1616
fast@0 {
1717
compatible = "test-spi-loopback-fast";

tests/drivers/spi/spi_loopback/boards/max78002evkit_max78002_m4.overlay

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
slow@0 {
1212
compatible = "test-spi-loopback-slow";
1313
reg = <0>;
14-
spi-max-frequency = <128000>;
14+
spi-max-frequency = <125000>;
1515
};
1616
fast@0 {
1717
compatible = "test-spi-loopback-fast";

0 commit comments

Comments
 (0)