Jump to content

[Armbian build PR] - arm64-sun50i-h616 Add-cpu-frequency


RSS Bot

Recommended Posts

Description

Add cpu-frequency to orangepizero2, allwinner h616.

From sunxi 5.16 the drivers and dtsi, dts files have the necessary support.

Add: sun50i-h616-cpu-opp.dtsi

Additions: sun50i-h616-orangepi-zero2.dts

+#include "sun50i-h616-cpu-opp.dtsi"

+&cpu0 { + cpu-supply = <&reg_dcdca>; +};

How Has This Been Tested?

Test A: BUILD compiled and booted

Test B: BOARD @orangepizero2:~$ uname -a Linux orangepizero2 5.19.6-sunxi64 #trunk SMP Mon Sep 5 23:16:49 UTC 2022 aarch64 GNU/Linux @orangepizero2:~$ find /sys -name cpufreq /sys/devices/system/cpu/cpu3/cpufreq /sys/devices/system/cpu/cpu1/cpufreq /sys/devices/system/cpu/cpufreq /sys/devices/system/cpu/cpu2/cpufreq /sys/devices/system/cpu/cpu0/cpufreq /sys/module/cpufreq

Checklist:

  • [ ] My code follows the style guidelines of this project
  • [ ] I have performed a self-review of my own code
  • [ ] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [ ] My changes generate no new warnings
  • [ ] Any dependent changes have been merged and published in downstream modules

View the full article

Link to comment
Share on other sites

Armbian & Khadas are rewarding contributors

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines