Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame^] | 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 | |
| 7 | title: TMP102 temperature sensor |
| 8 | |
| 9 | maintainers: |
| 10 | - Krzysztof Kozlowski <krzk@kernel.org> |
| 11 | |
| 12 | properties: |
| 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 | required: |
| 27 | - compatible |
| 28 | - reg |
| 29 | |
| 30 | additionalProperties: false |
| 31 | |
| 32 | examples: |
| 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 | }; |