Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp356430imm; Fri, 31 Aug 2018 02:15:35 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda3F2WZq3a0i5Pjx1JZ1bmhUZRXz9wQRoonaIpRLQDnSk3sYz6/hIsn1X4hnjlTqcnB6ka7 X-Received: by 2002:a62:6bc5:: with SMTP id g188-v6mr10921978pfc.91.1535706935789; Fri, 31 Aug 2018 02:15:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535706935; cv=none; d=google.com; s=arc-20160816; b=kD0rK6t9fvYwXcx6oEttBiT6p5FSwHU4q4VPN5W8kAxZP53PDaYuQf3tAhC2DGoKoa dqem6hNW5D3naqv4FIKf6PDDxKIUJYsyCiHb2H4KVQqNaaPjMctFpEkxryYPl38PYWuD vzBLTMsmGYI1qFi0DPQPntIf+vJwFETJlEdrG0OhUwt3GKuRvE4TTeTwHMqB5IUQrlgS XWw6/yfOtUtgDSqDXmyPov6ZSU6N54ngIIXDcOvO460Rna/Q2oNN+QWIqHeGmemMwsx3 GJeb3JKYzb3oT7hangPgRr+jnX7XzG+0Z70euAjMjYigAPkbzBj6LvkmoIb4ARIkxNrV icDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=AOY7Vd5BAwTeIDs98SNNjNxH1DUQYux/+O5k/ft11cg=; b=JVxcdnXv/NR11l8Xyv1VacN2CWrqtphNKg/QKRxaoogwqczSdrclYZ4aWr9lkXGlnn Qg8p5OxXRf7I6+YNuuA6N0y3k/YbKRo9YTcs4EgjX5UcV/9M1msJcrO56+SMB7qlW1kN aCMR2TJZI5anrqzyDwgbWNdd8jWla6V1dKxpbSuSkWG9j31jdzWe/XLR0lSw7dr92Pl0 VXCZ8Zyf51EAjXfO5OJfKwPWc8L3YKinlofRppeg8eEq16Fm6CkoDz+XZIk/FF0nsTr7 qVV+kPMFUnbGwFhVdvt8is9I4JvDNMnw405mDXXEmU54jGEta7z33JTrqHa0SUfDSN/x pP6g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k2-v6si8472341pgp.602.2018.08.31.02.15.21; Fri, 31 Aug 2018 02:15:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728029AbeHaNUk (ORCPT + 99 others); Fri, 31 Aug 2018 09:20:40 -0400 Received: from mail.bootlin.com ([62.4.15.54]:34090 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727292AbeHaNUk (ORCPT ); Fri, 31 Aug 2018 09:20:40 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 73A8C207EB; Fri, 31 Aug 2018 11:14:06 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (AAubervilliers-681-1-92-107.w90-88.abo.wanadoo.fr [90.88.33.107]) by mail.bootlin.com (Postfix) with ESMTPSA id 45ADF203EC; Fri, 31 Aug 2018 11:14:06 +0200 (CEST) Date: Fri, 31 Aug 2018 11:14:05 +0200 From: Maxime Ripard To: Philipp Rossak Cc: lee.jones@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, wens@csie.org, linux@armlinux.org.uk, jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, eugen.hristev@microchip.com, rdunlap@infradead.org, vilhelm.gray@gmail.com, clabbe.montjoie@gmail.com, quentin.schulz@bootlin.com, geert+renesas@glider.be, lukas@wunner.de, icenowy@aosc.io, arnd@arndb.de, broonie@kernel.org, arnaud.pouliquen@st.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: Re: [PATCH v3 25/30] ARM: dts: sun8i: h3: add thermal zone to H3 Message-ID: <20180831091405.qr5daepgmx3otq7m@flea> References: <20180830154518.29507-1-embed3d@gmail.com> <20180830154518.29507-26-embed3d@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="dnpyaz3qnlascrvt" Content-Disposition: inline In-Reply-To: <20180830154518.29507-26-embed3d@gmail.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --dnpyaz3qnlascrvt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 30, 2018 at 05:45:13PM +0200, Philipp Rossak wrote: > This patch adds the thermal zones to the H3. We have only one sensor and > that is placed in the cpu. >=20 > Signed-off-by: Philipp Rossak > --- > arch/arm/boot/dts/sun8i-h3.dtsi | 31 +++++++++++++++++++++++++++++++ > arch/arm/boot/dts/sunxi-h3-h5.dtsi | 1 + > 2 files changed, 32 insertions(+) >=20 > diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i-h3= =2Edtsi > index 5b7994cb1471..954848d5df50 100644 > --- a/arch/arm/boot/dts/sun8i-h3.dtsi > +++ b/arch/arm/boot/dts/sun8i-h3.dtsi > @@ -78,6 +78,8 @@ > clock-names =3D "cpu"; > operating-points-v2 =3D <&cpu0_opp_table>; > #cooling-cells =3D <2>; > + cooling-min-level =3D <0>; > + cooling-max-level =3D <15>; > }; > =20 > cpu@1 { > @@ -102,6 +104,35 @@ > }; > }; > =20 > + thermal-zones { > + cpu-thermal { > + /* milliseconds */ > + polling-delay-passive =3D <250>; > + polling-delay =3D <1000>; > + thermal-sensors =3D <&ths>; > + > + trips { > + cpu_hot_trip: cpu-warm { > + temperature =3D <65000>; > + hysteresis =3D <2000>; > + type =3D "passive"; > + }; > + cpu_very_hot_trip: cpu-very-hot { > + temperature =3D <90000>; > + hysteresis =3D <2000>; > + type =3D "critical"; > + }; > + }; Where are those trip points coming from? Maxime --=20 Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --dnpyaz3qnlascrvt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAluJBtwACgkQ0rTAlCFN r3SnNxAAmg0ZB4SNncuiVkqxlSb5M2cgBcDualedWaHYl8ulFLZ/kHaMkc9Dq8Jx ZoCEHNDFB3W95LZptUYD6E5JfRXEmUhig9wzlqFeylEfDA3TjhmbGVVSk2Y58Ges A6+y0tm1ep5To5xBdwkEKtnssTHTHLUmXlmhfEETYYcwHGqtxZIb55N9usA8fmMa 2CNOPS1Sx5iGqk7SmJfD83aof5xFbvRlnjGn3sreUsKGlRwwaGpEAeZVYKoNBQTI kCIdSe9IOoHEN6YJedsHf99u+zzO2XiPcLGfNVOlDp0Bl0ecxUMsVVr9WkeMYDP4 R0eWmx9+aTH0omKdximy/BeLgnEP64bj4ittOKPPE/lIK0Sr5meOMa3TQwhTTn4B NRjEvFrnD/ueZuOXj8HjBO3xmkF3sw4hnbO9WGDPdAYvhrNBvaRbcPewLIt+swZ1 2S4cknf2qoTew3AGD37qG0OAWDO7bQUGNmxFoCgI9ksaXt7vY3tJSbzqaSseJrtu MLNH/sgCcfQ7X+l49vY5uKFCz3nDJS5BMPp4qRx8PA2UGTv7CCyC0f0Kmh489KNJ HKjZ9fUxdetJMDfa1Oooia/TDaKNY9+a+PFLWGhAuJofiW8oHPhVauYOc0339mVx F11t4kDtUfSthBCSZs3Ovb8OhnK86yNkKBRDDioXxBcW6MXU4J4= =aaav -----END PGP SIGNATURE----- --dnpyaz3qnlascrvt--