From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 72F02F5A8A5 for ; Mon, 20 Apr 2026 17:40:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=28TcC2oMsGASecDBxaw71rZOaAWWIWdCO8FEc/B3qrw=; b=ZdarUffAuex+61KVo7a4TfcaCV fDUWxqXElEnpw9Bpv3/vnd/0WOXmjXW/ZTtPjerSOafCNINZEx4JSypK+hjRYW8iLskj25TbH32oW 2E0ZU3+gByEvR8acKrD44QFnKh0vbhh2JPqbkY/j4Br/MRKEJ3MRZPPoFxvnR78o/iDn0A6R+Mpl4 36EM7lHdfF2li2TMnie3TvD+wO+0RO9nZH/oebebNf5r0F7ZH4R274fPngBDDE4XCdjT3d+rjKb8Q TVZJNkxdKNVqHCDEjeiP1v4lCm6SCJTd5VAhH7dXI34cLBCGvtVzFmpGruFZY+Q7MOXftI2inn9XI KkrWOQ8A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1wEsbc-00000007V7u-0hna; Mon, 20 Apr 2026 17:40:20 +0000 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1wEsbV-00000007V2H-3Dp3 for linux-arm-kernel@lists.infradead.org; Mon, 20 Apr 2026 17:40:15 +0000 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-48896199cbaso35034605e9.1 for ; Mon, 20 Apr 2026 10:40:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1776706812; x=1777311612; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=28TcC2oMsGASecDBxaw71rZOaAWWIWdCO8FEc/B3qrw=; b=VFf6brmJUHBkMjXcVo4pF7cUIM4Wlap3HumOhHvg+eMV5AJzdF+keRsFNnweN5HGL4 fCyqT9IoJ6rYo7L8c1dAG8c03ImliNiJMgNJZSpk7IhjgxGGn0BcmicvI/z3CwnVK5HZ HMBLxn+aa8/O0JP16KjZ3Xggtw5URHwzvsXchfPlUXf/vSppTFllNK8d7DizMCFriWpI JkkWAUuKbbPyZQUPCqxZTN3tyC41Z8wDCuiKXclWxbhp0CJloKPQolZvsUDSvy+KbvxP n8bDdm20dj/SkdOj10QWuGhYzpa565OWxAClG2zOO44QGzxpd0D0+yWTEws2q630/K3B 3AlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776706812; x=1777311612; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=28TcC2oMsGASecDBxaw71rZOaAWWIWdCO8FEc/B3qrw=; b=mhi2+1u05YPsqK1tByn/1mPmmVk6Us9HSKECNJe2tVhtq9rdVKe0CwqWicnD09mCLd 0XzxQNtloXOiPJeX/eTYL96TqQmnsblIufJ5Tl8b0TQULqltt+HTOQ5B1xLUQJlXG/OV icLOZiidfq6wbIV8xuhZ9CPHMXUIyX2bO/eScy10te4RNorqOx44q6aAPG/PdlBoDkCN waQ5PUGS6hF7qSmnMe1N8UFMrZwqpay/CYgsgB2Dv/O31y30KoavZhmVRkk+5dqWhkOC fxfjSfzx+tnZQ+LjLrD+NuCrX1G44tkOjufu1xOQBhNzq2DabqwYtOzVUz1yVkY1i+5a /b+w== X-Forwarded-Encrypted: i=1; AFNElJ9zd0p6c9egG3pIwDX5PhC/lf8lXeWqQXS+HHTnOFU60U2Jb7fsn95RlEp4+NczYNLSYj7rgGa0DhfEeRRcBsba@lists.infradead.org X-Gm-Message-State: AOJu0Yz+WaOJAjbYjqukpK9jrsbbkvnLbOTnmlxylOvoLt2ygW1KWdA+ +jZGRIJtTIOuljjX4LoGrxdTgSFwnkNWBOGK0WVVQweHwMeELXTOfK5WFy01A4ZHIwQ= X-Gm-Gg: AeBDietupT9GrzZ0ve2MlymO+uRIVCV0QJYuQovj1hgkSFk0e1Lj/AFWqdF1PrhIa2t sTRErFXWse4UY0RWfMfrlVrFr2xwRVTG7gkiYH4oUpszDOLqQQrnoxsygjjuBAG/vkaag0mA/Hm DY/on89m4XOqWPsbbxUU5mrkY4EySlSIqV+UTq6M9LCfuK1398KsKgSqik32e+Ul47CDCDHZf5B Cd83X64v/HhIjBpomG1xSDqeeA/65SMXi/5wlkF0OIjANspccnwPeCMNjqhAWc0Eg5KGwQrB6pB rymQKeibtIIQOtWrzzc1YKII9+kZQ9Mf+sPIOESjsFaub9zO5JY7qVLVGFlx+Zp7ACebRqpytZT SkykH7hJNqnyMr+CD/yBZnk2WrdHq1OShLrEWJpCjLbQp+Az5kClq6wTHWtNMkK4aDWe2uczz0e JsLzFvbeMJjI23oI+soyyT9KMp1h5tlSgS4acmvV27tHibTzgFvQ6zCHhD5cYwmrfU3Y+9zgy8m OypGwlFLAGIh6n4vQ== X-Received: by 2002:a05:600c:8901:b0:485:3fa9:358c with SMTP id 5b1f17b1804b1-488fb778117mr153521775e9.17.1776706811718; Mon, 20 Apr 2026 10:40:11 -0700 (PDT) Received: from ta2.c.googlers.com (17.83.155.104.bc.googleusercontent.com. [104.155.83.17]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-488fb72d365sm144280285e9.1.2026.04.20.10.40.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Apr 2026 10:40:10 -0700 (PDT) From: Tudor Ambarus Date: Mon, 20 Apr 2026 17:39:55 +0000 Subject: [PATCH v3 09/10] arm64: dts: exynos: gs101: Add thermal management unit MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260420-acpm-tmu-v3-9-3dc8e93f0b26@linaro.org> References: <20260420-acpm-tmu-v3-0-3dc8e93f0b26@linaro.org> In-Reply-To: <20260420-acpm-tmu-v3-0-3dc8e93f0b26@linaro.org> To: "Rafael J. Wysocki" , Zhang Rui , Lukasz Luba , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Krzysztof Kozlowski , Alim Akhtar , Bartlomiej Zolnierkiewicz , Kees Cook , "Gustavo A. R. Silva" , Peter Griffin , =?utf-8?q?Andr=C3=A9_Draszik?= , Daniel Lezcano , Sylwester Nawrocki , Chanwoo Choi , Michael Turquette , Stephen Boyd , Lee Jones Cc: willmcvicker@google.com, jyescas@google.com, shin.son@samsung.com, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-hardening@vger.kernel.org, linux-clk@vger.kernel.org, Tudor Ambarus X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1776706804; l=7069; i=tudor.ambarus@linaro.org; s=20241212; h=from:subject:message-id; bh=9sh57TDQqH/7ssKytowavLn5M99k4zWI7dQ0wDDuyzs=; b=ybbkW7PAs2lzi9awopvn2/X2xHSJ6YJT1i3T0gkdLZZ+pvHOa8zy1doChcGdyRHJtX4WYwGID J5+CdT4WPqnB1flSAgTxcc6QZWjZ15yHZmK4HXe+Vcge6sApgsbgRZS X-Developer-Key: i=tudor.ambarus@linaro.org; a=ed25519; pk=uQzE0NXo3dIjeowMTOPCpIiPHEz12IA/MbyzrZVh9WI= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260420_104013_858277_E51DA074 X-CRM114-Status: GOOD ( 14.48 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add the Thermal Management Unit (TMU) support for the Google GS101 SoC. Describe the TMU using a consolidated SoC node that includes memory resources for interrupt identification and a phandle to the ACPM IPC interface for functional control. Define thermal zones for the little, mid, and big CPU clusters, including associated trip points and cooling-device maps to enable thermal mitigation. Signed-off-by: Tudor Ambarus --- arch/arm64/boot/dts/exynos/google/gs101-tmu.dtsi | 136 +++++++++++++++++++++++ arch/arm64/boot/dts/exynos/google/gs101.dtsi | 18 +++ 2 files changed, 154 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/google/gs101-tmu.dtsi b/arch/arm64/boot/dts/exynos/google/gs101-tmu.dtsi new file mode 100644 index 000000000000..b27d1a539ec2 --- /dev/null +++ b/arch/arm64/boot/dts/exynos/google/gs101-tmu.dtsi @@ -0,0 +1,136 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Google GS101 TMU configurations device tree source + * + * Copyright 2020 Samsung Electronics Co., Ltd. + * Copyright 2020 Google LLC. + * Copyright 2026 Linaro Ltd. + */ + +#include + +/ { + thermal-zones { + cpucl2-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tmu_top 0>; + + trips { + big_switch_on: big-switch-on { + temperature = <80000>; + hysteresis = <2000>; + type = "passive"; + }; + + big_mitigate: big-mitigate { + temperature = <90000>; + hysteresis = <5000>; + type = "passive"; + }; + + big_hot: big-hot { + temperature = <100000>; + hysteresis = <5000>; + type = "hot"; + }; + + big_critical: big-critical { + temperature = <105000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + + cooling-maps { + map0 { + trip = <&big_mitigate>; + cooling-device = <&cpu6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; + + cpucl1-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tmu_top 1>; + + trips { + mid_switch_on: mid-switch-on { + temperature = <80000>; + hysteresis = <2000>; + type = "passive"; + }; + + mid_mitigate: mid-mitigate { + temperature = <90000>; + hysteresis = <5000>; + type = "passive"; + }; + + mid_hot: mid-hot { + temperature = <100000>; + hysteresis = <5000>; + type = "hot"; + }; + + mid_critical: mid-critical { + temperature = <105000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + + cooling-maps { + map0 { + trip = <&mid_mitigate>; + cooling-device = <&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&cpu5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; + + cpucl0-thermal { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-sensors = <&tmu_top 2>; + + trips { + little_switch_on: little-switch-on { + temperature = <80000>; + hysteresis = <2000>; + type = "passive"; + }; + + little_mitigate: little-mitigate { + temperature = <90000>; + hysteresis = <5000>; + type = "passive"; + }; + + little_hot: little-hot { + temperature = <100000>; + hysteresis = <5000>; + type = "hot"; + }; + + little_critical: little-critical { + temperature = <105000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + + cooling-maps { + map0 { + trip = <&little_mitigate>; + 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>; + }; + }; + }; + }; +}; diff --git a/arch/arm64/boot/dts/exynos/google/gs101.dtsi b/arch/arm64/boot/dts/exynos/google/gs101.dtsi index d085f9fb0f62..4b8c7edaddb6 100644 --- a/arch/arm64/boot/dts/exynos/google/gs101.dtsi +++ b/arch/arm64/boot/dts/exynos/google/gs101.dtsi @@ -74,6 +74,7 @@ cpu0: cpu@0 { compatible = "arm,cortex-a55"; reg = <0x0000>; clocks = <&acpm_ipc GS101_CLK_ACPM_DVFS_CPUCL0>; + #cooling-cells = <2>; enable-method = "psci"; cpu-idle-states = <&ananke_cpu_sleep>; capacity-dmips-mhz = <250>; @@ -86,6 +87,7 @@ cpu1: cpu@100 { compatible = "arm,cortex-a55"; reg = <0x0100>; clocks = <&acpm_ipc GS101_CLK_ACPM_DVFS_CPUCL0>; + #cooling-cells = <2>; enable-method = "psci"; cpu-idle-states = <&ananke_cpu_sleep>; capacity-dmips-mhz = <250>; @@ -98,6 +100,7 @@ cpu2: cpu@200 { compatible = "arm,cortex-a55"; reg = <0x0200>; clocks = <&acpm_ipc GS101_CLK_ACPM_DVFS_CPUCL0>; + #cooling-cells = <2>; enable-method = "psci"; cpu-idle-states = <&ananke_cpu_sleep>; capacity-dmips-mhz = <250>; @@ -110,6 +113,7 @@ cpu3: cpu@300 { compatible = "arm,cortex-a55"; reg = <0x0300>; clocks = <&acpm_ipc GS101_CLK_ACPM_DVFS_CPUCL0>; + #cooling-cells = <2>; enable-method = "psci"; cpu-idle-states = <&ananke_cpu_sleep>; capacity-dmips-mhz = <250>; @@ -122,6 +126,7 @@ cpu4: cpu@400 { compatible = "arm,cortex-a76"; reg = <0x0400>; clocks = <&acpm_ipc GS101_CLK_ACPM_DVFS_CPUCL1>; + #cooling-cells = <2>; enable-method = "psci"; cpu-idle-states = <&enyo_cpu_sleep>; capacity-dmips-mhz = <620>; @@ -134,6 +139,7 @@ cpu5: cpu@500 { compatible = "arm,cortex-a76"; reg = <0x0500>; clocks = <&acpm_ipc GS101_CLK_ACPM_DVFS_CPUCL1>; + #cooling-cells = <2>; enable-method = "psci"; cpu-idle-states = <&enyo_cpu_sleep>; capacity-dmips-mhz = <620>; @@ -146,6 +152,7 @@ cpu6: cpu@600 { compatible = "arm,cortex-x1"; reg = <0x0600>; clocks = <&acpm_ipc GS101_CLK_ACPM_DVFS_CPUCL2>; + #cooling-cells = <2>; enable-method = "psci"; cpu-idle-states = <&hera_cpu_sleep>; capacity-dmips-mhz = <1024>; @@ -158,6 +165,7 @@ cpu7: cpu@700 { compatible = "arm,cortex-x1"; reg = <0x0700>; clocks = <&acpm_ipc GS101_CLK_ACPM_DVFS_CPUCL2>; + #cooling-cells = <2>; enable-method = "psci"; cpu-idle-states = <&hera_cpu_sleep>; capacity-dmips-mhz = <1024>; @@ -639,6 +647,15 @@ watchdog_cl1: watchdog@10070000 { status = "disabled"; }; + tmu_top: thermal-sensor@100a0000 { + compatible = "google,gs101-tmu-top"; + reg = <0x100a0000 0x800>; + clocks = <&cmu_misc CLK_GOUT_MISC_TMU_TOP_PCLK>; + interrupts = ; + samsung,acpm-ipc = <&acpm_ipc>; + #thermal-sensor-cells = <1>; + }; + trng: rng@10141400 { compatible = "google,gs101-trng", "samsung,exynos850-trng"; @@ -1861,3 +1878,4 @@ timer { }; #include "gs101-pinctrl.dtsi" +#include "gs101-tmu.dtsi" -- 2.54.0.rc1.555.g9c883467ad-goog