[PATCH 0/4] watchdog: loongson1: Add Loongson-7A watchdog support

From: Rong Zhang

Date: Tue Nov 10 2026 - 02:03:57 EST


The Loongson-7A watchdog is similar to Loongson 2K0300, except that it
has no clock controller.

Add "loongson,ls7a-wdt" compatible as well as a conditionally required
field clock-frequency. The driver will retrieve clock frequency from OF
to make it work.

With these, add a watchdog node to the LS7A PCH dtsi to wire it up, and
enable LOONGSON1_WDT in defconfig to make it work by default.

Tested on Loongson-LS3A4000-7A1000-NUC-SE and Lenovo KaiTian M530Z.

Signed-off-by: Rong Zhang <rongrong@xxxxxxxxxxxxxxxxx>
---
Rong Zhang (4):
dt-bindings: watchdog: loongson,ls1x-wdt: Add ls7a-wdt compatible
watchdog: loongson1: Add Loongson-7A watchdog support
MIPS: Loongson64: Add watchdog node for LS7A PCH
MIPS: loongson3_defconfig: Enable LOONGSON1_WDT by default

.../bindings/watchdog/loongson,ls1x-wdt.yaml | 31 ++++++++++++-
arch/mips/boot/dts/loongson/ls7a-pch.dtsi | 6 +++
arch/mips/configs/loongson3_defconfig | 54 ++++------------------
drivers/watchdog/loongson1_wdt.c | 29 ++++++++++--
4 files changed, 70 insertions(+), 50 deletions(-)
---
base-commit: 7475ea8b58616b33c04afb976cf0fbaad9dd63fb
change-id: 664fad58-mips-ls7a-wdt-1e614643b33d

Thanks,
Rong