0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/hwmon/ti,tmp464.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: TMP464 and TMP468 temperature sensors
0008
0009 maintainers:
0010 - Agathe Porte <agathe.porte@nokia.com>
0011
0012 description: |
0013 ±0.0625°C Remote and Local temperature sensor
0014 https://www.ti.com/lit/ds/symlink/tmp464.pdf
0015 https://www.ti.com/lit/ds/symlink/tmp468.pdf
0016
0017 properties:
0018 compatible:
0019 enum:
0020 - ti,tmp464
0021 - ti,tmp468
0022
0023 reg:
0024 maxItems: 1
0025
0026 '#address-cells':
0027 const: 1
0028
0029 '#size-cells':
0030 const: 0
0031
0032 required:
0033 - compatible
0034 - reg
0035
0036 additionalProperties: false
0037
0038 patternProperties:
0039 "^channel@([0-8])$":
0040 type: object
0041 description: |
0042 Represents channels of the device and their specific configuration.
0043
0044 properties:
0045 reg:
0046 description: |
0047 The channel number. 0 is local channel, 1-8 are remote channels.
0048 items:
0049 minimum: 0
0050 maximum: 8
0051
0052 label:
0053 description: |
0054 A descriptive name for this channel, like "ambient" or "psu".
0055
0056 ti,n-factor:
0057 description: |
0058 The value (two's complement) to be programmed in the channel specific N correction register.
0059 For remote channels only.
0060 $ref: /schemas/types.yaml#/definitions/int32
0061 minimum: -128
0062 maximum: 127
0063
0064 required:
0065 - reg
0066
0067 additionalProperties: false
0068
0069 examples:
0070 - |
0071 i2c {
0072 #address-cells = <1>;
0073 #size-cells = <0>;
0074
0075 sensor@4b {
0076 compatible = "ti,tmp464";
0077 reg = <0x4b>;
0078 };
0079 };
0080 - |
0081 i2c {
0082 #address-cells = <1>;
0083 #size-cells = <0>;
0084
0085 sensor@4b {
0086 compatible = "ti,tmp464";
0087 reg = <0x4b>;
0088 #address-cells = <1>;
0089 #size-cells = <0>;
0090
0091 channel@0 {
0092 reg = <0x0>;
0093 label = "local";
0094 };
0095
0096 channel@1 {
0097 reg = <0x1>;
0098 ti,n-factor = <(-10)>;
0099 label = "external";
0100 };
0101
0102 channel@2 {
0103 reg = <0x2>;
0104 ti,n-factor = <0x10>;
0105 label = "somelabel";
0106 };
0107
0108 channel@3 {
0109 reg = <0x3>;
0110 status = "disabled";
0111 };
0112 };
0113 };