“Charger” is a bit overloaded term - the phone contains a charging chip (bq25895) which is the part that’s actually connected to the battery’s thermistor (which is why it’s bq25890 driver that exports this value). From the phone’s perspective, what you call “charger” is actually a “power supply”
8 Likes