xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/hwmon/ti,tmp513.yaml (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*4882a593Smuzhiyun%YAML 1.2
3*4882a593Smuzhiyun---
4*4882a593Smuzhiyun
5*4882a593Smuzhiyun$id: http://devicetree.org/schemas/hwmon/ti,tmp513.yaml#
6*4882a593Smuzhiyun$schema: http://devicetree.org/meta-schemas/core.yaml#
7*4882a593Smuzhiyun
8*4882a593Smuzhiyuntitle: TMP513/512 system monitor sensor
9*4882a593Smuzhiyun
10*4882a593Smuzhiyunmaintainers:
11*4882a593Smuzhiyun  - Eric Tremblay <etremblay@distech-controls.com>
12*4882a593Smuzhiyun
13*4882a593Smuzhiyundescription: |
14*4882a593Smuzhiyun  The TMP512 (dual-channel) and TMP513 (triple-channel) are system monitors
15*4882a593Smuzhiyun  that include remote sensors, a local temperature sensor, and a high-side
16*4882a593Smuzhiyun  current shunt monitor. These system monitors have the capability of measuring
17*4882a593Smuzhiyun  remote temperatures, on-chip temperatures, and system voltage/power/current
18*4882a593Smuzhiyun  consumption.
19*4882a593Smuzhiyun
20*4882a593Smuzhiyun  Datasheets:
21*4882a593Smuzhiyun  https://www.ti.com/lit/gpn/tmp513
22*4882a593Smuzhiyun  https://www.ti.com/lit/gpn/tmp512
23*4882a593Smuzhiyun
24*4882a593Smuzhiyun
25*4882a593Smuzhiyunproperties:
26*4882a593Smuzhiyun  compatible:
27*4882a593Smuzhiyun    enum:
28*4882a593Smuzhiyun      - ti,tmp512
29*4882a593Smuzhiyun      - ti,tmp513
30*4882a593Smuzhiyun
31*4882a593Smuzhiyun  reg:
32*4882a593Smuzhiyun    maxItems: 1
33*4882a593Smuzhiyun
34*4882a593Smuzhiyun  shunt-resistor-micro-ohms:
35*4882a593Smuzhiyun    description: |
36*4882a593Smuzhiyun      If 0, the calibration process will be skiped and the current and power
37*4882a593Smuzhiyun      measurement engine will not work. Temperature and voltage measurement
38*4882a593Smuzhiyun      will continue to work. The shunt value also need to respect:
39*4882a593Smuzhiyun      rshunt <= pga-gain * 40 * 1000 * 1000.
40*4882a593Smuzhiyun      If not, it's not possible to compute a valid calibration value.
41*4882a593Smuzhiyun    default: 1000
42*4882a593Smuzhiyun
43*4882a593Smuzhiyun  ti,pga-gain:
44*4882a593Smuzhiyun    description: |
45*4882a593Smuzhiyun      The gain value for the PGA function. This is 8, 4, 2 or 1.
46*4882a593Smuzhiyun      The PGA gain affect the shunt voltage range.
47*4882a593Smuzhiyun      The range will be equal to: pga-gain * 40mV
48*4882a593Smuzhiyun    $ref: /schemas/types.yaml#/definitions/uint32
49*4882a593Smuzhiyun    enum: [1, 2, 4, 8]
50*4882a593Smuzhiyun    default: 8
51*4882a593Smuzhiyun
52*4882a593Smuzhiyun  ti,bus-range-microvolt:
53*4882a593Smuzhiyun    description: |
54*4882a593Smuzhiyun      This is the operating range of the bus voltage in microvolt
55*4882a593Smuzhiyun    $ref: /schemas/types.yaml#/definitions/uint32
56*4882a593Smuzhiyun    enum: [16000000, 32000000]
57*4882a593Smuzhiyun    default: 32000000
58*4882a593Smuzhiyun
59*4882a593Smuzhiyun  ti,nfactor:
60*4882a593Smuzhiyun    description: |
61*4882a593Smuzhiyun      Array of three(TMP513) or two(TMP512) n-Factor value for each remote
62*4882a593Smuzhiyun      temperature channel.
63*4882a593Smuzhiyun      See datasheet Table 11 for n-Factor range list and value interpretation.
64*4882a593Smuzhiyun    $ref: /schemas/types.yaml#definitions/uint32-array
65*4882a593Smuzhiyun    minItems: 2
66*4882a593Smuzhiyun    maxItems: 3
67*4882a593Smuzhiyun    items:
68*4882a593Smuzhiyun      default: 0x00
69*4882a593Smuzhiyun      minimum: 0x00
70*4882a593Smuzhiyun      maximum: 0xFF
71*4882a593Smuzhiyun
72*4882a593Smuzhiyunrequired:
73*4882a593Smuzhiyun  - compatible
74*4882a593Smuzhiyun  - reg
75*4882a593Smuzhiyun
76*4882a593SmuzhiyunadditionalProperties: false
77*4882a593Smuzhiyun
78*4882a593Smuzhiyunexamples:
79*4882a593Smuzhiyun  - |
80*4882a593Smuzhiyun    i2c {
81*4882a593Smuzhiyun          #address-cells = <1>;
82*4882a593Smuzhiyun          #size-cells = <0>;
83*4882a593Smuzhiyun
84*4882a593Smuzhiyun          tmp513@5c {
85*4882a593Smuzhiyun              compatible = "ti,tmp513";
86*4882a593Smuzhiyun              reg = <0x5C>;
87*4882a593Smuzhiyun              shunt-resistor-micro-ohms = <330000>;
88*4882a593Smuzhiyun              ti,bus-range-microvolt = <32000000>;
89*4882a593Smuzhiyun              ti,pga-gain = <8>;
90*4882a593Smuzhiyun              ti,nfactor = <0x1 0xF3 0x00>;
91*4882a593Smuzhiyun          };
92*4882a593Smuzhiyun    };
93