raspberrypi,pico-system-timer

Description

A TIMER block of the Raspberry Pi Pico used as the system timer.

The block counts microseconds and both cores see the same one, so it suits
an SMP kernel, which a per-core SysTick does not. Give the compatible to
the timer, or on the RP2350 to one of its two, and disable the SysTick.

The first interrupt of the node, alarm 0, is the one used.

Examples

/* RP2350: TIMER1 keeps the time, TIMER0 is left to the counter driver */
&systick {
    status = "disabled";
};

&timer1 {
    compatible = "raspberrypi,pico-system-timer";
    status = "okay";
};

/* RP2040, which has one TIMER */
&systick {
    status = "disabled";
};

&timer {
    compatible = "raspberrypi,pico-system-timer";
    status = "okay";
};

Properties

Properties not inherited from the base binding file.

Name

Type

Details

resets

phandle-array

Reset information

This property is required.

clock-frequency

int

Rate of the count in Hz. The clock driver runs the tick generators of
the TIMER blocks at 1 MHz.

Default value: 1000000

reset-names

string-array

Name of each reset