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