msm8953-mainline / linux

Linux mainline kernel with WIP patches for msm8953 devices
Other
112 stars 60 forks source link

Add charging driver #25

Closed alikates closed 2 years ago

alikates commented 2 years ago

I've been writing a charger driver which requires using msm8996 fuel gauge driver. Somehow it doesn't work with the driver in our tree. I also updated pmi8950.dtsi to use the new drivers. Devices using the charger and fuel gauge will need to define a battery node with all the battery voltages and current ratings.

SirSireesh commented 2 years ago

The driver in our tree is practically the downstream driver, the to-be-mainlined driver probably does things a little differently. Either way, this is awesome work, thanks!

alikates commented 2 years ago

It would be cool to test the driver in other devices. Note that i'm still working in the temperature monitoring and charge throttling so please don't let the phones charging unattended. There shouldn't be any issues as the max current the driver sets is 1 amp, which should be fine for most devices but better to be safe...

alikates commented 2 years ago

I guess i can close this now as it's already in msm8953-5.18.3-smbcharger