riscv: dts: Set specific cpu frequency when suspending
authorMason Huo <mason.huo@starfivetech.com>
Wed, 1 Mar 2023 05:24:41 +0000 (13:24 +0800)
committerMason Huo <mason.huo@starfivetech.com>
Fri, 3 Mar 2023 06:16:08 +0000 (14:16 +0800)
commit73e24a3b9bf4ea1cef3f1da7ffb449ee2adeb45e
tree74078a3571c330eb0dab4feb1253c75e8aeab94a
parent952119dd29e3b4f8c125c82e22fe4dc0aa71617c
riscv: dts: Set specific cpu frequency when suspending

As JH7110 saves & restores all clock registers in hibernation.
The cpu voltage may not correct after restoring cpu freqency
from hibernation resume process.

In case it's suspended in 1.5GHz with 1.04v,
and it schedules to 750Mhz with 0.8v before resuming,
then the cpu clock will be restored to 1.5GHz, but the cpu
voltage still remains in 0.8v, then the system crashes.

So we set the cpu frequency to 750MHz, and it will keep
the cpu voltage matched when doing hibernation resuming.

Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
arch/riscv/boot/dts/starfive/jh7110.dtsi