Skip to content

Commit 5561065

Browse files
javiercarrascocruzgroeck
authored andcommitted
dt-bindings: hwmon: stts751: convert to dtschema
Convert existing binding to support validation. This is a straightforward conversion with no new properties. Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com> Link: https://lore.kernel.org/r/20240322-hwmon_dtschema-v3-4-6697de2a8228@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
1 parent 29196d4 commit 5561065

File tree

2 files changed

+41
-15
lines changed

2 files changed

+41
-15
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/hwmon/st,stts751.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: STTS751 Thermometer
8+
9+
maintainers:
10+
- Javier Carrasco <javier.carrasco.cruz@gmail.com>
11+
12+
properties:
13+
compatible:
14+
const: st,stts751
15+
16+
reg:
17+
maxItems: 1
18+
19+
smbus-timeout-disable:
20+
description:
21+
When set, the smbus timeout function will be disabled.
22+
$ref: /schemas/types.yaml#/definitions/flag
23+
24+
required:
25+
- compatible
26+
- reg
27+
28+
additionalProperties: false
29+
30+
examples:
31+
- |
32+
i2c {
33+
#address-cells = <1>;
34+
#size-cells = <0>;
35+
36+
thermometer@48 {
37+
compatible = "st,stts751";
38+
reg = <0x48>;
39+
smbus-timeout-disable;
40+
};
41+
};

Documentation/devicetree/bindings/hwmon/stts751.txt

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

0 commit comments

Comments
 (0)