DS90UB948模块关于941连接948 GPIO调试问题

free-jdx 2021-06-30 09:32:11 6106
1. 前言

使用一个941连接2 948显示:
941的GPIO0/1/2/3到前948的GPIO0/1/2/3和941的D_GPIO0/1/2/3到948的GPIO0/1/2/3。
设置gpio3输出,则941的D_GPIO3设置高,而948的gpio3设置不高;
但设置gpio3输入后,看到941的D_GPIO3跟随948的gpio3变化。

2. 原理图连接

3. 测试代码
static int du90ub941_enable_port(struct goodix_ts_data *ts,
int port_index)
{
u8 dreg, dval;
dreg = 0x1e;
dval = 0;
du90ub941_i2c_read(ts, dreg, &dval, 1);
dev_err(&ts->client->dev, "941[4] reg=0x%x, val=0x%x\n", dreg, dval);
if (port_index == 0)
dval = 0x1;
else if (port_index == 1)
dval = 0x4;
else
return 0;
du90ub941_i2c_write(ts, dreg, &dval, 1);
}

//set gpio3 output
case 3:
dreg = 0x0f;
dval = 0;
du90ub941_i2c_read(ts, dreg, &dval, 1);
dev_err(&ts->client->dev, "941 before out reg=0x%x, val=0x%x\n", dreg,
dval);
dval &= 0xf0;
dval |= 0x03;
du90ub941_i2c_write(ts, dreg, &dval, 1);
dval = 0;
du90ub941_i2c_read(ts, dreg, &dval, 1);
dev_err(&ts->client->dev, "941 after out reg=0x%x, val=0x%x\n", dreg,
dval);
dreg = 0x1f;
dval = 0;
du90ub948_i2c_read(ts, dreg, &dval, 1);
dev_err(&ts->client->dev, "948 before out reg=0x%x, val=0x%x\n", dreg,
dval);
dval &= 0xf0;
dval |= 0x05;
du90ub948_i2c_write(ts, dreg, &dval, 1);
dval = 0;
du90ub948_i2c_read(ts, dreg, &dval, 1);
dev_err(&ts->client->dev, "948 after out reg=0x%x, val=0x%x\n", dreg,
dval);
break;

//set gpio3 input
case 3:
dreg = 0x0f;
dval = 0;
du90ub941_i2c_read(ts, dreg, &dval, 1);
dev_err(&ts->client->dev, "941 in reg=0x%x, val=0x%x\n", dreg, dval);
dval &= 0xf0;
dval |= 0x05;
du90ub941_i2c_write(ts, dreg, &dval, 1);
dreg = 0x1f;
dval = 0;
du90ub948_i2c_read(ts, dreg, &dval, 1);
dev_err(&ts->client->dev, "948 in reg=0x%x, val=0x%x\n", dreg, dval);
dval &= 0xf0;
dval |= 0x03;
du90ub948_i2c_write(ts, dreg, &dval, 1);
break;

log:

[ 1.498605] Semidrive DS941 DS948 Goodix-TS 5-0014: goodix_ts_probe(): get_gpio error=0
[ 1.506790] Semidrive DS941 DS948 Goodix-TS 5-0014: ts->addr_ds941=0xd, ts->addr_ds948=0x3c
[ 1.515252] Semidrive DS941 DS948 Goodix-TS 5-0014: ts->irq_channel=3, ts->reset_channel=2
[ 1.543934] Semidrive DS941 DS948 Goodix-TS 5-0014: 941[4] reg=0x1e, val=0x4
[ 1.553453] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 reg=0x17, val=0x9e
[ 1.560793] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 reg=0x7, val=0xba
[ 1.568074] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 reg=0x8, val=0xba
[ 1.575323] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 reg=0x70, val=0x28
[ 1.582664] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 reg=0x77, val=0x28
[ 1.590005] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 before out reg=0xf, val=0x0
[ 1.601109] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 after out reg=0xf, val=0x3 //
[ 1.609183] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 before out reg=0x1f, val=0x3
[ 1.617677] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 after out reg=0x1f, val=0x5 //output
[ 1.644092] Semidrive DS941 DS948 Goodix-TS 5-0014: goodix_ts_probe(): call reset
[ 1.652122] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 before reg=0x1e, val=0x90
[ 1.660449] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 after reg=0x1e, val=0x10
[ 1.752086] Semidrive DS941 DS948 Goodix-TS 5-0014: ts->client->addr == 0x14 1
[ 1.761469] Semidrive DS941 DS948 Goodix-TS 5-0014: goodix_reset(): reset high
[ 1.769163] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 before reg=0x1e, val=0x10
[ 1.777396] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 after reg=0x1e, val=0x90
[ 1.852568] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 in reg=0xf, val=0x3
[ 1.860261] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 in reg=0x1f, val=0x5
4. 检测解串串行锁定状态

