20250423修改和查看荣品的PRO-RK3566开发板的buildroot linux系统的cpu频率
rootroot@rootroot-X99-Turbo:~/source$ find . -name fan53555.c
./kernel/drivers/regulator/fan53555.c
20250423修改和查看荣品的PRO-RK3566开发板的buildroot linux系统的cpu频率
2025/4/23 20:44
buildroot linux系统的cpu频率无法查看和修改呢?
@余顺?RK3566 buildroot linux系统的cpu频率无法查看和修改呢?/sys/devices/system/cpu/cpufreq目录里面是空的
/sys/devices/system/cpu/cpu0/cpufreq/
/sys/devices/system/cpu/cpu0/下面也没有cpufreq这个目录
没有节点看下是否有类似的打印 dmesg | grep 5355
@小灏星针对这个CPU供电的有个补丁明天发您这边
修改路径见补丁 。是需要改的下面的这个fan55555.c 的驱动文件,替换原驱动即可
rootroot@rootroot-X99-Turbo:~$
rootroot@rootroot-X99-Turbo:~$ cd source/
rootroot@rootroot-X99-Turbo:~/source$ ll
total 160
drwxrwxrwx 31 rootroot rootroot 4096 4月 19 16:48 ./
drwxr-xr-x 31 rootroot rootroot 4096 4月 23 13:46 ../
drwxrwxr-x 8 rootroot rootroot 4096 3月 12 11:25 app/
drwxrwxr-x 18 rootroot rootroot 4096 4月 19 16:33 buildroot/
lrwxrwxrwx 1 rootroot rootroot 39 3月 12 11:25 build.sh -> device/rockchip/common/scripts/build.sh*
lrwxrwxrwx 1 rootroot rootroot 22 3月 12 11:36 common -> device/rockchip/common/
drwxrwxr-x 9 rootroot rootroot 4096 3月 12 11:25 debian/
drwxrwxr-x 3 rootroot rootroot 4096 3月 12 11:25 device/
drwxrwxr-x 6 rootroot rootroot 4096 3月 12 11:25 docs/
drwxrwxr-x 29 rootroot rootroot 4096 3月 26 16:04 external/
drwxrwxr-x 8 rootroot rootroot 4096 4月 19 16:33 .git/
-rw-rw-r-- 1 rootroot rootroot 69 3月 12 11:25 .gitignore
drwxrwxr-x 2 rootroot rootroot 4096 3月 12 18:05 Image03关闭RK8089-开总电源/
drwxrwxr-x 2 rootroot rootroot 4096 3月 18 14:50 Image04加入了ll/
drwxrwxr-x 2 rootroot rootroot 4096 3月 21 10:21 Image05加入UART1/
drwxrwxr-x 2 rootroot rootroot 4096 3月 21 13:41 Image06加入UART1/
drwxrwxr-x 2 rootroot rootroot 4096 3月 21 14:22 Image07修改UART1/
drwxrwxr-x 2 rootroot rootroot 4096 3月 25 18:16 Image08单HDMI输出关闭LCD7/
drwxrwxr-x 2 rootroot rootroot 4096 3月 26 13:39 Image09更新以太网参数/
drwxrwxr-x 2 rootroot rootroot 4096 3月 26 14:06 Image10加入ethtool/
drwxrwxr-x 2 rootroot rootroot 4096 3月 26 16:04 Image11在DTS中写死100M/
drwxrwxr-x 2 rootroot rootroot 4096 4月 19 11:17 Image14编译9520/
drwxrwxr-x 2 rootroot rootroot 4096 3月 26 17:27 Image版本12在驱动中锁定100M/
drwxrwxr-x 2 rootroot rootroot 4096 3月 26 18:31 Image版本13尝试打开ADB/
drwxrwxr-x 2 rootroot rootroot 4096 4月 19 11:34 Image版本15章鹏的DTS/
drwxrwxr-x 2 rootroot rootroot 4096 4月 23 10:23 Image版本16测试60fps/
drwxrwxr-x 26 rootroot rootroot 4096 4月 19 16:34 kernel/
lrwxrwxrwx 1 rootroot rootroot 31 3月 12 11:25 Makefile -> device/rockchip/common/Makefile
drwxrwxr-x 9 rootroot rootroot 4096 4月 19 16:34 output/
drwxrwxr-x 3 rootroot rootroot 4096 3月 12 11:26 prebuilts/
lrwxrwxrwx 1 rootroot rootroot 32 3月 12 11:36 README.md -> device/rockchip/common/README.md
drwxrwxr-x 9 rootroot rootroot 4096 4月 19 16:20 rkbin/
lrwxrwxrwx 1 rootroot rootroot 41 3月 12 11:27 rkflash.sh -> device/rockchip/common/scripts/rkflash.sh*
-rwxrwxrwx 1 rootroot rootroot 60 12月 23 09:27 rk-linux5.10-20240828.tar.md5*
lrwxrwxrwx 1 rootroot rootroot 15 4月 19 16:34 rockdev -> output/firmware/
-rwxrwxrwx 1 rootroot rootroot 26651 12月 23 09:27 sdk版本提交记录.txt*
drwxrwxr-x 5 rootroot rootroot 4096 3月 12 11:27 tools/
drwxrwxr-x 27 rootroot rootroot 4096 4月 19 16:20 u-boot/
drwxrwxr-x 5 rootroot rootroot 4096 3月 12 11:27 uefi/
drwxrwxr-x 9 rootroot rootroot 4096 3月 12 11:27 yocto/
rootroot@rootroot-X99-Turbo:~/source$ find . -name fan53555.c
./kernel/drivers/regulator/fan53555.c
./buildroot/output/rockchip_rk3566/build/linux-headers-custom/drivers/regulator/fan53555.c
./buildroot/output/rockchip_rk3566/build/linux-custom/drivers/regulator/fan53555.c
./buildroot/output/rockchip_rk3566/build/host-qemu-6.1.0/roms/u-boot/drivers/power/pmic/fan53555.c
./buildroot/output/rockchip_rk3566/build/host-qemu-6.1.0/roms/u-boot/drivers/power/regulator/fan53555.c
./buildroot/output/rockchip_rk3566_recovery/build/linux-headers-custom/drivers/regulator/fan53555.c
./buildroot/output/rockchip_rk3566_recovery/build/host-qemu-6.1.0/roms/u-boot/drivers/power/pmic/fan53555.c
./buildroot/output/rockchip_rk3566_recovery/build/host-qemu-6.1.0/roms/u-boot/drivers/power/regulator/fan53555.c
rootroot@rootroot-X99-Turbo:~/source$
rootroot@rootroot-X99-Turbo:~/source$
Z:\source\kernel\drivers\regulator\fan53555.c
static int fan53555_regulator_probe(struct i2c_client *client,
const struct i2c_device_id *id)
{
struct device_node *np = client->dev.of_node;
struct fan53555_device_info *di;
struct fan53555_platform_data *pdata;
struct regulator_config config = { };
struct regmap *regmap;
unsigned int val;
int ret;
di = devm_kzalloc(&client->dev, sizeof(struct fan53555_device_info),
GFP_KERNEL);
if (!di)
return -ENOMEM;
di->desc.of_map_mode = fan53555_map_mode;
pdata = dev_get_platdata(&client->dev);
if (!pdata)
pdata = fan53555_parse_dt(&client->dev, np, &di->desc);
if (!pdata || !pdata->regulator) {
dev_err(&client->dev, "Platform data not found!\n");
return -ENODEV;
}
di->regulator = pdata->regulator;
if (client->dev.of_node) {
di->vendor =
(unsigned long)of_device_get_match_data(&client->dev);
} else {
/* if no ramp constraint set, get the pdata ramp_delay */
if (!di->regulator->constraints.ramp_delay) {
if (pdata->slew_rate >= ARRAY_SIZE(slew_rates)) {
dev_err(&client->dev, "Invalid slew_rate\n");
return -EINVAL;
}
di->regulator->constraints.ramp_delay
= slew_rates[pdata->slew_rate];
}
di->vendor = id->driver_data;
}
regmap = devm_regmap_init_i2c(client, &fan53555_regmap_config);
if (IS_ERR(regmap)) {
dev_err(&client->dev, "Failed to allocate regmap!\n");
return PTR_ERR(regmap);
}
di->regmap = regmap;
di->dev = &client->dev;
i2c_set_clientdata(client, di);
/* test chip */
ret = regmap_read(di->regmap, FAN53555_ID1, &val);
if (ret < 0) {
printk("fan53555 test 0x%x failed\n",client->addr);
}
else {
printk("fan53555 test 0x%x succes\n",client->addr);
if (0x1c == client->addr)
di->vendor = FAN53526_VENDOR_TCS;
else
di->vendor = FAN53555_VENDOR_SILERGY;
goto test_out;
};
client->addr = 0x40;
ret = regmap_read(di->regmap, FAN53555_ID1, &val);
if (ret < 0) {
//printk("fan53555 test 0x40 failed\n");
printk("fan53555 test 0x%x failed\n",client->addr);
}
else {
//printk("fan53555 test 0x40 succes\n");
//di->vendor = FAN53555_VENDOR_SILERGY;
printk("fan53555 test 0x%x succes\n",client->addr);
if (0x1c == client->addr)
di->vendor = FAN53526_VENDOR_TCS;
else
di->vendor = FAN53555_VENDOR_SILERGY;
goto test_out;
};
test_out:
/* Get chip ID */
ret = regmap_read(regmap, FAN53555_ID1, &val);
if (ret < 0) {
dev_err(&client->dev, "Failed to get chip ID!\n");
return ret;
}
di->chip_id = val & DIE_ID;
/* Get chip revision */
ret = regmap_read(regmap, FAN53555_ID2, &val);
if (ret < 0) {
dev_err(&client->dev, "Failed to get chip Rev!\n");
return ret;
}
di->chip_rev = val & DIE_REV;
dev_info(&client->dev, "FAN53555 Option[%d] Rev[%d] Detected!\n",
di->chip_id, di->chip_rev);
/* Device init */
ret = fan53555_device_setup(di, pdata);
if (ret < 0) {
dev_err(&client->dev, "Failed to setup device!\n");
return ret;
}
/* Register regulator */
config.dev = di->dev;
config.init_data = di->regulator;
config.regmap = regmap;
config.driver_data = di;
config.of_node = np;
ret = fan53555_regulator_register(di, &config);
if (ret < 0)
dev_err(&client->dev, "Failed to register regulator!\n");
return ret;
}
完整的LOG:
[ 22.142724] dwc3 fcc00000.dwc3: device reset
[ 22.151612] dwc3 fcc00000.dwc3: device reset
[ 22.273359] dwc3 fcc00000.dwc3: device reset
[ 22.385224] android_work: sent uevent USB_STATE=CONFIGURED
[ 22.385676] dwc3 fcc00000.dwc3: device reset
[ 22.392878] dwc3 fcc00000.dwc3: device reset
[ 22.515615] dwc3 fcc00000.dwc3: device reset
[ 22.617506] dwc3 fcc00000.dwc3: device reset
[ 22.628490] dwc3 fcc00000.dwc3: device reset
root@rk3566-buildroot:/#
root@rk3566-buildroot:/#
root@rk3566-buildroot:/#
root@rk3566-buildroot:/#
root@rk3566-buildroot:/# [ 36.220875] vcc3v3_lcd0_n: disabling
[ 36.221036] vcc3v3_lcd1_n: disabling
cd /sys/devices/system/cpu
root@rk3566-buildroot:/sys/devices/system/cpu# -
sh: -: command not found
root@rk3566-buildroot:/sys/devices/system/cpu# ls -l
total 0
drwxr-xr-x 7 root root 0 Aug 4 17:01 cpu0
drwxr-xr-x 7 root root 0 Aug 4 17:01 cpu1
drwxr-xr-x 7 root root 0 Aug 4 17:01 cpu2
drwxr-xr-x 7 root root 0 Aug 4 17:01 cpu3
drwxr-xr-x 3 root root 0 Aug 4 17:01 cpufreq
drwxr-xr-x 2 root root 0 Aug 4 17:01 cpuidle
drwxr-xr-x 2 root root 0 Aug 4 17:01 hotplug
-r--r--r-- 1 root root 4096 Aug 4 17:01 isolated
-r--r--r-- 1 root root 4096 Aug 4 17:01 kernel_max
-r--r--r-- 1 root root 4096 Aug 4 17:01 modalias
-r--r--r-- 1 root root 4096 Aug 4 17:01 offline
-r--r--r-- 1 root root 4096 Aug 4 17:01 online
-r--r--r-- 1 root root 4096 Aug 4 17:01 possible
drwxr-xr-x 2 root root 0 Aug 4 17:01 power
-r--r--r-- 1 root root 4096 Aug 4 17:01 present
drwxr-xr-x 2 root root 0 Aug 4 17:01 smt
-rw-r--r-- 1 root root 4096 Aug 4 17:01 uevent
drwxr-xr-x 2 root root 0 Aug 4 17:01 vulnerabilities
root@rk3566-buildroot:/sys/devices/system/cpu# cd cpufreq/
root@rk3566-buildroot:/sys/devices/system/cpu/cpufreq# ll
total 0
drwxr-xr-x 3 root root 0 Aug 4 17:01 ./
drwxr-xr-x 12 root root 0 Aug 4 17:01 ../
drwxr-xr-x 4 root root 0 Aug 4 17:01 policy0/
root@rk3566-buildroot:/sys/devices/system/cpu/cpufreq# cd policy0/
root@rk3566-buildroot:/sys/devices/system/cpu/cpufreq/policy0# ll
total 0
drwxr-xr-x 4 root root 0 Aug 4 17:01 ./
drwxr-xr-x 3 root root 0 Aug 4 17:01 ../
-r--r--r-- 1 root root 4096 Aug 4 17:01 affected_cpus
-r-------- 1 root root 4096 Aug 4 17:01 cpuinfo_cur_freq
-r--r--r-- 1 root root 4096 Aug 4 17:01 cpuinfo_max_freq
-r--r--r-- 1 root root 4096 Aug 4 17:01 cpuinfo_min_freq
-r--r--r-- 1 root root 4096 Aug 4 17:01 cpuinfo_transition_latency
-r--r--r-- 1 root root 4096 Aug 4 17:01 related_cpus
-r--r--r-- 1 root root 4096 Aug 4 17:01 scaling_available_frequencies
-r--r--r-- 1 root root 4096 Aug 4 17:01 scaling_available_governors
-r--r--r-- 1 root root 4096 Aug 4 17:01 scaling_cur_freq
-r--r--r-- 1 root root 4096 Aug 4 17:01 scaling_driver
-rw-r--r-- 1 root root 4096 Aug 4 17:01 scaling_governor
-rw-r--r-- 1 root root 4096 Aug 4 17:01 scaling_max_freq
-rw-r--r-- 1 root root 4096 Aug 4 17:01 scaling_min_freq
-rw-r--r-- 1 root root 4096 Aug 4 17:01 scaling_setspeed
drwxr-xr-x 2 root root 0 Aug 4 17:01 schedutil/
drwxr-xr-x 2 root root 0 Aug 4 17:01 stats/
root@rk3566-buildroot:/sys/devices/system/cpu/cpufreq/policy0# ll
total 0
drwxr-xr-x 4 root root 0 Aug 4 17:01 ./
drwxr-xr-x 3 root root 0 Aug 4 17:01 ../
-r--r--r-- 1 root root 4096 Aug 4 17:01 affected_cpus
-r-------- 1 root root 4096 Aug 4 17:01 cpuinfo_cur_freq
-r--r--r-- 1 root root 4096 Aug 4 17:01 cpuinfo_max_freq
-r--r--r-- 1 root root 4096 Aug 4 17:01 cpuinfo_min_freq
-r--r--r-- 1 root root 4096 Aug 4 17:01 cpuinfo_transition_latency
-r--r--r-- 1 root root 4096 Aug 4 17:01 related_cpus
-r--r--r-- 1 root root 4096 Aug 4 17:01 scaling_available_frequencies
-r--r--r-- 1 root root 4096 Aug 4 17:01 scaling_available_governors
-r--r--r-- 1 root root 4096 Aug 4 17:01 scaling_cur_freq
-r--r--r-- 1 root root 4096 Aug 4 17:01 scaling_driver
-rw-r--r-- 1 root root 4096 Aug 4 17:01 scaling_governor
-rw-r--r-- 1 root root 4096 Aug 4 17:01 scaling_max_freq
-rw-r--r-- 1 root root 4096 Aug 4 17:01 scaling_min_freq
-rw-r--r-- 1 root root 4096 Aug 4 17:01 scaling_setspeed
drwxr-xr-x 2 root root 0 Aug 4 17:01 schedutil/
drwxr-xr-x 2 root root 0 Aug 4 17:01 stats/
root@rk3566-buildroot:/sys/devices/system/cpu/cpufreq/policy0#
root@rk3566-buildroot:/sys/devices/system/cpu/cpufreq/policy0#
req erk3566-buildroot:/sys/devices/system/cpu/cpufreq/policy0# cat scaling_max_fr
1800000
cat: e: No such file or directory
root@rk3566-buildroot:/sys/devices/system/cpu/cpufreq/policy0#
root@rk3566-buildroot:/sys/devices/system/cpu/cpufreq/policy0#
req @rk3566-buildroot:/sys/devices/system/cpu/cpufreq/policy0# cat scaling_max_fr
1800000
root@rk3566-buildroot:/sys/devices/system/cpu/cpufreq/policy0#
root@rk3566-buildroot:/sys/devices/system/cpu/cpufreq/policy0#
root@rk3566-buildroot:/sys/devices/system/cpu/cpufreq/policy0# cd ../..
root@rk3566-buildroot:/sys/devices/system/cpu#
root@rk3566-buildroot:/sys/devices/system/cpu# ll
total 0
drwxr-xr-x 12 root root 0 Aug 4 17:01 ./
drwxr-xr-x 7 root root 0 Aug 4 17:01 ../
drwxr-xr-x 7 root root 0 Aug 4 17:01 cpu0/
drwxr-xr-x 7 root root 0 Aug 4 17:01 cpu1/
drwxr-xr-x 7 root root 0 Aug 4 17:01 cpu2/
drwxr-xr-x 7 root root 0 Aug 4 17:01 cpu3/
drwxr-xr-x 3 root root 0 Aug 4 17:01 cpufreq/
drwxr-xr-x 2 root root 0 Aug 4 17:01 cpuidle/
drwxr-xr-x 2 root root 0 Aug 4 17:01 hotplug/
-r--r--r-- 1 root root 4096 Aug 4 17:01 isolated
-r--r--r-- 1 root root 4096 Aug 4 17:01 kernel_max
-r--r--r-- 1 root root 4096 Aug 4 17:01 modalias
-r--r--r-- 1 root root 4096 Aug 4 17:01 offline
-r--r--r-- 1 root root 4096 Aug 4 17:01 online
-r--r--r-- 1 root root 4096 Aug 4 17:01 possible
drwxr-xr-x 2 root root 0 Aug 4 17:01 power/
-r--r--r-- 1 root root 4096 Aug 4 17:01 present
drwxr-xr-x 2 root root 0 Aug 4 17:01 smt/
-rw-r--r-- 1 root root 4096 Aug 4 17:01 uevent
drwxr-xr-x 2 root root 0 Aug 4 17:01 vulnerabilities/
root@rk3566-buildroot:/sys/devices/system/cpu#
root@rk3566-buildroot:/sys/devices/system/cpu# ll
total 0
drwxr-xr-x 12 root root 0 Aug 4 17:01 ./
drwxr-xr-x 7 root root 0 Aug 4 17:01 ../
drwxr-xr-x 7 root root 0 Aug 4 17:01 cpu0/
drwxr-xr-x 7 root root 0 Aug 4 17:01 cpu1/
drwxr-xr-x 7 root root 0 Aug 4 17:01 cpu2/
drwxr-xr-x 7 root root 0 Aug 4 17:01 cpu3/
drwxr-xr-x 3 root root 0 Aug 4 17:01 cpufreq/
drwxr-xr-x 2 root root 0 Aug 4 17:01 cpuidle/
drwxr-xr-x 2 root root 0 Aug 4 17:01 hotplug/
-r--r--r-- 1 root root 4096 Aug 4 17:01 isolated
-r--r--r-- 1 root root 4096 Aug 4 17:01 kernel_max
-r--r--r-- 1 root root 4096 Aug 4 17:01 modalias
-r--r--r-- 1 root root 4096 Aug 4 17:01 offline
-r--r--r-- 1 root root 4096 Aug 4 17:01 online
-r--r--r-- 1 root root 4096 Aug 4 17:01 possible
drwxr-xr-x 2 root root 0 Aug 4 17:01 power/
-r--r--r-- 1 root root 4096 Aug 4 17:01 present
drwxr-xr-x 2 root root 0 Aug 4 17:01 smt/
-rw-r--r-- 1 root root 4096 Aug 4 17:01 uevent
drwxr-xr-x 2 root root 0 Aug 4 17:01 vulnerabilities/
root@rk3566-buildroot:/sys/devices/system/cpu# ll
total 0
drwxr-xr-x 12 root root 0 Aug 4 17:01 ./
drwxr-xr-x 7 root root 0 Aug 4 17:01 ../
drwxr-xr-x 7 root root 0 Aug 4 17:01 cpu0/
drwxr-xr-x 7 root root 0 Aug 4 17:01 cpu1/
drwxr-xr-x 7 root root 0 Aug 4 17:01 cpu2/
drwxr-xr-x 7 root root 0 Aug 4 17:01 cpu3/
drwxr-xr-x 3 root root 0 Aug 4 17:01 cpufreq/
drwxr-xr-x 2 root root 0 Aug 4 17:01 cpuidle/
drwxr-xr-x 2 root root 0 Aug 4 17:01 hotplug/
-r--r--r-- 1 root root 4096 Aug 4 17:01 isolated
-r--r--r-- 1 root root 4096 Aug 4 17:01 kernel_max
-r--r--r-- 1 root root 4096 Aug 4 17:01 modalias
-r--r--r-- 1 root root 4096 Aug 4 17:01 offline
-r--r--r-- 1 root root 4096 Aug 4 17:01 online
-r--r--r-- 1 root root 4096 Aug 4 17:01 possible
drwxr-xr-x 2 root root 0 Aug 4 17:01 power/
-r--r--r-- 1 root root 4096 Aug 4 17:01 present
drwxr-xr-x 2 root root 0 Aug 4 17:01 smt/
-rw-r--r-- 1 root root 4096 Aug 4 17:01 uevent
drwxr-xr-x 2 root root 0 Aug 4 17:01 vulnerabilities/
root@rk3566-buildroot:/sys/devices/system/cpu# cd cpu0/
root@rk3566-buildroot:/sys/devices/system/cpu/cpu0# ll
total 0
drwxr-xr-x 7 root root 0 Aug 4 17:01 ./
drwxr-xr-x 12 root root 0 Aug 4 17:01 ../
-r--r--r-- 1 root root 4096 Aug 4 17:04 cpu_capacity
lrwxrwxrwx 1 root root 0 Aug 4 17:04 cpufreq -> ../cpufreq/policy0/
drwxr-xr-x 5 root root 0 Aug 4 17:04 cpuidle/
drwxr-xr-x 2 root root 0 Aug 4 17:04 hotplug/
lrwxrwxrwx 1 root root 0 Aug 4 17:04 of_node -> '../../../../firmware/devicetree/base/cpus/cpu@0'/
-rw-r--r-- 1 root root 4096 Aug 4 17:04 online
drwxr-xr-x 2 root root 0 Aug 4 17:04 power/
drwxr-xr-x 3 root root 0 Aug 4 17:04 regs/
lrwxrwxrwx 1 root root 0 Aug 4 17:04 subsystem -> ../../../../bus/cpu/
lrwxrwxrwx 1 root root 0 Aug 4 17:04 supplier:regulator:regulator.22 -> ../../../virtual/devlink/regulator:regulator.22--cpu:cpu0/
drwxr-xr-x 2 root root 0 Aug 4 17:01 topology/
-rw-r--r-- 1 root root 4096 Aug 4 17:01 uevent
root@rk3566-buildroot:/sys/devices/system/cpu/cpu0#
root@rk3566-buildroot:/sys/devices/system/cpu/cpu0#
root@rk3566-buildroot:/sys/devices/system/cpu/cpu0# cat cpufreq
cat: cpufreq: Is a directory
root@rk3566-buildroot:/sys/devices/system/cpu/cpu0# ll
total 0
drwxr-xr-x 7 root root 0 Aug 4 17:01 ./
drwxr-xr-x 12 root root 0 Aug 4 17:01 ../
-r--r--r-- 1 root root 4096 Aug 4 17:04 cpu_capacity
lrwxrwxrwx 1 root root 0 Aug 4 17:04 cpufreq -> ../cpufreq/policy0/
drwxr-xr-x 5 root root 0 Aug 4 17:04 cpuidle/
drwxr-xr-x 2 root root 0 Aug 4 17:04 hotplug/
lrwxrwxrwx 1 root root 0 Aug 4 17:04 of_node -> '../../../../firmware/devicetree/base/cpus/cpu@0'/
-rw-r--r-- 1 root root 4096 Aug 4 17:04 online
drwxr-xr-x 2 root root 0 Aug 4 17:04 power/
drwxr-xr-x 3 root root 0 Aug 4 17:04 regs/
lrwxrwxrwx 1 root root 0 Aug 4 17:04 subsystem -> ../../../../bus/cpu/
lrwxrwxrwx 1 root root 0 Aug 4 17:04 supplier:regulator:regulator.22 -> ../../../virtual/devlink/regulator:regulator.22--cpu:cpu0/
drwxr-xr-x 2 root root 0 Aug 4 17:01 topology/
-rw-r--r-- 1 root root 4096 Aug 4 17:01 uevent
root@rk3566-buildroot:/sys/devices/system/cpu/cpu0# cd cpufreq/
root@rk3566-buildroot:/sys/devices/system/cpu/cpu0/cpufreq# ll
total 0
drwxr-xr-x 4 root root 0 Aug 4 17:01 ./
drwxr-xr-x 3 root root 0 Aug 4 17:01 ../
-r--r--r-- 1 root root 4096 Aug 4 17:01 affected_cpus
-r-------- 1 root root 4096 Aug 4 17:01 cpuinfo_cur_freq
-r--r--r-- 1 root root 4096 Aug 4 17:01 cpuinfo_max_freq
-r--r--r-- 1 root root 4096 Aug 4 17:01 cpuinfo_min_freq
-r--r--r-- 1 root root 4096 Aug 4 17:01 cpuinfo_transition_latency
-r--r--r-- 1 root root 4096 Aug 4 17:01 related_cpus
-r--r--r-- 1 root root 4096 Aug 4 17:01 scaling_available_frequencies
-r--r--r-- 1 root root 4096 Aug 4 17:01 scaling_available_governors
-r--r--r-- 1 root root 4096 Aug 4 17:01 scaling_cur_freq
-r--r--r-- 1 root root 4096 Aug 4 17:01 scaling_driver
-rw-r--r-- 1 root root 4096 Aug 4 17:01 scaling_governor
-rw-r--r-- 1 root root 4096 Aug 4 17:01 scaling_max_freq
-rw-r--r-- 1 root root 4096 Aug 4 17:01 scaling_min_freq
-rw-r--r-- 1 root root 4096 Aug 4 17:01 scaling_setspeed
drwxr-xr-x 2 root root 0 Aug 4 17:01 schedutil/
drwxr-xr-x 2 root root 0 Aug 4 17:01 stats/
oot@rk3566-buildroot:/sys/devices/system/cpu/cpu0/cpufreq# cat scaling_max_freq
1800000
root@rk3566-buildroot:/sys/devices/system/cpu/cpu0/cpufreq# ll
total 0
drwxr-xr-x 4 root root 0 Aug 4 17:01 ./
drwxr-xr-x 3 root root 0 Aug 4 17:01 ../
-r--r--r-- 1 root root 4096 Aug 4 17:01 affected_cpus
-r-------- 1 root root 4096 Aug 4 17:01 cpuinfo_cur_freq
-r--r--r-- 1 root root 4096 Aug 4 17:01 cpuinfo_max_freq
-r--r--r-- 1 root root 4096 Aug 4 17:01 cpuinfo_min_freq
-r--r--r-- 1 root root 4096 Aug 4 17:01 cpuinfo_transition_latency
-r--r--r-- 1 root root 4096 Aug 4 17:01 related_cpus
-r--r--r-- 1 root root 4096 Aug 4 17:01 scaling_available_frequencies
-r--r--r-- 1 root root 4096 Aug 4 17:01 scaling_available_governors
-r--r--r-- 1 root root 4096 Aug 4 17:01 scaling_cur_freq
-r--r--r-- 1 root root 4096 Aug 4 17:01 scaling_driver
-rw-r--r-- 1 root root 4096 Aug 4 17:01 scaling_governor
-rw-r--r-- 1 root root 4096 Aug 4 17:01 scaling_max_freq
-rw-r--r-- 1 root root 4096 Aug 4 17:01 scaling_min_freq
-rw-r--r-- 1 root root 4096 Aug 4 17:01 scaling_setspeed
drwxr-xr-x 2 root root 0 Aug 4 17:01 schedutil/
drwxr-xr-x 2 root root 0 Aug 4 17:01 stats/
root@rk3566-buildroot:/sys/devices/system/cpu/cpu0/cpufreq#
root@rk3566-buildroot:/sys/devices/system/cpu/cpu0/cpufreq#
root@rk3566-buildroot:/sys/devices/system/cpu/cpu0/cpufreq# ls
affected_cpus scaling_available_frequencies scaling_min_freq
cpuinfo_cur_freq scaling_available_governors scaling_setspeed
cpuinfo_max_freq scaling_cur_freq schedutil
cpuinfo_min_freq scaling_driver stats
cpuinfo_transition_latency scaling_governor
related_cpus scaling_max_freq
e_ot@rk3566-buildroot:/sys/devices/system/cpu/cpu0/cpufreq# cat scaling_available
cat: scaling_available_: No such file or directory
e_ot@rk3566-buildroot:/sys/devices/system/cpu/cpu0/cpufreq# cat scaling_available
scaling_available_frequencies scaling_available_governors
e_ot@rk3566-buildroot:/sys/devices/system/cpu/cpu0/cpufreq# cat scaling_available
scaling_available_frequencies scaling_available_governors
e_frequencies ildroot:/sys/devices/system/cpu/cpu0/cpufreq# cat scaling_available
408000 600000 816000 1104000 1416000 1608000 1800000
root@rk3566-buildroot:/sys/devices/system/cpu/cpu0/cpufreq# cat
affected_cpus scaling_cur_freq
cpuinfo_cur_freq scaling_driver
cpuinfo_max_freq scaling_governor
cpuinfo_min_freq scaling_max_freq
cpuinfo_transition_latency scaling_min_freq
related_cpus scaling_setspeed
scaling_available_frequencies schedutil/
scaling_available_governors stats/
oot@rk3566-buildroot:/sys/devices/system/cpu/cpu0/cpufreq# cat scaling_cur_freq
1416000
root@rk3566-buildroot:/sys/devices/system/cpu/cpu0/cpufreq# ls
affected_cpus scaling_available_frequencies scaling_min_freq
cpuinfo_cur_freq scaling_available_governors scaling_setspeed
cpuinfo_max_freq scaling_cur_freq schedutil
cpuinfo_min_freq scaling_driver stats
cpuinfo_transition_latency scaling_governor
related_cpus scaling_max_freq
oot@rk3566-buildroot:/sys/devices/system/cpu/cpu0/cpufreq# cat cpuinfo_max_freq
1800000
root@rk3566-buildroot:/sys/devices/system/cpu/cpu0/cpufreq# cd ..
root@rk3566-buildroot:/sys/devices/system/cpu/cpu0# ls
cpu_capacity hotplug power supplier:regulator:regulator.22
cpufreq of_node regs topology
cpuidle online subsystem uevent
root@rk3566-buildroot:/sys/devices/system/cpu/cpu0# cd ..
root@rk3566-buildroot:/sys/devices/system/cpu# ls
cpu0 cpu3 hotplug modalias possible smt
cpu1 cpufreq isolated offline power uevent
cpu2 cpuidle kernel_max online present vulnerabilities
root@rk3566-buildroot:/sys/devices/system/cpu# cd cpu0/
root@rk3566-buildroot:/sys/devices/system/cpu/cpu0# ls
cpu_capacity hotplug power supplier:regulator:regulator.22
cpufreq of_node regs topology
cpuidle online subsystem uevent
root@rk3566-buildroot:/sys/devices/system/cpu/cpu0# cd cpufreq
root@rk3566-buildroot:/sys/devices/system/cpu/cpu0/cpufreq# ls
affected_cpus scaling_available_frequencies scaling_min_freq
cpuinfo_cur_freq scaling_available_governors scaling_setspeed
cpuinfo_max_freq scaling_cur_freq schedutil
cpuinfo_min_freq scaling_driver stats
cpuinfo_transition_latency scaling_governor
related_cpus scaling_max_freq
e_frequencies ildroot:/sys/devices/system/cpu/cpu0/cpufreq# cat scaling_available
408000 600000 816000 1104000 1416000 1608000 1800000
oot@rk3566-buildroot:/sys/devices/system/cpu/cpu0/cpufreq# cat scaling_governor
schedutil
e_governors buildroot:/sys/devices/system/cpu/cpu0/cpufreq# cat scaling_available
interactive conservative ondemand userspace powersave performance schedutil
caling_governor droot:/sys/devices/system/cpu/cpu0/cpufreq# echo performance > s
oot@rk3566-buildroot:/sys/devices/system/cpu/cpu0/cpufreq# cat scaling_governor
performance
oot@rk3566-buildroot:/sys/devices/system/cpu/cpu0/cpufreq# cat scaling_cur_freq
1800000
root@rk3566-buildroot:/sys/devices/system/cpu/cpu0/cpufreq#
root@rk3566-buildroot:/sys/devices/system/cpu/cpu0/cpufreq#
root@rk3566-buildroot:/sys/devices/system/cpu/cpu0/cpufreq#
root@rk3566-buildroot:/sys/devices/system/cpu/cpu0/cpufreq#
root@rk3566-buildroot:/sys/devices/system/cpu/cpu0/cpufreq#
root@rk3566-buildroot:/sys/devices/system/cpu/cpu0/cpufreq#
root@rk3566-buildroot:/sys/devices/system/cpu/cpu0/cpufreq#