TMP102 temperature sensor

Schema identifier ($id): "http://devicetree.org/schemas/hwmon/ti,tmp102.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ti,tmp102"

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

reg — required here #

Maximum number of items (maxItems): 1

label — not listed as required here #

A descriptive name for this channel, like "ambient" or "psu".

#thermal-sensor-cells — not listed as required here #

Exact value (const): 1

vcc-supply — not listed as required here #

Power supply for tmp102

Required in this object (required): "compatible", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    sensor@48 {
        compatible = "ti,tmp102";
        reg = <0x48>;
        interrupt-parent = <&gpio7>;
        interrupts = <16 IRQ_TYPE_LEVEL_LOW>;
        label = "somelabel";
        vcc-supply = <&supply>;
        #thermal-sensor-cells = <1>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Edit this page