0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/hwmon/ti,tmp401.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: TMP401, TPM411 and TMP43x temperature sensor
0008
0009 maintainers:
0010 - Guenter Roeck <linux@roeck-us.net>
0011
0012 description: |
0013 ±1°C Remote and Local temperature sensor
0014
0015 Datasheets:
0016 https://www.ti.com/lit/ds/symlink/tmp401.pdf
0017 https://www.ti.com/lit/ds/symlink/tmp411.pdf
0018 https://www.ti.com/lit/ds/symlink/tmp431.pdf
0019 https://www.ti.com/lit/ds/symlink/tmp435.pdf
0020
0021 properties:
0022 compatible:
0023 enum:
0024 - ti,tmp401
0025 - ti,tmp411
0026 - ti,tmp431
0027 - ti,tmp432
0028 - ti,tmp435
0029
0030 reg:
0031 maxItems: 1
0032
0033 ti,extended-range-enable:
0034 description:
0035 When set, this sensor measures over extended temperature range.
0036 type: boolean
0037
0038 ti,n-factor:
0039 description:
0040 value to be used for converting remote channel measurements to
0041 temperature.
0042 $ref: /schemas/types.yaml#/definitions/int32
0043 minimum: -128
0044 maximum: 127
0045
0046 ti,beta-compensation:
0047 description:
0048 value to select beta correction range.
0049 $ref: /schemas/types.yaml#/definitions/uint32
0050 minimum: 0
0051 maximum: 15
0052
0053 allOf:
0054 - if:
0055 properties:
0056 compatible:
0057 contains:
0058 enum:
0059 - ti,tmp401
0060 then:
0061 properties:
0062 ti,n-factor: false
0063
0064 - if:
0065 properties:
0066 compatible:
0067 contains:
0068 enum:
0069 - ti,tmp401
0070 - ti,tmp411
0071 then:
0072 properties:
0073 ti,beta-compensation: false
0074
0075 required:
0076 - compatible
0077 - reg
0078
0079 additionalProperties: false
0080
0081 examples:
0082 - |
0083 i2c {
0084 #address-cells = <1>;
0085 #size-cells = <0>;
0086
0087 sensor@4c {
0088 compatible = "ti,tmp401";
0089 reg = <0x4c>;
0090 };
0091 };
0092 - |
0093 i2c {
0094 #address-cells = <1>;
0095 #size-cells = <0>;
0096
0097 sensor@4c {
0098 compatible = "ti,tmp431";
0099 reg = <0x4c>;
0100 ti,extended-range-enable;
0101 ti,n-factor = <0x3b>;
0102 ti,beta-compensation = <0x7>;
0103 };
0104 };