Skip to content

Commit

Permalink
boards: mr_canhubk3: enable SWT watchdog
Browse files Browse the repository at this point in the history
Enable the Software Watchdog Timer instance on this board.

Now that SWT is enabled for this board and made the default watchdog,
sample.task_wdt.no_hw_fallback can be removed as is no longer needed.

Signed-off-by: Manuel Argüelles <[email protected]>
  • Loading branch information
manuargue authored and dleach02 committed Aug 3, 2024
1 parent b8928df commit 832261d
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 29 deletions.
1 change: 1 addition & 0 deletions boards/nxp/mr_canhubk3/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ LPI2C on-chip i2c
ADC SAR on-chip adc
LPSPI on-chip spi
WDT FS26 SBC watchdog
SWT on-chip watchdog
EMAC on-chip ethernet
mdio
eMIOS on-chip pwm
Expand Down
2 changes: 1 addition & 1 deletion boards/nxp/mr_canhubk3/mr_canhubk3.dts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
led2 = &user_led1_blue;
sw0 = &user_button_1;
sw1 = &user_button_2;
watchdog0 = &fs26_wdt;
watchdog0 = &swt0;
/* For pwm test suites */
pwm-0 = &emios0_pwm;
pwm-1 = &flexio0_pwm;
Expand Down
11 changes: 10 additions & 1 deletion dts/arm/nxp/nxp_s32k344_m7.dtsi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 NXP
* Copyright 2023-2024 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/
Expand Down Expand Up @@ -874,6 +874,15 @@
func-reset-threshold = <0>;
dest-reset-threshold = <0>;
};

swt0: watchdog@40270000 {
compatible = "nxp,s32-swt";
reg = <0x40270000 0x4000>;
interrupts = <42 0>;
clocks = <&clock NXP_S32_SIRC_CLK>;
service-mode = "fixed";
status = "okay";
};
};
};

Expand Down
15 changes: 0 additions & 15 deletions samples/subsys/task_wdt/boards/mr_canhubk3.overlay

This file was deleted.

8 changes: 0 additions & 8 deletions samples/subsys/task_wdt/prj_no_hw_fallback.conf

This file was deleted.

4 changes: 0 additions & 4 deletions samples/subsys/task_wdt/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,3 @@ tests:
sample.task_wdt:
integration_platforms:
- nucleo_g474re
sample.task_wdt.no_hw_fallback:
extra_args: CONF_FILE="prj_no_hw_fallback.conf"
platform_allow:
- mr_canhubk3
1 change: 1 addition & 0 deletions tests/drivers/watchdog/wdt_basic_reset_none/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ tests:
- s32z2xxdc2/s32z270/rtu1
- s32z2xxdc2@D/s32z270/rtu0
- s32z2xxdc2@D/s32z270/rtu1
- mr_canhubk3
tags:
- drivers
- watchdog
Expand Down

0 comments on commit 832261d

Please sign in to comment.