[PATCH 0/6] cpufreq for H616

From: Martin Botka
Date: Mon Sep 04 2023 - 11:57:22 EST


Hello,

This patch series adds support for cpufreq on H616 SoC.

H616 is bit interesting. It has SoC versions that have different
frequencies and uV but some versions have the same version ID and
we have to check the SoC revision to differentiate between them.

This is done via SMCCC. Thus the exporting of the symbol.

Please note that this series depends on my THS series which
depends on my SID series.

I also have not enabled the cpufreq on any devices to minimize
the series dependencies and I did test it only on CB1 where
it works.

Cheers,
Martin

Signed-off-by: Martin Botka <martin.botka@xxxxxxxxxxxxxx>
---
Martin Botka (6):
firmware: smccc: Export revision soc_id function
cpufreq: dt-platdev: Blocklist allwinner,h616 SoC
dt-bindings: opp: Add compatible for H616
cpufreq: sun50i: Add H616 support
arm64: dts: allwinner: h616: Add CPU Operating Performance Points table
arm64: dts: allwinner: h616: Add cooling cells

.../opp/allwinner,sun50i-h6-operating-points.yaml | 6 +-
.../boot/dts/allwinner/sun50i-h616-cpu-opp.dtsi | 129 ++++++++++++++++++
arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi | 8 ++
drivers/cpufreq/cpufreq-dt-platdev.c | 1 +
drivers/cpufreq/sun50i-cpufreq-nvmem.c | 149 +++++++++++++++++----
drivers/firmware/smccc/smccc.c | 1 +
6 files changed, 270 insertions(+), 24 deletions(-)
---
base-commit: a384547b9656aa2c98f643037b0e940476c41f51
change-id: 20230824-cpufreq-h616-0370df5aea34

Best regards,
--
Martin Botka <martin.botka@xxxxxxxxxxxxxx>