Page 1 of 1

Battery fuel gauge IC support

Posted: Thu Nov 28, 2019 9:59 pm
by kirill
I'm developing the system which will be using SOM-RK3399 and powered from the Li-ion battery. The system is running Android. Currently, Android shows battery as 'Fully Charged' all time. Is it possible to add any battery fuel gauge IC to the system (I2C / SMBUS) which will allow showing the actual percentage of the battery charge in Android status menu?

Are any of battery fuel gauge IC already supported in Android for RK3399?

Thanks a lot in advance.

Re: Battery fuel gauge IC support

Posted: Fri Nov 29, 2019 3:24 am
by v8dave
You can do this but you will need to modify the AOSP and the kernel to support the IC you want to use.

Re: Battery fuel gauge IC support

Posted: Fri Nov 29, 2019 7:03 am
by kirill
This should be fine. Could you please guide me to some examples / links? Thanks a lot!

Re: Battery fuel gauge IC support

Posted: Fri Nov 29, 2019 7:25 am
by v8dave
Use make menuconfig on the Kernel to look through and find a suitable driver of the fuel gauge IC you want to use. Then you need to find a suitable Android code to read this. You can use the FAKE battery code from FA as a starting point.

Re: Battery fuel gauge IC support

Posted: Fri Nov 29, 2019 8:49 pm
by kirill
Thanks a lot for pointing! Looks clear now.