Page MenuHomeFreeBSD

AXP209 Power Management Unit temperature sensor support
ClosedPublic

Authored by jmcneill_invisible.ca on Feb 16 2016, 11:05 AM.
Tags
Referenced Files
Unknown Object (File)
Thu, Oct 9, 8:40 AM
Unknown Object (File)
Sat, Sep 20, 3:54 AM
Unknown Object (File)
Fri, Sep 19, 9:12 AM
Unknown Object (File)
Thu, Sep 18, 12:44 PM
Unknown Object (File)
Thu, Sep 18, 12:40 PM
Unknown Object (File)
Sep 11 2025, 11:51 PM
Unknown Object (File)
Aug 26 2025, 2:39 AM
Unknown Object (File)
Aug 17 2025, 1:47 PM
Subscribers

Details

Summary

This change exposes the AXP209 Power Management "Internal temperature" sensor via sysctl:

dev.axp209_pmu.0.temp: 26.1C

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jmcneill_invisible.ca retitled this revision from to AXP209 Power Management Unit temperature sensor support.
jmcneill_invisible.ca updated this object.
jmcneill_invisible.ca edited the test plan for this revision. (Show Details)
jmcneill_invisible.ca added a reviewer: ARM.
jmcneill_invisible.ca set the repository for this revision to rS FreeBSD src repository - subversion.
jmcneill_invisible.ca added a project: ARM.

You might need to rebase on my recent change

sys/arm/allwinner/axp209.c
198 ↗(On Diff #13356)

You don't seem to be using AXP209_TEMP in the sysctl handler.

sys/arm/allwinner/axp209.c
198 ↗(On Diff #13356)

I figured we'd eventually add other sensors (voltage etc). Should I pass 0 for now?

sys/arm/allwinner/axp209.c
198 ↗(On Diff #13356)

I would check the value in axp209_sysctl and return ENOENT if it's invalid.

Added test for sensor type in axp209_sensor, cleanup whitespace.

This revision was automatically updated to reflect the committed changes.