Hi,
I want check the battery charge status.
MUX_OUT is connected to the AIN4.
It was calculated charge status as follows:
# cat /sys/bus/iio/devices/iio\:device0/in_voltage4_raw
3108
# cat /sys/bus/iio/devices/iio\:device0/scan_elements/in_voltage4_type
le:u12/16>>0
Vin = 3108 * 1.8 / (2^12 - 1)
= 1.36
charge = 1.36 * 100 / 1.8
= 75%
Is it correct?
Battery is fully charged.
So it is normal that come to 100%.
My environment :
am3352
linux-3.14.26-g2489c02