diff --git a/tests/drivers/adc/adc_api/boards/max78000fthr_max78000_m4.overlay b/tests/drivers/adc/adc_api/boards/max78000fthr_max78000_m4.overlay new file mode 100644 index 000000000000000..a9297cde19dc2df --- /dev/null +++ b/tests/drivers/adc/adc_api/boards/max78000fthr_max78000_m4.overlay @@ -0,0 +1,36 @@ +/* + * Copyright (c) 2025 Analog Devices, Inc. + * + * SPDX-License-Identifier: Apache-2.0 + */ + +/ { + zephyr,user { + /* adjust channel number according to pinmux in board.dts */ + io-channels = <&adc 3>, <&adc 4>; + }; +}; + +&adc { + status = "okay"; + pinctrl-0 = <&ain3_p2_3 &ain4_p2_4>; + pinctrl-names = "default"; + #address-cells = <1>; + #size-cells = <0>; + + channel@3 { + reg = <3>; + zephyr,gain = "ADC_GAIN_1"; + zephyr,reference = "ADC_REF_INTERNAL"; + zephyr,acquisition-time = ; + zephyr,resolution = <10>; + }; + + channel@4 { + reg = <4>; + zephyr,gain = "ADC_GAIN_1"; + zephyr,reference = "ADC_REF_INTERNAL"; + zephyr,acquisition-time = ; + zephyr,resolution = <10>; + }; +}; diff --git a/tests/drivers/counter/counter_basic_api/boards/max78000fthr_max78000_m4.overlay b/tests/drivers/counter/counter_basic_api/boards/max78000fthr_max78000_m4.overlay new file mode 100644 index 000000000000000..f31087d10232c7b --- /dev/null +++ b/tests/drivers/counter/counter_basic_api/boards/max78000fthr_max78000_m4.overlay @@ -0,0 +1,61 @@ +/* + * 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"; + }; +}; + +&lptimer0 { + status = "okay"; + clock-source = ; + counter { + status = "okay"; + }; +}; + +&lptimer1 { + status = "okay"; + clock-source = ; + counter { + status = "okay"; + }; +}; + +&clk_ertco { + status = "okay"; +}; + +&clk_inro { + status = "okay"; +}; diff --git a/tests/drivers/dma/chan_blen_transfer/boards/max78000fthr_max78000_m4.conf b/tests/drivers/dma/chan_blen_transfer/boards/max78000fthr_max78000_m4.conf new file mode 100644 index 000000000000000..a093a1aa63735a4 --- /dev/null +++ b/tests/drivers/dma/chan_blen_transfer/boards/max78000fthr_max78000_m4.conf @@ -0,0 +1,4 @@ +# Copyright (c) 2025 Analog Devices, Inc. +# SPDX-License-Identifier: Apache-2.0 + +CONFIG_CODE_DATA_RELOCATION=y diff --git a/tests/drivers/dma/chan_blen_transfer/boards/max78000fthr_max78000_m4.overlay b/tests/drivers/dma/chan_blen_transfer/boards/max78000fthr_max78000_m4.overlay new file mode 100644 index 000000000000000..0e412606f7a073b --- /dev/null +++ b/tests/drivers/dma/chan_blen_transfer/boards/max78000fthr_max78000_m4.overlay @@ -0,0 +1,7 @@ +/* + * Copyright (c) 2025 Analog Devices, Inc. + * + * SPDX-License-Identifier: Apache-2.0 + */ + +tst_dma0: &dma0 { }; diff --git a/tests/drivers/dma/loop_transfer/boards/max78000fthr_max78000_m4.overlay b/tests/drivers/dma/loop_transfer/boards/max78000fthr_max78000_m4.overlay new file mode 100644 index 000000000000000..0e412606f7a073b --- /dev/null +++ b/tests/drivers/dma/loop_transfer/boards/max78000fthr_max78000_m4.overlay @@ -0,0 +1,7 @@ +/* + * Copyright (c) 2025 Analog Devices, Inc. + * + * SPDX-License-Identifier: Apache-2.0 + */ + +tst_dma0: &dma0 { }; diff --git a/tests/drivers/gpio/gpio_basic_api/boards/max78000fthr_max78000_m4.overlay b/tests/drivers/gpio/gpio_basic_api/boards/max78000fthr_max78000_m4.overlay new file mode 100644 index 000000000000000..49d42fd7f61454d --- /dev/null +++ b/tests/drivers/gpio/gpio_basic_api/boards/max78000fthr_max78000_m4.overlay @@ -0,0 +1,13 @@ +/* + * Copyright (c) 2025 Analog Devices, Inc. + * + * SPDX-License-Identifier: Apache-2.0 + */ + +/ { + resources { + compatible = "test-gpio-basic-api"; + out-gpios = <&gpio1 0 0>; + in-gpios = <&gpio1 1 0>; + }; +}; diff --git a/tests/drivers/pwm/pwm_api/boards/max78000fthr_max78000_m4.overlay b/tests/drivers/pwm/pwm_api/boards/max78000fthr_max78000_m4.overlay new file mode 100644 index 000000000000000..d6e35a62dc2b69a --- /dev/null +++ b/tests/drivers/pwm/pwm_api/boards/max78000fthr_max78000_m4.overlay @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2025 Analog Devices, Inc. + * + * SPDX-License-Identifier: Apache-2.0 + */ + +/ { + aliases { + pwm-0 = &pwm0; + }; +}; + +&tmr0a_ioa_p0_2 { + power-source=; +}; + +&timer0 { + status = "okay"; + pwm0: pwm { + status = "okay"; + }; +}; diff --git a/tests/drivers/spi/spi_loopback/boards/max78000fthr_max78000_m4.conf b/tests/drivers/spi/spi_loopback/boards/max78000fthr_max78000_m4.conf new file mode 100644 index 000000000000000..fdddf5a9ab199de --- /dev/null +++ b/tests/drivers/spi/spi_loopback/boards/max78000fthr_max78000_m4.conf @@ -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 diff --git a/tests/drivers/spi/spi_loopback/boards/max78000fthr_max78000_m4.overlay b/tests/drivers/spi/spi_loopback/boards/max78000fthr_max78000_m4.overlay new file mode 100644 index 000000000000000..a44098a6662f1d4 --- /dev/null +++ b/tests/drivers/spi/spi_loopback/boards/max78000fthr_max78000_m4.overlay @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2025 Analog Devices, Inc. + * + * SPDX-License-Identifier: Apache-2.0 + */ + +&spi0 { + dmas = <&dma0 1 MAX78_DMA_SLOT_SPI0_TX>, <&dma0 2 MAX78_DMA_SLOT_SPI0_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 = <400000>; + }; +}; diff --git a/tests/drivers/w1/w1_api/boards/max78000fthr_max78000_m4.overlay b/tests/drivers/w1/w1_api/boards/max78000fthr_max78000_m4.overlay new file mode 100644 index 000000000000000..cccb0586a531d25 --- /dev/null +++ b/tests/drivers/w1/w1_api/boards/max78000fthr_max78000_m4.overlay @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2025 Analog Devices, Inc. + * + * SPDX-License-Identifier: Apache-2.0 + */ + +&owm_io_p0_6 { + power-source=; +}; + +&owm_pe_p0_7 { + power-source=; +}; + +w1_0: &w1 { + status = "okay"; + pinctrl-0 = <&owm_io_p0_6 &owm_pe_p0_7>; + pinctrl-names = "default"; + internal-pullup = <1>; + external-pullup = <0>; + long-line-mode; +}; + +#include "../w1_devices.dtsi"