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)
Mar 6 2024, 1:03 AM
Unknown Object (File)
Mar 6 2024, 1:03 AM
Unknown Object (File)
Dec 31 2023, 7:43 AM
Unknown Object (File)
Dec 31 2023, 7:43 AM
Unknown Object (File)
Dec 20 2023, 12:20 AM
Unknown Object (File)
Nov 13 2023, 11:12 AM
Unknown Object (File)
Oct 27 2023, 9:28 PM
Unknown Object (File)
Oct 25 2023, 5:44 AM
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.