1 # SPDX-License-Identifier: GPL-2.0-only OR BSD 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/hwmon/ti,tm 4 $id: http://devicetree.org/schemas/hwmon/ti,tmp108.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: TMP108 temperature sensor 7 title: TMP108 temperature sensor 8 8 9 maintainers: 9 maintainers: 10 - Krzysztof Kozlowski <krzk@kernel.org> 10 - Krzysztof Kozlowski <krzk@kernel.org> 11 11 12 description: | << 13 The TMP108 is a digital-output temperature s << 14 dynamically-programmable limit window, and u << 15 alert functions. << 16 << 17 Datasheets: << 18 https://www.ti.com/product/TMP108 << 19 << 20 properties: 12 properties: 21 compatible: 13 compatible: 22 enum: 14 enum: 23 - ti,tmp108 15 - ti,tmp108 24 16 25 interrupts: 17 interrupts: 26 items: 18 items: 27 - description: alert interrupt 19 - description: alert interrupt 28 20 29 reg: 21 reg: 30 maxItems: 1 22 maxItems: 1 31 23 32 "#thermal-sensor-cells": 24 "#thermal-sensor-cells": 33 const: 0 25 const: 0 34 26 35 vcc-supply: << 36 description: phandle to the regulator that << 37 << 38 required: 27 required: 39 - compatible 28 - compatible 40 - reg 29 - reg 41 30 42 additionalProperties: false 31 additionalProperties: false 43 32 44 examples: 33 examples: 45 - | 34 - | 46 #include <dt-bindings/interrupt-controller 35 #include <dt-bindings/interrupt-controller/irq.h> 47 36 48 i2c { 37 i2c { 49 #address-cells = <1>; 38 #address-cells = <1>; 50 #size-cells = <0>; 39 #size-cells = <0>; 51 40 52 sensor@48 { 41 sensor@48 { 53 compatible = "ti,tmp108"; 42 compatible = "ti,tmp108"; 54 reg = <0x48>; 43 reg = <0x48>; 55 interrupt-parent = <&gpio1>; 44 interrupt-parent = <&gpio1>; 56 interrupts = <7 IRQ_TYPE_LEVEL_LOW 45 interrupts = <7 IRQ_TYPE_LEVEL_LOW>; 57 pinctrl-names = "default"; 46 pinctrl-names = "default"; 58 pinctrl-0 = <&tmp_alrt>; 47 pinctrl-0 = <&tmp_alrt>; 59 vcc-supply = <&supply>; << 60 #thermal-sensor-cells = <0>; 48 #thermal-sensor-cells = <0>; 61 }; 49 }; 62 }; 50 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.