0001 # SPDX-License-Identifier: GPL-2.0-only or BSD-2-Clause
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/hwmon/ti,tmp108.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: TMP108 temperature sensor
0008
0009 maintainers:
0010 - Krzysztof Kozlowski <krzk@kernel.org>
0011
0012 properties:
0013 compatible:
0014 enum:
0015 - ti,tmp108
0016
0017 interrupts:
0018 items:
0019 - description: alert interrupt
0020
0021 reg:
0022 maxItems: 1
0023
0024 "#thermal-sensor-cells":
0025 const: 0
0026
0027 required:
0028 - compatible
0029 - reg
0030
0031 additionalProperties: false
0032
0033 examples:
0034 - |
0035 #include <dt-bindings/interrupt-controller/irq.h>
0036
0037 i2c {
0038 #address-cells = <1>;
0039 #size-cells = <0>;
0040
0041 sensor@48 {
0042 compatible = "ti,tmp108";
0043 reg = <0x48>;
0044 interrupt-parent = <&gpio1>;
0045 interrupts = <7 IRQ_TYPE_LEVEL_LOW>;
0046 pinctrl-names = "default";
0047 pinctrl-0 = <&tmp_alrt>;
0048 #thermal-sensor-cells = <0>;
0049 };
0050 };