Files
Finley Xiao da2cde8541 soc: rockchip_system_monitor: Add a dummy thermal governor
Add support to change thermal governor to dummy, and the system
monitor will manage cooling devices.

This also fixes the following build errors when build as a module.
ERROR: modpost: "__governor_thermal_table_end" [drivers/soc/rockchip/rockchip_system_monitor.ko] undefined!
ERROR: modpost: "__governor_thermal_table" [drivers/soc/rockchip/rockchip_system_monitor.ko] undefined!

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ia68b5bf2b6d94cb13fafc5cde74bc80b32dfac0a
2021-07-13 20:27:30 +08:00

36 lines
1.2 KiB
Plaintext

Rockchip system monitor device tree bindings
----------------------------------
Required properties:
- compatible: Should be one of the following.
- "rockchip,system-monitor"
Optional properties:
- rockchip,video-4k-offline-cpus: A string containing cpus which will be killed
when play 4k video.
- rockchip,thermal-zone: A thermal zone node containing thermal sensor,
it's used to get the current temperature.
- rockchip,polling-delay: The maximum number of milliseconds to wait
between polls.
- rockchip,offline-cpu-temp: An integer indicating the trip temperature level.
- rockchip,temp-hysteresis: A low hysteresis value on rockchip,offline-cpu-temp
property (above).
- rockchip,temp-offline-cpus: A string containing cpus which will be killed
when temperature is high.
- rockchip,thermal-governor-dummy: This property allows system monitor to
change thermal governor to dummy, and the system
monitor will manage cooling devices.
Example:
system-monitor {
compatible = "rockchip,system-monitor";
rockchip,thermal-zone = "soc-thermal";
rockchip,polling-delay = <200>; /* milliseconds */
rockchip,offline-cpu-temp = <110000>; /* millicelsius */
rockchip,temp-offline-cpus = "2-3";
rockchip,video-4k-offline-cpus = "2-3";
};