Hi,\
iam using i.mx6sl platform in my custom board. jelly bean/ kitkat (using 3.0 kernel). i have to sense the battery voltage whether its charging or how many percent remaining. (like a tablet). It should inform about shut down .
Regarding this I am using tsc2004 touch controller and i connected aux pin to battery BQ24103(bat pin).
right now its showing as charged whether adapter is connected or not.
i look into that file /kernel/driver/power/sabresd_battery.c in that there is function (max11801_read_adc) so it called max11801 driver file.
how can i port to my i.mx6sl platform.
Hi,
I think there is not available a specific example for the i.MX6, but you could take a look at the SABRE platform for iMX53, which included a rechargeable battery:
http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=RDIMX53SABRETAB
Additionally, there are some other threads with some related applications (like a fuel gauge on Android), on the following:
https://community.freescale.com/message/443966
https://community.freescale.com/message/374152
Hope this will be useful for you.
Best regards!
/Carlos
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------