Skip to content

Commit e74491d

Browse files
lategoodbyedlezcano
authored andcommitted
dt-bindings: thermal: convert bcm2835-thermal bindings to YAML
Convert the DT binding document for bcm2835-thermal from .txt to YAML. Signed-off-by: Stefan Wahren <[email protected]> Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 04bf1fe commit e74491d

File tree

2 files changed

+48
-41
lines changed

2 files changed

+48
-41
lines changed

Documentation/devicetree/bindings/thermal/brcm,bcm2835-thermal.txt

Lines changed: 0 additions & 41 deletions
This file was deleted.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/thermal/brcm,bcm2835-thermal.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Broadcom BCM2835 thermal sensor
8+
9+
maintainers:
10+
- Stefan Wahren <[email protected]>
11+
12+
allOf:
13+
- $ref: thermal-sensor.yaml#
14+
15+
properties:
16+
compatible:
17+
enum:
18+
- brcm,bcm2835-thermal
19+
- brcm,bcm2836-thermal
20+
- brcm,bcm2837-thermal
21+
22+
reg:
23+
maxItems: 1
24+
25+
clocks:
26+
maxItems: 1
27+
28+
"#thermal-sensor-cells":
29+
const: 0
30+
31+
unevaluatedProperties: false
32+
33+
required:
34+
- compatible
35+
- reg
36+
- clocks
37+
- '#thermal-sensor-cells'
38+
39+
examples:
40+
- |
41+
#include <dt-bindings/clock/bcm2835.h>
42+
43+
thermal@7e212000 {
44+
compatible = "brcm,bcm2835-thermal";
45+
reg = <0x7e212000 0x8>;
46+
clocks = <&clocks BCM2835_CLOCK_TSENS>;
47+
#thermal-sensor-cells = <0>;
48+
};

0 commit comments

Comments
 (0)