Skip to content

Commit caf41eb

Browse files
John Madieudlezcano
authored andcommitted
dt-bindings: thermal: r9a09g047-tsu: Document the TSU unit
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: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: John Madieu <john.madieu.xa@bp.renesas.com> Link: https://lore.kernel.org/r/20250917170202.197929-2-john.madieu.xa@bp.renesas.com Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
1 parent 3762f58 commit caf41eb

1 file changed

Lines changed: 87 additions & 0 deletions

File tree

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/thermal/renesas,r9a09g047-tsu.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Renesas RZ/G3E Temperature Sensor Unit (TSU)
8+
9+
maintainers:
10+
- John Madieu <john.madieu.xa@bp.renesas.com>
11+
12+
description:
13+
The Temperature Sensor Unit (TSU) is an integrated thermal sensor that
14+
monitors the chip temperature on the Renesas RZ/G3E SoC. The TSU provides
15+
real-time temperature measurements for thermal management.
16+
17+
properties:
18+
compatible:
19+
const: renesas,r9a09g047-tsu
20+
21+
reg:
22+
maxItems: 1
23+
24+
clocks:
25+
maxItems: 1
26+
27+
resets:
28+
maxItems: 1
29+
30+
power-domains:
31+
maxItems: 1
32+
33+
interrupts:
34+
items:
35+
- description: Conversion complete interrupt signal (pulse)
36+
- description: Comparison result interrupt signal (level)
37+
38+
interrupt-names:
39+
items:
40+
- const: adi
41+
- const: adcmpi
42+
43+
"#thermal-sensor-cells":
44+
const: 0
45+
46+
renesas,tsu-trim:
47+
$ref: /schemas/types.yaml#/definitions/phandle-array
48+
items:
49+
- items:
50+
- description: phandle to system controller
51+
- description: offset of trim registers
52+
description:
53+
Phandle and offset to the system controller containing the TSU
54+
calibration trim values. The offset points to the first trim register
55+
(OTPTSU1TRMVAL0), with the second trim register (OTPTSU1TRMVAL1) located
56+
at offset + 4.
57+
58+
required:
59+
- compatible
60+
- reg
61+
- clocks
62+
- resets
63+
- power-domains
64+
- interrupts
65+
- interrupt-names
66+
- "#thermal-sensor-cells"
67+
- renesas,tsu-trim
68+
69+
additionalProperties: false
70+
71+
examples:
72+
- |
73+
#include <dt-bindings/clock/renesas,r9a09g047-cpg.h>
74+
#include <dt-bindings/interrupt-controller/arm-gic.h>
75+
76+
thermal-sensor@14002000 {
77+
compatible = "renesas,r9a09g047-tsu";
78+
reg = <0x14002000 0x1000>;
79+
clocks = <&cpg CPG_MOD 0x10a>;
80+
resets = <&cpg 0xf8>;
81+
power-domains = <&cpg>;
82+
interrupts = <GIC_SPI 250 IRQ_TYPE_EDGE_RISING>,
83+
<GIC_SPI 251 IRQ_TYPE_LEVEL_HIGH>;
84+
interrupt-names = "adi", "adcmpi";
85+
#thermal-sensor-cells = <0>;
86+
renesas,tsu-trim = <&sys 0x330>;
87+
};

0 commit comments

Comments
 (0)