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
7title: Renesas RZ/G2L Thermal Sensor Unit
8
9description:
10  On RZ/G2L SoCs, the thermal sensor unit (TSU) measures the
11  temperature(Tj) inside the LSI.
12
13maintainers:
14  - Biju Das <biju.das.jz@bp.renesas.com>
15
16properties:
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
38required:
39  - compatible
40  - reg
41  - clocks
42  - power-domains
43  - resets
44  - "#thermal-sensor-cells"
45
46additionalProperties: false
47
48examples:
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    };
77