From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8728F33067F for ; Mon, 19 Jan 2026 12:08:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768824537; cv=none; b=Osqp8aUWrfpUM0KQsIfZfMgwCguXnBBRUjfCkD4Sd057VP73syCgirgyN8k5ZIsJpiDA9emnrCj9Fokmv5IYPMNVjr2yBLq54Lcjzq2umxifSAMllSQ+B3ZspfgsbgTz6MsHjYb+cL+hEJ1c7zE0t5kam5j0anT1H6a3wa5ZSyQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768824537; c=relaxed/simple; bh=NSnDjeYXDKXRwPd3DPQdyVTKpEJbKoAyXp1JmfIwRDo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Y3pIhKQ8RzLUe2MfIRHJUUZEgyRFd4fcjfOquNHt2xPlTRVmqtGRKr/6O2mO1tf/VrZc9RYE/2k77fXkqKgCPPVHyD4dNPNqTKymA/dn0AMSQvA8N65vsK65wx65Aoo3AaTtokl9pDed95SN4YDULTp6oogdPwPmgQ6nsoiNSU0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=ptN03W3y; arc=none smtp.client-ip=209.85.221.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ptN03W3y" Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-430f5ecaa08so1996059f8f.3 for ; Mon, 19 Jan 2026 04:08:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1768824534; x=1769429334; darn=vger.kernel.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=Rr92q3YtyZ3lvT3dDx4pM+2kIr4QEW9o4+xmemflEf0=; b=ptN03W3yTt0P+/40n+FtqdxtmBFSbSYUNj2hwkgCsCtZSTc0DlGp415OuXuv7kU3hP HnGPvloI6Pi3dWCmpOrW+kRTwZRsY80lTJ+wZJFlz2IT3NnzoLhar4FsgDPglI1hnyNp cokfhPqPAj84qtCOsG7t7eRv39avzMuJ68RVeqnLSruT/1o8wDrpONfBa3rMttELSQSB 4SzQL15h4nv4Ko2boZoqOlct++m9qVLev4WERq+oS+534iHXivSc3oSeSue8LAEP3GlL bpAUc+oFv5X/8Z99O66xPUlGS1X49iRC/oEKWUMGvIVQyOQLb9Vmmt3NSCVuX4AVvgsb 92XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768824534; x=1769429334; 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=Rr92q3YtyZ3lvT3dDx4pM+2kIr4QEW9o4+xmemflEf0=; b=s1dsjkPo7sf3WHat91XEI/xF979kEjniRlNtsKwN91qtlar1JVFCyJQxtR1jWjcR5q NRNDWY9ribTO1sWVIwTiyJXWxm38uubpzNiwq0r8eeU1DkyWMyjlpVZljOSVqdNrEuVB EuoRvER3xetjnp6no4IwDi8cYYLRB8HqP5vC5MDOKJdfRsWeUIOLy0heAUVj5hf7b6zS WwoQSJM4toKWmrJw/0hq2W54B22xpytjem3gKIG6hR2i3M+6m0jwbiKeJdMPbBIwS87R iuT1XH/e6SeLYVmlfGPY6IWoknsG6CQSY1lpWw1BcZwHVOh8TpKSbA1ujBgneDRYzkGh ME7g== X-Forwarded-Encrypted: i=1; AJvYcCU6ayUgHM2KZ5sakthycnopX73n6/5WXvdhVPpDWmNT670LZElljavUDdtxb5oa/jQzZtyJ/3aZpw==@vger.kernel.org X-Gm-Message-State: AOJu0Yzs4wfE7Xu+yfTyK4uFkMHmIphNpPfotpy+EGB7bMA1pRC1Sjhl fWCioMoRoKlnTljaGc0gHYHmefS2jkzytZzpt3SwSmlUcsiN2swcpZOqTy44S2b4cHQ= X-Gm-Gg: AZuq6aJOVdqFwjCIBDx+nZ+LhFq8NEKnFOyXIxhwJItUQXb/DpmigJ07jc19LOSenn6 earLzurFUGF4nBRith85mpCsDjTyGwXHUDMw3YT0JRaCPWvrRZhdFbmY9dGMM4EpzwGPSZ+JrnM eWuni6LSJ68YS742h2dK0415DpEcHao3FUKaKXQMbctyvBBmBtjbQCKCMImm2Rdiec6nrCcPIWD BGV85nvxMfe2hw7rwsWv1uQMysBmDvlkE5v9NTDe5LbfujZbeFCvMVLURCqquPhqhvGbp0inXrs u6750xTMIoob7raUtG1DI57Ey2tPU1C6tcBFHxFu75XS6XkPhdFD51cEb0/UAfB0iJa5QpKExBG eX048u90GeXix/Nl6V9wBAVVOMtrJN91ZLd4LEB8qh/DQQplvDKwA6lTWN7J0aaS2Jt/B7Hm3s8 slRItMDdo6ypnkgJX31C7v5huZIh2OKq2WMkjKg8w2dFZAmF2ZHS/TDcukvOaEvW9LadIp/A== X-Received: by 2002:a05:6000:25c8:b0:430:f41f:bd42 with SMTP id ffacd0b85a97d-4356a0662e3mr13652973f8f.57.1768824533639; Mon, 19 Jan 2026 04:08:53 -0800 (PST) Received: from ta2.c.googlers.com (164.102.240.35.bc.googleusercontent.com. [35.240.102.164]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4356997e664sm20698421f8f.30.2026.01.19.04.08.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jan 2026 04:08:53 -0800 (PST) From: Tudor Ambarus Date: Mon, 19 Jan 2026 12:08:47 +0000 Subject: [PATCH v2 1/7] dt-bindings: thermal: Add Google GS101 TMU Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260119-acpm-tmu-v2-1-e02a834f04c6@linaro.org> References: <20260119-acpm-tmu-v2-0-e02a834f04c6@linaro.org> In-Reply-To: <20260119-acpm-tmu-v2-0-e02a834f04c6@linaro.org> To: "Rafael J. Wysocki" , Daniel Lezcano , 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?= 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, Tudor Ambarus X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1768824532; l=3157; i=tudor.ambarus@linaro.org; s=20241212; h=from:subject:message-id; bh=NSnDjeYXDKXRwPd3DPQdyVTKpEJbKoAyXp1JmfIwRDo=; b=dtDJDuEZ8DzLjZa7229oBMQmNZpRgOy1kXud/+4ry809hpk1wR2EYaj7pZfffGZmlWn/aR34X iStwRKVu+IWANL5Tdx/kQfLXBZ9N9QrNnyHAcG5rsHW5rDnJDO2waeq X-Developer-Key: i=tudor.ambarus@linaro.org; a=ed25519; pk=uQzE0NXo3dIjeowMTOPCpIiPHEz12IA/MbyzrZVh9WI= Document the Thermal Management Unit (TMU) found on the Google GS101 SoC. The GS101 TMU utilizes a hybrid control model shared between the Application Processor (AP) and the ACPM (Alive Clock and Power Manager) firmware. While the TMU is a standard memory-mapped IP block, on this platform the AP's direct register access is restricted to the interrupt pending (INTPEND) registers for event identification. High-level functional tasks, such as sensor initialization, threshold programming, and temperature reads, are delegated to the ACPM firmware. Signed-off-by: Tudor Ambarus --- .../bindings/thermal/google,gs101-tmu-top.yaml | 67 ++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/Documentation/devicetree/bindings/thermal/google,gs101-tmu-top.yaml b/Documentation/devicetree/bindings/thermal/google,gs101-tmu-top.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b09e1ff5d89194b570810a042c75836ca2e53950 --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/google,gs101-tmu-top.yaml @@ -0,0 +1,67 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/thermal/google,gs101-tmu-top.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Google GS101 Thermal Management Unit (TMU) + +maintainers: + - Tudor Ambarus + +description: + The Google GS101 TMU is a thermal sensor block that supports both direct + register-level access and firmware-mediated management via the ACPM + (Alive Clock and Power Manager) firmware. + + On this platform, the hardware is managed in a hybrid fashion. The + Application Processor (AP) maintains direct memory-mapped access + exclusively to the interrupt pending registers to identify thermal + events. All other functional aspects - including sensor + initialization, threshold configuration, and temperature acquisition + - are handled by the ACPM firmware. The AP coordinates these + operations through the ACPM IPC protocol. + +properties: + compatible: + const: google,gs101-tmu-top + + reg: + maxItems: 1 + + clocks: + items: + - description: APB peripheral clock (PCLK) for TMU register access. + + interrupts: + maxItems: 1 + + "#thermal-sensor-cells": + const: 1 + + samsung,acpm-ipc: + $ref: /schemas/types.yaml#/definitions/phandle + description: Phandle to the ACPM IPC node. + +required: + - compatible + - reg + - clocks + - interrupts + - "#thermal-sensor-cells" + +additionalProperties: false + +examples: + - | + #include + #include + + thermal-sensor@100a0000 { + compatible = "google,gs101-tmu-top"; + reg = <0x100a0000 0x800>; + clocks = <&cmu_misc CLK_GOUT_MISC_TMU_TOP_PCLK>; + interrupts = ; + #thermal-sensor-cells = <1>; + samsung,acpm-ipc = <&acpm_ipc>; + }; -- 2.52.0.457.g6b5491de43-goog