arm64: dts: rockchip: Add OPP data for CPU cores on RK3588j
authorAlexey Charkov <alchark@gmail.com>
Mon, 17 Jun 2024 18:28:57 +0000 (22:28 +0400)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 24 Jun 2024 16:14:04 +0000 (18:14 +0200)
commit667885a6865832eb0678c7e02e47a3392f177ecb
tree7cb21a6d537876741ff80f52482fe2f48504921f
parent276856db91b46eaa7a4c19226c096a9dc899a3e9
arm64: dts: rockchip: Add OPP data for CPU cores on RK3588j

RK3588j is the 'industrial' variant of RK3588, and it uses a different
set of OPPs both in terms of allowed frequencies and in terms of
applicable voltages at each frequency setpoint.

Add the OPPs that apply to RK3588j (and apparently RK3588m too) to
enable dynamic CPU frequency scaling.

OPP values are derived from Rockchip downstream sources [1] by taking
only those OPPs which have the highest frequency for a given voltage
level and dropping the rest (if they are included, the kernel complains
at boot time about them being inefficient)

[1] https://github.com/rockchip-linux/kernel/blob/604cec4004abe5a96c734f2fab7b74809d2d742f/arch/arm64/boot/dts/rockchip/rk3588s.dtsi

Signed-off-by: Alexey Charkov <alchark@gmail.com>
Link: https://lore.kernel.org/r/20240617-rk-dts-additions-v5-7-c1f5f3267f1e@gmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3588j.dtsi