Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp4084518ybh; Tue, 6 Aug 2019 06:07:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqwdZmjcHYo0ciOdn8GmtVKh03kCjC5ZTOWCyhLYiOivGvjOTrUO3LAzWpGiL9cnYklsNITT X-Received: by 2002:a17:90a:6546:: with SMTP id f6mr3112377pjs.11.1565096833772; Tue, 06 Aug 2019 06:07:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565096833; cv=none; d=google.com; s=arc-20160816; b=QIFgJPJg2TsHVHpyzKI+gpavN+vqAIzcWu4kJqghfNOGaDVufYxH7YouxCmsEwPmr0 ne/FuBbDrF33X4lBln94l+wD84XX8RkmHf7UuIXBn183zyUkD4Sym5vBjbg2Y838n+UO oFfEzgPw9FM4a+8R0zN68JPZdKkZo5UMqX0rI7Aqh92xrT6VyyKkx5RvVLVV1WQNWQRE JFPpppp8cgO0FS6U1AUypk0R7dV/2p73oI6XD8esm4YSTtPBLgmIPQxME6g0r6lusR+G aAO0fijfkrrmTBz/LW/lGVamFtQXCvdYfb/WTTKYT+XSRWnv6XDqWqFQ4Zx1C2ZRscGW aAkg== 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=NiNSwC1w2DwV9CwHEjfRSuQJOciTaxfr2h0JNT+7juw=; b=ZLq+cW+3VksWsQyTQowbkwKDX2qgDruXhXnzlEmbCkLBa/LNugoJcnwgCJnY+zCVMU kG7uChg0BuPMjXbfDIpOJyXHtxgIt3rB9YaB5U3HTVIwe1RIAjCao3NEmpxLcwQqk3Cv 9Ek4M4jFcGxTkOSWiZdNenxIQgfmklRj7une/Nvmgpjb7KJvC6vY8TvIO0RizEdIM9uZ LYO70XJvv+2bn1m+ikYsS4kKc6wKmel/ZLT6QaBbkx4dVqzDFCJaobDz/LU7KlH35gAc lMu2pL0Pwtdf9YDUCXfqKwPLuua/UA/1+HrS7ECqFf7jIyRRBSZM7BL9X0gXnU5cNc0q eDsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=EHYBOLpk; 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 s3si46582878pgq.392.2019.08.06.06.06.57; Tue, 06 Aug 2019 06:07:13 -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=EHYBOLpk; 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 S1731963AbfHFNFS (ORCPT + 99 others); Tue, 6 Aug 2019 09:05:18 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:51282 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731859AbfHFNFR (ORCPT ); Tue, 6 Aug 2019 09:05:17 -0400 Received: by mail-wm1-f67.google.com with SMTP id 207so78147491wma.1 for ; Tue, 06 Aug 2019 06:05:16 -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=NiNSwC1w2DwV9CwHEjfRSuQJOciTaxfr2h0JNT+7juw=; b=EHYBOLpk8xSLXE7FKn355BKQ13vlwR3ZCnaAz2IWUt2g774DsjpBHoAvqYsqxZVOj4 XnyXkJ/j3iP23NR0X3Ig5azD/6rscihQu1z4WOmce8usRaz08Bt5oK85tXW8De/oz3uE ccZ0Nts615RF+Dvq4909tk5blSKQcmZ0uzvQx5j0vUPCoePCSuRx+ndSQwLFwBLu1rYq GGyMuOLy3R4GFzLQ6XwVvAeOJylpXu1dAkcxzIaUpdb9KLRpsWf160lCqdc8o/rOGqlM VxePBUUjgTgb1PaIEXmhhX0zRciOVg0R5nyHXACCFOJdkqJ089au+RQxnDteKiG9WzOB v2uQ== 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=NiNSwC1w2DwV9CwHEjfRSuQJOciTaxfr2h0JNT+7juw=; b=e0mOywHcG0kpWvcLcfGkm4JsrVr3Eh5L9pOSg/ObUwK0CCd0t3nDcF1YrjopBbOinb f9/6VC7O6/ySWBYqyu8sv1s9LL8R11FkTTILXcKmBkx4aZvmuANJwUZvw3jSZxNarZLM elTeErcQZFg08sO8EpEt+cr2bWC3MsN4Nk9LWxxZ1piPeYet9JaVPDrzkzYVSo2b+4Z8 2zRj4g91hwK/xhoQoW8/WaXm4ykgGSTlzcJ2LNFnqdEUfGNUWkl3IDwXQUtY4725+b8U E7vsjhRV1Zu+cp1cioL2nZ3e3RsZAdibnbejwk1onsy9DrgwwXeDL2bTTU+W77YVKOpp CGsw== X-Gm-Message-State: APjAAAXqlvaaSs8AaVS9iaNC1dXuGCAH89XXZ4nWUUKKb6bzgkXV3MzZ sD2sjWCy8+uWxNUZC0mSFJb1ig== X-Received: by 2002:a7b:c74a:: with SMTP id w10mr4635611wmk.99.1565096715772; Tue, 06 Aug 2019 06:05:15 -0700 (PDT) Received: from glaroque-ThinkPad-T480.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id j33sm201888738wre.42.2019.08.06.06.05.14 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 06 Aug 2019 06:05:15 -0700 (PDT) From: Guillaume La Roque To: daniel.lezcano@linaro.org, khilman@baylibre.com Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 5/6] arm64: dts: amlogic: odroid-n2: add minimal thermal zone Date: Tue, 6 Aug 2019 15:05:05 +0200 Message-Id: <20190806130506.8753-6-glaroque@baylibre.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190806130506.8753-1-glaroque@baylibre.com> References: <20190806130506.8753-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) Signed-off-by: Guillaume La Roque --- .../boot/dts/amlogic/meson-g12b-odroid-n2.dts | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts index 75ff8a7e373d..a7d73c0c8447 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts +++ b/arch/arm64/boot/dts/amlogic/meson-g12b-odroid-n2.dts @@ -10,6 +10,7 @@ #include #include #include +#include / { compatible = "hardkernel,odroid-n2", "amlogic,g12b"; @@ -20,6 +21,55 @@ ethernet0 = ðmac; }; + thermal-zones { + cpu-thermal { + polling-delay = <1000>; + polling-delay-passive = <100>; + thermal-sensors = <&cpu_temp>; + + trips { + cpu_critical: cpu-critical { + temperature = <110000>; /* millicelsius */ + hysteresis = <2000>; /* millicelsius */ + type = "critical"; + }; + }; + + cooling-maps { + map { + trip = <&cpu_critical>; + cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu100 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu101 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu102 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu103 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; + + ddr-thermal { + polling-delay = <1000>; + polling-delay-passive = <100>; + thermal-sensors = <&ddr_temp>; + + trips { + ddr_critical: ddr-critical { + temperature = <110000>; /* millicelsius */ + hysteresis = <2000>; /* millicelsius */ + type = "critical"; + }; + }; + + cooling-maps { + map { + trip = <&ddr_critical>; + cooling-device = <&mali THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; + }; + chosen { stdout-path = "serial0:115200n8"; }; @@ -288,6 +338,7 @@ operating-points-v2 = <&cpu_opp_table_0>; clocks = <&clkc CLKID_CPU_CLK>; clock-latency = <50000>; + #cooling-cells = <2>; }; &cpu1 { @@ -295,6 +346,7 @@ operating-points-v2 = <&cpu_opp_table_0>; clocks = <&clkc CLKID_CPU_CLK>; clock-latency = <50000>; + #cooling-cells = <2>; }; &cpu100 { @@ -302,6 +354,7 @@ operating-points-v2 = <&cpub_opp_table_1>; clocks = <&clkc CLKID_CPUB_CLK>; clock-latency = <50000>; + #cooling-cells = <2>; }; &cpu101 { @@ -309,6 +362,7 @@ operating-points-v2 = <&cpub_opp_table_1>; clocks = <&clkc CLKID_CPUB_CLK>; clock-latency = <50000>; + #cooling-cells = <2>; }; &cpu102 { @@ -316,6 +370,7 @@ operating-points-v2 = <&cpub_opp_table_1>; clocks = <&clkc CLKID_CPUB_CLK>; clock-latency = <50000>; + #cooling-cells = <2>; }; &cpu103 { @@ -323,6 +378,7 @@ operating-points-v2 = <&cpub_opp_table_1>; clocks = <&clkc CLKID_CPUB_CLK>; clock-latency = <50000>; + #cooling-cells = <2>; }; &ext_mdio { @@ -377,6 +433,10 @@ }; }; +&mali { + #cooling-cells = <2>; +}; + &hdmi_tx { status = "okay"; pinctrl-0 = <&hdmitx_hpd_pins>, <&hdmitx_ddc_pins>; -- 2.17.1