Files
nuttx/Documentation/platforms/risc-v/k210/index.rst
Huang Qi 078e7099b7 arch/risc-v/k210: Add Watchdog Timer (WDT) driver support.
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>
2026-03-18 10:15:36 +08:00

47 lines
1.2 KiB
ReStructuredText

=============
Kendryte K210
=============
System Controller (sysctl)
==========================
The K210 System Controller (sysctl) driver provides essential clock and reset
control functionality for the K210 SoC. It is built unconditionally for all
K210 boards.
Clock Frequency Configuration
-----------------------------
The driver supports querying clock frequencies for:
* PLL frequencies (PLL0, PLL1, PLL2)
* CPU clock frequency
* APB bus frequencies (APB0, APB1, APB2)
* Individual peripheral clock frequencies
CPU frequency can be configured at build time using the ``K210_CPU_FREQ``
Kconfig option (default: 400 MHz, range: 40-600 MHz).
Watchdog Timers
===============
The K210 has two independent watchdog timers (WDT0 and WDT1) for system
reliability. Both are accessible as character drivers via the standard
NuttX watchdog interface.
* **WDT0**: Base address ``0x50400000``, IRQ 21
* **WDT1**: Base address ``0x50410000``, IRQ 22
* **Timeout range**: Programmable based on 16-bit counter
Enable via Kconfig: ``CONFIG_K210_WDT`` (automatically selects
``CONFIG_WATCHDOG``). Devices are ``/dev/watchdog0`` and ``/dev/watchdog1``.
Supported Boards
================
.. toctree::
:glob:
:maxdepth: 1
boards/*/*