Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp3813024ybn; Fri, 27 Sep 2019 11:44:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqyGTVCei671bfyjxjnC0hqiav1gf1uvKd/T6AaZrUnI11/UeZkymR/PfO1H2z78WcKWYgh0 X-Received: by 2002:a17:906:6bd5:: with SMTP id t21mr9074037ejs.128.1569609897518; Fri, 27 Sep 2019 11:44:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569609897; cv=none; d=google.com; s=arc-20160816; b=Zp7gIhc6CvO19VizgZXDr2NgqVso/yzn3cp5GikEEUmYqf7073GIuoBe6gZPuToiYC U9ciNXlMVlQvOul42tNvXj8L0AINLW3R2Ovyzni+EabCkPkCbHzxgtFAVQFZDRduMds5 PsVU6wo2PthTtSRA9+i2enxa9WPubIlAagr40ceKDbocI6f8gH3/NrAI+caj0+uT+s4g RSoDzwkA5iKqfcljNAYBW8ylXUlkCoehGZFp54HwKiAuU3XPtaP5GhVJCEW2gAhgJJVo b94h5+38ESt6LCCERtvMRPVKRfcV4ZDWhdxm7cQ2bZ7hFXUgS5nedMKsPeezItW0ZXCC AT5Q== 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=K7iwhASPxbBfW+q2EXnPK2zfjdwyLTY+27xuFNIdRtA=; b=JvnR9YIdfI6N/0vj0hpLhif3zdVua0v1olnuJrIQmm6belKvTdmigkVx3yyuiktX4a FweAp/cue6Zpm1SFjwMA+qAJOCpdCLP8KVji7mqeGDpa8E+FM5GKFuqtefngpQY26/X4 3XhJ5ftvklyz1G7it1/HRUR0Z0ZeZ1OXMqOU3FLy2V/PGOCXBQ0+Yy2vgP9XWD4W2FAL fjTBRRF0jdTvB6MQP1I0zZQLWrAeNJ9vYreK1qyZ0ljtZ4OHRLl+yCRJK4NRP6t2ztZp r0Urva7phLmUBB4AF8SJyKrg/n3bcVQPTtWP+gNh8NEKXHdgx+0NfcA7/MbbL4EU5a/N 68mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=QifapQB3; 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 j52si2154252eda.338.2019.09.27.11.44.33; Fri, 27 Sep 2019 11:44:57 -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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=QifapQB3; 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 S1728185AbfI0SoF (ORCPT + 99 others); Fri, 27 Sep 2019 14:44:05 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:46807 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726004AbfI0SoC (ORCPT ); Fri, 27 Sep 2019 14:44:02 -0400 Received: by mail-wr1-f68.google.com with SMTP id o18so4280420wrv.13 for ; Fri, 27 Sep 2019 11:44:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=K7iwhASPxbBfW+q2EXnPK2zfjdwyLTY+27xuFNIdRtA=; b=QifapQB3gJpS3duSfuss2bKCph2XDPCBGuA1ixcVHdgABdF3z6npkh9zYXzycrhVsp 8P696tdPAgaAtiYwxoIcbLstboUrNv1j/dUKiejMbo3RUyg+C3Uxj9bj6X8Gv3T8w6a1 Dk2LfVVAZytHukR9amphBUEAV7AcYLiMAvjZRglans6SdreItLzVs5+90rdiQVgmlpaW hktKbuomksiV35M8l8y8a6RjWMYPImJaVr2RQGegblBkjr2sLL1brnPvSz9sCpYMq9Jp gmG2jQ/htvJWpvTZpSEI7olV4X5GmYoG4f5xnfck2Q2FJIr3QcXyUSakZJqHPMemoJAh rRiQ== 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=K7iwhASPxbBfW+q2EXnPK2zfjdwyLTY+27xuFNIdRtA=; b=V8XGOmI/5JQqVbow9DH9JMTK88K6PpqkOsnsVUYhhTih+M81RmscnDL88hFDciDtX+ va+n/9pcBLHOmzkvlycBH8s5IQEAfdPrJU+6/Uo557Mn2VkMJFJAeAsgnZ6H/sxD6thV VN7x4WrE8MHuJCF/QxLjJf1e6nWzmy/RYSM0cJ/qUndHYSwRTeHe85dMQuJfEcGuKfrG lstCsBK8P38nsnjANXLnwTFmrtgkMKpmjPrBsOobNuGA+vpztSeCpenDPzNLyzIEctoL ghtdFU4/oLNuAfhglLiug2Ryj9++YYxy4xDDh2z3z6iSWpNRWg5wnvHGxeDYa41Rpwsk 0OQg== X-Gm-Message-State: APjAAAUKbIhIDeS9L90VhiWlzA0bgw+aYv4/B+6gfNhbogU284F+ylhj vQX6kmOxpRHXeTboimggiYPrgQ== X-Received: by 2002:a5d:660c:: with SMTP id n12mr4269949wru.286.1569609840121; Fri, 27 Sep 2019 11:44:00 -0700 (PDT) Received: from glaroque-ThinkPad-T480.home ([2a01:cb1d:6e7:d500:82a9:347a:43f3:d2ca]) by smtp.gmail.com with ESMTPSA id r13sm6246272wrn.0.2019.09.27.11.43.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Sep 2019 11:43:59 -0700 (PDT) From: Guillaume La Roque To: amit.kucheria@linaro.org, rui.zhang@intel.com, edubezval@gmail.com, daniel.lezcano@linaro.org Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org Subject: [PATCH v6 4/7] arm64: dts: meson: g12: Add minimal thermal zone Date: Fri, 27 Sep 2019 20:43:49 +0200 Message-Id: <20190927184352.28759-5-glaroque@baylibre.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190927184352.28759-1-glaroque@baylibre.com> References: <20190927184352.28759-1-glaroque@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add minimal thermal zone for two temperature sensor One is located close to the DDR and the other one is located close to the PLLs (between the CPU and GPU) Acked-by: Martin Blumenstingl Tested-by: Christian Hewitt Tested-by: Kevin Hilman Signed-off-by: Guillaume La Roque --- .../boot/dts/amlogic/meson-g12-common.dtsi | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi index 0660d9ef6a86..f98171949fcb 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi @@ -12,6 +12,7 @@ #include #include #include +#include / { interrupt-parent = <&gic>; @@ -94,6 +95,50 @@ #size-cells = <2>; ranges; + thermal-zones { + cpu_thermal: cpu-thermal { + polling-delay = <1000>; + polling-delay-passive = <100>; + thermal-sensors = <&cpu_temp>; + + trips { + cpu_passive: cpu-passive { + temperature = <85000>; /* millicelsius */ + hysteresis = <2000>; /* millicelsius */ + type = "passive"; + }; + + cpu_hot: cpu-hot { + temperature = <95000>; /* millicelsius */ + hysteresis = <2000>; /* millicelsius */ + type = "hot"; + }; + + }; + }; + + ddr_thermal: ddr-thermal { + polling-delay = <1000>; + polling-delay-passive = <100>; + thermal-sensors = <&ddr_temp>; + + trips { + ddr_passive: ddr-passive { + temperature = <85000>; /* millicelsius */ + hysteresis = <2000>; /* millicelsius */ + type = "passive"; + }; + }; + + cooling-maps { + map { + trip = <&ddr_passive>; + cooling-device = <&mali THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; + }; + ethmac: ethernet@ff3f0000 { compatible = "amlogic,meson-axg-dwmac", "snps,dwmac-3.70a", @@ -2412,6 +2457,7 @@ assigned-clock-rates = <0>, /* Do Nothing */ <800000000>, <0>; /* Do Nothing */ + #cooling-cells = <2>; }; }; -- 2.17.1