Maccraft123 / Cadmium

GNU General Public License v3.0
313 stars 65 forks source link

Regarding the charging systems of these chromebooks #48

Open alifilhan0 opened 3 years ago

alifilhan0 commented 3 years ago

does charging and fuelgauge work on these chromebooks? Specifically the Lenovo Duet chromebook with the MT6358 PMIC? If yes then how?

apple-corps commented 3 years ago

I believe it charges but I don't know the details.

apple-corps commented 3 years ago

I assume it uses either a patch or the kernel to provide https://lwn.net/Articles/814498/ .

apple-corps commented 3 years ago

https://cateee.net/lkddb/web-lkddb/REGULATOR_MT6358.html This is set in the kernel so yes.

alifilhan0 commented 3 years ago

I know about that, but I don't see any fuel gauge and charging driver. Only the regulator driver which supplies the power to different peripherals right? Like there are drivers for MAX17042 and such...can you confirm that the PMIC doesn't need those drivers I am concerned about? Does the battery percentage show properly and does it detect charging properly?

apple-corps commented 3 years ago

I think it does but better ask the boss

alifilhan0 commented 3 years ago

I am sorry for the inconvenience, later found out that there is the EC chip which controls the charging and the power regulation for the tablet, and the power is then distrusted to the peripherals. But it would have been better if I could get a power/charger and fuelgauge driver for mediatek pmic. Is there any way I can ask for such a driver to the mediatek community? I am actually working to get a mainline kernel on a mediatek device with only a mediatek pmic as the charging hardware. Till now I could write a regulator driver for the chip but the other drivers are missing.

apple-corps commented 3 years ago

@alifilhan0 I have no idea. @Maccraft123 might have some advice as this is her source tree. Otherwise maybe reach out to the linux kernel community or perhaps a mediatek mailing list.