Is your feature request related to a problem? Please describe.
Current Zephyr timebase is defined at CONFIG_SYS_CLOCK_TICKS_PER_SEC. The RISC-V add timebase-frequency in /cpus, see risc-v/cpus.yaml . Add a way to define hardware tick at devicetree.
Describe the solution you'd like
Add at /cpus devicetree node the property timebase-frequency with desired system tick value per second. Same semantic already defined at CONFIG_SYS_CLOCK_TICKS_PER_SEC.
Is your feature request related to a problem? Please describe. Current Zephyr timebase is defined at
CONFIG_SYS_CLOCK_TICKS_PER_SEC
. The RISC-V addtimebase-frequency
in/cpus
, see risc-v/cpus.yaml . Add a way to define hardware tick at devicetree.Describe the solution you'd like Add at
/cpus
devicetree node the propertytimebase-frequency
with desired system tick value per second. Same semantic already defined atCONFIG_SYS_CLOCK_TICKS_PER_SEC
.This could be auto generated if it is introduced as mandatory. A default value could be defined and documented when this property doesn't exits.
Describe alternatives you've considered Keep current
CONFIG_SYS_CLOCK_TICKS_PER_SEC
.Additional context Original motivation #37420.