TMP513/512 system monitor sensor
Schema identifier ($id): "http://devicetree.org/schemas/hwmon/ti,tmp513.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Eric Tremblay <etremblay@distech-controls.com>"
The TMP512 (dual-channel) and TMP513 (triple-channel) are system monitors that include remote sensors, a local temperature sensor, and a high-side current shunt monitor. These system monitors have the capability of measuring remote temperatures, on-chip temperatures, and system voltage/power/current consumption.
Datasheets: https://www.ti.com/lit/gpn/tmp513 https://www.ti.com/lit/gpn/tmp512
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,tmp512", "ti,tmp513"
reg — required here #
Maximum number of items (maxItems): 1
shunt-resistor-micro-ohms — not listed as required here #
If 0, the calibration process will be skipped and the current and power measurement engine will not work. Temperature and voltage measurement will continue to work. The shunt value also need to respect: rshunt <= pga-gain * 40 * 1000 * 1000. If not, it's not possible to compute a valid calibration value.
Default value (default): 1000
ti,pga-gain — not listed as required here #
The gain value for the PGA function. This is 8, 4, 2 or 1. The PGA gain affect the shunt voltage range. The range will be equal to: pga-gain * 40mV
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 1, 2, 4, 8
Default value (default): 8
ti,bus-range-microvolt — not listed as required here #
This is the operating range of the bus voltage in microvolt
Allowed values (enum): 16000000, 32000000
Default value (default): 32000000
ti,nfactor — not listed as required here #
Array of three(TMP513) or two(TMP512) n-Factor value for each remote temperature channel. See datasheet Table 11 for n-Factor range list and value interpretation.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 3
Array item rules (items) #
Default value (
default):0Minimum value (
minimum):0Maximum value (
maximum):255
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):hwmon-common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
tmp513@5c {
compatible = "ti,tmp513";
reg = <0x5c>;
shunt-resistor-micro-ohms = <330000>;
ti,bus-range-microvolt = <32000000>;
ti,pga-gain = <8>;
ti,nfactor = <0x1 0xf3 0x00>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)