xref: /linux/Documentation/devicetree/bindings/hwmon/lm75.yaml (revision 55a42f78ffd386e01a5404419f8c5ded7db70a21)
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
7title: LM75 hwmon sensor
8
9maintainers:
10  - Jean Delvare <jdelvare@suse.com>
11  - Guenter Roeck <linux@roeck-us.net>
12
13properties:
14  compatible:
15    enum:
16      - adi,adt75
17      - ams,as6200
18      - atmel,at30ts74
19      - dallas,ds1775
20      - dallas,ds75
21      - dallas,ds7505
22      - gmt,g751
23      - national,lm75
24      - national,lm75a
25      - national,lm75b
26      - maxim,max6625
27      - maxim,max6626
28      - maxim,max31725
29      - maxim,max31726
30      - maxim,mcp980x
31      - nxp,p3t1750
32      - nxp,p3t1755
33      - nxp,pct2075
34      - st,stds75
35      - st,stlm75
36      - microchip,tcn75
37      - ti,tmp1075
38      - ti,tmp100
39      - ti,tmp101
40      - ti,tmp105
41      - ti,tmp112
42      - ti,tmp175
43      - ti,tmp275
44      - ti,tmp75
45      - ti,tmp75b
46      - ti,tmp75c
47
48  reg:
49    maxItems: 1
50
51  vs-supply:
52    description: phandle to the regulator that provides the +VS supply
53
54  interrupts:
55    maxItems: 1
56
57required:
58  - compatible
59  - reg
60
61allOf:
62  - $ref: hwmon-common.yaml#
63  - if:
64      not:
65        properties:
66          compatible:
67            contains:
68              enum:
69                - ams,as6200
70                - ti,tmp100
71                - ti,tmp101
72                - ti,tmp112
73                - ti,tmp75
74    then:
75      properties:
76        interrupts: false
77
78unevaluatedProperties: false
79
80examples:
81  - |
82    i2c {
83      #address-cells = <1>;
84      #size-cells = <0>;
85
86      sensor@48 {
87        compatible = "st,stlm75";
88        reg = <0x48>;
89        vs-supply = <&vs>;
90      };
91    };
92  - |
93    #include <dt-bindings/interrupt-controller/irq.h>
94    i2c {
95      #address-cells = <1>;
96      #size-cells = <0>;
97
98      temperature-sensor@48 {
99        compatible = "ams,as6200";
100        reg = <0x48>;
101        vs-supply = <&vs>;
102        interrupt-parent = <&gpio1>;
103        interrupts = <17 IRQ_TYPE_EDGE_BOTH>;
104      };
105    };
106