xref: /freebsd/sys/contrib/device-tree/Bindings/thermal/st,stm32-thermal.yaml (revision b197d4b893974c9eb4d7b38704c6d5c486235d6f)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/thermal/st,stm32-thermal.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: STMicroelectronics STM32 digital thermal sensor (DTS) binding
8
9maintainers:
10  - Pascal Paillet <p.paillet@foss.st.com>
11
12properties:
13  compatible:
14    const: st,stm32-thermal
15
16  reg:
17    maxItems: 1
18
19  interrupts:
20    maxItems: 1
21
22  clocks:
23    maxItems: 1
24
25  clock-names:
26    items:
27      - const: pclk
28
29  "#thermal-sensor-cells":
30    const: 0
31
32required:
33  - "#thermal-sensor-cells"
34  - compatible
35  - reg
36  - interrupts
37  - clocks
38  - clock-names
39
40additionalProperties: false
41
42examples:
43  - |
44    #include <dt-bindings/interrupt-controller/arm-gic.h>
45    #include <dt-bindings/clock/stm32mp1-clks.h>
46    dts: thermal@50028000 {
47        compatible = "st,stm32-thermal";
48        reg = <0x50028000 0x100>;
49        clocks = <&rcc TMPSENS>;
50        clock-names = "pclk";
51        #thermal-sensor-cells = <0>;
52        interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>;
53    };
54
55    thermal-zones {
56        cpu_thermal: cpu-thermal {
57            polling-delay-passive = <0>;
58            polling-delay = <0>;
59
60            thermal-sensors = <&dts>;
61            trips {
62                cpu_alert1: cpu-alert1 {
63                    temperature = <85000>;
64                    hysteresis = <0>;
65                    type = "passive";
66                };
67
68                cpu_crit: cpu-crit {
69                    temperature = <120000>;
70                    hysteresis = <0>;
71                    type = "critical";
72                };
73            };
74
75            cooling-maps {
76            };
77        };
78    };
79...
80