Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1732326

[PATCH v4 6/6] ARM: sun8i: h3: add partial CPU thermal zone

From Icenowy Zheng <icenowy@aosc.io>
Newsgroups linux.kernel
Subject [PATCH v4 6/6] ARM: sun8i: h3: add partial CPU thermal zone
Date 2017-09-14 17:00 +0200
Message-ID <upDMt-6ln-1@gated-at.bofh.it> (permalink)
References <upDMt-6ln-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Because of the restriction of the OF thermal framework, the thermal
sensor will fail to probe if the thermal zone doesn't exist.

Add a partial thermal zone which claims the H3 THS as the thermal sensor.

The cooling device (CPU DVFS) is still not added as it's not ready, and
the trip points are also not added yet.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
---
 arch/arm/boot/dts/sun8i-h3.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i-h3.dtsi
index 3220da3ad790..687c6457d214 100644
--- a/arch/arm/boot/dts/sun8i-h3.dtsi
+++ b/arch/arm/boot/dts/sun8i-h3.dtsi
@@ -89,6 +89,15 @@
 		};
 	};
 
+	thermal-zones {
+		cpu-thermal {
+			/* milliseconds */
+			polling-delay-passive = <250>;
+			polling-delay = <1000>;
+			thermal-sensors = <&ths>;
+		};
+	};
+
 	timer {
 		compatible = "arm,armv7-timer";
 		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
-- 
2.13.5

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH v4 6/6] ARM: sun8i: h3: add partial CPU thermal zone Icenowy Zheng <icenowy@aosc.io> - 2017-09-14 17:00 +0200
  Re: [PATCH v4 6/6] ARM: sun8i: h3: add partial CPU thermal zone Quentin Schulz <quentin.schulz@free-electrons.com> - 2017-09-16 12:10 +0200
    Re: [PATCH v4 6/6] ARM: sun8i: h3: add partial CPU thermal zone Jonathan Cameron <jic23@kernel.org> - 2017-09-17 00:20 +0200
      Re: [PATCH v4 6/6] ARM: sun8i: h3: add partial CPU thermal zone Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-09-18 10:30 +0200
        Re: [PATCH v4 6/6] ARM: sun8i: h3: add partial CPU thermal zone Jonathan Cameron <jic23@kernel.org> - 2017-09-24 16:30 +0200

csiph-web