Back to home page

OSCL-LXR

 
 

    


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,tmp102.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: TMP102 temperature sensor
0008 
0009 maintainers:
0010   - Krzysztof Kozlowski <krzk@kernel.org>
0011 
0012 properties:
0013   compatible:
0014     enum:
0015       - ti,tmp102
0016 
0017   interrupts:
0018     maxItems: 1
0019 
0020   reg:
0021     maxItems: 1
0022 
0023   "#thermal-sensor-cells":
0024     const: 1
0025 
0026 required:
0027   - compatible
0028   - reg
0029 
0030 additionalProperties: false
0031 
0032 examples:
0033   - |
0034     #include <dt-bindings/interrupt-controller/irq.h>
0035 
0036     i2c {
0037         #address-cells = <1>;
0038         #size-cells = <0>;
0039 
0040         sensor@48 {
0041             compatible = "ti,tmp102";
0042             reg = <0x48>;
0043             interrupt-parent = <&gpio7>;
0044             interrupts = <16 IRQ_TYPE_LEVEL_LOW>;
0045             #thermal-sensor-cells = <1>;
0046         };
0047     };