Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/*
* Copyright (c) 2025 Analog Devices, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/

&timer0 {
status = "okay";
prescaler = <2>;
counter {
status = "okay";
};
};

&timer1 {
status = "okay";
prescaler = <2>;
counter {
status = "okay";
};
};

&timer2 {
status = "okay";
prescaler = <2>;
counter {
status = "okay";
};
};

&timer3 {
status = "okay";
prescaler = <2>;
counter {
status = "okay";
};
};

&timer4 {
status = "okay";
prescaler = <2>;
counter {
status = "okay";
};
};

&timer5 {
status = "okay";
prescaler = <2>;
counter {
status = "okay";
};
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/*
* Copyright (c) 2025 Analog Devices, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/

&timer0 {
status = "okay";
prescaler = <2>;
counter {
status = "okay";
};
};

&timer1 {
status = "okay";
prescaler = <2>;
counter {
status = "okay";
};
};

&timer2 {
status = "okay";
prescaler = <2>;
counter {
status = "okay";
};
};

&timer3 {
status = "okay";
prescaler = <2>;
counter {
status = "okay";
};
};

&timer4 {
status = "okay";
prescaler = <2>;
counter {
status = "okay";
};
};

&timer5 {
status = "okay";
prescaler = <2>;
counter {
status = "okay";
};
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright (c) 2025 Analog Devices, Inc.
# SPDX-License-Identifier: Apache-2.0

CONFIG_CODE_DATA_RELOCATION=y
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
* Copyright (c) 2025 Analog Devices, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/

tst_dma0: &dma0 { };
4 changes: 4 additions & 0 deletions tests/drivers/dma/chan_blen_transfer/boards/max32650fthr.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright (c) 2025 Analog Devices, Inc.
# SPDX-License-Identifier: Apache-2.0

CONFIG_CODE_DATA_RELOCATION=y
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
* Copyright (c) 2025 Analog Devices, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/

tst_dma0: &dma0 { };
7 changes: 7 additions & 0 deletions tests/drivers/dma/loop_transfer/boards/max32650evkit.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
* Copyright (c) 2025 Analog Devices, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/

tst_dma0: &dma0 { };
7 changes: 7 additions & 0 deletions tests/drivers/dma/loop_transfer/boards/max32650fthr.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
* Copyright (c) 2025 Analog Devices, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/

tst_dma0: &dma0 { };
5 changes: 5 additions & 0 deletions tests/drivers/i2c/i2c_target_api/boards/max32650evkit.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright (c) 2025 Analog Devices, Inc.
# SPDX-License-Identifier: Apache-2.0

CONFIG_I2C_VIRTUAL=n
CONFIG_I2C_MAX32_DMA=y
33 changes: 33 additions & 0 deletions tests/drivers/i2c/i2c_target_api/boards/max32650evkit.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* Copyright (c) 2025 Analog Devices, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/

&i2c0 {
dmas = <&dma0 0 MAX32_DMA_SLOT_I2C0_TX>, <&dma0 1 MAX32_DMA_SLOT_I2C0_RX>;
dma-names = "tx", "rx";

eeprom0: eeprom@54 {
compatible = "zephyr,i2c-target-eeprom";
reg = <0x54>;
address-width = <16>;
size = <1024>;
};
};

&i2c1 {
status = "okay";
pinctrl-0 = <&i2c1_scl_p2_18 &i2c1_sda_p2_17>;
pinctrl-names = "default";

dmas = <&dma0 2 MAX32_DMA_SLOT_I2C1_TX>, <&dma0 3 MAX32_DMA_SLOT_I2C1_RX>;
dma-names = "tx", "rx";

eeprom1: eeprom@56 {
compatible = "zephyr,i2c-target-eeprom";
reg = <0x56>;
address-width = <16>;
size = <1024>;
};
};
1 change: 1 addition & 0 deletions tests/drivers/spi/spi_loopback/boards/frdm_mcxa153.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_ISR_STACK_SIZE=512
21 changes: 21 additions & 0 deletions tests/drivers/spi/spi_loopback/boards/frdm_mcxa153.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Copyright 2025 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/

/* To test this sample, connect
* LPSPI0 MOSI(J6-6, P1_0/LPSPI0_SDO) --> LPSPI0 MISO(J6-5, P1_2/LPSPI0_SDI)
*/
&lpspi0 {
slow@0 {
compatible = "test-spi-loopback-slow";
reg = <0>;
spi-max-frequency = <500000>;
};
fast@0 {
compatible = "test-spi-loopback-fast";
reg = <0>;
spi-max-frequency = <16000000>;
};
};
7 changes: 7 additions & 0 deletions tests/drivers/spi/spi_loopback/boards/max32650evkit.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#
# Copyright (c) 2025 Analog Devices, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
CONFIG_SPI_ASYNC=y
CONFIG_SPI_MAX32_INTERRUPT=y
21 changes: 21 additions & 0 deletions tests/drivers/spi/spi_loopback/boards/max32650evkit.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Copyright (c) 2025 Analog Devices, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/

