017-v6.5-arm64-dts-mt7986-add-thermal-zones.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. From bb78d0cf5117517f1ed296ae71048945d9107675 Mon Sep 17 00:00:00 2001
  2. From: Daniel Golle <[email protected]>
  3. Date: Tue, 30 May 2023 22:12:34 +0200
  4. Subject: [PATCH 17/19] arm64: dts: mt7986: add thermal-zones
  5. Add thermal-zones to mt7986 devicetree.
  6. Signed-off-by: Daniel Golle <[email protected]>
  7. Signed-off-by: Frank Wunderlich <[email protected]>
  8. Reviewed-by: AngeloGioacchino Del Regno <[email protected]>
  9. Link: https://lore.kernel.org/r/[email protected]
  10. Signed-off-by: Matthias Brugger <[email protected]>
  11. ---
  12. arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 28 +++++++++++++++++++++++
  13. 1 file changed, 28 insertions(+)
  14. --- a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
  15. +++ b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
  16. @@ -602,4 +602,32 @@
  17. memory-region = <&wmcpu_emi>;
  18. };
  19. };
  20. +
  21. + thermal-zones {
  22. + cpu_thermal: cpu-thermal {
  23. + polling-delay-passive = <1000>;
  24. + polling-delay = <1000>;
  25. + thermal-sensors = <&thermal 0>;
  26. +
  27. + trips {
  28. + cpu_trip_active_high: active-high {
  29. + temperature = <115000>;
  30. + hysteresis = <2000>;
  31. + type = "active";
  32. + };
  33. +
  34. + cpu_trip_active_low: active-low {
  35. + temperature = <85000>;
  36. + hysteresis = <2000>;
  37. + type = "active";
  38. + };
  39. +
  40. + cpu_trip_passive: passive {
  41. + temperature = <40000>;
  42. + hysteresis = <2000>;
  43. + type = "passive";
  44. + };
  45. + };
  46. + };
  47. + };
  48. };