I have a IMX6 system built around a CPU module. the module's original base board was powered, and thus had emulated battery support. my system is like a tablet, so I added a ds2786 fuel gauge IC, and added it to my board config in the kernel.
I also removed the battery emulation in my android init.rc file.
The IC seems to work. in android I get a battery icon with a believable percentage value, but it never changes.
I added some kernel printk() statements to the fuel gauge code, and the battery capacity seems to be read, but only twice; once around where the device is probed, and then once more once android starts up. After that its never updated. I havent added a power button yet, so i'm not sure if this would be checked again when exiting suspend, but I feel there is some sort of power monitor process thats not being called. I dont know if this is in the android side or the kernel side.
Does anyone have any ideas?