Jump to content

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


LarsN

Recommended Posts

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?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines