It looks like recent kernels (currently running 5.4.0rc5) no longer handle run-time clock changes
(as described in https://wiki.debian.org/InstallingDebianOn/SiFive/HiFiveUnleashed)
echo 1250000000 > /sys/devices/platform/soc/10000000.prci/rate
It appears that the pcri
has a new driver: the path is now /sys/devices/platform/soc/10000000.clock-controller
and there’s no rate
entry.
How to do this?
Edit: Couldn’t find any clock values in the dts that obviously relate to this frequency
/* Clock frequency (in Hz) of the PCB crystal for rtcclk */
#define RTCCLK_FREQ 1000000
…
hfclk: hfclk {
#clock-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <33333333>;
clock-output-names = "hfclk";
};
rtcclk: rtcclk {
#clock-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <RTCCLK_FREQ>;
clock-output-names = "rtcclk";
};
I think these are related to the crystals. How to I set the desired rate?