xref: /linux/Documentation/devicetree/bindings/hwmon/lm75.yaml (revision 3a2c4d55e32ad65efebdb6de44eef3bfa08bb49d)
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
57  ti,alert-polarity-active-high:
58    description: Alert pin is asserted based on the value of alert polarity
59      bit of configuration register. Default value is normal (0 which maps to
60      active-low). The other value is inverted (1 which maps to active-high).
61      Specify this property to set the alert polarity to active-high.
62    $ref: /schemas/types.yaml#/definitions/flag
63
64required:
65  - compatible
66  - reg
67
68allOf:
69  - $ref: hwmon-common.yaml#
70  - if:
71      not:
72        properties:
73          compatible:
74            contains:
75              enum:
76                - ams,as6200
77                - ti,tmp100
78                - ti,tmp101
79                - ti,tmp112
80                - ti,tmp75
81    then:
82      properties:
83        interrupts: false
84
85unevaluatedProperties: false
86
87examples:
88  - |
89    i2c {
90      #address-cells = <1>;
91      #size-cells = <0>;
92
93      sensor@48 {
94        compatible = "st,stlm75";
95        reg = <0x48>;
96        vs-supply = <&vs>;
97      };
98    };
99  - |
100    #include <dt-bindings/interrupt-controller/irq.h>
101    i2c {
102      #address-cells = <1>;
103      #size-cells = <0>;
104
105      temperature-sensor@48 {
106        compatible = "ams,as6200";
107        reg = <0x48>;
108        vs-supply = <&vs>;
109        interrupt-parent = <&gpio1>;
110        interrupts = <17 IRQ_TYPE_EDGE_BOTH>;
111      };
112    };
113