Page MenuHomeFreeBSD

Add support for CPU freq to Raspberry PI 4
ClosedPublic

Authored by me_jamesrm.com on Jun 18 2020, 9:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 1, 3:52 PM
Unknown Object (File)
Apr 21 2025, 2:02 AM
Unknown Object (File)
Apr 17 2025, 1:58 AM
Unknown Object (File)
Mar 15 2025, 6:04 AM
Unknown Object (File)
Mar 7 2025, 2:51 PM
Unknown Object (File)
Feb 23 2025, 8:28 PM
Unknown Object (File)
Feb 23 2025, 1:47 AM
Unknown Object (File)
Feb 14 2025, 2:33 AM

Details

Summary

Adds the raspberry pi 4 to the compat data
in the bcm2835_cpufreq driver.

Test Plan

Before this patch running powerd(4) would fail

Afterwards powerd(4) works. Also the output from
sysctl.dev.cpu.0 appears as follows:

dev.cpu.0.temperature: 54.0C
dev.cpu.0.freq_levels: 1500/-1
dev.cpu.0.freq: 1500
dev.cpu.0.%parent: cpulist0
dev.cpu.0.%pnpinfo: name=cpu@0 compat=arm,cortex-a72
dev.cpu.0.%location:
dev.cpu.0.%driver: cpu
dev.cpu.0.%desc: Open Firmware CPU

and the CPU frequency can be controlled via:

sysctl dev.cpu.0.freq=1500

Diff Detail

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