1# 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
12properties:
13  compatible:
14    enum:
15      - ti,tmp108
16
17  interrupts:
18    items:
19      - description: alert interrupt
20
21  reg:
22    maxItems: 1
23
24  "#thermal-sensor-cells":
25    const: 0
26
27required:
28  - compatible
29  - reg
30
31additionalProperties: false
32
33examples:
34  - |
35    #include <dt-bindings/interrupt-controller/irq.h>
36
37    i2c {
38        #address-cells = <1>;
39        #size-cells = <0>;
40
41        sensor@48 {
42            compatible = "ti,tmp108";
43            reg = <0x48>;
44            interrupt-parent = <&gpio1>;
45            interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
46            pinctrl-names = "default";
47            pinctrl-0 = <&tmp_alrt>;
48            #thermal-sensor-cells = <0>;
49        };
50    };
51