From: Dmitry Osipenko <digetx@gmail.com>
To: "Thierry Reding" <thierry.reding@gmail.com>,
"Jonathan Hunter" <jonathanh@nvidia.com>,
"David Heidelberg" <david@ixit.cz>,
"Svyatoslav Ryhel" <clamor95@gmail.com>,
"Anton Bambura" <jenneron@protonmail.com>,
"Antoni Aloy Torrens" <aaloytorrens@gmail.com>,
"Nikola Milosavljevic" <mnidza@outlook.com>,
"Ion Agorria" <ion@agorria.com>,
"Michał Mirosław" <mirq-linux@rere.qmqm.pl>,
"Ihor Didenko" <tailormoon@rambler.ru>,
"Andreas Westman Dorcsak" <hedmoo@yahoo.com>,
"Maxim Schwalm" <maxim.schwalm@gmail.com>,
"Raffaele Tranquillini" <raffaele.tranquillini@gmail.com>,
"Jasper Korten" <jja2000@gmail.com>,
"Thomas Graichen" <thomas.graichen@gmail.com>,
"Stefan Eichenberger" <stefan.eichenberger@toradex.com>,
"Stefan Agner" <stefan@agner.ch>,
"Peter Geis" <pgwipeout@gmail.com>
Cc: devicetree@vger.kernel.org, linux-tegra@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH v6 18/28] ARM: tegra: Add CPU thermal zones to Nyan device-tree
Date: Sun, 12 Dec 2021 00:14:02 +0300 [thread overview]
Message-ID: <20211211211412.10791-19-digetx@gmail.com> (raw)
In-Reply-To: <20211211211412.10791-1-digetx@gmail.com>
CPU of Nyan Chromebooks is overheating badly because apparently hardware
soctherm controller doesn't work well. Add CPU thermal zones to enable
software thermal control over CPU and fix the overheat trouble.
Tested-by: Thomas Graichen <thomas.graichen@gmail.com> # T124 Nyan Big
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
---
arch/arm/boot/dts/tegra124-nyan.dtsi | 49 +++++++++++++++++++++++++++-
1 file changed, 48 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/tegra124-nyan.dtsi b/arch/arm/boot/dts/tegra124-nyan.dtsi
index ec01a23d4d47..b16cce7476ef 100644
--- a/arch/arm/boot/dts/tegra124-nyan.dtsi
+++ b/arch/arm/boot/dts/tegra124-nyan.dtsi
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: GPL-2.0
#include <dt-bindings/input/input.h>
+#include <dt-bindings/thermal/thermal.h>
#include "tegra124.dtsi"
/ {
@@ -87,7 +88,7 @@ acodec: audio-codec@10 {
interrupts = <TEGRA_GPIO(H, 4) IRQ_TYPE_EDGE_FALLING>;
};
- temperature-sensor@4c {
+ tmp451: temperature-sensor@4c {
compatible = "ti,tmp451";
reg = <0x4c>;
interrupt-parent = <&gpio>;
@@ -789,6 +790,52 @@ gpio-restart {
gpios = <&gpio TEGRA_GPIO(I, 5) GPIO_ACTIVE_LOW>;
priority = <200>;
};
+
+ cpus {
+ cpu0: cpu@0 {
+ #cooling-cells = <2>;
+ };
+
+ cpu1: cpu@1 {
+ #cooling-cells = <2>;
+ };
+
+ cpu2: cpu@2 {
+ #cooling-cells = <2>;
+ };
+
+ cpu3: cpu@3 {
+ #cooling-cells = <2>;
+ };
+ };
+
+ thermal-zones {
+ cpu-skin-thermal {
+ polling-delay-passive = <1000>; /* milliseconds */
+ polling-delay = <5000>; /* milliseconds */
+
+ thermal-sensors = <&tmp451 0>;
+
+ trips {
+ cpu_passive_trip: cpu-alert0 {
+ /* throttle at 70C until temperature drops to 69.8C */
+ temperature = <70000>;
+ hysteresis = <200>;
+ type = "passive";
+ };
+ };
+
+ cooling-maps {
+ map0 {
+ trip = <&cpu_passive_trip>;
+ cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
+ <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
+ <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
+ <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+ };
+ };
+ };
+ };
};
#include "cros-ec-keyboard.dtsi"
--
2.33.1
next prev parent reply other threads:[~2021-12-11 21:15 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-11 21:13 [PATCH v6 00/28] NVIDIA Tegra ARM32 device-tree patches for 5.17 (new devices and more) Dmitry Osipenko
2021-12-11 21:13 ` [PATCH v6 01/28] dt-bindings: ARM: tegra: Document ASUS Transformers Dmitry Osipenko
2021-12-11 21:13 ` [PATCH v6 02/28] dt-bindings: ARM: tegra: Document Pegatron Chagall Dmitry Osipenko
2021-12-11 21:13 ` [PATCH v6 03/28] ARM: tegra: Add labels to tegra30.dtsi Dmitry Osipenko
2021-12-11 21:13 ` [PATCH v6 04/28] ARM: tegra: Add labels to tegra114.dtsi Dmitry Osipenko
2021-12-11 21:13 ` [PATCH v6 05/28] ARM: tegra: Add device-tree for ASUS Transformer EeePad TF101 Dmitry Osipenko
2021-12-11 21:13 ` [PATCH v6 06/28] ARM: tegra: Add common device-tree base for Tegra30 ASUS Transformers Dmitry Osipenko
2021-12-11 21:13 ` [PATCH v6 07/28] ARM: tegra: Add common device-tree for LVDS display panels of Tegra30 ASUS tablets Dmitry Osipenko
2021-12-11 21:13 ` [PATCH v6 08/28] ARM: tegra: Add device-tree for ASUS Transformer Prime TF201 Dmitry Osipenko
2021-12-15 13:28 ` Thierry Reding
2021-12-15 14:19 ` Dmitry Osipenko
2021-12-15 15:09 ` Thierry Reding
2021-12-11 21:13 ` [PATCH v6 09/28] ARM: tegra: Add device-tree for ASUS Transformer Pad TF300T Dmitry Osipenko
2021-12-11 21:13 ` [PATCH v6 10/28] ARM: tegra: Add device-tree for ASUS Transformer Pad TF300TG Dmitry Osipenko
2021-12-11 21:13 ` [PATCH v6 11/28] ARM: tegra: Add device-tree for ASUS Transformer Infinity TF700T Dmitry Osipenko
2021-12-15 14:01 ` Thierry Reding
2021-12-15 14:52 ` Dmitry Osipenko
2021-12-15 15:19 ` Thierry Reding
2021-12-15 15:28 ` David Heidelberg
2021-12-11 21:13 ` [PATCH v6 12/28] ARM: tegra: Add device-tree for ASUS Transformer Pad TF701T Dmitry Osipenko
2021-12-11 21:13 ` [PATCH v6 13/28] ARM: tegra: Add device-tree for Pegatron Chagall Dmitry Osipenko
2021-12-11 21:13 ` [PATCH v6 14/28] ARM: tegra: Add device-tree for 1080p version of Nyan Big Dmitry Osipenko
2021-12-11 21:13 ` [PATCH v6 15/28] ARM: tegra: Add usb-role-switch property to USB OTG ports Dmitry Osipenko
2021-12-15 13:14 ` Thierry Reding
2021-12-15 15:04 ` Dmitry Osipenko
2021-12-15 15:16 ` Thierry Reding
2021-12-15 15:45 ` Dmitry Osipenko
2021-12-15 15:52 ` Thierry Reding
2021-12-15 17:16 ` Dmitry Osipenko
2021-12-11 21:14 ` [PATCH v6 16/28] ARM: tegra: Enable HDMI CEC on Nyan Dmitry Osipenko
2021-12-11 21:14 ` [PATCH v6 17/28] ARM: tegra: Enable CPU DFLL " Dmitry Osipenko
2021-12-11 21:14 ` Dmitry Osipenko [this message]
2021-12-11 21:14 ` [PATCH v6 19/28] ARM: tegra: Rename top-level clocks Dmitry Osipenko
2021-12-11 21:14 ` [PATCH v6 20/28] ARM: tegra: Rename top-level regulators Dmitry Osipenko
2021-12-11 21:14 ` [PATCH v6 21/28] ARM: tegra: nexus7: Drop clock-frequency from NFC node Dmitry Osipenko
2021-12-11 21:14 ` [PATCH v6 22/28] ARM: tegra: nexus7: Use common LVDS display device-tree Dmitry Osipenko
2021-12-11 21:14 ` [PATCH v6 23/28] ARM: tegra: Add #reset-cells for Tegra114 MC Dmitry Osipenko
2021-12-11 21:14 ` [PATCH v6 24/28] ARM: tegra: Enable video decoder on Tegra114 Dmitry Osipenko
2021-12-11 21:14 ` [PATCH v6 25/28] ARM: tegra: Remove stray #reset-cells property Dmitry Osipenko
2021-12-11 21:14 ` [PATCH v6 26/28] ARM: tegra: Re-add gpio-ranges properties Dmitry Osipenko
2021-12-11 21:14 ` [PATCH v6 27/28] ARM: tegra_defconfig: Enable drivers wanted by Acer Chromebooks and ASUS tablets Dmitry Osipenko
2021-12-11 21:14 ` [PATCH v6 28/28] ARM: config: multi v7: Enable display drivers used by Tegra devices Dmitry Osipenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211211211412.10791-19-digetx@gmail.com \
--to=digetx@gmail.com \
--cc=aaloytorrens@gmail.com \
--cc=clamor95@gmail.com \
--cc=david@ixit.cz \
--cc=devicetree@vger.kernel.org \
--cc=hedmoo@yahoo.com \
--cc=ion@agorria.com \
--cc=jenneron@protonmail.com \
--cc=jja2000@gmail.com \
--cc=jonathanh@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=maxim.schwalm@gmail.com \
--cc=mirq-linux@rere.qmqm.pl \
--cc=mnidza@outlook.com \
--cc=pgwipeout@gmail.com \
--cc=raffaele.tranquillini@gmail.com \
--cc=stefan.eichenberger@toradex.com \
--cc=stefan@agner.ch \
--cc=tailormoon@rambler.ru \
--cc=thierry.reding@gmail.com \
--cc=thomas.graichen@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).