1*bd90c5b9SCamel Guo# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2*bd90c5b9SCamel Guo%YAML 1.2 3*bd90c5b9SCamel Guo--- 4*bd90c5b9SCamel Guo$id: http://devicetree.org/schemas/hwmon/ti,tmp401.yaml# 5*bd90c5b9SCamel Guo$schema: http://devicetree.org/meta-schemas/core.yaml# 6*bd90c5b9SCamel Guo 7*bd90c5b9SCamel Guotitle: TMP401, TPM411 and TMP43x temperature sensor 8*bd90c5b9SCamel Guo 9*bd90c5b9SCamel Guomaintainers: 10*bd90c5b9SCamel Guo - Guenter Roeck <linux@roeck-us.net> 11*bd90c5b9SCamel Guo 12*bd90c5b9SCamel Guodescription: | 13*bd90c5b9SCamel Guo ±1°C Remote and Local temperature sensor 14*bd90c5b9SCamel Guo 15*bd90c5b9SCamel Guo Datasheets: 16*bd90c5b9SCamel Guo https://www.ti.com/lit/ds/symlink/tmp401.pdf 17*bd90c5b9SCamel Guo https://www.ti.com/lit/ds/symlink/tmp411.pdf 18*bd90c5b9SCamel Guo https://www.ti.com/lit/ds/symlink/tmp431.pdf 19*bd90c5b9SCamel Guo https://www.ti.com/lit/ds/symlink/tmp435.pdf 20*bd90c5b9SCamel Guo 21*bd90c5b9SCamel Guoproperties: 22*bd90c5b9SCamel Guo compatible: 23*bd90c5b9SCamel Guo enum: 24*bd90c5b9SCamel Guo - ti,tmp401 25*bd90c5b9SCamel Guo - ti,tmp411 26*bd90c5b9SCamel Guo - ti,tmp431 27*bd90c5b9SCamel Guo - ti,tmp432 28*bd90c5b9SCamel Guo - ti,tmp435 29*bd90c5b9SCamel Guo 30*bd90c5b9SCamel Guo reg: 31*bd90c5b9SCamel Guo maxItems: 1 32*bd90c5b9SCamel Guo 33*bd90c5b9SCamel Guo ti,extended-range-enable: 34*bd90c5b9SCamel Guo description: 35*bd90c5b9SCamel Guo When set, this sensor measures over extended temperature range. 36*bd90c5b9SCamel Guo type: boolean 37*bd90c5b9SCamel Guo 38*bd90c5b9SCamel Guo ti,n-factor: 39*bd90c5b9SCamel Guo description: 40*bd90c5b9SCamel Guo value to be used for converting remote channel measurements to 41*bd90c5b9SCamel Guo temperature. 42*bd90c5b9SCamel Guo $ref: /schemas/types.yaml#/definitions/int32 43*bd90c5b9SCamel Guo minimum: -128 44*bd90c5b9SCamel Guo maximum: 127 45*bd90c5b9SCamel Guo 46*bd90c5b9SCamel Guo ti,beta-compensation: 47*bd90c5b9SCamel Guo description: 48*bd90c5b9SCamel Guo value to select beta correction range. 49*bd90c5b9SCamel Guo $ref: /schemas/types.yaml#/definitions/uint32 50*bd90c5b9SCamel Guo minimum: 0 51*bd90c5b9SCamel Guo maximum: 15 52*bd90c5b9SCamel Guo 53*bd90c5b9SCamel GuoallOf: 54*bd90c5b9SCamel Guo - if: 55*bd90c5b9SCamel Guo properties: 56*bd90c5b9SCamel Guo compatible: 57*bd90c5b9SCamel Guo contains: 58*bd90c5b9SCamel Guo enum: 59*bd90c5b9SCamel Guo - ti,tmp401 60*bd90c5b9SCamel Guo then: 61*bd90c5b9SCamel Guo properties: 62*bd90c5b9SCamel Guo ti,n-factor: false 63*bd90c5b9SCamel Guo 64*bd90c5b9SCamel Guo - if: 65*bd90c5b9SCamel Guo properties: 66*bd90c5b9SCamel Guo compatible: 67*bd90c5b9SCamel Guo contains: 68*bd90c5b9SCamel Guo enum: 69*bd90c5b9SCamel Guo - ti,tmp401 70*bd90c5b9SCamel Guo - ti,tmp411 71*bd90c5b9SCamel Guo then: 72*bd90c5b9SCamel Guo properties: 73*bd90c5b9SCamel Guo ti,beta-compensation: false 74*bd90c5b9SCamel Guo 75*bd90c5b9SCamel Guorequired: 76*bd90c5b9SCamel Guo - compatible 77*bd90c5b9SCamel Guo - reg 78*bd90c5b9SCamel Guo 79*bd90c5b9SCamel GuoadditionalProperties: false 80*bd90c5b9SCamel Guo 81*bd90c5b9SCamel Guoexamples: 82*bd90c5b9SCamel Guo - | 83*bd90c5b9SCamel Guo i2c { 84*bd90c5b9SCamel Guo #address-cells = <1>; 85*bd90c5b9SCamel Guo #size-cells = <0>; 86*bd90c5b9SCamel Guo 87*bd90c5b9SCamel Guo sensor@4c { 88*bd90c5b9SCamel Guo compatible = "ti,tmp401"; 89*bd90c5b9SCamel Guo reg = <0x4c>; 90*bd90c5b9SCamel Guo }; 91*bd90c5b9SCamel Guo }; 92*bd90c5b9SCamel Guo - | 93*bd90c5b9SCamel Guo i2c { 94*bd90c5b9SCamel Guo #address-cells = <1>; 95*bd90c5b9SCamel Guo #size-cells = <0>; 96*bd90c5b9SCamel Guo 97*bd90c5b9SCamel Guo sensor@4c { 98*bd90c5b9SCamel Guo compatible = "ti,tmp431"; 99*bd90c5b9SCamel Guo reg = <0x4c>; 100*bd90c5b9SCamel Guo ti,extended-range-enable; 101*bd90c5b9SCamel Guo ti,n-factor = <0x3b>; 102*bd90c5b9SCamel Guo ti,beta-compensation = <0x7>; 103*bd90c5b9SCamel Guo }; 104*bd90c5b9SCamel Guo }; 105