max77620_thermal_read_temp(9)
β¨ NAME β¨
Welcome to max77620_thermal_read_temp(9) from the Kernel API Manual, bestie π. The function is max77620_thermal_read_temp, and it reads the PMIC die temperatue β yes, temperatue, that's the spelling on the page, and we respect the lore ππ
.
π οΈ SYNOPSIS π οΈ
int max77620_thermal_read_temp (struct thermal_zone_device *tz , int
*temp );
π ARGUMENTS π
tzβ-- undescribed --. That's literally all the page gives us; not me being mysterious π.tempβ Temperature in millidegrees Celsius. Millidegrees, bestie β keep those units exact π‘οΈβ¨.
π§ DESCRIPTION π§
Okay so the actual temperature of PMIC die is not available from PMIC. No cap. The PMIC is not out here handing you a real thermometer reading π.
PMIC only tells the status β whether it has crossed or not the threshold level of 120degC or 140degC.
If threshold has not been crossed then assume die temperature as 100degC, else 120degC or 140deG based on the PMIC die temp threshold status. Yep, 140deG β capital G and all β is exactly what the page says, so keep it πβ¨.
Return 0 on success otherwise error number to show reason of failure. Periodt π
.
Vibe check: this is threshold-status energy, not a full temperature readout. Highkey important π«Ά.
π SEE ALSO π
- Kernel file
./drivers/thermal/max77620_thermal.cβ that's where the whole thing lives, iykyk π.
This page comes from ./drivers/thermal, dated October 2026, and it's the max77620_thermal_read_temp(9) manual page β mwah ππ. Go forth and read that PMIC die temperatue (or, like, its threshold status) responsibly, bestie πβ¨.
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms