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: 10613729 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9CC2D112B for ; Tue, 25 Sep 2018 09:05:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8E8142836F for ; Tue, 25 Sep 2018 09:05:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 80E6C294E2; Tue, 25 Sep 2018 09:05:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1CB5A2836F for ; Tue, 25 Sep 2018 09:05:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727550AbeIYPLc (ORCPT ); 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-Google-Smtp-Source: ACcGV62FS5T/3AUdXnrZKKhjtO9deCg0kBIywTFXZk8+z9UA6Oa3JWEvifWf3kQAtO/3YbZIBaKZ9Q== 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 X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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>; + }; + }; + }; }; }; };