Skip to content

Commit 9460347

Browse files
bijudasdlezcano
authored andcommitted
dt-bindings: thermal: Document Renesas RZ/G2L TSU
Document the Thermal Sensor Unit(TSU) in the RZ/G2L SoC. Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Reviewed-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20211130155757.17837-2-biju.das.jz@bp.renesas.com Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
1 parent 8152d2a commit 9460347

File tree

1 file changed

+76
-0
lines changed

1 file changed

+76
-0
lines changed
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/thermal/rzg2l-thermal.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Renesas RZ/G2L Thermal Sensor Unit
8+
9+
description:
10+
On RZ/G2L SoCs, the thermal sensor unit (TSU) measures the
11+
temperature(Tj) inside the LSI.
12+
13+
maintainers:
14+
- Biju Das <biju.das.jz@bp.renesas.com>
15+
16+
properties:
17+
compatible:
18+
items:
19+
- enum:
20+
- renesas,r9a07g044-tsu # RZ/G2{L,LC}
21+
- const: renesas,rzg2l-tsu
22+
23+
reg:
24+
maxItems: 1
25+
26+
clocks:
27+
maxItems: 1
28+
29+
power-domains:
30+
maxItems: 1
31+
32+
resets:
33+
maxItems: 1
34+
35+
"#thermal-sensor-cells":
36+
const: 1
37+
38+
required:
39+
- compatible
40+
- reg
41+
- clocks
42+
- power-domains
43+
- resets
44+
- "#thermal-sensor-cells"
45+
46+
additionalProperties: false
47+
48+
examples:
49+
- |
50+
#include <dt-bindings/clock/r9a07g044-cpg.h>
51+
52+
tsu: thermal@10059400 {
53+
compatible = "renesas,r9a07g044-tsu",
54+
"renesas,rzg2l-tsu";
55+
reg = <0x10059400 0x400>;
56+
clocks = <&cpg CPG_MOD R9A07G044_TSU_PCLK>;
57+
resets = <&cpg R9A07G044_TSU_PRESETN>;
58+
power-domains = <&cpg>;
59+
#thermal-sensor-cells = <1>;
60+
};
61+
62+
thermal-zones {
63+
cpu-thermal {
64+
polling-delay-passive = <250>;
65+
polling-delay = <1000>;
66+
thermal-sensors = <&tsu 0>;
67+
68+
trips {
69+
sensor_crit: sensor-crit {
70+
temperature = <125000>;
71+
hysteresis = <1000>;
72+
type = "critical";
73+
};
74+
};
75+
};
76+
};

0 commit comments

Comments
 (0)