xref: /linux/Documentation/devicetree/bindings/hwmon/ti,tmp102.yaml (revision 34f7c6e7d4396090692a09789db231e12cb4762b)
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,tmp102.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: TMP102 temperature sensor
8
9maintainers:
10  - Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
11
12properties:
13  compatible:
14    enum:
15      - ti,tmp102
16
17  interrupts:
18    maxItems: 1
19
20  reg:
21    maxItems: 1
22
23  "#thermal-sensor-cells":
24    const: 1
25
26required:
27  - compatible
28  - reg
29
30additionalProperties: false
31
32examples:
33  - |
34    #include <dt-bindings/interrupt-controller/irq.h>
35
36    i2c {
37        #address-cells = <1>;
38        #size-cells = <0>;
39
40        sensor@48 {
41            compatible = "ti,tmp102";
42            reg = <0x48>;
43            interrupt-parent = <&gpio7>;
44            interrupts = <16 IRQ_TYPE_LEVEL_LOW>;
45            #thermal-sensor-cells = <1>;
46        };
47    };
48