Re: [PATCH v3 0/5] Add SpacemiT K1/K3 SoC timer support
From: Anand Moon
Date: Fri Nov 27 2026 - 11:22:31 EST
Hi Troy,
On Wed, 25 Nov 2026 at 07:54, Troy Mitchell
<troy.mitchell@xxxxxxxxxxxxxxxxxx> 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@xxxxxxxxx>
Tested-by: Anand Moon <linux.amoon@xxxxxxxxx>
Thanks
-Anand