From mboxrd@z Thu Jan 1 00:00:00 1970 From: embed3d@gmail.com (Philipp Rossak) Date: Fri, 26 Jan 2018 18:48:39 +0100 Subject: [linux-sunxi] [PATCH 13/16] arm: dts: sun8i: h3: add thermal zone to H3 In-Reply-To: <4cfb1faf-a712-c882-1ef1-55845c1bb00e@sholland.org> References: <20180126151941.12183-1-embed3d@gmail.com> <20180126151941.12183-14-embed3d@gmail.com> <4cfb1faf-a712-c882-1ef1-55845c1bb00e@sholland.org> Message-ID: <18116ff5-e919-a224-8d7d-2add836c1047@gmail.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 26.01.2018 17:26, Samuel Holland wrote: > On 01/26/18 09:19, Philipp Rossak wrote: >> This patch adds the thermal zones to the H3. We have only one sensor and >> that is placed in the cpu. >> >> Signed-off-by: Philipp Rossak >> --- >> 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 fbb007e5798e..3f83f6a27c74 100644 >> --- a/arch/arm/boot/dts/sun8i-h3.dtsi >> +++ b/arch/arm/boot/dts/sun8i-h3.dtsi >> @@ -72,6 +72,15 @@ >> }; >> }; >> >> + thermal-zones { >> + cpu-thermal { >> + /* milliseconds */ >> + polling-delay-passive = <250>; >> + polling-delay = <1000>; >> + thermal-sensors = <&ths 0>; > > If #thermal-sensor-cells = <0>, shouldn't this just be <&ths> ? I think both works, but I my intention was to have an accurate description in DT. I thought that that is important in DT. >> + }; >> + }; >> + >> timer { >> compatible = "arm,armv7-timer"; >> interrupts = , >> > > Thanks, > Samuel > Regards, Philipp