xref: /linux/Documentation/devicetree/bindings/hwmon/ti,tmp513.yaml (revision 3d21a46093352f7802b9c66c7cce35cd02a50e53)
117fe2983SEric Tremblay# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
217fe2983SEric Tremblay%YAML 1.2
317fe2983SEric Tremblay---
417fe2983SEric Tremblay
517fe2983SEric Tremblay$id: http://devicetree.org/schemas/hwmon/ti,tmp513.yaml#
617fe2983SEric Tremblay$schema: http://devicetree.org/meta-schemas/core.yaml#
717fe2983SEric Tremblay
817fe2983SEric Tremblaytitle: TMP513/512 system monitor sensor
917fe2983SEric Tremblay
1017fe2983SEric Tremblaymaintainers:
1117fe2983SEric Tremblay  - Eric Tremblay <etremblay@distech-controls.com>
1217fe2983SEric Tremblay
1317fe2983SEric Tremblaydescription: |
1417fe2983SEric Tremblay  The TMP512 (dual-channel) and TMP513 (triple-channel) are system monitors
1517fe2983SEric Tremblay  that include remote sensors, a local temperature sensor, and a high-side
1617fe2983SEric Tremblay  current shunt monitor. These system monitors have the capability of measuring
1717fe2983SEric Tremblay  remote temperatures, on-chip temperatures, and system voltage/power/current
1817fe2983SEric Tremblay  consumption.
1917fe2983SEric Tremblay
2017fe2983SEric Tremblay  Datasheets:
2117fe2983SEric Tremblay  http://www.ti.com/lit/gpn/tmp513
2217fe2983SEric Tremblay  http://www.ti.com/lit/gpn/tmp512
2317fe2983SEric Tremblay
2417fe2983SEric Tremblay
2517fe2983SEric Tremblayproperties:
2617fe2983SEric Tremblay  compatible:
2717fe2983SEric Tremblay    enum:
2817fe2983SEric Tremblay      - ti,tmp512
2917fe2983SEric Tremblay      - ti,tmp513
3017fe2983SEric Tremblay
3117fe2983SEric Tremblay  reg:
3217fe2983SEric Tremblay    maxItems: 1
3317fe2983SEric Tremblay
3417fe2983SEric Tremblay  shunt-resistor-micro-ohms:
3517fe2983SEric Tremblay    description: |
3617fe2983SEric Tremblay      If 0, the calibration process will be skiped and the current and power
3717fe2983SEric Tremblay      measurement engine will not work. Temperature and voltage measurement
3817fe2983SEric Tremblay      will continue to work. The shunt value also need to respect:
3917fe2983SEric Tremblay      rshunt <= pga-gain * 40 * 1000 * 1000.
4017fe2983SEric Tremblay      If not, it's not possible to compute a valid calibration value.
4117fe2983SEric Tremblay    default: 1000
4217fe2983SEric Tremblay
4317fe2983SEric Tremblay  ti,pga-gain:
4417fe2983SEric Tremblay    description: |
4517fe2983SEric Tremblay      The gain value for the PGA function. This is 8, 4, 2 or 1.
4617fe2983SEric Tremblay      The PGA gain affect the shunt voltage range.
4717fe2983SEric Tremblay      The range will be equal to: pga-gain * 40mV
48*3d21a460SRob Herring    $ref: /schemas/types.yaml#/definitions/uint32
4917fe2983SEric Tremblay    enum: [1, 2, 4, 8]
5017fe2983SEric Tremblay    default: 8
5117fe2983SEric Tremblay
5217fe2983SEric Tremblay  ti,bus-range-microvolt:
5317fe2983SEric Tremblay    description: |
5417fe2983SEric Tremblay      This is the operating range of the bus voltage in microvolt
55*3d21a460SRob Herring    $ref: /schemas/types.yaml#/definitions/uint32
5617fe2983SEric Tremblay    enum: [16000000, 32000000]
5717fe2983SEric Tremblay    default: 32000000
5817fe2983SEric Tremblay
5917fe2983SEric Tremblay  ti,nfactor:
6017fe2983SEric Tremblay    description: |
6117fe2983SEric Tremblay      Array of three(TMP513) or two(TMP512) n-Factor value for each remote
6217fe2983SEric Tremblay      temperature channel.
6317fe2983SEric Tremblay      See datasheet Table 11 for n-Factor range list and value interpretation.
64*3d21a460SRob Herring    $ref: /schemas/types.yaml#definitions/uint32-array
65*3d21a460SRob Herring    minItems: 2
6617fe2983SEric Tremblay    maxItems: 3
6717fe2983SEric Tremblay    items:
6817fe2983SEric Tremblay      default: 0x00
6917fe2983SEric Tremblay      minimum: 0x00
7017fe2983SEric Tremblay      maximum: 0xFF
7117fe2983SEric Tremblay
7217fe2983SEric Tremblayrequired:
7317fe2983SEric Tremblay  - compatible
7417fe2983SEric Tremblay  - reg
7517fe2983SEric Tremblay
767f464532SRob HerringadditionalProperties: false
777f464532SRob Herring
7817fe2983SEric Tremblayexamples:
7917fe2983SEric Tremblay  - |
8017fe2983SEric Tremblay    i2c {
8117fe2983SEric Tremblay          #address-cells = <1>;
8217fe2983SEric Tremblay          #size-cells = <0>;
8317fe2983SEric Tremblay
8417fe2983SEric Tremblay          tmp513@5c {
8517fe2983SEric Tremblay              compatible = "ti,tmp513";
8617fe2983SEric Tremblay              reg = <0x5C>;
8717fe2983SEric Tremblay              shunt-resistor-micro-ohms = <330000>;
8817fe2983SEric Tremblay              ti,bus-range-microvolt = <32000000>;
8917fe2983SEric Tremblay              ti,pga-gain = <8>;
9017fe2983SEric Tremblay              ti,nfactor = <0x1 0xF3 0x00>;
9117fe2983SEric Tremblay          };
9217fe2983SEric Tremblay    };
93