LarsN Posted December 5, 2016 Share Posted December 5, 2016 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 = <®_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 More sharing options...
zador.blood.stained Posted December 6, 2016 Share Posted December 6, 2016 What am I missing? /etc/default/cpufrequtils ? Link to comment Share on other sites More sharing options...
LarsN Posted December 6, 2016 Author Share Posted December 6, 2016 /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? Link to comment Share on other sites More sharing options...
Recommended Posts