From patchwork Tue Sep 25 09:03:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 147418 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp473303lji; Tue, 25 Sep 2018 02:05:02 -0700 (PDT) X-Google-Smtp-Source: ACcGV61YIk1YUqL5MWLuZ55Px/YwE6JJAuAjrjYOfmBLQWUu0ne1REcphnvAsrAmmJfPdLhNzdV9 X-Received: by 2002:a62:9683:: with SMTP id s3-v6mr13887pfk.191.1537866302322; Tue, 25 Sep 2018 02:05:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537866302; cv=none; d=google.com; s=arc-20160816; b=SdRMnWRNsWNMmq2A1UTRjlBq4zDw7BMlm6rzpkSX2uwANcByR1DUJWFsKqt7Pkhh52 7+Qdg0Aqg5mLNc5y4mB/cImXg0UUApvFjFb/Gd87CVcCtxVDRJvs4LkHV39H3Ss/Nv6Z 4W4kNNKF/0M7ur616G7wgeVdoFWRUWIrhLHTsqKKZlsRCgfE3HcK+EWVqWlFaSLJWlqy iqskLRBxCh0IWBaq7juYc54Wie08KHDh6U1S7HE/odDD/xFwdxMK0IkgiWWSD7HF/EOQ dwjOBv4rmQHPrbo5ruzJb2QGo2EBPKTFsa1ldlpwm7gx0rK+Q32TLl8w73VXMudd7hJ5 gMtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=UxB+GfDnTMjmOE1hd6mzvwMVcjkzKsZWm7O8IKgj40I=; b=Iod4869YNsfxBkMOt3mgwW1HtutRfc5PVR25UlgnFqlFeHDnUaf17EGVvKvVEU6sGN c7W0TI1w9JdIO3FRMixM9qYYy8gO/WGIdYosxhWXPff5v2hXRIMhxqOw8dOjq+JSd46T Ry9fadx/oe6FZoVnRnDIGb9qT1b8GEANx1noUMgkckeWD8yENO35Sja/IrYeI+O8erdq LfeJxZ0O1rI+VjGQiCYF/lF0png3DXNiI8lDQSB5sms8PESANA/EfrA3AlFRA1LrJdaq 5UFS2rr799H4RcLRsskgKhxk1XATVN1oa8cGxbhYCcD9PFzsYofakMRUkLxOKMhRkxSi 6EKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="e3cGzg/5"; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p126-v6si1807051pfb.77.2018.09.25.02.05.02; Tue, 25 Sep 2018 02:05:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="e3cGzg/5"; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727550AbeIYPLc (ORCPT + 10 others); Tue, 25 Sep 2018 11:11:32 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:42365 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728916AbeIYPLc (ORCPT ); Tue, 25 Sep 2018 11:11:32 -0400 Received: by mail-wr1-f66.google.com with SMTP id b11-v6so6263949wru.9 for ; Tue, 25 Sep 2018 02:04:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=UxB+GfDnTMjmOE1hd6mzvwMVcjkzKsZWm7O8IKgj40I=; b=e3cGzg/5ZKmcHoe7SSPCL70kclr+7cbEHw/gHo/lBo4C03IhBJkg5X2aC0Mdt0+6LL fH20z4P33tGqwCx6Wi9oEnfmaBZyFlFxToUm1b/kL4DtGH9Y0/+fDAKuwymHCt77vfkh +M5YnvdqKhs58yE5vtzmv3U/2bqAHBgZTUQUg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=UxB+GfDnTMjmOE1hd6mzvwMVcjkzKsZWm7O8IKgj40I=; b=Py7/hmhUUeDs6AeDLZ01x/M88AmX4wTI948cboYwF8rTp5FjRK0a68vQBdBT/31ULT SshLbyJz2OIYksOJqicLUqkPRtLOBt8O6AZYK0f4PI8TPVP4FdJ4CQgoQw/L/AY/wDd3 xYNLVsY6KQdiDESgmQ+wzknh/XfwakvSLdGN1YBj1nm5vHTsGB/jeLu5JtXADnI8lbPc ezypiOIRSQPAA7NdwQKaQ8m3W+FidR8KFeLLuKGKrNvvRDigIYLH96SJkYw6r+dW/VcX 3oJr29Q+ukN16BTCfKzhMlE2iq42EvIprrCVR3yEMSWkzY0PRhhOhf0U3Gn189m8ZzBF JhOw== X-Gm-Message-State: ABuFfoj7NJHh3V2PKiOOWHlMVT3j/nLfIkwyNxpOYuJQQAowVQT8mAcW FeA4N9nNa+hdDvuwsFsi/ZNUTA== X-Received: by 2002:adf:a925:: with SMTP id u34-v6mr16176wrc.175.1537866298105; Tue, 25 Sep 2018 02:04:58 -0700 (PDT) Received: from localhost.localdomain (251.150.136.77.rev.sfr.net. [77.136.150.251]) by smtp.gmail.com with ESMTPSA id y206-v6sm1523828wmg.14.2018.09.25.02.04.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 25 Sep 2018 02:04:57 -0700 (PDT) From: Daniel Lezcano To: edubezval@gmail.com Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, daniel.lezcano@linaro.org, leo.yan@linaro.org, Wei Xu , Rob Herring , Mark Rutland , linux-arm-kernel@lists.infradead.org (moderated list:ARM/HISILICON SOC SUPPORT), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS) Subject: [PATCH 13/14] ARM64: dts: hisilicon: Add dual clusters thermal zones for hi3660 Date: Tue, 25 Sep 2018 11:03:11 +0200 Message-Id: <1537866192-12320-14-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1537866192-12320-1-git-send-email-daniel.lezcano@linaro.org> References: <1537866192-12320-1-git-send-email-daniel.lezcano@linaro.org> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Add a thermal zone for the little cluster, so we can handle two sensors managing each a cluster on the SoC. Signed-off-by: Daniel Lezcano --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 97 ++++++++++++++++++++----------- 1 file changed, 63 insertions(+), 34 deletions(-) -- 2.7.4 diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi index dd398cb..6df7d9f 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi @@ -1090,42 +1090,71 @@ }; thermal-zones { + tz_a53: tz_a53 { + polling-delay = <1000>; + polling-delay-passive = <100>; + sustainable-power = <4500>; + + /* sensor ID */ + thermal-sensors = <&tsensor 0>; + + trips { + a53_temp_threshold: trip-point@0 { + temperature = <65000>; + hysteresis = <1000>; + type = "passive"; + }; + + a53_temp_target: trip-point@1 { + temperature = <75000>; + hysteresis = <1000>; + type = "passive"; + }; + }; - cls0: cls0 { - polling-delay = <1000>; - polling-delay-passive = <100>; - sustainable-power = <4500>; - - /* sensor ID */ - thermal-sensors = <&tsensor 1>; - - trips { - threshold: trip-point@0 { - temperature = <65000>; - hysteresis = <1000>; - type = "passive"; - }; - - target: trip-point@1 { - temperature = <75000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - - cooling-maps { + cooling-maps { map0 { - trip = <&target>; - contribution = <1024>; - cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; - }; - map1 { - trip = <&target>; - contribution = <512>; - cooling-device = <&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; - }; - }; - }; + trip = <&a53_temp_target>; + contribution = <512>; + cooling-device = <&cpu0 + THERMAL_NO_LIMIT + THERMAL_NO_LIMIT>; + }; + }; + }; + + tz_a73: tz_a73 { + polling-delay = <1000>; + polling-delay-passive = <100>; + sustainable-power = <4500>; + + /* sensor ID */ + thermal-sensors = <&tsensor 1>; + + trips { + a73_temp_threshold: trip-point@0 { + temperature = <65000>; + hysteresis = <1000>; + type = "passive"; + }; + + a73_temp_target: trip-point@1 { + temperature = <75000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + + cooling-maps { + map0 { + trip = <&a73_temp_target>; + contribution = <1024>; + cooling-device = <&cpu4 + THERMAL_NO_LIMIT + THERMAL_NO_LIMIT>; + }; + }; + }; }; }; };