Skip to content

Commit faee0d3

Browse files
[nrf fromtree] tests: drivers: spi: lower nrf54l and nrf7120 SPI freq to 8MHz
The nrf7120 and nrf54l SPIM21 and SPIM22 instances do not support 16MHz, and the SPIS21 only supports up to 8MHz according to the datasheet. The SPIS21 is the target device, which is what defines the spi-max-frequency, compared to the max-frequency of the bus, which does correctly set it to 8MHz for the SPIM instances. Lower the spi-max-frequency to 8MHz, and remove the nrf7120 from the 16Mhz and 32Mhz test case from testcase.yaml Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no> (cherry picked from commit 040034b)
1 parent 7b6f923 commit faee0d3

7 files changed

Lines changed: 6 additions & 8 deletions

tests/drivers/spi/spi_controller_peripheral/boards/bl54l15_dvk_nrf54l15_cpuapp.overlay

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
dut_spi_dt: test-spi-dev@0 {
6060
compatible = "vnd,spi-device";
6161
reg = <0>;
62-
spi-max-frequency = <DT_FREQ_M(16)>;
62+
spi-max-frequency = <DT_FREQ_M(8)>;
6363
};
6464
};
6565

tests/drivers/spi/spi_controller_peripheral/boards/bl54l15u_dvk_nrf54l15_cpuapp.overlay

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
dut_spi_dt: test-spi-dev@0 {
6060
compatible = "vnd,spi-device";
6161
reg = <0>;
62-
spi-max-frequency = <DT_FREQ_M(16)>;
62+
spi-max-frequency = <DT_FREQ_M(8)>;
6363
};
6464
};
6565

tests/drivers/spi/spi_controller_peripheral/boards/nrf54lm20dk_nrf54lm20a_cpuapp.overlay

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
dut_spi_dt: test-spi-dev@0 {
6666
compatible = "vnd,spi-device";
6767
reg = <0>;
68-
spi-max-frequency = <DT_FREQ_M(16)>;
68+
spi-max-frequency = <DT_FREQ_M(8)>;
6969
};
7070
};
7171

tests/drivers/spi/spi_controller_peripheral/boards/nrf54lm20dk_nrf54lm20b_cpuapp.overlay

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
dut_spi_dt: test-spi-dev@0 {
6666
compatible = "vnd,spi-device";
6767
reg = <0>;
68-
spi-max-frequency = <DT_FREQ_M(16)>;
68+
spi-max-frequency = <DT_FREQ_M(8)>;
6969
};
7070
};
7171

tests/drivers/spi/spi_controller_peripheral/boards/nrf7120dk_nrf7120_cpuapp.overlay

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
dut_spi_dt: test-spi-dev@0 {
5959
compatible = "vnd,spi-device";
6060
reg = <0>;
61-
spi-max-frequency = <DT_FREQ_M(16)>;
61+
spi-max-frequency = <DT_FREQ_M(8)>;
6262
};
6363
};
6464

tests/drivers/spi/spi_controller_peripheral/boards/ophelia4ev_nrf54l15_cpuapp.overlay

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
dut_spi_dt: test-spi-dev@0 {
5959
compatible = "vnd,spi-device";
6060
reg = <0>;
61-
spi-max-frequency = <DT_FREQ_M(16)>;
61+
spi-max-frequency = <DT_FREQ_M(8)>;
6262
};
6363
};
6464

tests/drivers/spi/spi_loopback/testcase.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,13 +332,11 @@ tests:
332332
extra_args: EXTRA_DTC_OVERLAY_FILE="boards/nrf_at_16mhz.overlay"
333333
platform_allow:
334334
- nrf54l15dk/nrf54l15/cpuapp
335-
- nrf7120dk/nrf7120/cpuapp
336335
- ophelia4ev/nrf54l15/cpuapp
337336
drivers.spi.nrf54l_32mhz:
338337
extra_args: EXTRA_DTC_OVERLAY_FILE="boards/nrf_at_32mhz.overlay"
339338
platform_allow:
340339
- nrf54l15dk/nrf54l15/cpuapp
341-
- nrf7120dk/nrf7120/cpuapp
342340
- ophelia4ev/nrf54l15/cpuapp
343341
drivers.spi.nrf54lm20_16mhz_32mhz:
344342
harness: ztest

0 commit comments

Comments
 (0)