Skip to content

Commit 72bc807

Browse files
committed
[nrf fromlist] tests: drivers: spi: Add test cases for non standard frequencies.
Added test cases for nrf chips for non standard frequencies. Upstream PR #: 92436 Signed-off-by: Michal Frankiewicz <michal.frankiewicz@nordicsemi.no>
1 parent 0a098e8 commit 72bc807

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*
2+
* Copyright (c) 2024 Nordic Semiconductor
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&dut_spi_dt {
8+
spi-max-frequency = <1333333>;
9+
};
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*
2+
* Copyright (c) 2024 Nordic Semiconductor
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&dut_spi_dt {
8+
spi-max-frequency = <2666666>;
9+
};

tests/drivers/spi/spi_controller_peripheral/testcase.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,20 @@ tests:
4444
integration_platforms:
4545
- nrf52840dk/nrf52840
4646

47+
drivers.spi.spi_1M333333Hz:
48+
extra_configs:
49+
- CONFIG_TESTED_SPI_MODE=0
50+
extra_args: EXTRA_DTC_OVERLAY_FILE="boards/1m333333hz.overlay"
51+
integration_platforms:
52+
- nrf54l15dk/nrf54l15/cpuapp
53+
54+
drivers.spi.spi_2M666666Hz:
55+
extra_configs:
56+
- CONFIG_TESTED_SPI_MODE=0
57+
extra_args: EXTRA_DTC_OVERLAY_FILE="boards/2m666666hz.overlay"
58+
integration_platforms:
59+
- nrf54l15dk/nrf54l15/cpuapp
60+
4761
drivers.spi.spi_4MHz:
4862
extra_configs:
4963
- CONFIG_TESTED_SPI_MODE=2

0 commit comments

Comments
 (0)