arch/risc-v/k210: Add Watchdog Timer (WDT) driver support.#18550
Merged
xiaoxiang781216 merged 1 commit intoapache:masterfrom Mar 18, 2026
Merged
arch/risc-v/k210: Add Watchdog Timer (WDT) driver support.#18550xiaoxiang781216 merged 1 commit intoapache:masterfrom
xiaoxiang781216 merged 1 commit intoapache:masterfrom
Conversation
Add WDT driver for K210 with support for both WDT0 and WDT1 peripherals. This includes: - Add k210_wdt.c and k210_wdt.h driver files with interrupt-based watchdog timer functionality - Add hardware register definitions in k210_wdt.h - Add K210_WDT, K210_WDT0, K210_WDT1 Kconfig options - Add memory map definitions for WDT0 (0x50400000) and WDT1 (0x50410000) - Reorder WDT IRQ definitions (IRQ 21, 22) before UART0 (IRQ 33) in irq.h - Add WDT initialization in board bringup for maix-bit Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
acassis
approved these changes
Mar 17, 2026
xiaoxiang781216
approved these changes
Mar 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add Watchdog Timer (WDT) driver support for the Kendryte K210 RISC-V SoC.
The K210 has two independent watchdog timers (WDT0 and WDT1) that can be used to detect and recover from system malfunctions. This driver implements the standard NuttX watchdog character driver interface.
Changes include:
k210_wdt.c,k210_wdt.h)hardware/k210_wdt.h)CONFIG_K210_WDT,CONFIG_K210_WDT0,CONFIG_K210_WDT1Impact
Testing
Build Host: Ubuntu 22.04, x86_64, GCC 12.2.0
Target: risc-v k210:maix-bit:nsh
Runtime output:
Verified: