Skip to content

Commit 3e37c9d

Browse files
AlbanBedelgroeck
authored andcommitted
dt-bindings: hwmon: Convert lm75 bindings to yaml
In order to automate the verification of DT nodes convert lm75.txt to lm75.yaml. Signed-off-by: Alban Bedel <alban.bedel@aerq.com> Reviewed-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20201001145738.17326-2-alban.bedel@aerq.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
1 parent f6a496a commit 3e37c9d

2 files changed

Lines changed: 62 additions & 39 deletions

File tree

Documentation/devicetree/bindings/hwmon/lm75.txt

Lines changed: 0 additions & 39 deletions
This file was deleted.
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# SPDX-License-Identifier: GPL-2.0-only or BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/hwmon/lm75.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: LM75 hwmon sensor
8+
9+
maintainers:
10+
- Jean Delvare <jdelvare@suse.com>
11+
- Guenter Roeck <linux@roeck-us.net>
12+
13+
properties:
14+
compatible:
15+
enum:
16+
- adi,adt75
17+
- dallas,ds1775
18+
- dallas,ds75
19+
- dallas,ds7505
20+
- gmt,g751
21+
- national,lm75
22+
- national,lm75a
23+
- national,lm75b
24+
- maxim,max6625
25+
- maxim,max6626
26+
- maxim,max31725
27+
- maxim,max31726
28+
- maxim,mcp980x
29+
- nxp,pct2075
30+
- st,stds75
31+
- st,stlm75
32+
- microchip,tcn75
33+
- ti,tmp100
34+
- ti,tmp101
35+
- ti,tmp105
36+
- ti,tmp112
37+
- ti,tmp175
38+
- ti,tmp275
39+
- ti,tmp75
40+
- ti,tmp75b
41+
- ti,tmp75c
42+
43+
reg:
44+
maxItems: 1
45+
46+
required:
47+
- compatible
48+
- reg
49+
50+
additionalProperties: false
51+
52+
examples:
53+
- |
54+
i2c {
55+
#address-cells = <1>;
56+
#size-cells = <0>;
57+
58+
sensor@48 {
59+
compatible = "st,stlm75";
60+
reg = <0x48>;
61+
};
62+
};

0 commit comments

Comments
 (0)