Page MenuHomeFreeBSD

extres/regulators: Add sysctls for regulator
ClosedPublic

Authored by manu on Mar 3 2018, 7:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 24, 1:08 PM
Unknown Object (File)
Fri, Oct 24, 10:54 AM
Unknown Object (File)
Aug 7 2025, 11:47 PM
Unknown Object (File)
Jul 29 2025, 2:59 AM
Unknown Object (File)
Jul 29 2025, 1:53 AM
Unknown Object (File)
Jul 28 2025, 11:30 PM
Unknown Object (File)
Jul 28 2025, 8:43 PM
Unknown Object (File)
Jul 28 2025, 8:43 PM
Subscribers

Details

Summary

For each regulators create an hw.<regname>. :
uvolt: Current value
always_on: 1 If the reg is always on
boot_on: 1 If the reg is set at boot time
enable_cnt: Number of consumer(s)
enable_delay: Delay before enabling the regulator
ramp_delay: The Ramp delay
max_uamp: The maximum value of the regulator in uAmps
min_uamp: The minimal value of the regulator in uAmps
max_uvolt: The maximum value of the regulator in uVolts
min_uvolt: The minimal value of the regulator in uVolts

Test Plan

Tested-On: Pine64-LTS

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 15361
Build 15415: arc lint + arc unit

Event Timeline

ian added inline comments.
sys/dev/extres/regulator/regulator.c
155

Extra 'l'

165

space before else

174

Why is this not sysctl_handle_int() ?

352

leading tab vs spaces? phab is showing CTLFLAG_RD aligned differently than others, but you can't trust phab's rendering of tabs much. same with the one below.

Update after ian@ comments

manu marked 4 inline comments as done.Mar 3 2018, 8:27 PM
This revision is now accepted and ready to land.Mar 3 2018, 8:40 PM
This revision was automatically updated to reflect the committed changes.