Skip to content

arm64: dts: qcom: sa8775p: add the watchdog node

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2209666

Upstream Status: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git

Add qcom-wdt(watchdog device) node for Qualcomm sa8775p RideSX. The access to this qcom-wdt device will be fully virtualized by the hypervisor. Appropriate dt-bindings compatibles are upstream.

Signed-off-by: Shawn Doherty sdoherty@redhat.com

How to test

  • Apply this MR on top of main-automotive
  • add 'qcom-wdt' driver to initramfs
  • mkbootimg to create boot.img with above initramfs
  • flash boot.img using fastboot

This should boot to an emergency shell.

Look for device

ls -la /dev/watchdog
crw------- 1 root root 10, 130 Mar 31 00:00 /dev/watchdog

Trip watchdog by writing to the device

# echo 1 > /dev/watchdog
# [ 1393.426658] watchdog: watchdog0: watchdog did not stop!
0    1435.307679 WDT bite: now_ticks 46977319, last_pat 45994401, from VM 3
0    1435.316759 Abort: Watchdog bite from PC 0xffffff8faa03e660, FP 0xffffff923a010ec0
0    1435.326164 WDT: Triggering NS Watchdog Bite

System stops.

Edited by Shawn Doherty

Merge request reports