Skip to content

spacemit: add CPU scaling for OrangePi R2S#3

Open
21hertz wants to merge 1 commit into
dhewg:spacemitfrom
21hertz:r2s-cpu-scaling
Open

spacemit: add CPU scaling for OrangePi R2S#3
21hertz wants to merge 1 commit into
dhewg:spacemitfrom
21hertz:r2s-cpu-scaling

Conversation

@21hertz

@21hertz 21hertz commented Jul 15, 2026

Copy link
Copy Markdown

Adds CPU frequency scaling for the OrangePi R2S, mirroring the existing RV2 support: includes k1-opp.dtsi and wires the eight CPU cores to the P1 PMIC's buck1 rail (buck1_0v9).
Tested on real R2S hardware — the OPP steps appear and frequencies scale under load:

# cat /sys/devices/system/cpu/cpufreq/policy0/scaling_available_frequencies
614400 819000 1000000 1228800 1600000

Note: Upstream carries the R2S board and its PMIC, but the shared k1-opp.dtsi / cpufreq enablement isn't in mainline yet.

Signed-off-by: jhl <jonatanh@hotmail.com>
@21hertz
21hertz marked this pull request as ready for review July 15, 2026 15:46
@21hertz

21hertz commented Jul 16, 2026

Copy link
Copy Markdown
Author

@dhewg : here's a patch for the R2S. It's my first pull request, let me know if I didn't follow guidelines or best practices correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant