From nobody Thu Dec 18 19:09:17 2025 Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (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 263AC264F9F for ; Mon, 24 Feb 2025 17:32:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740418323; cv=none; b=c+lOiPNzRIuHL8Z+jZWm/KNxgGHOu0v1lIOPb9H1FU8mwM8fF5YyeoYi+6H6wRuGZJFff0KT7ugbc29vG30NigKYXF0y1DUeR0ip/WET2gId+v2Vka/PZQJEURxDMd0fUWMJ9fsFh8lnmrwtRMblV/QOSOEiFchxGFQtgM6PaTQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740418323; c=relaxed/simple; bh=ImOTi52Fq1zni/iFsL1Onf2S8Uv8Ca8bqVfaVlyZUAM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lKowS3BdWfnOGyXKV2Q237q6NTqVeciccH0mA/xNE/ReYFlOWqHuNxHBzeuN02nC/nKcRRWqJp6PNf1AjZYbQfVCBnXaZRijwFz4lPWEKxIRbBxuj5kyCgRQrL7KYiVRAo32WCmcYnIcqFMuNIZ+AcPI6ya7mW3gIO5wA73JZNs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev; spf=pass smtp.mailfrom=tuxon.dev; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b=Be8RlvtA; arc=none smtp.client-ip=209.85.208.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tuxon.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="Be8RlvtA" Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-5e0516e7a77so7219640a12.1 for ; Mon, 24 Feb 2025 09:32:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1740418319; x=1741023119; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=420c+7A1+4JbduZFaI1FEUdQhJT2kTAJKMnNgK/61Ek=; b=Be8RlvtADCeVH+puTeNMW6jETTArRB0pny0ivF+OsVJix377fH6d8YI6QrGiV4BV9W hcoRQw0xlyVUu7horfJxkZiVYVOR0rreOtgFyZ65o98mGQfoC6jRBPDm4pC1VDa7oufU 6KgkQMdBbtQSxisW5WZxePR4AGfn+ATaxAqhxGVxHUthV0Vwvet4a7iynEKgkwewz609 oBjqXd5NmkuDcIr+GQaiW/NRUDIkFjVyL/pxFF7BkF15GwOaFK+cKhiEgKyK5a7aT5dD jkjDHqJsiGcmGCABf1HK1WtJbkLzmItbjr0MI4A7bLIQZcBhxK3noijYEt1kkz2wMSAW oayQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740418319; x=1741023119; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=420c+7A1+4JbduZFaI1FEUdQhJT2kTAJKMnNgK/61Ek=; b=rd7OOVhuroohHeKCx4TCCxakNtSWKHIefZYXLlOCrfyXeBPO8hwR8qmPc6qJe9KB4q 43xiPLCzNJ1MtCW9AjId7OnVps49heMshE/I53W88PqJ04rsCUEncBKTByyi8UEIt2H/ 0odChBDYvh0LTyUCx+2cyjY/j8srykXaNp6HGBLUDWZWhBNFl6xxp9gA8bpcCsdYkkFU TvH7sXPqOxXpC0Vlgubi054X1SO0pxnr3dGB7L099BGff8FyYs1ICCwhl8K1CTQjpIL3 uPCSXDmJGIcE5KVxWE1Wbkgry0ZAVBaZ/rcBjoIv62s1shQ449ijfbq9PEPWZ23C8KpB bN7A== X-Forwarded-Encrypted: i=1; AJvYcCWIlN8SdFHtoNA2j9PyDVybQUpzstfvqGk+/LIyn0tubfYvrbh9LmUMm6MdNpgh1LS+XuCxsdUWYCtWUg4=@vger.kernel.org X-Gm-Message-State: AOJu0Yzpf7NYCw6689BVA8yk/wnLVs2i9nkmECGbcLBieKlAYmx7ipjh NsZsGC/Bm+xnzxB+3txMsGlU2SApN5nsr8wKhtGDJXSJ1WnKTrDjo/TOMKLscVA= X-Gm-Gg: ASbGncsuzxbMhclI1vG8akJ2yAQzpwOy20+0boIPGm+/Jl23v0fZIY37cho6QFiBXK4 Ud/pzFsS0RwdDc2iBXjSJTwCZvG8a6jIGJv1sZRY1D+zRO/s0SU99gvyqvgFovaXP601Yy2Gf8H wmCLNpfccOXcolWnSRv1vdgzULx4jkrnp5akdOm9B1cDJjvCOhUklfnD3BB+0exh9hk+zE33qYf vTGUWM3x2X7kqmQzPAp8wV5Ow3FE5KyI/cAC9GHt3V0ZXZVsBy7XqgBhQ5KBq/12BJqHH8sMtR+ TFtRQ/z56pMq63JzwedQSrL/Ob8DCU3tUiWWttsdX3xMzYSm2EgebYw= X-Google-Smtp-Source: AGHT+IGZl4Iy4uZOUjM9U9IVmRSlfdQAcLT3D1dKp6aQmp4d42Kr2CFruUdsHT4wSp4NM1fW9G7V4Q== X-Received: by 2002:a05:6402:50c8:b0:5e0:9607:2669 with SMTP id 4fb4d7f45d1cf-5e0b71070a2mr14757051a12.17.1740418319292; Mon, 24 Feb 2025 09:31:59 -0800 (PST) Received: from claudiu-X670E-Pro-RS.. ([82.78.167.25]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5dece270a7fsm18674357a12.58.2025.02.24.09.31.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Feb 2025 09:31:58 -0800 (PST) From: Claudiu X-Google-Original-From: Claudiu To: rafael@kernel.org, daniel.lezcano@linaro.org, rui.zhang@intel.com, lukasz.luba@arm.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, geert+renesas@glider.be, magnus.damm@gmail.com, p.zabel@pengutronix.de Cc: claudiu.beznea@tuxon.dev, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Claudiu Beznea Subject: [PATCH v2 1/4] dt-bindings: thermal: r9a08g045-tsu: Document the TSU unit Date: Mon, 24 Feb 2025 19:31:41 +0200 Message-ID: <20250224173144.1952801-2-claudiu.beznea.uj@bp.renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250224173144.1952801-1-claudiu.beznea.uj@bp.renesas.com> References: <20250224173144.1952801-1-claudiu.beznea.uj@bp.renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Claudiu Beznea The Renesas RZ/G3S SoC includes a Thermal Sensor Unit (TSU) block designed to measure the junction temperature. The temperature is measured using the RZ/G3S ADC, with a dedicated ADC channel directly connected to the TSU. Add documentation for it. Reviewed-by: Rob Herring (Arm) Reviewed-by: Geert Uytterhoeven Signed-off-by: Claudiu Beznea --- Changes in v2: - collected tags .../thermal/renesas,r9a08g045-tsu.yaml | 93 +++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal/renesas,r9a08= g045-tsu.yaml diff --git a/Documentation/devicetree/bindings/thermal/renesas,r9a08g045-ts= u.yaml b/Documentation/devicetree/bindings/thermal/renesas,r9a08g045-tsu.ya= ml new file mode 100644 index 000000000000..573e2b9d3752 --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/renesas,r9a08g045-tsu.yaml @@ -0,0 +1,93 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/thermal/renesas,r9a08g045-tsu.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas RZ/G3S Thermal Sensor Unit + +description: + The thermal sensor unit (TSU) measures the temperature(Tj) inside + the LSI. + +maintainers: + - Claudiu Beznea + +$ref: thermal-sensor.yaml# + +properties: + compatible: + const: renesas,r9a08g045-tsu + + reg: + maxItems: 1 + + clocks: + items: + - description: TSU module clock + + power-domains: + maxItems: 1 + + resets: + items: + - description: TSU module reset + + io-channels: + items: + - description: ADC channel which reports the TSU temperature + + io-channel-names: + items: + - const: tsu + + "#thermal-sensor-cells": + const: 0 + +required: + - compatible + - reg + - clocks + - power-domains + - resets + - io-channels + - io-channel-names + - '#thermal-sensor-cells' + +additionalProperties: false + +examples: + - | + #include + + tsu: thermal@10059000 { + compatible =3D "renesas,r9a08g045-tsu"; + reg =3D <0x10059000 0x1000>; + clocks =3D <&cpg CPG_MOD R9A08G045_TSU_PCLK>; + resets =3D <&cpg R9A08G045_TSU_PRESETN>; + power-domains =3D <&cpg>; + #thermal-sensor-cells =3D <0>; + io-channels =3D <&adc 8>; + io-channel-names =3D "tsu"; + }; + + thermal-zones { + cpu-thermal { + polling-delay-passive =3D <250>; + polling-delay =3D <1000>; + thermal-sensors =3D <&tsu>; + + trips { + sensor_crit: sensor-crit { + temperature =3D <125000>; + hysteresis =3D <1000>; + type =3D "critical"; + }; + target: trip-point { + temperature =3D <100000>; + hysteresis =3D <1000>; + type =3D "passive"; + }; + }; + }; + }; --=20 2.43.0