1 * ZTE zx2967 family Thermal
4 - compatible: should be one of the following.
6 - reg: physical base address of the controller and length of memory mapped
8 - clocks : Pairs of phandle and specifier referencing the controller's clocks.
9 - clock-names: "topcrm" for the topcrm clock.
10 "apb" for the apb clock.
11 - #thermal-sensor-cells: must be 0.
13 Please note: slope coefficient defined in thermal-zones section need to be
16 Example for tempsensor:
18 tempsensor: tempsensor@148a000 {
19 compatible = "zte,zx296718-thermal";
20 reg = <0x0148a000 0x20>;
21 clocks = <&topcrm TEMPSENSOR_GATE>, <&audiocrm AUDIO_TS_PCLK>;
22 clock-names = "topcrm", "apb";
23 #thermal-sensor-cells = <0>;
26 Example for cooling device:
28 cooling_dev: cooling_dev {
29 cluster0_cooling_dev: cluster0-cooling-dev {
35 cluster1_cooling_dev: cluster1-cooling-dev {
42 Example for thermal zones:
45 zx296718_thermal: zx296718_thermal {
46 polling-delay-passive = <500>;
47 polling-delay = <1000>;
48 sustainable-power = <6500>;
50 thermal-sensors = <&tempsensor 0>;
52 * slope need to be multiplied by 1000.
54 coefficients = <1951 (-922)>;
57 trip0: switch_on_temperature {
58 temperature = <90000>;
63 trip1: desired_temperature {
64 temperature = <100000>;
69 crit: critical_temperature {
70 temperature = <110000>;
79 cooling-device = <&gpu 2 5>;
84 cooling-device = <&cluster0_cooling_dev 1 2>;
89 cooling-device = <&cluster0_cooling_dev 1 2>;
94 cooling-device = <&cluster0_cooling_dev 1 2>;
99 cooling-device = <&cluster1_cooling_dev 1 2>;
100 contribution = <9000>;
105 cooling-device = <&cluster1_cooling_dev 1 2>;
106 contribution = <4096>;
111 cooling-device = <&cluster1_cooling_dev 1 2>;
112 contribution = <4096>;