From nobody Sun Oct 5 05:28:58 2025 Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (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 556622512C3 for ; Sun, 10 Aug 2025 12:21:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754828506; cv=none; b=SG6EmFQ6iUxekji770UWIztrs/Ma+5+Fv7mrcdNsvb1ase/rzbBtad6RI08/MQktIpi0yMBlUEdJkL4oCUVcLQmhb8eaPnHICT1IrdwrIj5N4QYEsUnZRaErr7uHAwAwmJ5mFdTxD6xHBSpsOsRPAIaPIGGNpgO8H5CQ5vnvQbs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754828506; c=relaxed/simple; bh=4kUC8UfJIq18b2XMjcez718pUOrhRiCrn/TDW7CP+6w=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=HrUNHLxpemo5djZCz4+rc76qodw3RyqA4TjD3PkT8E+umdBikLSHw4R1+LO926ryyTeiV/GnJUwUWt+NsC19Q0Frd0nW6kAULUiNwPDbKm7DCXi38ZDtZrn70E7PSHPYMwsWNd9YDlKvQygrsJXXPJFxxPbD6r75mNukGuyUh/A= 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=UY7BG+yo; arc=none smtp.client-ip=209.85.208.46 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="UY7BG+yo" Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-6182b3218aeso174767a12.2 for ; Sun, 10 Aug 2025 05:21:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1754828502; x=1755433302; 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=UfWmFS5ER401fuRy1i+KSp84qUrDXaJMiV7A2WK6mME=; b=UY7BG+yoiHfxc1vnMZJcX9sm9XhwF5mdlk3KB0J2iy+3tBcyywZFLvwBMeonTNeRP/ wiYRUGB3vH9NmIcj0mosj+q9Tz329q2U+O+HFQYgr8KCsb2lyFLerIPAXktEbwGPDOAI ZAECOIXDnGW+vWUTBOTQ7frq3a/u/lMkoLWLnrWGq5yRqrjBtsU9BIBqClibGeKIsKeq UWvTUgyhYstsQhqn4yRowlwkBmKsCYrJ5Z2eBjok14/4XlQPGjAvjrw+HMVYLs9iiAoA wq676rPasGHWAhiD+WvTciywERwN0Gl2MGnkYrE2dnMSHKTmhsBs/U+Q/ptL+2paS3/P fV0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754828502; x=1755433302; 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=UfWmFS5ER401fuRy1i+KSp84qUrDXaJMiV7A2WK6mME=; b=NAKKVIFNWC+jMk69owBFiEpW0kOf6xh7u6ZBT6FPsesIahbQSjl+Iy09kweu1lL+MF aN2obpilMeQhbAnFJOISWC++gdhGmgRRTUVP/nPvtFYhKAWv/51nNeiFloXFHkYTvuHY zdbsxl0Ix5moxqSN+PefI9coUvdfq56VZMgzSwSvOZ7ybhDOfMH6LmmFegj2Rf22Xlzn QcmjK9p1pJqGSDBWM08BpwPDwjLxRn52rD4Tyz5wvkUbOrdg3mgOQuXH8vYHiwsW0Vjf kHXOno3XszoUUHvfYl8DmsfC4FUxsDs8ZpmbYwTptYWqeRW0WtG4muvOgeMDpiIZp/+T XTAA== X-Forwarded-Encrypted: i=1; AJvYcCVo1ICjeWZ9NXhvUGee1AW44UrhyI5RK64dXRs1xotqyuOWCSrSsXmOj45yd8OHiXXJQm+pnoKBwyE6eUw=@vger.kernel.org X-Gm-Message-State: AOJu0YwKRWVS/t2uLcQQQi5jeiBBs9PPUiNERYKxRmDaeja0grV2Z+96 qNYBRfjc5E/uLUk57Z5UsuNagXqG1bPjUFJTzbY98GRMu4aGEbwk4X1+0tVcOsY+np4= X-Gm-Gg: ASbGncu0H2PnkXN/fcxAmya//IP1+WiDK4WQh8Cbou1HYOCgvAL2JxnviGMvCz/4dmV 13r5URixD5xGwsBXNh5+FUtJUQjiYzjU5sg73lBxxVsAn1uCsltdnGTe7WLKlsFeyQ7ESE4kcRQ OpLUv21dMwMATTSiFeWL7o4vEs5WpQBlUmqDN4r3gCgQ6TekZYuSKKnwb8LlZpwqun9TjNoUJaY reFlCT9u1e6+IUEqd7a5aB8fEJwNa3mvvsTcg8J0D08YqXmmtYb2VLs8fSKojHrx9mi53ARnJYo xpX16MSUDJXkuZStTV1cXjVSqt/WbKDu9Kd4Y47mLIZ5Souf5Bdu6l4Sy+hi5mdqeBuYtR8fg+T pbJSOmXaIt2HwmOOzz67poB2RH+OSfjr7E0MfUG3GkJO7uUISvkgR X-Google-Smtp-Source: AGHT+IH2BxpYN+/o9cgRtTlYf8Owzh1LVUE4C25JyBYtNyqSEZQBYiszthjxHQH7Zc1QUqUs0PMx2A== X-Received: by 2002:a05:6402:2808:b0:615:539b:7acf with SMTP id 4fb4d7f45d1cf-617e2b70974mr7908566a12.2.1754828501614; Sun, 10 Aug 2025 05:21:41 -0700 (PDT) Received: from claudiu-X670E-Pro-RS.. ([82.78.167.188]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-615a86758fcsm16611897a12.0.2025.08.10.05.21.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 Aug 2025 05:21:40 -0700 (PDT) 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, niklas.soderlund@ragnatech.se, Claudiu Beznea Subject: [PATCH v4 1/4] dt-bindings: thermal: r9a08g045-tsu: Document the TSU unit Date: Sun, 10 Aug 2025 15:21:22 +0300 Message-ID: <20250810122125.792966-2-claudiu.beznea.uj@bp.renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250810122125.792966-1-claudiu.beznea.uj@bp.renesas.com> References: <20250810122125.792966-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 v4: - none Changes in v3: - none 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