I checked 4.9 kernel, you don’t need to apply the patch “cpufreq: hisilicon: add acpu driver”; 4.9 kernel has added “hi6220” supporting in the file drivers/cpufreq/cpufreq-dt-platdev.c; so by default CPUFreq driver should be enabled. Please check if folder “/sys/devices/system/cpu/cpu0/cpufreq” exists or not?
According to your posting for kernel configuration, I can see you have enabled “CONFIG_CPU_THERMAL”, so this can let thermal management cap CPU capacity if SoC temperature crosses trip point:
Could you check the folder “/sys/class/thermal/thermal_zone0/”? You could see there have node “/sys/class/thermal/thermal_zone0/cdev0/”, this means the binding for CPU cooling device successfully.
root@linaro-developer:~# ls /sys/class/thermal/thermal_zone0/
available_policies cdev0_weight k_d k_pu policy subsystem trip_point_0_hyst trip_point_1_hyst type
cdev0 emul_temp k_i mode power sustainable_power trip_point_0_temp trip_point_1_temp uevent
cdev0_trip_point integral_cutoff k_po offset slope temp trip_point_0_type trip_point_1_type