msm8226-mainline / linux

Mainline Kernel fork for MSM8x26 devices
Other
2 stars 5 forks source link

Upstream pm8226 bms #4

Open Susurrus opened 9 months ago

Susurrus commented 9 months ago

milletwifi doesn't have a fuel gauge instead using the BMS circuitry within PM8226.

pm8916 vm-bms doesn't seem to be used here.

On milletwifi, there is a BMS_BYP and BMS_CSP sensing voltage across a 0.01Ω resistor. A VBAT_SNS pin is also connected to the same as BMS_CSP for some reason.

z3ntu commented 9 months ago

I think my latest branch for pm8941 (msm8974) BMS is at https://github.com/z3ntu/linux/commits/qcom-msm8974-6.1.y-bms Never really worked great but probably has a lot of good code there already. Depending on how different pm8941 and pm8226 BMS is, this could be a good reference.