|
【Android】
新手求助, rk3288 porting touch driver NG.
发表于 2018-8-14 16:15:07
浏览:8747
|
回复:1
打印
只看该作者
[复制链接]
楼主
版子: firefly rk3288
OS: android 5.1.1
需要使用 cypress touch IC
一直遇到障礙
請求協助.
下方是與 cypress 相關的code
PS1: synaptics 一併附在下方
PS2: synaptics function ok.
- tsc@24 {
- // status = "disabled";
- compatible = "cy,cyttsp6_i2c_adapter";
- reg = <0x24>;
- /* GPIO 38, high-to-low edge triggered */
- interrupt-parent = <&gpio8>; //<&gpio3>;
- interrupts = <GPIO_A7 IRQ_TYPE_EDGE_FALLING>; //<6 2>;
- cy,core {
- cy,irq_gpio = <&gpio8 GPIO_A7 IRQ_TYPE_LEVEL_LOW>;
- cy,rst_gpio = <&gpio8 GPIO_A6 0x00>; //<48>;
- // cy,err_gpio = <49>;
- /* Enable cy,max_xfer_len to limit max I2C/SPI transfer length */
- cy,max_xfer_len = <0x100>;
- cy,mt {
- cy,inp_dev_name = "cyttsp6_mt";
- /* CY_MT_FLAG_FLIP | CY_MT_FLAG_INV_X | CY_MT_FLAG_INV_Y */
- /* cy,flags = <0x38>;*/
- cy,abs =
- /* ABS_MT_POSITION_X, CY_ABS_MIN_X, CY_ABS_MAX_X, 0, 0 */
- <0x35 0 1280 0 0
- /* ABS_MT_POSITION_Y, CY_ABS_MIN_Y, CY_ABS_MAX_Y, 0, 0 */
- 0x36 0 720 0 0
- /* ABS_MT_PRESSURE, CY_ABS_MIN_P, CY_ABS_MAX_P, 0, 0 */
- 0x3a 0 255 0 0
- /* CY_IGNORE_VALUE, CY_ABS_MIN_W, CY_ABS_MAX_W, 0, 0 */
- 0xffff 0 255 0 0
- /* ABS_MT_TRACKING_ID, CY_ABS_MIN_T, CY_ABS_MAX_T, 0, 0 */
- 0x39 0 15 0 0
- /* ABS_MT_TOUCH_MAJOR, 0, 255, 0, 0 */
- 0x30 0 255 0 0
- /* ABS_MT_TOUCH_MINOR, 0, 255, 0, 0 */
- 0x31 0 255 0 0
- /* ABS_MT_ORIENTATION, -127, 127, 0, 0 */
- 0x34 0xffffff81 127 0 0
- /* ABS_MT_TOOL_TYPE, 0, MT_TOOL_MAX, 0, 0 */
- 0x37 0 1 0 0
- /* ABS_DISTANCE, 0, 255, 0, 0 */
- 0x19 0 255 0 0>;
- cy,vkeys_x = <1280>;
- cy,vkeys_y = <720>;
- };
- };
- };
- synaptics_ts@20 {
- status = "disabled";
- compatible = "synaptics,synaptics_dsx";
- reg = <0x20>;
- touch-gpio = <&gpio8 GPIO_A7 IRQ_TYPE_EDGE_FALLING>;
- reset-gpio = <&gpio5 GPIO_B1 GPIO_ACTIVE_LOW>;
- //power-gpio = <&gpio0 GPIO_C5 GPIO_ACTIVE_LOW>;
- max-x = <1280>;
- max-y = <720>;
- flip-x = <0>;
- flip-y = <0>;
- };
复制代码
dmesg中與 cyttsp相關訊息
<6>[ 0.853620] cyttsp6_i2c_adapter 1-0024: cyttsp6_init: INIT CYTTSP RST gpio=3 and IRQ gpio=3 ERR gpio=0
<6>[ 0.959458] cyttsp6_i2c_adapter 1-0024: cyttsp6_xres: RESET CYTTSP gpio=3 r=0
<3>[ 1.943454] cyttsp6_i2c_adapter 1-0024: cyttsp6_wait_bl_heartbeat: tmo waiting bl heartbeat cd->mode=0
<3>[ 1.943473] cyttsp6_i2c_adapter 1-0024: cyttsp6_startup_: Error on h/w reset r=-62
<6>[ 2.051692] cyttsp6_i2c_adapter 1-0024: cyttsp6_xres: RESET CYTTSP gpio=3 r=0
<3>[ 3.035691] cyttsp6_i2c_adapter 1-0024: cyttsp6_wait_bl_heartbeat: tmo waiting bl heartbeat cd->mode=0
<3>[ 3.035710] cyttsp6_i2c_adapter 1-0024: cyttsp6_startup_: Error on h/w reset r=-62
<6>[ 3.143930] cyttsp6_i2c_adapter 1-0024: cyttsp6_xres: RESET CYTTSP gpio=3 r=0
<3>[ 4.127939] cyttsp6_i2c_adapter 1-0024: cyttsp6_wait_bl_heartbeat: tmo waiting bl heartbeat cd->mode=0
<3>[ 4.127966] cyttsp6_i2c_adapter 1-0024: cyttsp6_startup_: Error on h/w reset r=-62
<6>[ 4.236172] cyttsp6_i2c_adapter 1-0024: cyttsp6_xres: RESET CYTTSP gpio=3 r=0
<3>[ 5.220173] cyttsp6_i2c_adapter 1-0024: cyttsp6_wait_bl_heartbeat: tmo waiting bl heartbeat cd->mode=0
<3>[ 5.220195] cyttsp6_i2c_adapter 1-0024: cyttsp6_startup_: Error on h/w reset r=-62
<6>[ 5.220213] cyttsp6_i2c_adapter 1-0024: cyttsp6_startup_: cyttsp6_exit startup rc=-19...
<3>[ 5.220882] cyttsp6_i2c_adapter 1-0024: _cyttsp6_core_sleep_device: Device in BOOTLADER mode.
<6>[ 5.220901] cyttsp6_i2c_adapter 1-0024: _cyttsp6_core_sleep_: sleep state rc -22
<3>[ 5.269384] cyttsp6_i2c_adapter 1-0024: cyttsp6_core_rt_suspend: Error on sleep
<3>[ 5.269403] cyttsp6_i2c_adapter 1-0024: cyttsp6_probe: Fail initial startup r=-19
<4>[ 5.269693] [<c029d0e4>] (gpiod_free+0xe0/0xfc) from [<c0515034>] (cyttsp6_init+0x138/0x15c)
<4>[ 5.269716] [<c0515034>] (cyttsp6_init+0x138/0x15c) from [<c0511e0c>] (cyttsp6_probe+0x53c/0x600)
<4>[ 5.269738] [<c0511e0c>] (cyttsp6_probe+0x53c/0x600) from [<c0515134>] (cyttsp6_i2c_probe+0x74/0xa0)
<4>[ 5.269762] [<c0515134>] (cyttsp6_i2c_probe+0x74/0xa0) from [<c052aba8>] (i2c_device_probe+0xa8/0xd4)
<3>[ 5.270084] cyttsp6_i2c_adapter 1-0024: cyttsp6_probe failed.
<6>[ 5.270173] cyttsp6_loader_init: Cypress TTSP FW Loader Driver (Built TTDA.02.05.776588) rc=0
<6>[ 5.270191] cyttsp6_debug_init: Cypress TTSP Debug Driver (Built TTDA.02.05.776588) rc=0
<6>[ 5.270207] cyttsp6_device_access_init: Cypress TTSP Device Access Driver (Built TTDA.02.05.776588) rc=0
PS: 抱歉, 不知道如何附檔, 若需要更詳細資訊, 我在貼上來.
|
|