1f04ce1e3SKrzysztof Adamski# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2f04ce1e3SKrzysztof Adamski%YAML 1.2 3f04ce1e3SKrzysztof Adamski--- 4f04ce1e3SKrzysztof Adamski$id: http://devicetree.org/schemas/hwmon/ti,tmp421.yaml# 5f04ce1e3SKrzysztof Adamski$schema: http://devicetree.org/meta-schemas/core.yaml# 6f04ce1e3SKrzysztof Adamski 7f04ce1e3SKrzysztof Adamskititle: TMP42x/TMP44x temperature sensor 8f04ce1e3SKrzysztof Adamski 9f04ce1e3SKrzysztof Adamskimaintainers: 10f04ce1e3SKrzysztof Adamski - Guenter Roeck <linux@roeck-us.net> 11f04ce1e3SKrzysztof Adamski 12f04ce1e3SKrzysztof Adamskidescription: | 13f04ce1e3SKrzysztof Adamski ±1°C Remote and Local temperature sensor 14f04ce1e3SKrzysztof Adamski https://www.ti.com/lit/ds/symlink/tmp422.pdf 15f04ce1e3SKrzysztof Adamski 16f04ce1e3SKrzysztof Adamskiproperties: 17f04ce1e3SKrzysztof Adamski compatible: 18f04ce1e3SKrzysztof Adamski enum: 19f04ce1e3SKrzysztof Adamski - ti,tmp421 20f04ce1e3SKrzysztof Adamski - ti,tmp422 21f04ce1e3SKrzysztof Adamski - ti,tmp423 22f04ce1e3SKrzysztof Adamski - ti,tmp441 23f04ce1e3SKrzysztof Adamski - ti,tmp442 24f04ce1e3SKrzysztof Adamski reg: 25f04ce1e3SKrzysztof Adamski maxItems: 1 26f04ce1e3SKrzysztof Adamski 2751369c0fSKrzysztof Adamski '#address-cells': 2851369c0fSKrzysztof Adamski const: 1 2951369c0fSKrzysztof Adamski 3051369c0fSKrzysztof Adamski '#size-cells': 3151369c0fSKrzysztof Adamski const: 0 3251369c0fSKrzysztof Adamski 33f04ce1e3SKrzysztof Adamskirequired: 34f04ce1e3SKrzysztof Adamski - compatible 35f04ce1e3SKrzysztof Adamski - reg 36f04ce1e3SKrzysztof Adamski 37f04ce1e3SKrzysztof AdamskiadditionalProperties: false 38f04ce1e3SKrzysztof Adamski 3951369c0fSKrzysztof AdamskipatternProperties: 4051369c0fSKrzysztof Adamski "^channel@([0-3])$": 4151369c0fSKrzysztof Adamski type: object 4251369c0fSKrzysztof Adamski description: | 4351369c0fSKrzysztof Adamski Represents channels of the device and their specific configuration. 4451369c0fSKrzysztof Adamski 4551369c0fSKrzysztof Adamski properties: 4651369c0fSKrzysztof Adamski reg: 4751369c0fSKrzysztof Adamski description: | 4851369c0fSKrzysztof Adamski The channel number. 0 is local channel, 1-3 are remote channels 4951369c0fSKrzysztof Adamski items: 5051369c0fSKrzysztof Adamski minimum: 0 5151369c0fSKrzysztof Adamski maximum: 3 5251369c0fSKrzysztof Adamski 5351369c0fSKrzysztof Adamski label: 5451369c0fSKrzysztof Adamski description: | 5551369c0fSKrzysztof Adamski A descriptive name for this channel, like "ambient" or "psu". 5651369c0fSKrzysztof Adamski 5751369c0fSKrzysztof Adamski ti,n-factor: 5851369c0fSKrzysztof Adamski description: | 5951369c0fSKrzysztof Adamski The value (two's complement) to be programmed in the channel specific N correction register. 6051369c0fSKrzysztof Adamski For remote channels only. 61*4d0d5c35SRob Herring $ref: /schemas/types.yaml#/definitions/int32 62*4d0d5c35SRob Herring minimum: -128 63*4d0d5c35SRob Herring maximum: 127 6451369c0fSKrzysztof Adamski 6551369c0fSKrzysztof Adamski required: 6651369c0fSKrzysztof Adamski - reg 6751369c0fSKrzysztof Adamski 6851369c0fSKrzysztof Adamski additionalProperties: false 6951369c0fSKrzysztof Adamski 70f04ce1e3SKrzysztof Adamskiexamples: 71f04ce1e3SKrzysztof Adamski - | 72f04ce1e3SKrzysztof Adamski i2c { 73f04ce1e3SKrzysztof Adamski #address-cells = <1>; 74f04ce1e3SKrzysztof Adamski #size-cells = <0>; 75f04ce1e3SKrzysztof Adamski 76f04ce1e3SKrzysztof Adamski sensor@4c { 77f04ce1e3SKrzysztof Adamski compatible = "ti,tmp422"; 78f04ce1e3SKrzysztof Adamski reg = <0x4c>; 79f04ce1e3SKrzysztof Adamski }; 80f04ce1e3SKrzysztof Adamski }; 8151369c0fSKrzysztof Adamski - | 8251369c0fSKrzysztof Adamski i2c { 8351369c0fSKrzysztof Adamski #address-cells = <1>; 8451369c0fSKrzysztof Adamski #size-cells = <0>; 8551369c0fSKrzysztof Adamski 8651369c0fSKrzysztof Adamski sensor@4c { 8751369c0fSKrzysztof Adamski compatible = "ti,tmp422"; 8851369c0fSKrzysztof Adamski reg = <0x4c>; 8951369c0fSKrzysztof Adamski #address-cells = <1>; 9051369c0fSKrzysztof Adamski #size-cells = <0>; 9151369c0fSKrzysztof Adamski 9251369c0fSKrzysztof Adamski channel@0 { 9351369c0fSKrzysztof Adamski reg = <0x0>; 9451369c0fSKrzysztof Adamski ti,n-factor = <0x1>; 9551369c0fSKrzysztof Adamski label = "local"; 9651369c0fSKrzysztof Adamski }; 9751369c0fSKrzysztof Adamski 9851369c0fSKrzysztof Adamski channel@1 { 9951369c0fSKrzysztof Adamski reg = <0x1>; 10051369c0fSKrzysztof Adamski ti,n-factor = <0x0>; 10151369c0fSKrzysztof Adamski label = "somelabel"; 10251369c0fSKrzysztof Adamski }; 10351369c0fSKrzysztof Adamski 10451369c0fSKrzysztof Adamski channel@2 { 10551369c0fSKrzysztof Adamski reg = <0x2>; 10651369c0fSKrzysztof Adamski status = "disabled"; 10751369c0fSKrzysztof Adamski }; 10851369c0fSKrzysztof Adamski }; 10951369c0fSKrzysztof Adamski }; 110