From patchwork Thu May 22 18:22:45 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Madieu X-Patchwork-Id: 892406 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1D0CF1A5B96; Thu, 22 May 2025 18:23:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.160.252.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747938212; cv=none; b=rQMiAfIn3dxYHxfqyb2Q7AKd/v+1YnUhK7+t1vZpfenkOA7/c8Q4++dSn9XpnimPGZ3zVsdp+7P0v20MBPcpEV7MufjMxdkeG8Saejlzerd9V9UJxSazqzLeIzD1y+YlMk7ig3tlhYnmpOcFhYYEIpthn+DrusW2MjIOE7CBq94= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747938212; c=relaxed/simple; bh=gaq64C7OjhX21LSbw0E0wC5kTMeUyn4AR8ODhOLT3hE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GNa3BXlAsLSfcDmNnexaWZX6NnMJnRzYNofA3eSCDPCdAs37cuYuyghA8D5IiN/7nhFlooyhyCXkuE8eopjPLH1I0HV965iIs1LClKZxxh7MZFYyPvlU/O7iQKxmwdXXxcqlqFuPaZLVaTBgtmstOrGFYDIyv44OQso0wdEDVbA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=bp.renesas.com; spf=pass smtp.mailfrom=bp.renesas.com; arc=none smtp.client-ip=210.160.252.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=bp.renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bp.renesas.com X-CSE-ConnectionGUID: 2D9ED9aQT6mqZFMv7K/zww== X-CSE-MsgGUID: fPfiYlZ/RsywPEvouBECVw== Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 23 May 2025 03:23:26 +0900 Received: from ubuntu.adwin.renesas.com (unknown [10.226.92.203]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 32A5540621D6; Fri, 23 May 2025 03:23:20 +0900 (JST) From: John Madieu To: john.madieu.xa@bp.renesas.com, conor+dt@kernel.org, daniel.lezcano@linaro.org, geert+renesas@glider.be, krzk+dt@kernel.org, rafael@kernel.org Cc: biju.das.jz@bp.renesas.com, devicetree@vger.kernel.org, john.madieu@gmail.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-renesas-soc@vger.kernel.org, lukasz.luba@arm.com, magnus.damm@gmail.com, robh@kernel.org, rui.zhang@intel.com, sboyd@kernel.org, niklas.soderlund+renesas@ragnatech.se, Krzysztof Kozlowski Subject: [PATCH v6 2/5] dt-bindings: thermal: r9a09g047-tsu: Document the TSU unit Date: Thu, 22 May 2025 20:22:45 +0200 Message-ID: <20250522182252.1593159-3-john.madieu.xa@bp.renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250522182252.1593159-1-john.madieu.xa@bp.renesas.com> References: <20250522182252.1593159-1-john.madieu.xa@bp.renesas.com> Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The Renesas RZ/G3E SoC includes a Thermal Sensor Unit (TSU) block designed to measure the junction temperature. The device provides real-time temperature measurements for thermal management, utilizing a single dedicated channel (channel 1) for temperature sensing. Reviewed-by: Krzysztof Kozlowski Signed-off-by: John Madieu --- Changes: v1 -> v2: * Fixes reg property specifier to get rid of yamlint warnings * Fixes IRQ name to reflect TSU expectations v2 -> v3: * Removees useless 'renesas,tsu-operating-mode' property v3 -> v4: * Fixes commit message * Fixes interrupt description * Removes trip point definition v5: no changes v6: no changes .../thermal/renesas,r9a09g047-tsu.yaml | 81 +++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal/renesas,r9a09g047-tsu.yaml diff --git a/Documentation/devicetree/bindings/thermal/renesas,r9a09g047-tsu.yaml b/Documentation/devicetree/bindings/thermal/renesas,r9a09g047-tsu.yaml new file mode 100644 index 000000000000..ef9308089bfc --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/renesas,r9a09g047-tsu.yaml @@ -0,0 +1,81 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/thermal/renesas,r9a09g047-tsu.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas RZ/G3E Temperature Sensor Unit (TSU) + +maintainers: + - John Madieu + +description: + The Temperature Sensor Unit (TSU) is an integrated thermal sensor that + monitors the chip temperature on the Renesas RZ/G3E SoC. The TSU provides + real-time temperature measurements for thermal management. + +properties: + compatible: + const: renesas,r9a09g047-tsu + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + resets: + maxItems: 1 + + power-domains: + maxItems: 1 + + interrupts: + items: + - description: Conversion complete interrupt signal (pulse) + - description: Comparison result interrupt signal (level) + + interrupt-names: + items: + - const: adi + - const: adcmpi + + "#thermal-sensor-cells": + const: 0 + + renesas,tsu-calibration-sys: + $ref: /schemas/types.yaml#/definitions/phandle + description: | + Phandle to the system controller (sys) that contains the TSU + calibration values used for temperature calculations. + +required: + - compatible + - reg + - clocks + - resets + - power-domains + - interrupts + - interrupt-names + - "#thermal-sensor-cells" + - renesas,tsu-calibration-sys + +additionalProperties: false + +examples: + - | + #include + #include + + tsu: thermal@14002000 { + compatible = "renesas,r9a09g047-tsu"; + reg = <0x14002000 0x1000>; + clocks = <&cpg CPG_MOD 0x10a>; + resets = <&cpg 0xf8>; + power-domains = <&cpg>; + interrupts = , + ; + interrupt-names = "adi", "adcmpi"; + #thermal-sensor-cells = <0>; + renesas,tsu-calibration-sys = <&sys>; + };