[PATCH v1] cpufreq: mediatek-hw: Add support for Mediatek cpufreq HW driver

From: Hector Yuan
Date: Fri Oct 23 2020 - 04:25:36 EST


This patchset includes 6 patches and depends on the MT6779 DTS patch[1] submitted by Hanks Chen.
The first 3 patches are for CPUFREQ HW driver and device tree binding, which are already sent before separately [2][3]. For binding part, I add a new patch to add property in cpu schema.
Besides, we add three more patches including EM power table, SVS CPU initialize, and cooling device.

[1] https://lkml.org/lkml/2020/8/4/1094
[2] https://lkml.org/lkml/2020/9/10/13 (already reviewed by Viresh) [3] https://lkml.org/lkml/2020/9/23/384


Hector.Yuan (6):
cpufreq: mediatek-hw: Add support for CPUFREQ HW
dt-bindings: arm: cpus: Document 'mtk,freq-domain' property
dt-bindings: cpufreq: add bindings for MediaTek cpufreq HW
cpufreq: mediatek-hw: register EM power table
cpufreq: mediatek-hw: Add SVS CPU initialization
cpufreq: mediatek-hw: Add cooling dev flag

Documentation/devicetree/bindings/arm/cpus.yaml | 6 +
.../bindings/cpufreq/cpufreq-mediatek-hw.yaml | 46 +++
drivers/cpufreq/Kconfig.arm | 12 +
drivers/cpufreq/Makefile | 1 +
drivers/cpufreq/mediatek-cpufreq-hw.c | 343 ++++++++++++++++++++
5 files changed, 408 insertions(+)
create mode 100644 Documentation/devicetree/bindings/cpufreq/cpufreq-mediatek-hw.yaml
create mode 100644 drivers/cpufreq/mediatek-cpufreq-hw.c