[PATCH] davinci: Add cpufreq support when booting with device tree

Sekhar Nori nsekhar at ti.com
Mon Sep 11 01:05:02 PDT 2017


Hi Adam,

On Saturday 09 September 2017 05:35 PM, Adam Ford wrote:
> While cpufreq itself doesn't appear to directly support the
> device tree, we can register it inside da850_init_machine
> when we register other devices.
> 
> Signed-off-by: Adam Ford <aford173 at gmail.com>

There is an OPP-based, DT-enabled cpufreq driver available. Please see
support in drivers/cpufreq/cpufreq-dt-platdev.c

We should use that instead of this platform specific hack.

Looking at Documentation/devicetree/bindings/opp/opp.txt, it seems like
we should use the v2 bindings from the start. They do have useful
features like disabling certain OPPs on certain parts depending on the
parametrics[1]

Thanks,
Sekhar

[1] http://www.ti.com/product/AM1808#parametrics



More information about the linux-arm-kernel mailing list