检测948是否都已锁定并正在接收视频数据
检测两个948的端口0是否都连接到941AS了

连接941和2个948,锁定状态正常,连接正常
(941的GPIO和第一个948的GPIO, 941的D_GPIO和第二个948的GPIO)

5. 检查注册转储
[    3.254829] Semidrive DS941 DS948 Goodix-TS 5-0014: I2C Address: 0x14
[    3.261313] Semidrive DS941 DS948 Goodix-TS 5-0014: GPIO lookup for consumer irq
[    3.261320] Semidrive DS941 DS948 Goodix-TS 5-0014: using device tree for GPIO lookup
[    3.261383] of_get_named_gpiod_flags: parsed 'irq-gpios' property of node '/soc/i2c@30b70000/touch@14[0]' - status (0)
[    3.261400] Semidrive DS941 DS948 Goodix-TS 5-0014: GPIO lookup for consumer reset
[    3.261407] Semidrive DS941 DS948 Goodix-TS 5-0014: using device tree for GPIO lookup
[    3.261429] of_get_named_gpiod_flags: parsed 'reset-gpios' property of node '/soc/i2c@30b70000/touch@14[0]' - status (0)
[    3.261793] Semidrive DS941 DS948 Goodix-TS 5-0014: goodix_ts_probe(): get_gpio error=0 
[    3.269925] Semidrive DS941 DS948 Goodix-TS 5-0014: ts->addr_ds941=0xd, ts->addr_ds948=0x3c
[    3.278311] Semidrive DS941 DS948 Goodix-TS 5-0014: ts->irq_channel=3, ts->reset_channel=2
[    3.286768] Semidrive DS941 DS948 Goodix-TS 5-0014: 941[4] reg=0x1e, val=0x4
[    3.294760] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 reg=0x17, val=0x9e
[    3.301829] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 reg=0x7, val=0xba
[    3.308811] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 reg=0x8, val=0xba
[    3.315792] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 reg=0x70, val=0x28
[    3.322860] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 reg=0x77, val=0x28
[    3.329928] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 before out reg=0xf, val=0x0
[    3.337903] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 after out reg=0xf, val=0x3
[    3.345695] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 before out reg=0x1f, val=0x3
[    3.353809] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 after out reg=0x1f, val=0x5
[    3.378934] Semidrive DS941 DS948 Goodix-TS 5-0014: goodix_ts_probe(): call reset
[    3.386637] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 before reg=0x1e, val=0x90
[    3.394489] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 after reg=0x1e, val=0x10
[    3.486930] Semidrive DS941 DS948 Goodix-TS 5-0014: ts->client->addr == 0x14  1
[    3.496310] Semidrive DS941 DS948 Goodix-TS 5-0014: goodix_reset(): reset high
[    3.503752] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 before reg=0x1e, val=0x10
[    3.511604] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 after reg=0x1e, val=0x90
[    3.519036] Semidrive DS941 DS948 Goodix-TS 5-0014: dump 941:
[    3.524969] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x0, val=0x1a
[    3.532297] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x1, val=0x0
[    3.539538] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x2, val=0x0
[    3.546779] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x3, val=0x9a
[    3.554107] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x4, val=0x0
[    3.561350] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x5, val=0x0
[    3.568592] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x6, val=0x78
[    3.575921] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x7, val=0xba
[    3.583248] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x8, val=0xba
[    3.590575] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x9, val=0x1
[    3.597817] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0xa, val=0x83
[    3.605147] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0xb, val=0x5
[    3.612388] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0xc, val=0x67
[    3.619717] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0xd, val=0x30
[    3.627096] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0xe, val=0x0
[    3.634339] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0xf, val=0x3
[    3.641580] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x10, val=0x0
[    3.648908] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x11, val=0x0
[    3.656235] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x12, val=0x4
[    3.663566] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x13, val=0x8f
[    3.670980] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x14, val=0x0
[    3.678310] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x15, val=0x0
[    3.685639] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x16, val=0xfe
[    3.693054] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x17, val=0x9e
[    3.700471] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x18, val=0x7f
[    3.707887] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x19, val=0x7f
[    3.715302] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x1a, val=0x1
[    3.722631] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x1b, val=0x0
[    3.729959] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x1c, val=0x8
[    3.737288] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x1d, val=0x0
[    3.744616] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x1e, val=0x4
[    3.751944] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x1f, val=0x0
[    3.759273] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x20, val=0xb
[    3.766600] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x21, val=0x0
[    3.773930] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x22, val=0x25
[    3.781346] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x23, val=0x0
[    3.788673] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x24, val=0x0
[    3.796001] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x25, val=0x0
sssssssssssssssssssssssssssssss
[    3.803330] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x26, val=0x0
[    3.810659] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x27, val=0x0
[    3.817993] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x28, val=0x1
[    3.825315] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x29, val=0x20
[    3.832732] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x2a, val=0x20
[    3.840167] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x2b, val=0xa0
[    3.847583] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x2c, val=0x0
[    3.854932] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x2d, val=0x0
[    3.862323] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x2e, val=0xa5
[    3.869741] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x2f, val=0x5a
[    3.877175] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x30, val=0x0
[    3.884509] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x31, val=0xb9
[    3.891924] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x32, val=0x0
[    3.899253] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x33, val=0x5
[    3.906581] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x34, val=0xc
[    3.913909] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x35, val=0x0
[    3.921238] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x36, val=0x0
[    3.928567] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x37, val=0x0
[    3.935895] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x38, val=0x0
[    3.943224] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x39, val=0x0
[    3.950551] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x3a, val=0x0
[    3.957878] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x3b, val=0x0
[    3.965207] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x3c, val=0x0
[    3.972534] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x3d, val=0x0
[    3.979862] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x3e, val=0x81
[    3.987276] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x3f, val=0x2
[    3.994606] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x40, val=0x8
[    4.001935] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x41, val=0x5
[    4.009264] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x42, val=0x16
[    4.016678] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x43, val=0x0
[    4.024007] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x44, val=0x0
[    4.031336] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x45, val=0x0
[    4.038664] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x46, val=0x0
[    4.045993] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x47, val=0x0
[    4.053321] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x48, val=0x0
[    4.060650] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x49, val=0x0
[    4.067979] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x4a, val=0x0
[    4.075308] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x4b, val=0x0
[    4.082638] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x4c, val=0x0
[    4.089967] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x4d, val=0x0
[    4.097295] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x4e, val=0x0
[    4.104624] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x4f, val=0x8c
[    4.112039] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x50, val=0x16
[    4.119454] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x51, val=0x0
[    4.126781] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x52, val=0x0
[    4.134108] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x53, val=0x0
[    4.141438] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x54, val=0x2
[    4.148769] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x55, val=0x10
[    4.156183] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x56, val=0x0
[    4.163512] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x57, val=0x2
[    4.170840] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x58, val=0x0
[    4.178170] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x59, val=0x0
[    4.185498] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x5a, val=0xe9
[    4.192912] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x5b, val=0x5
[    4.200246] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x5c, val=0x7
[    4.207570] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x5d, val=0x6
[    4.214901] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x5e, val=0x44
[    4.222316] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x5f, val=0x56
[    4.229731] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x60, val=0x22
[    4.237145] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x61, val=0x2
[    4.244474] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x62, val=0x0
[    4.251801] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x63, val=0x0
[    4.259130] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x64, val=0x10
[    4.266545] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x65, val=0x0
[    4.273872] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x66, val=0x0
[    4.281201] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x67, val=0x0
[    4.288529] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x68, val=0x0
[    4.295857] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x69, val=0x0
[    4.303185] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x6a, val=0x0
[    4.310514] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x6b, val=0x0
[    4.317842] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x6c, val=0x0
[    4.325170] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x6d, val=0x0
[    4.332498] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x6e, val=0x20
[    4.339914] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 out reg=0x6f, val=0x0
[    4.347083] Semidrive DS941 DS948 Goodix-TS 5-0014: dump 948:
[    4.353045] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x0, val=0x78
[    4.360402] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x1, val=0x4
[    4.367673] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x2, val=0x0
[    4.374940] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x3, val=0xf0
[    4.382298] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x4, val=0xfe
[    4.389655] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x5, val=0x1e
[    4.397011] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x6, val=0x0
[    4.404282] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x7, val=0x1a
[    4.411637] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x8, val=0x0
[    4.418912] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x9, val=0x0
[    4.426183] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0xa, val=0x0
[    4.433453] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0xb, val=0x0
[    4.440725] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0xc, val=0x0
[    4.447993] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0xd, val=0x0
[    4.455263] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0xe, val=0x0
[    4.462533] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0xf, val=0x0
[    4.469803] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x10, val=0x0
[    4.477160] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x11, val=0x0
[    4.484516] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x12, val=0x0
[    4.491872] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x13, val=0x0
[    4.499228] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x14, val=0x0
[    4.506584] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x15, val=0x0
[    4.513942] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x16, val=0x0
[    4.521298] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x17, val=0x0
[    4.528654] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x18, val=0x0
[    4.536011] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x19, val=0x1
[    4.543369] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x1a, val=0x0
[    4.550724] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x1b, val=0x0
[    4.558081] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x1c, val=0x3
[    4.565438] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x1d, val=0x10
[    4.572881] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x1e, val=0x90
[    4.580326] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x1f, val=0x5
[    4.587687] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x20, val=0x0
[    4.595035] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x21, val=0x0
[    4.602394] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x22, val=0x44
[    4.609837] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x23, val=0x20
[    4.617280] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x24, val=0x8
[    4.624638] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x25, val=0x0
[    4.631996] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x26, val=0x83
[    4.639437] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x27, val=0x84
[    4.646906] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x28, val=0x1
[    4.654255] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x29, val=0x0
[    4.661612] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x2a, val=0x0
[    4.668969] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x2b, val=0x0
[    4.676325] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x2c, val=0x0
[    4.683682] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x2d, val=0x0
[    4.691036] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x2e, val=0x0
[    4.698389] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x2f, val=0x0
[    4.705746] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x30, val=0x0
[    4.713102] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x31, val=0x0
[    4.720460] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x32, val=0x90
[    4.727902] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x33, val=0x25
[    4.735346] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x34, val=0x1
[    4.742703] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x35, val=0x0
[    4.750059] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x36, val=0x0
[    4.757417] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x37, val=0x8a
[    4.764859] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x38, val=0x0
[    4.772216] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x39, val=0x0
[    4.779573] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x3a, val=0x0
[    4.786929] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x3b, val=0x0
[    4.794288] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x3c, val=0x20
[    4.801729] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x3d, val=0xe0
[    4.809173] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x3e, val=0x23
[    4.816616] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x3f, val=0x0
[    4.823974] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x40, val=0x43
[    4.831416] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x41, val=0x3
[    4.838772] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x42, val=0x3
[    4.846125] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x43, val=0x0
[    4.853550] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x44, val=0x60
[    4.860994] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x45, val=0x88
[    4.868436] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x46, val=0x0
[    4.875792] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x47, val=0x0
[    4.883149] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x48, val=0xf
[    4.890505] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x49, val=0x2
[    4.897864] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x4a, val=0x0
[    4.905218] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x4b, val=0x8
[    4.912575] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x4c, val=0x0
[    4.919931] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x4d, val=0x0
[    4.927290] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x4e, val=0x63
[    4.934732] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x4f, val=0x0
[    4.942088] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x50, val=0x3
[    4.949447] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x51, val=0x10
[    4.956888] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x52, val=0x0
[    4.964247] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x53, val=0x1
[    4.971608] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x54, val=0x80
[    4.979046] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x55, val=0x0
[    4.986402] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x56, val=0x0
[    4.993759] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x57, val=0x0
[    5.001115] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x58, val=0x0
[    5.008472] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x59, val=0x7f
[    5.015915] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x5a, val=0x20
[    5.023358] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x5b, val=0x20
[    5.030802] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x5c, val=0x0
[    5.038158] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x5d, val=0x0
[    5.045515] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x5e, val=0x0
[    5.052872] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x5f, val=0x0
[    5.060228] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x60, val=0x0
[    5.067585] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x61, val=0x0
[    5.074940] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x62, val=0x0
[    5.082298] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x63, val=0x0
[    5.089655] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x64, val=0x10
[    5.097098] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x65, val=0x0
[    5.104456] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x66, val=0x0
[    5.111813] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x67, val=0x0
[    5.119168] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x68, val=0x0
[    5.126524] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x69, val=0x0
[    5.133881] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x6a, val=0x0
[    5.141239] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x6b, val=0x0
[    5.148595] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x6c, val=0x0
[    5.155951] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x6d, val=0x0
[    5.163308] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x6e, val=0x0
[    5.170665] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 out reg=0x6f, val=0x0
[    5.247094] Semidrive DS941 DS948 Goodix-TS 5-0014: 941 in reg=0xf, val=0x3
[    5.254396] Semidrive DS941 DS948 Goodix-TS 5-0014: 948 in reg=0x1f, val=0x5
[    5.319135] Semidrive DS941 DS948 Goodix-TS 5-0014: goodix_i2c_test(): read error=-121, test=0x0
[    5.327955] Semidrive DS941 DS948 Goodix-TS 5-0014: i2c test failed attempt 1: -121
[    5.363130] Semidrive DS941 DS948 Goodix-TS 5-0014: goodix_i2c_test(): read error=-121, test=0x0
[    5.371951] Semidrive DS941 DS948 Goodix-TS 5-0014: i2c test failed attempt 2: -121
[    5.406935] Semidrive DS941 DS948 Goodix-TS 5-0014: I2C communication failure: -121
[    5.414649] Semidrive DS941 DS948 Goodix-TS: probe of 5-0014 failed with error -121

