[PATCH 23/25] ARM: dts: rockchip: add arm,cpu-registers-not-fw-configured to RV1106 timer node
Simon Glass
sjg at chromium.org
Thu Aug 20 04:47:09 PDT 2026
Hi Vladislav,
On Mon, 10 Aug 2026 at 06:16, Vladislav Leonov <vlad at zlab.su> wrote:
>
> The firmware on RV1106 does not initialize CNTVOFF, so the virtual
> counter may have a bogus offset relative to the physical one.
>
> Add the arm,cpu-registers-not-fw-configured property to the arch timer
> node so the kernel does not trust firmware-configured timer registers
> and uses the physical timer instead of the virtual one.
>
> Signed-off-by: Vladislav Leonov <vlad at zlab.su>
> ---
>
> arch/arm/boot/dts/rockchip/rv1106.dtsi | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm/boot/dts/rockchip/rv1106.dtsi b/arch/arm/boot/dts/rockchip/rv1106.dtsi
> index b31cdb1c19d4..12e87d25c72b 100644
> --- a/arch/arm/boot/dts/rockchip/rv1106.dtsi
> +++ b/arch/arm/boot/dts/rockchip/rv1106.dtsi
> @@ -57,6 +57,7 @@ timer {
> clock-frequency = <24000000>;
> interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_HIGH)>,
> <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(1) | IRQ_TYPE_LEVEL_HIGH)>;
> + arm,cpu-registers-not-fw-configured;
> };
>
> xin24m: oscillator {
> --
> 2.47.3
>
I know I am using different hardware from you, but in case it is
useful, I just wanted to mention that my boot log says "cp15 timer
running at 24.00MHz (sec-phys)" both with and without this patch, and
userspace time seems unchanged either way. I am using a board powered
by USB and that power is removed on each boot.
I do have a Luckfox Pico Pi now and I will make time soon to add it to
my lab (lab.deinde.dev).
Regards,
Simon
More information about the Linux-rockchip
mailing list