Skip to content

Commit 3c09ca8

Browse files
committed
dt-bindings: thermal: Convert amazon,al-thermal to DT schema
Convert amazon,al-thermal binding to DT schema format. It's a straight-forward conversion. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://patch.msgid.link/20251013215820.783272-1-robh@kernel.org Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
1 parent b012c2a commit 3c09ca8

3 files changed

Lines changed: 51 additions & 34 deletions

File tree

Documentation/devicetree/bindings/thermal/amazon,al-thermal.txt

Lines changed: 0 additions & 33 deletions
This file was deleted.
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/thermal/amazon,al-thermal.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Amazon Annapurna Labs Thermal Sensor
8+
9+
maintainers:
10+
- Talel Shenhar <talel@amazon.com>
11+
12+
description:
13+
Simple thermal device that allows temperature reading by a single MMIO
14+
transaction.
15+
16+
properties:
17+
compatible:
18+
items:
19+
- const: amazon,al-thermal
20+
21+
reg:
22+
maxItems: 1
23+
24+
'#thermal-sensor-cells':
25+
const: 1
26+
27+
additionalProperties: false
28+
29+
examples:
30+
- |
31+
thermal: thermal@5002860 {
32+
compatible = "amazon,al-thermal";
33+
reg = <0x05002860 0x1>;
34+
#thermal-sensor-cells = <0x1>;
35+
};
36+
37+
thermal-zones {
38+
z0-thermal {
39+
polling-delay-passive = <250>;
40+
polling-delay = <1000>;
41+
thermal-sensors = <&thermal 0>;
42+
trips {
43+
critical {
44+
temperature = <105000>;
45+
hysteresis = <2000>;
46+
type = "critical";
47+
};
48+
};
49+
};
50+
};

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@ F: drivers/edac/al_mc_edac.c
973973
AMAZON ANNAPURNA LABS THERMAL MMIO DRIVER
974974
M: Talel Shenhar <talel@amazon.com>
975975
S: Maintained
976-
F: Documentation/devicetree/bindings/thermal/amazon,al-thermal.txt
976+
F: Documentation/devicetree/bindings/thermal/amazon,al-thermal.yaml
977977
F: drivers/thermal/thermal_mmio.c
978978

979979
AMAZON ETHERNET DRIVERS

0 commit comments

Comments
 (0)