xref: /linux/Documentation/devicetree/bindings/hwmon/ti,tmp513.yaml (revision 79790b6818e96c58fe2bffee1b418c16e64e7b80)
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:
21e263f2d3SAlexander A. Klimov  https://www.ti.com/lit/gpn/tmp513
22e263f2d3SAlexander A. Klimov  https://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: |
3647aab533SBjorn Helgaas      If 0, the calibration process will be skipped 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
483d21a460SRob 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
5517fe2983SEric Tremblay    enum: [16000000, 32000000]
5617fe2983SEric Tremblay    default: 32000000
5717fe2983SEric Tremblay
5817fe2983SEric Tremblay  ti,nfactor:
5917fe2983SEric Tremblay    description: |
6017fe2983SEric Tremblay      Array of three(TMP513) or two(TMP512) n-Factor value for each remote
6117fe2983SEric Tremblay      temperature channel.
6217fe2983SEric Tremblay      See datasheet Table 11 for n-Factor range list and value interpretation.
63d69c6dddSRob Herring    $ref: /schemas/types.yaml#/definitions/uint32-array
643d21a460SRob Herring    minItems: 2
6517fe2983SEric Tremblay    maxItems: 3
6617fe2983SEric Tremblay    items:
6717fe2983SEric Tremblay      default: 0x00
6817fe2983SEric Tremblay      minimum: 0x00
6917fe2983SEric Tremblay      maximum: 0xFF
7017fe2983SEric Tremblay
7117fe2983SEric Tremblayrequired:
7217fe2983SEric Tremblay  - compatible
7317fe2983SEric Tremblay  - reg
7417fe2983SEric Tremblay
75*a095d8c0SKrzysztof KozlowskiallOf:
76*a095d8c0SKrzysztof Kozlowski  - $ref: hwmon-common.yaml#
77*a095d8c0SKrzysztof Kozlowski
78*a095d8c0SKrzysztof KozlowskiunevaluatedProperties: false
797f464532SRob Herring
8017fe2983SEric Tremblayexamples:
8117fe2983SEric Tremblay  - |
8217fe2983SEric Tremblay    i2c {
8317fe2983SEric Tremblay        #address-cells = <1>;
8417fe2983SEric Tremblay        #size-cells = <0>;
8517fe2983SEric Tremblay
8617fe2983SEric Tremblay        tmp513@5c {
8717fe2983SEric Tremblay            compatible = "ti,tmp513";
8808be4233SKrzysztof Kozlowski            reg = <0x5c>;
8917fe2983SEric Tremblay            shunt-resistor-micro-ohms = <330000>;
9017fe2983SEric Tremblay            ti,bus-range-microvolt = <32000000>;
9117fe2983SEric Tremblay            ti,pga-gain = <8>;
9208be4233SKrzysztof Kozlowski            ti,nfactor = <0x1 0xf3 0x00>;
9317fe2983SEric Tremblay        };
9417fe2983SEric Tremblay    };
95