Tool/software:
Hi,
Yocto SDK: 09_01_00
EVM: AM62A SK EVM
As per Academy link, watchdog node is not added in device tree. So, I have added watchdog in device tree file from k3-am62-main.dtsi device tree reference as below
diff --git a/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi index 7b654ee246d1..67cb0be04766 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi @@ -795,6 +795,42 @@ main_mcan0: can@20701000 { status = "disabled"; }; + main_rti0: watchdog@e000000 { + compatible = "ti,j7-rti-wdt"; + reg = <0x00 0x0e000000 0x00 0x100>; + clocks = <&k3_clks 125 0>; + power-domains = <&k3_pds 125 TI_SCI_PD_EXCLUSIVE>; + assigned-clocks = <&k3_clks 125 0>; + assigned-clock-parents = <&k3_clks 125 2>; + }; + + main_rti1: watchdog@e010000 { + compatible = "ti,j7-rti-wdt"; + reg = <0x00 0x0e010000 0x00 0x100>; + clocks = <&k3_clks 126 0>; + power-domains = <&k3_pds 126 TI_SCI_PD_EXCLUSIVE>; + assigned-clocks = <&k3_clks 126 0>; + assigned-clock-parents = <&k3_clks 126 2>; + }; + + main_rti2: watchdog@e020000 { + compatible = "ti,j7-rti-wdt"; + reg = <0x00 0x0e020000 0x00 0x100>; + clocks = <&k3_clks 127 0>; + power-domains = <&k3_pds 127 TI_SCI_PD_EXCLUSIVE>; + assigned-clocks = <&k3_clks 127 0>; + assigned-clock-parents = <&k3_clks 127 2>; + }; + + main_rti3: watchdog@e030000 { + compatible = "ti,j7-rti-wdt"; + reg = <0x00 0x0e030000 0x00 0x100>; + clocks = <&k3_clks 128 0>; + power-domains = <&k3_pds 128 TI_SCI_PD_EXCLUSIVE>; + assigned-clocks = <&k3_clks 128 0>; + assigned-clock-parents = <&k3_clks 128 2>; + }; + epwm0: pwm@23000000 { compatible = "ti,am64-epwm", "ti,am3352-ehrpwm"; #pwm-cells = <3>;
After adding this, watchdog device are shown on the board as shown below
root@am62axx-evm:~# ls /dev/watchdog* /dev/watchdog /dev/watchdog0 /dev/watchdog1 /dev/watchdog2 /dev/watchdog3
I tried to write 'c' character in watchdog. That is triggering the watchdog and even after watchdog timed out than also not rebooting the board.
root@am62axx-evm:~# echo 'c' > /dev/watchdog3 root@am62axx-evm:~# [ 1057.553049] watchdog: watchdog3: nowayout prevents watchdog being stopped! [ 1057.553063] watchdog: watchdog3: watchdog did not stop! root@am62axx-evm:~# root@am62axx-evm:~# wdctl /dev/watchdog3 Device: /dev/watchdog3 Identity: K3 RTI Watchdog [v[ 1128.415710] watchdog: watchdog3: nowayout prevents watchdog being stopped! ersion 0] Timeout: 60 seconds [ 1128.415724] watchdog: watchdog3: watchdog did not stop! Timeleft: 0 seconds FLAG DESCRIPTION STATUS BOOT-STATUS KEEPALIVEPING Keep alive ping reply 1 0
What could be the problem here?
Jay