Commit 13ede4ec authored by Sebastian Głąb's avatar Sebastian Głąb Committed by Benjamin Cabé
Browse files

tests: drivers: spi: Tests SPI at 16 and 32 MHz on nRF54 devices

Extend spi_loopback test on nRF54 chip family.
Add configurations to run this test at 8/16/32 MHz.

Signed-off-by: default avatarSebastian Głąb <sebastian.glab@nordicsemi.no>
parent c42513a1
Loading
Loading
Loading
Loading
+5 −2
Changes for tests/drivers/spi/spi_loopback/boards/nrf54h20dk_nrf54h20_cpuapp_fast.overlay: 5 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -7,9 +7,12 @@
&pinctrl {
	spi120_default: spi120_default {
		group1 {
			psels = <NRF_PSEL(SPIM_MISO, 7, 6)>;
		};
		group2 {
			psels = <NRF_PSEL(SPIM_SCK, 7, 3)>,
				<NRF_PSEL(SPIM_MISO, 7, 6)>,
				<NRF_PSEL(SPIM_MOSI, 7, 7)>;
			nordic,drive-mode = <NRF_DRIVE_E0E1>;
		};
	};

@@ -40,7 +43,7 @@
		reg = <0>;
		spi-max-frequency = <DT_FREQ_M(4)>;
	};
	fast@0 {
	dut_fast: fast@0 {
		compatible = "test-spi-loopback-fast";
		reg = <0>;
		spi-max-frequency = <DT_FREQ_M(8)>;
+7 −2
Changes for tests/drivers/spi/spi_loopback/boards/nrf54l15dk_nrf54l15_cpuapp.overlay: 7 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -7,9 +7,12 @@
&pinctrl {
	spi00_default: spi00_default {
		group1 {
			psels = <NRF_PSEL(SPIM_MISO, 2, 9)>;
		};
		group2 {
			psels = <NRF_PSEL(SPIM_SCK, 2, 6)>,
				<NRF_PSEL(SPIM_MISO, 2, 9)>,
				<NRF_PSEL(SPIM_MOSI, 2, 8)>;
			nordic,drive-mode = <NRF_DRIVE_E0E1>;
		};
	};

@@ -23,6 +26,8 @@
	};
};

/delete-node/ &mx25r64;

&spi00 {
	status = "okay";
	pinctrl-0 = <&spi00_default>;
@@ -35,7 +40,7 @@
		reg = <0>;
		spi-max-frequency = <DT_FREQ_M(2)>;
	};
	fast@0 {
	dut_fast: fast@0 {
		compatible = "test-spi-loopback-fast";
		reg = <0>;
		spi-max-frequency = <DT_FREQ_M(4)>;
+1 −1
Changes for tests/drivers/spi/spi_loopback/boards/nrf54l20pdk_nrf54l20_cpuapp.overlay: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@
		reg = <0>;
		spi-max-frequency = <DT_FREQ_M(2)>;
	};
	fast@0 {
	dut_fast: fast@0 {
		compatible = "test-spi-loopback-fast";
		reg = <0>;
		spi-max-frequency = <DT_FREQ_M(4)>;
+10 −0
Changes for tests/drivers/spi/spi_loopback/boards/nrf_at_16mhz.overlay: 10 added lines, 0 removed lines.
Original line number Diff line number Diff line
/*
 * Copyright (c) 2025 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: Apache-2.0
 */


&dut_fast {
	spi-max-frequency = <DT_FREQ_M(16)>;
};
+10 −0
Changes for tests/drivers/spi/spi_loopback/boards/nrf_at_32mhz.overlay: 10 added lines, 0 removed lines.
Original line number Diff line number Diff line
/*
 * Copyright (c) 2025 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: Apache-2.0
 */


&dut_fast {
	spi-max-frequency = <DT_FREQ_M(32)>;
};
Loading