6572 光感初始化失败(已经解决,虚焊)
时间:10-02
整理:3721RD
点击:
72的tmd2771 在初始化的时候错误,I2C1 上面挂了gsensor和tp,都是ok的。
光感的供电也有,代码也确定ok。
log:如下
[ 1.564841] (0)[1:swapper/0][ALS/PS] tmd2771_init_CLIent 1266 : init dev: -121
[ 1.565751] (0)[1:swapper/0][ALS/PS] tmd2771_i2c_probe 2481 : tmd2771_i2c_probe: err = -121
[ 1.566830] (0)[1:swapper/0]TMD2771: probe of 1-0039 failed with error -121
想问一下,是哪里的问题
光感的供电也有,代码也确定ok。
log:如下
[ 1.564841] (0)[1:swapper/0][ALS/PS] tmd2771_init_CLIent 1266 : init dev: -121
[ 1.565751] (0)[1:swapper/0][ALS/PS] tmd2771_i2c_probe 2481 : tmd2771_i2c_probe: err = -121
[ 1.566830] (0)[1:swapper/0]TMD2771: probe of 1-0039 failed with error -121
想问一下,是哪里的问题
光感是不是挂载是第一个?
如果是这样的话,可能是TP的电源没有打开,将IIC拉死了。
你可以试一下,将TP的电源在光感时就打开。
不行,我把 hwPowerOn(MT65XX_POWER_LDO_VGP2, VOL_2800, "TP");
放到TMD2771_i2c_probe 里面
或者在mt_devs里面把
#if defined(CUSTOM_KERNEL_ALSPS)
retval = platform_device_register(&sensor_alsps);
printk("sensor_alsps device!");
if (retval != 0)
return retval;
#endif
放到tpd的后面,都是一样的问题
IIC地址是不是有问题?
static struct i2c_board_info __initdata i2c_TMD2771={ I2C_BOARD_INFO("TMD2771", (0X72>>1))};
这个直接用0x39也不行
cust_alsps.c
i2c_addr
.i2c_addr = {0x72, 0x48, 0x78, 0x00},
是这个
已经解决,连接器虚焊
