path: root/Documentation/hwmon
diff options
authorEric Tremblay <etremblay@distech-controls.com>2019-11-12 17:30:01 -0500
committerGuenter Roeck <linux@roeck-us.net>2019-11-21 21:26:40 -0800
commit59dfa75e5d82a1e1b3d090a1d51fc14f66844576 (patch)
treee9fb3fa492bca6759d2606e091026d1b15eb06ac /Documentation/hwmon
parentdt-bindings: hwmon: Add TMP512/513 (diff)
hwmon: Add driver for Texas Instruments TMP512/513 sensor chips.
TI's TMP512/513 are I2C/SMBus system monitor chips. These chips monitor the supply voltage, supply current, power consumption and provide one local and up to three (TMP513) remote temperature sensors. It has been tested using a TI TMP513 development kit (TMP513EVM) Signed-off-by: Eric Tremblay <etremblay@distech-controls.com> Link: https://lore.kernel.org/r/20191112223001.20844-3-etremblay@distech-controls.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'Documentation/hwmon')
2 files changed, 104 insertions, 0 deletions
diff --git a/Documentation/hwmon/index.rst b/Documentation/hwmon/index.rst
index 0daa103d36e6..7784ba798dd9 100644
--- a/Documentation/hwmon/index.rst
+++ b/Documentation/hwmon/index.rst
@@ -155,6 +155,7 @@ Hardware Monitoring Kernel Drivers
+ tmp513
diff --git a/Documentation/hwmon/tmp513.rst b/Documentation/hwmon/tmp513.rst
new file mode 100644
index 000000000000..6c8fae4b1a75
--- /dev/null
+++ b/Documentation/hwmon/tmp513.rst
@@ -0,0 +1,103 @@
+.. SPDX-License-Identifier: GPL-2.0
+Kernel driver tmp513
+Supported chips:
+ * Texas Instruments TMP512
+ Prefix: 'tmp512'
+ Datasheet: http://www.ti.com/lit/ds/symlink/tmp512.pdf
+ * Texas Instruments TMP513
+ Prefix: 'tmp513'
+ Datasheet: http://www.ti.com/lit/ds/symlink/tmp513.pdf
+ Eric Tremblay <etremblay@distech-controls.com>
+This driver implements support for Texas Instruments TMP512, and TMP513.
+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
+The temperatures are measured in degrees Celsius with a range of
+-40 to + 125 degrees with a resolution of 0.0625 degree C.
+For hysteresis value, only the first channel is writable. Writing to it
+will affect all other values since each channels are sharing the same
+hysteresis value. The hysteresis is in degrees Celsius with a range of
+0 to 127.5 degrees with a resolution of 0.5 degree.
+The driver exports the temperature values via the following sysfs files:
+The driver read the shunt voltage from the chip and convert it to current.
+The readable range depends on the "ti,pga-gain" property (default to 8) and the
+shunt resistor value. The value resolution will be equal to 10uV/Rshunt.
+The driver exports the shunt currents values via the following sysFs files:
+The bus voltage range is read from the chip with a resolution of 4mV. The chip
+can be configurable in two different range (32V or 16V) using the
+ti,bus-range-microvolt property in the devicetree.
+The driver exports the bus voltage values via the following sysFs files:
+The bus power and bus currents range and resolution depends on the calibration
+register value. Those values are calculate by the hardware using those
+Current = (ShuntVoltage * CalibrationRegister) / 4096
+Power = (Current * BusVoltage) / 5000
+The driver exports the bus current and bus power values via the following
+sysFs files:
+The calibration process follow the procedure of the datasheet (without overflow)
+and depend on the shunt resistor value and the pga_gain value.