Re: [PATCH] cpufreq: imx6q/thermal: imx: move CPU cooling device from thermal to cpufreq

Viresh Kumar
2017-11-15T09:25:52Z

Please make sure you add version history and correct version number in
$Subject next time. You must have added V2 in subject here.

On 15-11-17, 10:23, Bastian Stender wrote:
> The cooling device should be part of the i.MX cpufreq driver. So move
> it there.
>
> Use of_cpufreq_power_cooling_register to link the cooling device to the
> device tree node provided.
>
> This makes it possible to bind the cpufreq cooling device to a custom
> thermal zone via a cooling-maps entry like:
>
> cooling-maps {
> map0 {
> trip = <&board_alert>;
> cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
> };
> };
>
> Assuming a cpu node exists with label "cpu0" and #cooling-cells
> property.
>
> Signed-off-by: Bastian Stender <bst@pengutronix.de>
> ---

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>

--
viresh