This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM8168基于DVRRDK的AVS打印



hi,TIer.

我使用DM8168 CCYG4+DVRRDK 04.00.00.03,使用GPIO控制AVS电源打印。如chris meng在deyisupport说的,我也在set_voltage函数(smartreflex-ti816x.c文件)中添加了打印。

/* Get the current voltage from GPIO */
prev_volt = regulator_get_voltage(sr->reg);
printk("netra: prev_volt is %d!\n", prev_volt);

regulator_set_voltage(sr->reg, new_volt, new_volt);
printk("netra: new_volt is %d!\n", new_volt);

但是我发现在不同的主板上,表现不一样,所有主板都是DM8168CCYG4+DVRRDK 04.00.00.03。

现象如下:

有的主板,内核起来后就会不停打印,MCFw DEMO运气起来后还是会不停的打印,暂命名为主板A,有的主板内核起来后不打印,只会在RDK起来后打印一次。

主板A实际电压数值和其打印数值不对应,打印数值是103400.。。应该是1.034V的样子,但实际是1.020V,一直是1.020V。

所以想请教TI工程师两个问题:

1. AVS驱动中始终打印,是正常情况吗?我之前看过TI工程师说只会上电打印一次,调整一次也就是。

2. 实际电压不调整,或者说我用万用表没有测量到电压变化正常吗?AVS驱动应该是工作的,因为有的主板电源电压就是1.030V左右。而且,用

mount -t debugfs debugfs /sys/kernel/debug  去看相关数值,也是有的。

谢谢。

  • SuitJune,

    1. AVS会根据芯片的情况调整的,但电压变化应该不大。

    What is Class2 SmartReflex™ Operation?

    The hardware monitors real-time performance; small software loop runs on ARM processor to change voltage whenever necessary. With a Class 2 SmartReflex implementation, the ARM processor controls all of the functions of the TPS devices. If possible, use a dedicated I2C bus between the processor and TPS device. If you must share the bus with other peripherals, group the TPS devices (meant for voltage control) with peripherals which require only infrequent I2C activity.

    2. 请问你测量的电压是在电源芯片端还是是DM816x端?如果是DM816x端,电压有所下降是可能的。

  • 谢谢回复~

    我再观察测试下。