tests: drivers: counter: Enable counter test for MAX32655

This commit enables counter test for MAX32655 boards.

Signed-off-by: Sadik Ozer <sadik.ozer@analog.com>
diff --git a/tests/drivers/counter/counter_basic_api/boards/max32655evkit_max32655_m4.overlay b/tests/drivers/counter/counter_basic_api/boards/max32655evkit_max32655_m4.overlay
new file mode 100644
index 0000000..084e67e
--- /dev/null
+++ b/tests/drivers/counter/counter_basic_api/boards/max32655evkit_max32655_m4.overlay
@@ -0,0 +1,45 @@
+/*
+ * Copyright (c) 2024 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 = <ADI_MAX32_PRPH_CLK_SRC_ERTCO>;
+	counter {
+		status = "okay";
+	};
+};
diff --git a/tests/drivers/counter/counter_basic_api/boards/max32655fthr_max32655_m4.overlay b/tests/drivers/counter/counter_basic_api/boards/max32655fthr_max32655_m4.overlay
new file mode 100644
index 0000000..084e67e
--- /dev/null
+++ b/tests/drivers/counter/counter_basic_api/boards/max32655fthr_max32655_m4.overlay
@@ -0,0 +1,45 @@
+/*
+ * Copyright (c) 2024 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 = <ADI_MAX32_PRPH_CLK_SRC_ERTCO>;
+	counter {
+		status = "okay";
+	};
+};
diff --git a/tests/drivers/counter/counter_basic_api/src/test_counter.c b/tests/drivers/counter/counter_basic_api/src/test_counter.c
index 339fc1e..32543de 100644
--- a/tests/drivers/counter/counter_basic_api/src/test_counter.c
+++ b/tests/drivers/counter/counter_basic_api/src/test_counter.c
@@ -35,6 +35,14 @@
 #ifdef CONFIG_COUNTER_NRF_RTC
 	DEVS_FOR_DT_COMPAT(nordic_nrf_rtc)
 #endif
+#ifdef CONFIG_COUNTER_TIMER_MAX32
+#define ADI_MAX32_COUNTER_DEV(idx) \
+	DEVICE_DT_GET(DT_INST(idx, adi_max32_counter)),
+#define DT_DRV_COMPAT adi_max32_counter
+	DT_INST_FOREACH_STATUS_OKAY(ADI_MAX32_COUNTER_DEV)
+#undef DT_DRV_COMPAT
+#undef ADI_MAX32_COUNTER_DEV
+#endif
 #ifdef CONFIG_COUNTER_TIMER_STM32
 #define STM32_COUNTER_DEV(idx) \
 	DEVICE_DT_GET(DT_INST(idx, st_stm32_counter)),
@@ -966,6 +974,11 @@
 		return true;
 	}
 #endif
+#ifdef CONFIG_COUNTER_TIMER_MAX32
+	if (single_channel_alarm_capable(dev)) {
+		return true;
+	}
+#endif
 #ifdef CONFIG_COUNTER_TIMER_GD32
 	if (single_channel_alarm_capable(dev)) {
 		return true;