From nobody Mon Feb 9 06:00:49 2026 Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (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 923283590B5 for ; Mon, 19 Jan 2026 12:08:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768824537; cv=none; b=ikz8yOKKc1KR/iRfW9XfsMrfTfpqxkhbMJw0DoYnsoPRZfekDNCkJjh+B8QB0X5gyFw8M5TC3rnP5jaRat23RM/3MDmZAqxsQPwEF1p+Z0Ber8KWCRLKqRTWl9KCgjKzf7aIHVx3QGENNJoeFs74z8Nx7+L+Xyt8/1n43AkTV9w= 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.44 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-f44.google.com with SMTP id ffacd0b85a97d-42fb5810d39so3357845f8f.2 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=HDRXj99hYTlkuERWoLWw1Mbcs88Riy8YdxQ/z5W1uA6vTzSJyfGvsBJ82L1iijUa+n 5gVh49OWofWJ9etE6WG5NKhWSlLkCQdsUUvXwHOl+/941dSu1Qw0BgfCs1ppinZkpUE0 UrzIy0Jaf1hF2lNePH7g0Q3wp/dqvqycEh9wzzY8YoTTdQ4oHZ9HqkZ3voEX8EuI9pPF Rywb1ZvWwhCFxuorowmGV1yJPMgOMrBVqcOU8+NiwCz2/L3cf+fCYowWes//ZbEdWFl4 MR+ItCetjIX/qqV6QqTUyC6dvdEg8yVwQwZmP9buKnxF58tI/IQZ2M4IUETKX2LVEWmG qcOw== X-Forwarded-Encrypted: i=1; AJvYcCWEQHVrGr4pQMKK3gd1xDt/Mm25CRbqiPhESKvg7Cc5Ka3vZKi83ARiJDBVeBFgomCy4vKuozsY4GHTTA4=@vger.kernel.org X-Gm-Message-State: AOJu0Yzvs0tDmmYOkqPIBK3l6wsaGHykAjQrM2zaseWLdAStaMSZNw0s xvx4Qp4oZNHr6U7qvPnL3V12FVxYAvZxaZhaZXEC31955BBD/6kbUFYKlFFZHhKQhhQ= X-Gm-Gg: AZuq6aK0KoU0wncyMNpwMqWRI5cQs6No8fI8T7vKk9OcgZ3IzBvMIxv8bsq82D+nJuF 8tswAaLsefZjFFX9GRIrGuHCCvyoF1lyTfHWdCzMnn3na66CqNjcHZyCeWHKKu+ZbVwnN/j2evc EeW9ATo3C4IyyleNC5eLLC1NLWbC7LFZ4KOcl8EkkvMJA9T+s8yRmuhavPZ033XyEkpYXFBqlnC gHs6Eyo0g6iWKNOYJ53jBJalEU+CUq2s52E0KL93TjsbGp1RXCBghXMvzNz/h9X1O8GExdwWiK0 rXddccTxr2IQBSIcOd4PCRVi7vcWh7XktJku+dQk69LguFN65d8NxA1O6VnKJhio/BhwxwTj7/n n8X9D3To4V4fvzsmdFVlMlfJhCkqKWTcnW2KQ7yoSoUDSPIW1HB+aMFCCGvsLE+jbSetNpxQfwO A+eoblfhHuQxr4gb/a8J1pzfQTYvtymkSfHmWWPPGE/vTZp1F2LKCkj0eJGqRZTEWMGE4PnA== 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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 Reviewed-by: Krzysztof Kozlowski --- .../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..b09e1ff5d89194b570810a042c7= 5836ca2e53950 --- /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 =3D "google,gs101-tmu-top"; + reg =3D <0x100a0000 0x800>; + clocks =3D <&cmu_misc CLK_GOUT_MISC_TMU_TOP_PCLK>; + interrupts =3D ; + #thermal-sensor-cells =3D <1>; + samsung,acpm-ipc =3D <&acpm_ipc>; + }; --=20 2.52.0.457.g6b5491de43-goog