Skip to content

Commit a3152e5

Browse files
claudiubezneadlezcano
authored andcommitted
dt-bindings: thermal: r9a08g045-tsu: Document the TSU unit
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) <robh@kernel.org> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Link: https://lore.kernel.org/r/20250810122125.792966-2-claudiu.beznea.uj@bp.renesas.com Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
1 parent 5517328 commit a3152e5

1 file changed

Lines changed: 93 additions & 0 deletions

File tree

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
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,r9a08g045-tsu.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Renesas RZ/G3S Thermal Sensor Unit
8+
9+
description:
10+
The thermal sensor unit (TSU) measures the temperature(Tj) inside
11+
the LSI.
12+
13+
maintainers:
14+
- Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
15+
16+
$ref: thermal-sensor.yaml#
17+
18+
properties:
19+
compatible:
20+
const: renesas,r9a08g045-tsu
21+
22+
reg:
23+
maxItems: 1
24+
25+
clocks:
26+
items:
27+
- description: TSU module clock
28+
29+
power-domains:
30+
maxItems: 1
31+
32+
resets:
33+
items:
34+
- description: TSU module reset
35+
36+
io-channels:
37+
items:
38+
- description: ADC channel which reports the TSU temperature
39+
40+
io-channel-names:
41+
items:
42+
- const: tsu
43+
44+
"#thermal-sensor-cells":
45+
const: 0
46+
47+
required:
48+
- compatible
49+
- reg
50+
- clocks
51+
- power-domains
52+
- resets
53+
- io-channels
54+
- io-channel-names
55+
- '#thermal-sensor-cells'
56+
57+
additionalProperties: false
58+
59+
examples:
60+
- |
61+
#include <dt-bindings/clock/r9a08g045-cpg.h>
62+
63+
tsu: thermal@10059000 {
64+
compatible = "renesas,r9a08g045-tsu";
65+
reg = <0x10059000 0x1000>;
66+
clocks = <&cpg CPG_MOD R9A08G045_TSU_PCLK>;
67+
resets = <&cpg R9A08G045_TSU_PRESETN>;
68+
power-domains = <&cpg>;
69+
#thermal-sensor-cells = <0>;
70+
io-channels = <&adc 8>;
71+
io-channel-names = "tsu";
72+
};
73+
74+
thermal-zones {
75+
cpu-thermal {
76+
polling-delay-passive = <250>;
77+
polling-delay = <1000>;
78+
thermal-sensors = <&tsu>;
79+
80+
trips {
81+
sensor_crit: sensor-crit {
82+
temperature = <125000>;
83+
hysteresis = <1000>;
84+
type = "critical";
85+
};
86+
target: trip-point {
87+
temperature = <100000>;
88+
hysteresis = <1000>;
89+
type = "passive";
90+
};
91+
};
92+
};
93+
};

0 commit comments

Comments
 (0)