File Index
Files and directories
Sign in
FILE

renesas,r9a08g045-tsu.yaml

File preview with syntax highlighting.

linux-6.19.14/Documentation/devicetree/bindings/thermal/renesas,r9a08g045-tsu.yaml YAML
 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
 7title: Renesas RZ/G3S Thermal Sensor Unit
 8
 9description:
10  The thermal sensor unit (TSU) measures the temperature(Tj) inside
11  the LSI.
12
13maintainers:
14  - Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
15
16$ref: thermal-sensor.yaml#
17
18properties:
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
47required:
48  - compatible
49  - reg
50  - clocks
51  - power-domains
52  - resets
53  - io-channels
54  - io-channel-names
55  - '#thermal-sensor-cells'
56
57additionalProperties: false
58
59examples:
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    };
~/ Read-only file preview.