Jump to content

CPU Frequeny Scaling NanopiNEO


Lukas Fuchs

Recommended Posts

Hello, I am using Armbian on a Nanopi Neo Allwinner h3.
I build Armbian with the Armbianbuild repository and noticed that the CPU Frequency in all builds (minimal/standard) (buster/focal) are between 480MHz and 1.37GHz, but the H3 Soc only supports up to 1.2GHz.
This problem also occurs on the finished builds which are there to download from the Armbian website. (Tried with Armbian Buster kernel 5.8.y and Armbian Bionic 5.8.y)

root@nanopineo:~# cpufreq-info 
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
  driver: cpufreq-dt
  CPUs which run at the same hardware frequency: 0 1 2 3
  CPUs which need to have their frequency coordinated by software: 0 1 2 3
  maximum transition latency: 244 us.
  hardware limits: 480 MHz - 1.37 GHz
  available frequency steps: 480 MHz, 648 MHz, 816 MHz, 960 MHz, 1.01 GHz, 1.10 GHz, 1.20 GHz, 1.30 GHz, 1.37 GHz
  available cpufreq governors: conservative, userspace, powersave, ondemand, performance, schedutil
  current policy: frequency should be within 480 MHz and 1.37 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 480 MHz (asserted by call to hardware).
  cpufreq stats: 480 MHz:77.19%, 648 MHz:0.91%, 816 MHz:0.01%, 960 MHz:0.00%, 1.01 GHz:0.01%, 1.10 GHz:0.02%, 1.20 GHz:0.02%, 1.30 GHz:0.03%, 1.37 GHz:21.80%  (421)


In the Armbianbuild documentation the default settings in H2+ and H3 for the NanoPi Neo are 240-912MHz.

Is there an option to set the CPU Frequency to this range or is it a bug in the newer releases since the Nanopi Neo is a older board?

Edited by Lukas Fuchs
Link to comment
Share on other sites

Quote

, but the H3 Soc only supports up to 1.2GHz.

The SoC tolerates a slightly higher frequency quite well. If you are uncomfortable with that you can limit the frequency simply by editing your /etc/default/cpufrequtils file.

Quote

(Tried with Armbian Buster kernel 5.8.y and Armbian Bionic 5.8.y)

All flavors, regardless of Bionic, Focal, Bullseye or Buster sharing the very same kernel package. Therefore the hardware support is identical.

 

Quote

In the Armbianbuild documentation the default settings in H2+ and H3 for the NanoPi Neo are 240-912MHz.

Seems outdated. I'll update that by chance.

 

Quote

Is there an option to set the CPU Frequency to this range

Like described above simply use the cpufrequtils file and adjust MIN and MAX

Link to comment
Share on other sites

Actually from the schematic (http://wiki.friendlyarm.com/wiki/images/f/fd/Schematic_NanoPi-NEO-V1.4-1801-20180320.pdf), the NEO H3 has an MP2143DJ GPIO regulator, which supports switching betwen 1.1v/1.3v - the board DT is just missing the regulator entry.  This is why the default maximum CPU clock is too high; adding this regulator will correctly address this problem by default and will also allow the board to be overclocked (potentially to 1.3GHz) using the overclocking overlays.  I'll look at adding support for this in the DT.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines