Merge tag 'block-6.13-20242901' of git://git.kernel.dk/linux
[drm/drm-misc.git] / Documentation / devicetree / bindings / hwmon / lm75.yaml
blob29bd7460cc268bab4e538bfa04ec076e2b3df76f
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#
7 title: LM75 hwmon sensor
9 maintainers:
10   - Jean Delvare <jdelvare@suse.com>
11   - Guenter Roeck <linux@roeck-us.net>
13 properties:
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
46   reg:
47     maxItems: 1
49   vs-supply:
50     description: phandle to the regulator that provides the +VS supply
52   interrupts:
53     maxItems: 1
55 required:
56   - compatible
57   - reg
59 allOf:
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
75 unevaluatedProperties: false
77 examples:
78   - |
79     i2c {
80       #address-cells = <1>;
81       #size-cells = <0>;
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>;
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     };