1b4fa042eSAgathe Porte# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2b4fa042eSAgathe Porte%YAML 1.2 3b4fa042eSAgathe Porte--- 4b4fa042eSAgathe Porte$id: http://devicetree.org/schemas/hwmon/ti,tmp464.yaml# 5b4fa042eSAgathe Porte$schema: http://devicetree.org/meta-schemas/core.yaml# 6b4fa042eSAgathe Porte 7b4fa042eSAgathe Portetitle: TMP464 and TMP468 temperature sensors 8b4fa042eSAgathe Porte 9b4fa042eSAgathe Portemaintainers: 10*7165bfc9SKrzysztof Kozlowski - Guenter Roeck <linux@roeck-us.net> 11b4fa042eSAgathe Porte 12b4fa042eSAgathe Portedescription: | 13b4fa042eSAgathe Porte ±0.0625°C Remote and Local temperature sensor 14b4fa042eSAgathe Porte https://www.ti.com/lit/ds/symlink/tmp464.pdf 15b4fa042eSAgathe Porte https://www.ti.com/lit/ds/symlink/tmp468.pdf 16b4fa042eSAgathe Porte 17b4fa042eSAgathe Porteproperties: 18b4fa042eSAgathe Porte compatible: 19b4fa042eSAgathe Porte enum: 20b4fa042eSAgathe Porte - ti,tmp464 21b4fa042eSAgathe Porte - ti,tmp468 22b4fa042eSAgathe Porte 23b4fa042eSAgathe Porte reg: 24b4fa042eSAgathe Porte maxItems: 1 25b4fa042eSAgathe Porte 26b4fa042eSAgathe Porte '#address-cells': 27b4fa042eSAgathe Porte const: 1 28b4fa042eSAgathe Porte 29b4fa042eSAgathe Porte '#size-cells': 30b4fa042eSAgathe Porte const: 0 31b4fa042eSAgathe Porte 32b4fa042eSAgathe Porterequired: 33b4fa042eSAgathe Porte - compatible 34b4fa042eSAgathe Porte - reg 35b4fa042eSAgathe Porte 36b4fa042eSAgathe PorteadditionalProperties: false 37b4fa042eSAgathe Porte 38b4fa042eSAgathe PortepatternProperties: 39b4fa042eSAgathe Porte "^channel@([0-8])$": 40b4fa042eSAgathe Porte type: object 41b4fa042eSAgathe Porte description: | 42b4fa042eSAgathe Porte Represents channels of the device and their specific configuration. 43b4fa042eSAgathe Porte 44b4fa042eSAgathe Porte properties: 45b4fa042eSAgathe Porte reg: 46b4fa042eSAgathe Porte description: | 47b4fa042eSAgathe Porte The channel number. 0 is local channel, 1-8 are remote channels. 48b4fa042eSAgathe Porte items: 49b4fa042eSAgathe Porte minimum: 0 50b4fa042eSAgathe Porte maximum: 8 51b4fa042eSAgathe Porte 52b4fa042eSAgathe Porte label: 53b4fa042eSAgathe Porte description: | 54b4fa042eSAgathe Porte A descriptive name for this channel, like "ambient" or "psu". 55b4fa042eSAgathe Porte 56b4fa042eSAgathe Porte ti,n-factor: 57b4fa042eSAgathe Porte description: | 58b4fa042eSAgathe Porte The value (two's complement) to be programmed in the channel specific N correction register. 59b4fa042eSAgathe Porte For remote channels only. 60b4fa042eSAgathe Porte $ref: /schemas/types.yaml#/definitions/int32 61b4fa042eSAgathe Porte minimum: -128 62b4fa042eSAgathe Porte maximum: 127 63b4fa042eSAgathe Porte 64b4fa042eSAgathe Porte required: 65b4fa042eSAgathe Porte - reg 66b4fa042eSAgathe Porte 67b4fa042eSAgathe Porte additionalProperties: false 68b4fa042eSAgathe Porte 69b4fa042eSAgathe Porteexamples: 70b4fa042eSAgathe Porte - | 71b4fa042eSAgathe Porte i2c { 72b4fa042eSAgathe Porte #address-cells = <1>; 73b4fa042eSAgathe Porte #size-cells = <0>; 74b4fa042eSAgathe Porte 75b4fa042eSAgathe Porte sensor@4b { 76b4fa042eSAgathe Porte compatible = "ti,tmp464"; 77b4fa042eSAgathe Porte reg = <0x4b>; 78b4fa042eSAgathe Porte }; 79b4fa042eSAgathe Porte }; 80b4fa042eSAgathe Porte - | 81b4fa042eSAgathe Porte i2c { 82b4fa042eSAgathe Porte #address-cells = <1>; 83b4fa042eSAgathe Porte #size-cells = <0>; 84b4fa042eSAgathe Porte 85b4fa042eSAgathe Porte sensor@4b { 86b4fa042eSAgathe Porte compatible = "ti,tmp464"; 87b4fa042eSAgathe Porte reg = <0x4b>; 88b4fa042eSAgathe Porte #address-cells = <1>; 89b4fa042eSAgathe Porte #size-cells = <0>; 90b4fa042eSAgathe Porte 91b4fa042eSAgathe Porte channel@0 { 92b4fa042eSAgathe Porte reg = <0x0>; 93b4fa042eSAgathe Porte label = "local"; 94b4fa042eSAgathe Porte }; 95b4fa042eSAgathe Porte 96b4fa042eSAgathe Porte channel@1 { 97b4fa042eSAgathe Porte reg = <0x1>; 98b4fa042eSAgathe Porte ti,n-factor = <(-10)>; 99b4fa042eSAgathe Porte label = "external"; 100b4fa042eSAgathe Porte }; 101b4fa042eSAgathe Porte 102b4fa042eSAgathe Porte channel@2 { 103b4fa042eSAgathe Porte reg = <0x2>; 104b4fa042eSAgathe Porte ti,n-factor = <0x10>; 105b4fa042eSAgathe Porte label = "somelabel"; 106b4fa042eSAgathe Porte }; 107b4fa042eSAgathe Porte 108b4fa042eSAgathe Porte channel@3 { 109b4fa042eSAgathe Porte reg = <0x3>; 110b4fa042eSAgathe Porte status = "disabled"; 111b4fa042eSAgathe Porte }; 112b4fa042eSAgathe Porte }; 113b4fa042eSAgathe Porte }; 114