mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-03 01:28:04 +00:00
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>
This commit is contained in:
parent
f6a496a5ce
commit
3e37c9d48f
@ -1,39 +0,0 @@
|
|||||||
*LM75 hwmon sensor.
|
|
||||||
|
|
||||||
Required properties:
|
|
||||||
- compatible: manufacturer and chip name, one of
|
|
||||||
"adi,adt75",
|
|
||||||
"dallas,ds1775",
|
|
||||||
"dallas,ds75",
|
|
||||||
"dallas,ds7505",
|
|
||||||
"gmt,g751",
|
|
||||||
"national,lm75",
|
|
||||||
"national,lm75a",
|
|
||||||
"national,lm75b",
|
|
||||||
"maxim,max6625",
|
|
||||||
"maxim,max6626",
|
|
||||||
"maxim,max31725",
|
|
||||||
"maxim,max31726",
|
|
||||||
"maxim,mcp980x",
|
|
||||||
"nxp,pct2075",
|
|
||||||
"st,stds75",
|
|
||||||
"st,stlm75",
|
|
||||||
"microchip,tcn75",
|
|
||||||
"ti,tmp100",
|
|
||||||
"ti,tmp101",
|
|
||||||
"ti,tmp105",
|
|
||||||
"ti,tmp112",
|
|
||||||
"ti,tmp175",
|
|
||||||
"ti,tmp275",
|
|
||||||
"ti,tmp75",
|
|
||||||
"ti,tmp75b",
|
|
||||||
"ti,tmp75c",
|
|
||||||
|
|
||||||
- reg: I2C bus address of the device
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
sensor@48 {
|
|
||||||
compatible = "st,stlm75";
|
|
||||||
reg = <0x48>;
|
|
||||||
};
|
|
62
Documentation/devicetree/bindings/hwmon/lm75.yaml
Normal file
62
Documentation/devicetree/bindings/hwmon/lm75.yaml
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
# SPDX-License-Identifier: GPL-2.0-only or BSD-2-Clause
|
||||||
|
%YAML 1.2
|
||||||
|
---
|
||||||
|
$id: http://devicetree.org/schemas/hwmon/lm75.yaml#
|
||||||
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
||||||
|
|
||||||
|
title: LM75 hwmon sensor
|
||||||
|
|
||||||
|
maintainers:
|
||||||
|
- Jean Delvare <jdelvare@suse.com>
|
||||||
|
- Guenter Roeck <linux@roeck-us.net>
|
||||||
|
|
||||||
|
properties:
|
||||||
|
compatible:
|
||||||
|
enum:
|
||||||
|
- adi,adt75
|
||||||
|
- dallas,ds1775
|
||||||
|
- dallas,ds75
|
||||||
|
- dallas,ds7505
|
||||||
|
- gmt,g751
|
||||||
|
- national,lm75
|
||||||
|
- national,lm75a
|
||||||
|
- national,lm75b
|
||||||
|
- maxim,max6625
|
||||||
|
- maxim,max6626
|
||||||
|
- maxim,max31725
|
||||||
|
- maxim,max31726
|
||||||
|
- maxim,mcp980x
|
||||||
|
- nxp,pct2075
|
||||||
|
- st,stds75
|
||||||
|
- st,stlm75
|
||||||
|
- microchip,tcn75
|
||||||
|
- ti,tmp100
|
||||||
|
- ti,tmp101
|
||||||
|
- ti,tmp105
|
||||||
|
- ti,tmp112
|
||||||
|
- ti,tmp175
|
||||||
|
- ti,tmp275
|
||||||
|
- ti,tmp75
|
||||||
|
- ti,tmp75b
|
||||||
|
- ti,tmp75c
|
||||||
|
|
||||||
|
reg:
|
||||||
|
maxItems: 1
|
||||||
|
|
||||||
|
required:
|
||||||
|
- compatible
|
||||||
|
- reg
|
||||||
|
|
||||||
|
additionalProperties: false
|
||||||
|
|
||||||
|
examples:
|
||||||
|
- |
|
||||||
|
i2c {
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
|
|
||||||
|
sensor@48 {
|
||||||
|
compatible = "st,stlm75";
|
||||||
|
reg = <0x48>;
|
||||||
|
};
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user