大家好、
我使用 TPS65132B5YFFR 输出5.8V 电压、I2C 配置如下:
&qupv3_SE2_i2c{
状态="ok";
TPS@3E{
兼容="tps65132";
reg =<0x3E>;
};
};
但实际测量电压仅为5.5V。
希望能得到帮助!
此致、
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.
您好!
我想知道如何将0x00和0x01寄存器写入0x12?
下面是我的操作方法:
1.define 函数:redriver_i2c_reg_set
静态 int redriver_i2c_reg_set (struct tps65132_regulator *转接驱动器、
U8 reg、u8 val)
{
内转台;
RET = regmap_write (redriver->RMAP、(unsigned int) reg、
(unsigned int) val);
如果(ret < 0){
DEV_ERR (redriver->dev、"Writing reg 0x%02x failure\n"、reg);
回程;
}
DEV_INFO (redriver->dev、"Writing reg 0x%02x=0x%02x\n"、reg、val);
返回0;
}
在探测函数中调用
RET = redriver_i2c_reg_set (TPS、0x00、0x12);
RET = redriver_i2c_reg_set (TPS、0x01、0x12);
此致、