Skip to content

Commit

Permalink
ARM: dts: msm8974: thermal: Add thermal zones for each sensor
Browse files Browse the repository at this point in the history
msm8974 has 11 sensors connected to a single TSENS IP. Define a thermal
zone for each of those sensors to expose the temperature of each zone.

Signed-off-by: Amit Kucheria <[email protected]>
Tested-by: Brian Masney <[email protected]>
Reviewed-by: Stephen Boyd <[email protected]>
Signed-off-by: Andy Gross <[email protected]>
  • Loading branch information
idlethread authored and agross-korg committed Oct 27, 2019
1 parent d6f0ce8 commit 140647f
Showing 1 changed file with 90 additions and 0 deletions.
90 changes: 90 additions & 0 deletions arch/arm/boot/dts/qcom-msm8974.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,96 @@
};
};
};

q6-dsp-thermal {
polling-delay-passive = <250>;
polling-delay = <1000>;

thermal-sensors = <&tsens 1>;

trips {
q6_dsp_alert0: trip-point0 {
temperature = <90000>;
hysteresis = <2000>;
type = "hot";
};
};
};

modemtx-thermal {
polling-delay-passive = <250>;
polling-delay = <1000>;

thermal-sensors = <&tsens 2>;

trips {
modemtx_alert0: trip-point0 {
temperature = <90000>;
hysteresis = <2000>;
type = "hot";
};
};
};

video-thermal {
polling-delay-passive = <250>;
polling-delay = <1000>;

thermal-sensors = <&tsens 3>;

trips {
video_alert0: trip-point0 {
temperature = <95000>;
hysteresis = <2000>;
type = "hot";
};
};
};

wlan-thermal {
polling-delay-passive = <250>;
polling-delay = <1000>;

thermal-sensors = <&tsens 4>;

trips {
wlan_alert0: trip-point0 {
temperature = <105000>;
hysteresis = <2000>;
type = "hot";
};
};
};

gpu-thermal-top {
polling-delay-passive = <250>;
polling-delay = <1000>;

thermal-sensors = <&tsens 9>;

trips {
gpu1_alert0: trip-point0 {
temperature = <90000>;
hysteresis = <2000>;
type = "hot";
};
};
};

gpu-thermal-bottom {
polling-delay-passive = <250>;
polling-delay = <1000>;

thermal-sensors = <&tsens 10>;

trips {
gpu2_alert0: trip-point0 {
temperature = <90000>;
hysteresis = <2000>;
type = "hot";
};
};
};
};

cpu-pmu {
Expand Down

0 comments on commit 140647f

Please sign in to comment.