Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: thermal: convert st,stih407-thermal to DT schema

'st,passive_colling_temp' does not appear in the device-tree, 'reg' and
'#thermal-sensor-cells' are also missing in the device description.

Convert st,stih407-thermal binding to DT schema format in order to clean
unused 'st,passive_cooling_temp' and add missing properties.

Signed-off-by: Raphael Gallais-Pou <rgallaispou@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20240320-thermal-v3-1-700296694c4a@gmail.com

authored by

Raphael Gallais-Pou and committed by
Daniel Lezcano
ff96922d 58b15692

+58 -32
+58
Documentation/devicetree/bindings/thermal/st,stih407-thermal.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/st,stih407-thermal.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: STMicroelectronics STi digital thermal sensor (DTS) 8 + 9 + maintainers: 10 + - Patrice Chotard <patrice.chotard@foss.st.com> 11 + - Lee Jones <lee@kernel.org> 12 + 13 + allOf: 14 + - $ref: thermal-sensor.yaml 15 + 16 + properties: 17 + compatible: 18 + const: st,stih407-thermal 19 + 20 + reg: 21 + maxItems: 1 22 + 23 + clocks: 24 + maxItems: 1 25 + 26 + clock-names: 27 + items: 28 + - const: thermal 29 + 30 + interrupts: 31 + description: 32 + For thermal sensors for which no interrupt has been defined, a polling 33 + delay of 1000ms will be used to read the temperature from device. 34 + maxItems: 1 35 + 36 + '#thermal-sensor-cells': 37 + const: 0 38 + 39 + required: 40 + - compatible 41 + - reg 42 + - clocks 43 + - clock-names 44 + 45 + unevaluatedProperties: false 46 + 47 + examples: 48 + - | 49 + #include <dt-bindings/interrupt-controller/arm-gic.h> 50 + temperature-sensor@91a0000 { 51 + compatible = "st,stih407-thermal"; 52 + reg = <0x91a0000 0x28>; 53 + clock-names = "thermal"; 54 + clocks = <&CLK_SYSIN>; 55 + interrupts = <GIC_SPI 205 IRQ_TYPE_EDGE_RISING>; 56 + #thermal-sensor-cells = <0>; 57 + }; 58 + ...
-32
Documentation/devicetree/bindings/thermal/st-thermal.txt
··· 1 - Binding for Thermal Sensor driver for STMicroelectronics STi series of SoCs. 2 - 3 - Required parameters: 4 - ------------------- 5 - 6 - compatible : Should be "st,stih407-thermal" 7 - 8 - clock-names : Should be "thermal". 9 - See: Documentation/devicetree/bindings/resource-names.txt 10 - clocks : Phandle of the clock used by the thermal sensor. 11 - See: Documentation/devicetree/bindings/clock/clock-bindings.txt 12 - 13 - Optional parameters: 14 - ------------------- 15 - 16 - reg : For non-sysconf based sensors, this should be the physical base 17 - address and length of the sensor's registers. 18 - interrupts : Standard way to define interrupt number. 19 - NB: For thermal sensor's for which no interrupt has been 20 - defined, a polling delay of 1000ms will be used to read the 21 - temperature from device. 22 - 23 - Example: 24 - 25 - temp0@91a0000 { 26 - compatible = "st,stih407-thermal"; 27 - reg = <0x91a0000 0x28>; 28 - clock-names = "thermal"; 29 - clocks = <&CLK_SYSIN>; 30 - interrupts = <GIC_SPI 205 IRQ_TYPE_EDGE_RISING>; 31 - st,passive_cooling_temp = <110>; 32 - };