Lukas Fuchs Posted September 8, 2020 Share Posted September 8, 2020 (edited) 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 September 8, 2020 by Lukas Fuchs Link to comment Share on other sites More sharing options...
Werner Posted September 8, 2020 Share Posted September 8, 2020 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 More sharing options...
5kft Posted September 8, 2020 Share Posted September 8, 2020 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. 1 Link to comment Share on other sites More sharing options...
5kft Posted September 8, 2020 Share Posted September 8, 2020 DT additions checked in to sunxi-current and sunxi-dev (see https://github.com/armbian/build/commit/61e4b39303a2a07a828a2014af393064ba63f843). The board LEDs were also missing, so I added those too. Note that I don't actually have a NEO H3 to test with, but given that these parts of the board are identical to the NEO2 the changes should work Link to comment Share on other sites More sharing options...
Recommended Posts