max77620_thermal_read_temp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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