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 <krzk@kernel.org> 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 26 vcc-supply: 27 description: Power supply for tmp102 28 29required: 30 - compatible 31 - reg 32 33additionalProperties: false 34 35examples: 36 - | 37 #include <dt-bindings/interrupt-controller/irq.h> 38 39 i2c { 40 #address-cells = <1>; 41 #size-cells = <0>; 42 43 sensor@48 { 44 compatible = "ti,tmp102"; 45 reg = <0x48>; 46 interrupt-parent = <&gpio7>; 47 interrupts = <16 IRQ_TYPE_LEVEL_LOW>; 48 vcc-supply = <&supply>; 49 #thermal-sensor-cells = <1>; 50 }; 51 }; 52