xref: /linux/Documentation/devicetree/bindings/hwmon/lm75.yaml (revision cffaefd15a8f423cdee5d8eac15d267bc92de314)
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,pct2075
32      - st,stds75
33      - st,stlm75
34      - microchip,tcn75
35      - ti,tmp1075
36      - ti,tmp100
37      - ti,tmp101
38      - ti,tmp105
39      - ti,tmp112
40      - ti,tmp175
41      - ti,tmp275
42      - ti,tmp75
43      - ti,tmp75b
44      - ti,tmp75c
45
46  reg:
47    maxItems: 1
48
49  vs-supply:
50    description: phandle to the regulator that provides the +VS supply
51
52  interrupts:
53    maxItems: 1
54
55required:
56  - compatible
57  - reg
58
59allOf:
60  - $ref: hwmon-common.yaml#
61  - if:
62      not:
63        properties:
64          compatible:
65            contains:
66              enum:
67                - ams,as6200
68                - ti,tmp100
69                - ti,tmp101
70                - ti,tmp112
71    then:
72      properties:
73        interrupts: false
74
75unevaluatedProperties: false
76
77examples:
78  - |
79    i2c {
80      #address-cells = <1>;
81      #size-cells = <0>;
82
83      sensor@48 {
84        compatible = "st,stlm75";
85        reg = <0x48>;
86        vs-supply = <&vs>;
87      };
88    };
89  - |
90    #include <dt-bindings/interrupt-controller/irq.h>
91    i2c {
92      #address-cells = <1>;
93      #size-cells = <0>;
94
95      temperature-sensor@48 {
96        compatible = "ams,as6200";
97        reg = <0x48>;
98        vs-supply = <&vs>;
99        interrupt-parent = <&gpio1>;
100        interrupts = <17 IRQ_TYPE_EDGE_BOTH>;
101      };
102    };
103