These patches allow reasonably accurate voltage, current and power
consumption measurements on at least some of the Allwinner A10/A20 based
development boards using lm-sensors or by directly reading from sysfs.

So that some basic power consumption measurements can be done even by ordinary
users. Without access to lab power supplies, multimeters, cutting wires
and/or soldering :-)

Example of a Cubietruck running under heavy load:

$ sensors
Adapter: sunxi-i2c.0
ACIN voltage:        +5.03 V  (avg =  +5.01 V)
AXP20X temperature:  +57.6 C  (low  = -144.7 C, high = +264.8 C)
ACIN power:           3.02 W  (avg =   3.50 W)
ACIN current:        +0.60 A  (avg =  +0.70 A)

For best accuracy we need to look at the 'avg' results. The momentary values
are rather volatile.


Siarhei Siamashka (4):
  sunxi: axp20x: Fix misuse of the lowest 4-bits of temperature ADC
  sunxi: axp20x: Human readable label for the temperature sensor
  sunxi: axp20x: Report voltage, current and power for ACIN connector
  sunxi: axp20x: Calculate moving average for ACIN voltage/current/power

 drivers/power/axp_power/axp-mfd.c   |   4 +
 drivers/power/axp_power/axp20-mfd.h | 166 +++++++++++++++++++++++++++++++++---
 include/linux/mfd/axp-mfd.h         |   6 ++
 3 files changed, 163 insertions(+), 13 deletions(-)

-- 
1.8.3.2

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to