[PATCH v3 0/5] Add SpacemiT K1/K3 SoC timer support

Anand Moon linux.amoon at gmail.com
Fri Nov 27 08:22:10 PST 2026


Hi Troy,

On Wed, 25 Nov 2026 at 07:54, Troy Mitchell
<troy.mitchell at linux.spacemit.com> wrote:
>
> The SpacemiT K1 and K3 SoCs have APB timers that run independently of
> the CPU cores. Each timer block has three 32-bit up counters, and each
> counter has three match comparators and its own interrupt. A counter
> can be clocked from the functional clock or from the 32.768 kHz clock,
> and can run in free-running or periodic mode.
>
> This series uses counter 0 as a oneshot clockevent. It is registered
> for tick broadcast, so it can wake up CPUs whose local RISC-V timer
> stops in idle.
>
> K3 uses the same register interface as K1 and falls back to the K1
> compatible. Both SoCs run the timer from a 1 MHz functional clock.
>
Tested on a Banana Pi BPI-F3.

Reviewed-by: Anand Moon <linux.amoon at gmail.com>
Tested-by: Anand Moon <linux.amoon at gmail.com>

Thanks
-Anand



More information about the linux-riscv mailing list