summaryrefslogtreecommitdiffstats
path: root/Documentation/hwmon
diff options
context:
space:
mode:
authorNicolin Chen <nicoleotsuka@gmail.com>2019-04-16 21:41:31 +0200
committerGuenter Roeck <linux@roeck-us.net>2019-04-16 22:10:20 +0200
commit5c090abf945bf5fd496c861f371410888be8f4de (patch)
tree1692a7111591bfffead6cb766dbd7c989f5e14a4 /Documentation/hwmon
parenthwmon: (pmbus/isl68137) Add driver for Intersil ISL68137 PWM Controller (diff)
downloadlinux-5c090abf945bf5fd496c861f371410888be8f4de.tar.xz
linux-5c090abf945bf5fd496c861f371410888be8f4de.zip
hwmon: (ina3221) Add averaging mode support
The CONFIG register has a 3-bit averaging mode field for users to setup the number of samples that are collected and averaged together. This is very useful to filter noise from sensor data. This patch adds a 'samples' sysfs node using hwmon_chip_samples of hwmon core, and updates wait time calculation by taking this samples value into account. Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'Documentation/hwmon')
-rw-r--r--Documentation/hwmon/ina32213
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/hwmon/ina3221 b/Documentation/hwmon/ina3221
index 4b82cbfb551c..ed3f22769d4b 100644
--- a/Documentation/hwmon/ina3221
+++ b/Documentation/hwmon/ina3221
@@ -35,3 +35,6 @@ curr[123]_max Warning alert current(mA) setting, activates the
average is above this value.
curr[123]_max_alarm Warning alert current limit exceeded
in[456]_input Shunt voltage(uV) for channels 1, 2, and 3 respectively
+samples Number of samples using in the averaging mode.
+ Supports the list of number of samples:
+ 1, 4, 16, 64, 128, 256, 512, 1024