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