OSDN Git Service

ARM: dts: ux500: Update thermal zone
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 28 Aug 2019 07:55:14 +0000 (09:55 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 28 Aug 2019 13:54:48 +0000 (15:54 +0200)
commitb786a05f6ce4ff29ff9ef438c6111f339672f88d
treedea8ce7c4b69b4dde8c95b1a3ee3a6c9dc1ccb46
parent547c9983f2fb5240780d1a1d1235e7334d33dc0a
ARM: dts: ux500: Update thermal zone

After moving the DB8500 thermal driver to use device tree
we define the default thermal zone for the Ux500 in the
device tree replacing the oldstyle hardcoded trigger
points.

This default thermal zone utilizes the cpufreq driver
(using the generic OF cpufreq back-end) as a passive
cooling device, and defines a critical trip point when
the temperature goes above 85 degrees celsius which will
(hopefully) make the system shut down if the temperature
cannot be controlled.

This default policy can later be augmented for specific
subdevices if these have tighter temperature conditions.

After this patch we get:

/sys/class/thermal/thermal_zone0 (CPU thermal zone)
This reports the rough temperature and trip points
from the thermal zone in the device tree.

By executing two yes > /dev/null & jobs fully utilizing
the two CPU cores we can notice the temperature climbing
in the thermal zone in response and falling when we kill
the jobs.

/syc/class/thermal/cooling_device0 (cpufreq cooling)
this reports all 4 available cpufreq frequencies as
states.

Suggested-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/boot/dts/ste-dbx5x0.dtsi