Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: hwmon: (ina3221) Add ti,single-shot property

By default, ina3221, as a hardware monitor, continuously measures
the inputs and generates corresponding data. However, for battery
powered devices, this mode might be power consuming.

This patch adds a "ti,single-shot" property to allow changing the
default continuous mode to single-shot operating mode.

Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Nicolin Chen and committed by
Guenter Roeck
2e1ce201 d703e7f1

+10
+10
Documentation/devicetree/bindings/hwmon/ina3221.txt
··· 6 6 - reg: I2C address 7 7 8 8 Optional properties: 9 + - ti,single-shot: This chip has two power modes: single-shot (chip takes one 10 + measurement and then shuts itself down) and continuous ( 11 + chip takes continuous measurements). The continuous mode is 12 + more reliable and suitable for hardware monitor type device, 13 + but the single-shot mode is more power-friendly and useful 14 + for battery-powered device which cares power consumptions 15 + while still needs some measurements occasionally. 16 + If this property is present, the single-shot mode will be 17 + used, instead of the default continuous one for monitoring. 18 + 9 19 = The node contains optional child nodes for three channels = 10 20 = Each child node describes the information of input source = 11 21