Skip to content

Commit ff96922

Browse files
GallaisPoutinedlezcano
authored andcommitted
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 <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 58b1569 commit ff96922

File tree

2 files changed

+58
-32
lines changed

2 files changed

+58
-32
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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 <[email protected]>
11+
- Lee Jones <[email protected]>
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+
...

Documentation/devicetree/bindings/thermal/st-thermal.txt

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)