tests: drivers: watchdog: Add TI TPS382x test

Added test for ti,tps382x in wdt_basic_api.

Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
This commit is contained in:
Jeppe Odgaard 2023-03-15 08:46:16 +01:00 committed by Carles Cufí
parent 31c8042e5b
commit 4f0c084e34
2 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,21 @@
/*
* Copyright (c) 2023 Prevas A/S
*
* SPDX-License-Identifier: Apache-2.0
*/
/ {
aliases {
watchdog0 = &wd_external;
};
wd_external: wd_external {
compatible = "ti,tps382x";
status = "okay";
wdi-gpios = <&gpio1 21 GPIO_ACTIVE_LOW>;
};
};
&wdog0 {
status = "disabled";
};

View file

@ -57,3 +57,7 @@ tests:
drivers.watchdog.s32z270dc2_r52:
build_only: true
platform_allow: s32z270dc2_rtu0_r52 s32z270dc2_rtu1_r52
drivers.watchdog.mimxrt1050_evk_ti_tps382x:
filter: dt_compat_enabled("ti,tps382x")
platform_allow: mimxrt1050_evk
extra_args: DTC_OVERLAY_FILE="boards/mimxrt1050_evk_ti_tps382x.overlay"