Skip to content

Commit 832261d

Browse files
manuarguedleach02
authored andcommitted
boards: mr_canhubk3: enable SWT watchdog
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]>
1 parent b8928df commit 832261d

File tree

7 files changed

+13
-29
lines changed

7 files changed

+13
-29
lines changed

boards/nxp/mr_canhubk3/doc/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ LPI2C on-chip i2c
5656
ADC SAR on-chip adc
5757
LPSPI on-chip spi
5858
WDT FS26 SBC watchdog
59+
SWT on-chip watchdog
5960
EMAC on-chip ethernet
6061
mdio
6162
eMIOS on-chip pwm

boards/nxp/mr_canhubk3/mr_canhubk3.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
led2 = &user_led1_blue;
3838
sw0 = &user_button_1;
3939
sw1 = &user_button_2;
40-
watchdog0 = &fs26_wdt;
40+
watchdog0 = &swt0;
4141
/* For pwm test suites */
4242
pwm-0 = &emios0_pwm;
4343
pwm-1 = &flexio0_pwm;

dts/arm/nxp/nxp_s32k344_m7.dtsi

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 NXP
2+
* Copyright 2023-2024 NXP
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -874,6 +874,15 @@
874874
func-reset-threshold = <0>;
875875
dest-reset-threshold = <0>;
876876
};
877+
878+
swt0: watchdog@40270000 {
879+
compatible = "nxp,s32-swt";
880+
reg = <0x40270000 0x4000>;
881+
interrupts = <42 0>;
882+
clocks = <&clock NXP_S32_SIRC_CLK>;
883+
service-mode = "fixed";
884+
status = "okay";
885+
};
877886
};
878887
};
879888

samples/subsys/task_wdt/boards/mr_canhubk3.overlay

Lines changed: 0 additions & 15 deletions
This file was deleted.

samples/subsys/task_wdt/prj_no_hw_fallback.conf

Lines changed: 0 additions & 8 deletions
This file was deleted.

samples/subsys/task_wdt/sample.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,3 @@ tests:
2525
sample.task_wdt:
2626
integration_platforms:
2727
- nucleo_g474re
28-
sample.task_wdt.no_hw_fallback:
29-
extra_args: CONF_FILE="prj_no_hw_fallback.conf"
30-
platform_allow:
31-
- mr_canhubk3

tests/drivers/watchdog/wdt_basic_reset_none/testcase.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ tests:
88
- s32z2xxdc2/s32z270/rtu1
99
- s32z2xxdc2@D/s32z270/rtu0
1010
- s32z2xxdc2@D/s32z270/rtu1
11+
- mr_canhubk3
1112
tags:
1213
- drivers
1314
- watchdog

0 commit comments

Comments
 (0)