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