Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp80996imm; Thu, 30 Aug 2018 08:47:33 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZxI1V1kK503KNsNofkJyUz2O9wUBpsLZWKEeRxxbzs9RD/7tpVQMIcunkdnKxplV2UVSvW X-Received: by 2002:a62:7983:: with SMTP id u125-v6mr10947874pfc.177.1535644052919; Thu, 30 Aug 2018 08:47:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535644052; cv=none; d=google.com; s=arc-20160816; b=FE33eF5MX7QHTaqzfqeIZz6hu/a8WLGbyIwCmUEzY9uB2r+HT2j8l4Vl+6kWtnGzXr 24n6UdWPwP+RDdK3YuLAsp1bc5z1JX0+VGYqIGbmX6d9YMzBjgL1xUJrlbgNVg2GDo2y JEp7mXp7whRM2DYDKTs3sz+e5PRLgli2AgO9KRsPY1vI40oATwgDsDywcZ4cw9I7whqg FOPzHCCDPLcEag8KrPYHv7y11Uyc+YWsTSEFPMLRXVMC8Wspqo+/V4EDoy1ZW7L8XRnL Oe2REJSNPcKu8Kn1FeJ9uIqoV5yg+D9RngKhQjXpNFNd8jfLVAsvJSorKdd+bFbnT16P PaGQ== 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:arc-authentication-results; bh=sICcaZN9SuHUxjIoI4iQcsXgJZYewubrScoChP39YpI=; b=hftjyYN6GrigRB8SWzCQRthDpe8Q6WGtUOQE/zX6Z2+0opG9R4sN/hU0/9dDejba4G /80DsKVmHQBLp/PgnbDPjY4ueXrKwrXTROUyAHzHMQzoz887jW8DccVbAGJumejEQW4g fsrCepp9E5s0kN7sAh3Uv3D1EengtR881bWdkCyXkslnXmKiU1LzbsUvEH5HsZMqZldK Atazt5Y5quyK5ptZfMoZXD6a4pmdVHk1OgEXWw0y6wk6p9IMwMmuT4cUwqhfNXg6UO8N YsZrH5cqdvbUxIgQEeExQPDAdEy4DcjEnRmhjzRrU5auq/yUYwQbah0ZG7liDj1LWCvZ uNMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Aw9v103k; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z21-v6si5683985pgu.163.2018.08.30.08.47.17; Thu, 30 Aug 2018 08:47:32 -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=@gmail.com header.s=20161025 header.b=Aw9v103k; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728052AbeH3Tsi (ORCPT + 99 others); Thu, 30 Aug 2018 15:48:38 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:42692 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727996AbeH3Tsi (ORCPT ); Thu, 30 Aug 2018 15:48:38 -0400 Received: by mail-wr1-f66.google.com with SMTP id v17-v6so8516011wrr.9; Thu, 30 Aug 2018 08:45:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=sICcaZN9SuHUxjIoI4iQcsXgJZYewubrScoChP39YpI=; b=Aw9v103kYcLLYZnLacNAi2w5W6W18WUc1/2IS7u1/9HUeYKyu4eVfDzJpD1PybEatM MrznRHu0Dyec+WLTggEvXmp5Kv0AyCMgzolRBcFSo0gyBteDJBPi4A3FbFhuf+bVVJSr c1plByogpJ61B/oG/PH35mpesTFkcO7qUY76jxP8pTCn7XnBOtLXxgNT2WGs4rSCcFrx 1CpIT5w6d56m/eCqh2mYJ9XgYLwEf0A5sLm4P28K/L8XHYSP8UyvztV8hXy6EtYlXBAA dPIIgci9jS3fMMvNK2OTj7tLhbedaZocdsbA8R+/5Bkh1jiKxN4AiDz31Uttg+7SNhPU Ry6Q== 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=sICcaZN9SuHUxjIoI4iQcsXgJZYewubrScoChP39YpI=; b=KESzq0anMIYAhm1SWuBQlmpY0smijBLFOPfS51XRuESEhWUMC2YCr++0b2n5FAu8ga 0d5282ZvoAKSU1Y+l2Kt1iRQrv8XxqRdQo54EpHi+z+b+2lQ8CUh76VYycZzn6UQt8CB 7+oba2rnvxvPHTTfmYzk020Dgb7poQWqCP2x8IeFBGRCPLT45kqovoH1GSPBJZgBfyBC B4i7EG8++6ae9yu0j8vM1njj5YU/REKSDPW60wBvXjfOhyF9ycBkOo35GCkrE7IW1W+t ll4jVWOXqPVNgNKrtrfvWf/CIfBw4tUqmU0ALXb/Hn13ADZy5l0DkwEmqEsxbY9qV4uD i3fg== X-Gm-Message-State: APzg51CijB2MKa2uSnaUbE0PeVeQqdT4zWf7G5i0knSwsBERS2oQEbYR Yk18l08IKysU+LKloWU0Aeg= X-Received: by 2002:adf:8504:: with SMTP id 4-v6mr7769616wrh.72.1535643951102; Thu, 30 Aug 2018 08:45:51 -0700 (PDT) Received: from debian-hp.wlan.uni-ulm.de (eduroam170-020.wlan.uni-ulm.de. [134.60.170.20]) by smtp.gmail.com with ESMTPSA id j20-v6sm1362759wmh.9.2018.08.30.08.45.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Aug 2018 08:45:50 -0700 (PDT) From: Philipp Rossak To: lee.jones@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@bootlin.com, wens@csie.org, linux@armlinux.org.uk, jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, eugen.hristev@microchip.com, rdunlap@infradead.org, vilhelm.gray@gmail.com, clabbe.montjoie@gmail.com, quentin.schulz@bootlin.com, geert+renesas@glider.be, lukas@wunner.de, icenowy@aosc.io, arnd@arndb.de, broonie@kernel.org, arnaud.pouliquen@st.com Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH v3 29/30] ARM: dts: sun8i: a83t: add thermal zone to A83T Date: Thu, 30 Aug 2018 17:45:17 +0200 Message-Id: <20180830154518.29507-30-embed3d@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180830154518.29507-1-embed3d@gmail.com> References: <20180830154518.29507-1-embed3d@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds the thermal zones to the A83T. Sensor 0 is located besides the cpu cluster 0. Sensor 1 is located besides cluster 1 and sensor 2 is located besides in the gpu. Signed-off-by: Philipp Rossak --- arch/arm/boot/dts/sun8i-a83t.dtsi | 103 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t.dtsi b/arch/arm/boot/dts/sun8i-a83t.dtsi index f2f745930b08..78aa448e869f 100644 --- a/arch/arm/boot/dts/sun8i-a83t.dtsi +++ b/arch/arm/boot/dts/sun8i-a83t.dtsi @@ -50,6 +50,7 @@ #include #include #include +#include / { interrupt-parent = <&gic>; @@ -69,6 +70,9 @@ cci-control-port = <&cci_control0>; enable-method = "allwinner,sun8i-a83t-smp"; reg = <0>; + #cooling-cells = <2>; + cooling-min-level = <0>; + cooling-max-level = <7>; }; cpu@1 { @@ -107,6 +111,9 @@ cci-control-port = <&cci_control1>; enable-method = "allwinner,sun8i-a83t-smp"; reg = <0x100>; + #cooling-cells = <2>; + cooling-min-level = <0>; + cooling-max-level = <7>; }; cpu@101 { @@ -1035,4 +1042,100 @@ #size-cells = <0>; }; }; + + thermal-zones { + cpu0_thermal: cpu0-thermal { + polling-delay-passive = <1000>; + polling-delay = <5000>; + thermal-sensors = <&ths 0>; + + trips { + cpu0_warm: cpu_warm { + temperature = <70000>; + hysteresis = <2000>; + type = "passive"; + }; + cpu0_hot: cpu_hot { + temperature = <80000>; + hysteresis = <2000>; + type = "passive"; + }; + cpu0_very_hot: cpu_very_hot { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + cpu0_crit: cpu_crit { + temperature = <105000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + + cooling-maps { + cpu_warm_limit_cpu { + trip = <&cpu0_warm>; + cooling-device = <&cpu0 THERMAL_NO_LIMIT 4>; + }; + cpu_hot_limit_cpu { + trip = <&cpu0_hot>; + cooling-device = <&cpu0 5 5>; + }; + cpu_very_hot_limit_cpu { + trip = <&cpu0_very_hot>; + cooling-device = <&cpu0 7 THERMAL_NO_LIMIT>; + }; + }; + }; + + cpu1_thermal: cpu1-thermal { + polling-delay-passive = <1000>; + polling-delay = <5000>; + thermal-sensors = <&ths 1>; + + trips { + cpu1_warm: cpu_warm { + temperature = <70000>; + hysteresis = <2000>; + type = "passive"; + }; + cpu1_hot: cpu_hot { + temperature = <80000>; + hysteresis = <2000>; + type = "passive"; + }; + cpu1_very_hot: cpu_very_hot { + temperature = <90000>; + hysteresis = <2000>; + type = "passive"; + }; + cpu1_crit: cpu_crit { + temperature = <105000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + + cooling-maps { + cpu_warm_limit_cpu { + trip = <&cpu1_warm>; + cooling-device = <&cpu100 THERMAL_NO_LIMIT 4>; + }; + cpu_hot_limit_cpu { + trip = <&cpu1_hot>; + cooling-device = <&cpu100 5 5>; + }; + cpu_very_hot_limit_cpu { + trip = <&cpu1_very_hot>; + cooling-device = <&cpu100 7 THERMAL_NO_LIMIT>; + }; + }; + }; + + gpu_thermal: gpu-thermal { + polling-delay-passive = <1000>; + polling-delay = <5000>; + thermal-sensors = <&ths 2>; + }; + }; }; -- 2.11.0