&spi2 {
dmas = <&dma0 1 MAX32_DMA_SLOT_SPI2_TX>, <&dma0 2 MAX32_DMA_SLOT_SPI2_RX>;
dma-names = "tx", "rx";

slow@0 {
compatible = "test-spi-loopback-slow";
reg = <0>;
spi-max-frequency = <128000>;
};
fast@0 {
compatible = "test-spi-loopback-fast";
reg = <0>;
spi-max-frequency = <500000>;
};
};
7 changes: 7 additions & 0 deletions tests/drivers/spi/spi_loopback/boards/max32650fthr.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#
# Copyright (c) 2025 Analog Devices, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
CONFIG_SPI_ASYNC=y
CONFIG_SPI_MAX32_INTERRUPT=y
21 changes: 21 additions & 0 deletions tests/drivers/spi/spi_loopback/boards/max32650fthr.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Copyright (c) 2025 Analog Devices, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/

&spi1 {
dmas = <&dma0 1 MAX32_DMA_SLOT_SPI1_TX>, <&dma0 2 MAX32_DMA_SLOT_SPI1_RX>;
dma-names = "tx", "rx";

slow@0 {
compatible = "test-spi-loopback-slow";
reg = <0>;
spi-max-frequency = <128000>;
};
fast@0 {
compatible = "test-spi-loopback-fast";
reg = <0>;
spi-max-frequency = <500000>;
};
};
14 changes: 14 additions & 0 deletions tests/drivers/spi/spi_loopback/boards/nrf_at_1mhz.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* Copyright (c) 2025 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/

/* Note: 1 MHz is too low for fast SPI instance on some nRF platforms.
* In such case, use slow instance instead.
* This overlay is for negative test.
*/

&dut_fast {
spi-max-frequency = <DT_FREQ_M(1)>;
};
14 changes: 14 additions & 0 deletions tests/drivers/spi/spi_loopback/boards/nrf_at_2mhz.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* Copyright (c) 2025 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/

/* Note: 2 MHz is too low for fast SPI instance on some nRF platforms.
* In such case, use slow instance instead.
* This overlay is for negative test.
*/

&dut_fast {
spi-max-frequency = <DT_FREQ_M(2)>;
};
29 changes: 29 additions & 0 deletions tests/drivers/spi/spi_loopback/boards/nucleo_wba55cg.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
* Copyright (c) 2025 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*/

&rcc {
apb2-prescaler = <2>;
};

&spi1 {
dmas = <&gpdma1 0 7 STM32_DMA_PERIPH_TX
&gpdma1 1 6 STM32_DMA_PERIPH_RX>;
dma-names = "tx", "rx";
slow@0 {
compatible = "test-spi-loopback-slow";
reg = <0>;
spi-max-frequency = <500000>;
};
fast@0 {
compatible = "test-spi-loopback-fast";
reg = <0>;
spi-max-frequency = <16000000>;
};
};

&gpdma1 {
status = "okay";
};
1 change: 1 addition & 0 deletions tests/drivers/spi/spi_loopback/boards/siwx917_rb4338a.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_SPI_SILABS_SIWX91X_GSPI_DMA=y
41 changes: 41 additions & 0 deletions tests/drivers/spi/spi_loopback/boards/siwx917_rb4338a.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
* Copyright (c) 2025 Silicon Laboratories Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/

&pinctrl0 {
spi0_default: spi0_default {
out {
pinmux = <GSPI_CLK_PB9>, <GSPI_MOSI_PB11>;
};
in {
pinmux = <GSPI_MISO_PB10>;
};
};
};

&spi0 {
status = "okay";
cs-gpios = <&gpiob 12 GPIO_ACTIVE_LOW>;
pinctrl-0 = <&spi0_default>;
pinctrl-names = "default";

dmas = <&dma0 11>, <&dma0 10>;
dma-names = "tx", "rx";

slow@0 {
compatible = "test-spi-loopback-slow";
reg = <0>;
spi-max-frequency = <500000>;
};
fast@1 {
compatible = "test-spi-loopback-fast";
reg = <1>;
spi-max-frequency = <10000000>;
};
};

&dma0 {
status = "okay";
};
Loading