loongson-community / discussions

Cross-community issue tracker & discussions / 跨社区工单追踪 & 讨论场所
7 stars 0 forks source link

英雄帖:Linux PMBus driver for the AVS controller in 3A6000+ #37

Open xen0n opened 6 months ago

xen0n commented 6 months ago

According to the 3A6000 register usage manual, Section 15.4, there is an AVS controller from which voltage, current and temperature parameters of the different power domains could be read out (and possibly manipulated). This makes it prime candidate and low-hanging fruit to write a driver in drivers/hwmon/pmbus.

There is already a user-space equivalent done by @naivekun that can be used as a reference.

naivekun commented 6 months ago

Also, C code can be used here. https://github.com/naivekun/LoongsonOverclockPkg/blob/master/LoongsonOverclockPkg/Library/LS3A6KPackageControlLib/PackageControl.c

xry111 commented 5 months ago

Btw can we make a cpufreq driver for power-saving and/or overclocking?