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