xref: /freebsd/sys/contrib/device-tree/Bindings/hwmon/lm75.yaml (revision 07cc7ea7386c5428cef9e8f06d4ebd8144dec311)
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  - if:
61      not:
62        properties:
63          compatible:
64            contains:
65              enum:
66                - ams,as6200
67                - ti,tmp100
68                - ti,tmp101
69                - ti,tmp112
70    then:
71      properties:
72        interrupts: false
73
74additionalProperties: false
75
76examples:
77  - |
78    i2c {
79      #address-cells = <1>;
80      #size-cells = <0>;
81
82      sensor@48 {
83        compatible = "st,stlm75";
84        reg = <0x48>;
85        vs-supply = <&vs>;
86      };
87    };
88  - |
89    #include <dt-bindings/interrupt-controller/irq.h>
90    i2c {
91      #address-cells = <1>;
92      #size-cells = <0>;
93
94      temperature-sensor@48 {
95        compatible = "ams,as6200";
96        reg = <0x48>;
97        vs-supply = <&vs>;
98        interrupt-parent = <&gpio1>;
99        interrupts = <17 IRQ_TYPE_EDGE_BOTH>;
100      };
101    };
102