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