blob: 0ad10d43fac0c981b6972ecf611aa94c15d6d4ae [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/ti,tmp108.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: TMP108 temperature sensor
8
9maintainers:
10 - Krzysztof Kozlowski <krzk@kernel.org>
11
Tom Rini6b642ac2024-10-01 12:20:28 -060012description: |
13 The TMP108 is a digital-output temperature sensor with a
14 dynamically-programmable limit window, and under- and overtemperature
15 alert functions.
16
17 Datasheets:
18 https://www.ti.com/product/TMP108
19
Tom Rini53633a82024-02-29 12:33:36 -050020properties:
21 compatible:
22 enum:
23 - ti,tmp108
24
25 interrupts:
26 items:
27 - description: alert interrupt
28
29 reg:
30 maxItems: 1
31
32 "#thermal-sensor-cells":
33 const: 0
34
Tom Rini6b642ac2024-10-01 12:20:28 -060035 vcc-supply:
36 description: phandle to the regulator that provides the V+ supply
37
Tom Rini53633a82024-02-29 12:33:36 -050038required:
39 - compatible
40 - reg
41
42additionalProperties: false
43
44examples:
45 - |
46 #include <dt-bindings/interrupt-controller/irq.h>
47
48 i2c {
49 #address-cells = <1>;
50 #size-cells = <0>;
51
52 sensor@48 {
53 compatible = "ti,tmp108";
54 reg = <0x48>;
55 interrupt-parent = <&gpio1>;
56 interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
57 pinctrl-names = "default";
58 pinctrl-0 = <&tmp_alrt>;
Tom Rini6b642ac2024-10-01 12:20:28 -060059 vcc-supply = <&supply>;
Tom Rini53633a82024-02-29 12:33:36 -050060 #thermal-sensor-cells = <0>;
61 };
62 };