Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/thermal/st,stm32-thermal.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: STMicroelectronics STM32 digital thermal sensor (DTS) binding
0008 
0009 maintainers:
0010   - Pascal Paillet <p.paillet@foss.st.com>
0011 
0012 properties:
0013   compatible:
0014     const: st,stm32-thermal
0015 
0016   reg:
0017     maxItems: 1
0018 
0019   interrupts:
0020     maxItems: 1
0021 
0022   clocks:
0023     maxItems: 1
0024 
0025   clock-names:
0026     items:
0027       - const: pclk
0028 
0029   "#thermal-sensor-cells":
0030     const: 0
0031 
0032 required:
0033   - "#thermal-sensor-cells"
0034   - compatible
0035   - reg
0036   - interrupts
0037   - clocks
0038   - clock-names
0039 
0040 additionalProperties: false
0041 
0042 examples:
0043   - |
0044     #include <dt-bindings/interrupt-controller/arm-gic.h>
0045     #include <dt-bindings/clock/stm32mp1-clks.h>
0046     dts: thermal@50028000 {
0047         compatible = "st,stm32-thermal";
0048         reg = <0x50028000 0x100>;
0049         clocks = <&rcc TMPSENS>;
0050         clock-names = "pclk";
0051         #thermal-sensor-cells = <0>;
0052         interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>;
0053     };
0054 
0055     thermal-zones {
0056         cpu_thermal: cpu-thermal {
0057             polling-delay-passive = <0>;
0058             polling-delay = <0>;
0059 
0060             thermal-sensors = <&dts>;
0061             trips {
0062                 cpu_alert1: cpu-alert1 {
0063                     temperature = <85000>;
0064                     hysteresis = <0>;
0065                     type = "passive";
0066                 };
0067 
0068                 cpu_crit: cpu-crit {
0069                     temperature = <120000>;
0070                     hysteresis = <0>;
0071                     type = "critical";
0072                 };
0073             };
0074 
0075             cooling-maps {
0076             };
0077         };
0078     };
0079 ...