似乎在948上,已经将寄存器0x34设置为0x01
这意味着将写入948的端口1,而不是端口0
将寄存器0x34设置为0x00,然后在948上写入0x05来注册0x1F

在948侧将寄存器0x34设置为0x0后,无法读取948的GPIO状态

6. 尝试如下配置

执行如下程序配置

•Write( 941, 0x1E, 0x01)
•Write( 941, 0x0F,0x03)
•Write( 941, 0x1E, 0x02)
•Write( 941, 0x0F,0x03)
•Write( 948_port0, 0x34, 0x01)
•Write(948_port0, 0x1F,0x05)
•Write(948_port1, 0x34, 0x01)
•Write(948_port1, 0x1F,0x05)

可解决上述问题

声明:本文内容由易百纳平台入驻作者撰写,文章观点仅代表作者本人,不代表易百纳立场。如有内容侵权或者其他问题,请联系本站进行删除。
free-jdx
红包 93 5 评论 打赏
评论
0个
内容存在敏感词
手气红包
    易百纳技术社区暂无数据
相关专栏
置顶时间设置
结束时间
删除原因
  • 广告/SPAM
  • 恶意灌水
  • 违规内容
  • 文不对题
  • 重复发帖
打赏作者
易百纳技术社区
free-jdx
您的支持将鼓励我继续创作!
打赏金额:
¥1易百纳技术社区
¥5易百纳技术社区
¥10易百纳技术社区
¥50易百纳技术社区
¥100易百纳技术社区
支付方式:
微信支付
支付宝支付
易百纳技术社区微信支付
易百纳技术社区
打赏成功!

感谢您的打赏,如若您也想被打赏,可前往 发表专栏 哦~

举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

审核成功

发布时间设置
发布时间:
是否关联周任务-专栏模块

审核失败

失败原因
备注
拼手气红包 红包规则
祝福语
恭喜发财,大吉大利!
红包金额
红包最小金额不能低于5元
红包数量
红包数量范围10~50个
余额支付
当前余额:
可前往问答、专栏板块获取收益 去获取
取 消 确 定

小包子的红包

恭喜发财,大吉大利

已领取20/40,共1.6元 红包规则

    易百纳技术社区