Hi,
I want check the battery charge status.
Please inform the related i2c register and method the convert to the percentages.
My environment :
am3352
tps65217
linux-3.14.26-g2489c02
u-boot-2014.07-g7e537bf
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Ahn,
This link might help: http://e2e.ti.com/support/power_management/pmu/f/200/t/395010 Let me know if you need more information, or a different suggestion.
Hi,
Here is tps65217 i2c register value.
# i2cdump -f -y -r 0x00-0x1e 0 0x24 b
0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef
00: e2 3f 00 01 b1 80 b2 01 00 00 08 00 7f 0c 18 02 ??.?????..?.????
10: 09 06 09 38 26 3f 7f 00 03 15 5f 32 40 20 00 ???8&??.??_2@ .
But, value is always same.
Is it correct?
Ahn,
Please confirm that you set the MUX[2:0] bits to 001. What does the MUX_OUT pin on the board read out when you measure it? You shouldn't, get the value of the bat in I2C, the register only tells what voltage to measure and output on the MUX_OUT pin.
Janice
Ahn,
Are you using the BBB? It is pin 16 on the TPS65217, you would need to feed that to the ADC on the AM335x
Janice
Hi,
I'm connect the MUX_OUT to AIN7.
And kernel config change.
CONFIG_IIO=y
CONFIG_TI_AM335X_ADC=y
But, I can't found the "ain*" file.
# find /sys/ -name "ain*"
#
Additionally, charger is not working.
How to set the CH_EN bit.
( CHG_EN bit is already set. )