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 label: 24 description: 25 A descriptive name for this channel, like "ambient" or "psu". 26 27 "#thermal-sensor-cells": 28 const: 1 29 30 vcc-supply: 31 description: Power supply for tmp102 32 33required: 34 - compatible 35 - reg 36 37additionalProperties: false 38 39examples: 40 - | 41 #include <dt-bindings/interrupt-controller/irq.h> 42 43 i2c { 44 #address-cells = <1>; 45 #size-cells = <0>; 46 47 sensor@48 { 48 compatible = "ti,tmp102"; 49 reg = <0x48>; 50 interrupt-parent = <&gpio7>; 51 interrupts = <16 IRQ_TYPE_LEVEL_LOW>; 52 label = "somelabel"; 53 vcc-supply = <&supply>; 54 #thermal-sensor-cells = <1>; 55 }; 56 }; 57