blob: 29bd7460cc268bab4e538bfa04ec076e2b3df76f [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001# 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
Tom Rini93743d22024-04-01 09:08:13 -040017 - ams,as6200
Tom Rini53633a82024-02-29 12:33:36 -050018 - 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
Tom Rini93743d22024-04-01 09:08:13 -040052 interrupts:
53 maxItems: 1
54
Tom Rini53633a82024-02-29 12:33:36 -050055required:
56 - compatible
57 - reg
58
Tom Rini93743d22024-04-01 09:08:13 -040059allOf:
Tom Rini6bb92fc2024-05-20 09:54:58 -060060 - $ref: hwmon-common.yaml#
Tom Rini93743d22024-04-01 09:08:13 -040061 - 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
Tom Rini6bb92fc2024-05-20 09:54:58 -060075unevaluatedProperties: false
Tom Rini53633a82024-02-29 12:33:36 -050076
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>;
Tom Rini93743d22024-04-01 09:08:13 -040087 };
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>;
Tom Rini53633a82024-02-29 12:33:36 -0500101 };
102 };