I'm trying to get my SBS based battery to work with the NanoPC-T4 and having issues. I managed to rebuild the kernel for android and the dtb and added sbs-battery driver to the kernel.

You can see this by the following output:

Code: Select all

mike@Scorpius:~$ adb shell dmesg | grep sbs-bat
[    1.570799] sbs-battery 0-000b: sbs_probe: Failed to get device status
[    1.580098] sbs-battery 1-000b: sbs_probe: Failed to get device status
[    1.596272] sbs-battery 2-000b: sbs_probe: Failed to get device status
[    1.611882] sbs-battery 7-000b: sbs_probe: Failed to get device status
[    1.619168] sbs-battery 4-000b: sbs_probe: Failed to get device status
mike@Scorpius:~$


I can't however get the board to detect the device on any of the available I2C busses. Is there something I need to add to the .dts file for power or enabling the GPIO I2C port?

I know this battery works with rk3399 because I have it working with another board based on that SOC by just adding the battery to the .dts on i2c4.

Thanks for any help!

Mike