Skip to content

Commit fbc1377

Browse files
bjarki-andreasencarlescufi
authored andcommitted
[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 e589b5a commit fbc1377

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
@@ -344,13 +344,11 @@ tests:
344344
extra_args: EXTRA_DTC_OVERLAY_FILE="boards/nrf_at_16mhz.overlay"
345345
platform_allow:
346346
- nrf54l15dk/nrf54l15/cpuapp
347-
- nrf7120dk/nrf7120/cpuapp
348347
- ophelia4ev/nrf54l15/cpuapp
349348
drivers.spi.nrf54l_32mhz:
350349
extra_args: EXTRA_DTC_OVERLAY_FILE="boards/nrf_at_32mhz.overlay"
351350
platform_allow:
352351
- nrf54l15dk/nrf54l15/cpuapp
353-
- nrf7120dk/nrf7120/cpuapp
354352
- ophelia4ev/nrf54l15/cpuapp
355353
drivers.spi.nrf54lm20_16mhz_32mhz:
356354
harness: ztest

0 commit comments

Comments
 (0)