AnsweredAssumed Answered

how to sense battery voltage using adc and display

Question asked by THANGAMEENA RAJENDHIRAN on Feb 24, 2015
Latest reply on Mar 4, 2015 by CarlosCasillas


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.