Skip to content

Commit de1ef0a

Browse files
asmellbykartben
authored andcommitted
tests: drivers: watchdog: Enable tests for xg24 and xg27
Enable watchdog tests for representative xg24 and xg27 boards. Signed-off-by: Aksel Skauge Mellbye <[email protected]>
1 parent 39e468b commit de1ef0a

File tree

4 files changed

+28
-1
lines changed

4 files changed

+28
-1
lines changed

boards/silabs/dev_kits/xg27_dk2602a/xg27_dk2602a.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ supported:
1616
- clock_control
1717
- comparator
1818
- adc
19+
- watchdog
1920
vendor: silabs

tests/drivers/watchdog/wdt_basic_reset_none/testcase.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33

44
tests:
55
drivers.watchdog.reset_none:
6-
filter: dt_compat_enabled("nxp,s32-swt") or dt_compat_enabled("renesas,ra-wdt")
6+
filter: |
7+
dt_compat_enabled("nxp,s32-swt")
8+
or dt_compat_enabled("renesas,ra-wdt")
9+
or dt_compat_enabled("silabs,gecko-wdog")
710
integration_platforms:
811
- s32z2xxdc2/s32z270/rtu0
912
tags:

tests/drivers/watchdog/wdt_error_cases/src/main.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,21 @@
5454
#define MAX_INSTALLABLE_TIMEOUTS (8)
5555
#define WDT_WINDOW_MAX_ALLOWED (0x07CFFFFFU)
5656
#define DEFAULT_OPTIONS (WDT_OPT_PAUSE_IN_SLEEP | WDT_OPT_PAUSE_HALTED_BY_DBG)
57+
#elif defined(CONFIG_SOC_FAMILY_SILABS_S2)
58+
#if defined(WDOG_CFG_EM1RUN)
59+
#define WDT_TEST_FLAG_SLEEP_REQUIRES_PM 0
60+
#else
61+
#define WDT_TEST_FLAG_SLEEP_REQUIRES_PM WDT_OPT_PAUSE_IN_SLEEP_REQUIRES_PM
62+
#endif
63+
#define WDT_TEST_FLAGS \
64+
(WDT_DISABLE_SUPPORTED | WDT_FLAG_RESET_NONE_SUPPORTED | WDT_FLAG_RESET_SOC_SUPPORTED | \
65+
WDT_FLAG_ONLY_ONE_TIMEOUT_VALUE_SUPPORTED | WDT_OPT_PAUSE_IN_SLEEP_SUPPORTED | \
66+
WDT_OPT_PAUSE_HALTED_BY_DBG_SUPPORTED | WDT_WINDOW_MIN_SUPPORTED | \
67+
WDT_TEST_FLAG_SLEEP_REQUIRES_PM)
68+
#define DEFAULT_FLAGS (WDT_FLAG_RESET_NONE)
69+
#define MAX_INSTALLABLE_TIMEOUTS (1)
70+
#define WDT_WINDOW_MAX_ALLOWED (0x40001U)
71+
#define DEFAULT_OPTIONS (WDT_OPT_PAUSE_IN_SLEEP | WDT_OPT_PAUSE_HALTED_BY_DBG)
5772
#else
5873
/* By default run most of the error checks.
5974
* See Readme.txt on how to align test scope for the specific target.

tests/drivers/watchdog/wdt_error_cases/testcase.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,15 @@ tests:
1717
- nrf9280pdk/nrf9280/cpurad
1818
- ophelia4ev/nrf54l15/cpuapp
1919
- raytac_an54l15q_db/nrf54l15/cpuapp
20+
- xg24_rb4187c
21+
- xg27_dk2602a
2022
integration_platforms:
2123
- nrf54l15dk/nrf54l15/cpuapp
2224
- ophelia4ev/nrf54l15/cpuapp
2325
- raytac_an54l15q_db/nrf54l15/cpuapp
26+
drivers.watchdog.wdt_error_cases_pm:
27+
platform_allow:
28+
- xg24_rb4187c
29+
- xg27_dk2602a
30+
extra_configs:
31+
- CONFIG_PM=y

0 commit comments

Comments
 (0)