Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3798429ybz; Mon, 20 Apr 2020 09:38:18 -0700 (PDT) X-Google-Smtp-Source: APiQypKSJHO+nG7egfwE6BO9azn5KKWQOfr36D5j6Ij/kCbNRrFAkBRVPHUlY3tBxuMF2Z9br7J5 X-Received: by 2002:a17:907:72c9:: with SMTP id du9mr11624753ejc.146.1587400697870; Mon, 20 Apr 2020 09:38:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587400697; cv=none; d=google.com; s=arc-20160816; b=dYFK3idMtpEQBMZi9ZxZyjQMJFj6xzqOiiGRfVI8TLErbuVBB6dZEZa3h/9iIhcSa6 ENVAWc/yqbWJ198cpF7I/Ecr005csuCtP/m+Bl+fxfsVZuOVMl6buw9GqoL/TVDONOXC v8oIYXo6kn8knllqfHsndTYGJe7ugElOTa9kD9YggEVLYtv3I45arNTMkfXkgW6FfyHF IpToQLPhTVPDAd5DMJ5VJipHhdxI7Wgnhkymt6C1pdPw+ueSspuZuraAPZ/lDhKZrqwn IP6750p1ltI1K3CkixCIx7RYDFHl/r2biyzxE44oPejAfS3u7x/f8GonHlB2L65TCZfy 5yCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=o43qpleXwmhzfXbECYuYmRCaCIhmoalRXcTOSLj037I=; b=usgxYFrqTpRApUmSuM3P4lFkRiUwSeih/fZVHebs0vihh8TNtpU7LOjj2uDgT60wSx fSh5vZFberhQDhuvBfp4+8kJbbRkzyq1hZ4wgk2svXvzL1UXsXviPCGPwX7iIn3czXT9 lQpGghUlhU+ckhGmNIM6/0vZBIPvpZSFxkdtOTAaw9B5+Gd9N647fEL1Q46c7jsT3Ike H8aBGpWAh6weOklvwRZ5e8Nxwd+7MBHIlXkO+KhU3qha5QGhJp/pnLMBOYphSh+qrfXY KKeYMPoXJ184dtOfN6lkgSHGBisbaM7/2xdUmGREUV5jGO1/dWsVPUkh8ndrBpyzH8Zd Evfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=VcwCEC+P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=megous.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w2si872913edx.70.2020.04.20.09.37.52; Mon, 20 Apr 2020 09:38:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b=VcwCEC+P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=megous.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728369AbgDTNqG (ORCPT + 99 others); Mon, 20 Apr 2020 09:46:06 -0400 Received: from vps.xff.cz ([195.181.215.36]:57450 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725944AbgDTNqG (ORCPT ); Mon, 20 Apr 2020 09:46:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1587390364; bh=lXFLLXv67CfUewvpws4scaGtSsPitz7siYHsuT7MR54=; h=Date:From:To:Cc:Subject:References:X-My-GPG-KeyId:From; b=VcwCEC+Pfk0c/2AlQG1Fl8KKx5I7xrpdLVyQih6u2kxXdRe0i6NvuWdkX5cmjkT2y 6jWeLwUS+6eoVpXnlt2omWpLTfAOLJ+P7WQoOP6D+mAKELXW6IUjImlyGYGo+kJMoy 5YPHVmuBQuWv+0p4MoSqIjXB6sUFTf5RjvWI/akc= Date: Mon, 20 Apr 2020 15:46:04 +0200 From: =?utf-8?Q?Ond=C5=99ej?= Jirman To: =?utf-8?B?Q2zDqW1lbnQgUMOpcm9u?= Cc: Maxime Ripard , Chen-Yu Tsai , Rob Herring , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi Subject: Re: [PATCH v5 2/9] arm64: dts: allwinner: h6: Add thermal trip points/cooling map Message-ID: <20200420134604.bkjp66fjiggses7a@core.my.home> Mail-Followup-To: =?utf-8?Q?Ond=C5=99ej?= Jirman , =?utf-8?B?Q2zDqW1lbnQgUMOpcm9u?= , Maxime Ripard , Chen-Yu Tsai , Rob Herring , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi References: <20200420130021.3841-1-peron.clem@gmail.com> <20200420130021.3841-3-peron.clem@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200420130021.3841-3-peron.clem@gmail.com> X-My-GPG-KeyId: EBFBDDE11FB918D44D1F56C1F9F0A873BE9777ED Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Mon, Apr 20, 2020 at 03:00:14PM +0200, Cl?ment P?ron wrote: > From: Ondrej Jirman > > This enables passive cooling by down-regulating CPU voltage > and frequency. Does this not produce a lot of warnings for you during compilation? regards, o. > Signed-off-by: Ondrej Jirman > Signed-off-by: Cl?ment P?ron > --- > arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 24 ++++++++++++++++++++ > 1 file changed, 24 insertions(+) > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > index 370e77b86fe1..60da1627772b 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi > @@ -964,6 +964,30 @@ > polling-delay-passive = <0>; > polling-delay = <0>; > thermal-sensors = <&ths 0>; > + > + trips { > + cpu_alert: cpu-alert { > + temperature = <85000>; > + hysteresis = <2000>; > + type = "passive"; > + }; > + > + cpu-crit { > + temperature = <100000>; > + hysteresis = <0>; > + type = "critical"; > + }; > + }; > + > + cooling-maps { > + map0 { > + trip = <&cpu_alert>; > + cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > + }; > + }; > }; > > gpu-thermal { > -- > 2.20.1 >