Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[BananaPi] Vanilla/Next kernel run A20 at 1008MHz?

Featured Replies

I know the A20 isn't really build for OC, but I would still like to do some tests with it running at 1008Mhz.

 

As far as I understand Kernel 4.X doesn't use the fex files anymore, but rely on the dts (dtsi) files.

 

I edited sun7i-a20-bananapi.dts

&cpu0 {
	cpu-supply = <&reg_dcdc2>;
	operating-points = <
		/* kHz	  uV */
		1008000	1425000
		960000	1400000
		912000	1400000
		864000	1350000
		720000	1250000
		528000	1150000
		312000	1100000
		144000	1050000
		>;
};

I made sure the build script doesn't overwrite the edited dts file.

But BananaPi still says the max freq is 960 instead of 1008.

root@bananapi:/tmp# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq 
960000

I even double checked boot/dtb-4.8.12-sunxi/sun7i-a20-bananapi.dtb with device tree compiler to see if the values I set are there.

The hexadecimal matches, so I don't understand why I can't get it working.

		cpu@0 {
			compatible = "arm,cortex-a7";
			device_type = "cpu";
			reg = <0x0>;
			clocks = <0x7>;
			clock-latency = <0x3b9b0>;
			operating-points = <0xf6180 0x15be68 0xea600 0x155cc0 0xdea80 0x155cc0 0xd2f00 0x149970 0xafc80 0x1312d0 0x80e80 0x118c30 0x4c2c0 0x10c8e0 0x23280 0x100590>;
			#cooling-cells = <0x2>;
			cooling-min-level = <0x0>;
			cooling-max-level = <0x6>;
			cpu-supply = <0x8>;
			linux,phandle = <0xb>;
			phandle = <0xb>;
		};

What am I missing?

  • Author

/etc/default/cpufrequtils ?

It is set to 1008000 too.

ENABLE=true
MIN_SPEED=480000
MAX_SPEED=1008000
GOVERNOR=schedutil

Is it the scaling driver that has the max speed hardcoded?

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.