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.

TSC2004: Connection error between TSC2004 and IMX8MP

Guru 10395 points
Part Number: TSC2004
Other Parts Discussed in Thread: TSC2005

Hi,

We have checked the operation by connecting the TSC2004 to the IMX8MP, but the connection has not been successful.

Linux uses 5.10 base, and the device tree is implemented by referring to the following.

 - kernel-source/Documentation/devicetree/bindings/input/touchscreen/tsc2005.txt

tsc2005.txt
	* Texas Instruments tsc2004 and tsc2005 touchscreen controllers

	Required properties:
	 - compatible		      : "ti,tsc2004" or "ti,tsc2005"
	 - reg			      : Device address
	 - interrupts		      : IRQ specifier
	 - spi-max-frequency	      : Maximum SPI clocking speed of the
device
				        (for tsc2005)

	Optional properties:
	 - vio-supply		      : Regulator specifier
	 - reset-gpios		      : GPIO specifier for the controller
reset line
	 - ti,x-plate-ohms	      : integer, resistance of the
touchscreen's X plates
					in ohm (defaults to 280)
	 - ti,esd-recovery-timeout-ms : integer, if the touchscreen does not respond after
					the configured time (in milli
seconds), the driver
					will reset it. This is disabled by
default.
	 - properties defined in touchscreen.txt

	Example:

	&i2c3 {
		tsc2004@48 {
			compatible = "ti,tsc2004";
			reg = <0x48>;
			vio-supply = <&vio>;

			reset-gpios = <&gpio4 8 GPIO_ACTIVE_HIGH>;
			interrupts-extended = <&gpio1 27
IRQ_TYPE_EDGE_RISING>;

			touchscreen-fuzz-x = <4>;
			touchscreen-fuzz-y = <7>;
			touchscreen-fuzz-pressure = <2>;
			touchscreen-size-x = <4096>;
			touchscreen-size-y = <4096>;
			touchscreen-max-pressure = <2048>;

			ti,x-plate-ohms = <280>;
			ti,esd-recovery-timeout-ms = <8000>;
		};
	}

Below is the DTS in our environment. It is connected to the I2C1 bus (AD0/AD1 of TSC2004 = 49).

DTS.txt
	&i2c1 {
		tsc2004@49 {
			compatible = "ti,tsc2004";
			reg = <0x49>;
			vio-supply = <&reg_vcc_3v3>;
			reset-gpios = <&gpio5 5 GPIO_ACTIVE_LOW>;
			interrupts-extended = <&gpio5 4
IRQ_TYPE_EDGE_RISING>;
			pinctrl-0 = <&pinctrl_tsc2004>;

			touchscreen-fuzz-x = <4>;
			touchscreen-fuzz-y = <7>;
			touchscreen-fuzz-pressure = <2>;
			touchscreen-size-x = <4096>;
			touchscreen-size-y = <4096>;
			touchscreen-max-pressure = <2048>;

			ti,x-plate-ohms = <280>;
			ti,esd-recovery-timeout-ms = <8000>;

	};
	&iomuxc {
		pinctrl_tsc2004: gpio-tsc2004 {
			fsl,pins = <

MX8MP_IOMUXC_SPDIF_RX__GPIO5_IO04		0x60
				MX8MP_IOMUXC_SPDIF_EXT_CLK__GPIO5_IO05	0x14
			>;
		};
	};

Below is the error. I would like some advice on how to fix the error.

--------------------------------

[    5.728597] gpio gpiochip4: (30240000.gpio): gpiochip_lock_as_irq: tried

to flag a GPIO set as output for IRQ

[    5.740564] gpio-mxc 30240000.gpio: unable to lock HW IRQ 4 for IRQ

[    5.757522] genirq: Failed to request resources for tsc200x (irq 201) on

irqchip gpio-mxc

[    5.767092] tsc2004 0-0049: Failed to request irq, err: -22

------------------------------

If you need any additional information, please let me know.

Thanks,

Astro

  • Shall respond on Tuesday

  • Hi, Sanjay

    You didn't get a response on Tuesday, could you please let me know the progress?

    Thanks,

  • Hi,

    Sanjay is out of office, there will be another audio expert respond to your question as soon as possible.

  • Hi, 

    Thank you. We are waiting for your reply.

  • I'm confused on your post. I wonder which bus is for TSC2004, spi or i2c?

  • Hi, Shenghao

    The bus of TSC2004 uses I2C1. The device tree is implemented by referring to the following.
    https://www.ti.com/tool/ja-jp/TSC200XSW-LINUX

    Thanks,

    Evee

  • Hi, Shenghao

    As a result of our confirmation, communication with TSC2004 has been established. Communication was not possible because the GPIO port used for interrupts was set to output by U-Boot.

    However, communication has been established, but the command to the TSC2004 has timed out.
    In order to solve the timeout, we are doing trial and error for the device tree, but it is not resolved. I will send you the device tree and dmesg log, so could you tell me how to deal with it?

    TSC2004.zip

    Thanks,

    Evee

  • Hi Eve,

    Shenghao's team is based in China responses will be delayed due to holiday

  • Hi,

    Please respond as soon as possible. We are waiting for your reply.

  • Hi,

    Please understand that Shenghao and his team are our linux driver experts and their responses will be delayed due to Chinese New Year.

    I will ask internally if there is support we can provide in their absence.

    Regards,

  • Hi, Daveon

    Thank you for sharing your internal support situation.

    Thanks,

  • Hi Eve, 

    your urgency is noted, Please give Shenghao until next week to respond

    Regards,

    Arthur

  • Hi Eevee

    Sorry for late response. According to your post, I wonder whether the i2c communication issue?

    If so, would you be so kind and help to confirm what the ad0 an ad1 pin connection?

    In your DTS, it set the i2c address as 0x49.

    BR

    Shenghao Ding

  • Hi, Shenghao Ding

    If so, would you be so kind and help to confirm what the ad0 an ad1 pin connection?

    what do you mean? What should I check specifically?

    Thanks,

    Eevee

  • Confirm the corret i2c addr of TSC2004 in your project.

    As to ADX pins, kindly see the figure as following.

    You may as well ask the hardware engineer in your team for help.

    One more thing, can you run following command to detect all the device on i2c bus 1, and share the log with me.

    # i2cdetect -y 1
    

  • Hi, Shenghao 

    Confirm the corret i2c addr of TSC2004 in your project.

    Ad0/ad1 pin settings are set to 0x49. AD0 = High (3.3v), AD1 = Low

    One more thing, can you run following command to detect all the device on i2c bus 1, and share the log with me.

    Since I2C uses bus 0, I collected the log of i2cdetect -y 0.

     # i2cdetect -y 0

    The log acquisition results are as follows.

    -----

    0 1 2 3 4 5 6 7 8 9 a b c d e f
    00: -- -- -- -- -- -- -- --
    10: -- -- -- -- -- -- -- -- -- -- -- UU -- -- -- --
    20: -- -- -- -- -- UU -- -- -- -- -- -- -- -- -- --
    30: -- -- -- 33 -- -- -- -- -- -- -- -- -- -- -- --
    40: -- -- -- -- -- -- -- -- UU -- -- -- -- -- --
    50: -- UU -- UU -- -- -- UU -- -- -- -- -- -- -- --
    60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    70: -- -- -- -- -- -- -- --

    -----

    Thanks,

    Eevee

  • Hi Eevee

    According to the log for “i2cdetect -y 0”, it disclosed there was only 0x48 on i2c-1, no 0x49. Kindly work with your hardware engineer on why the i2cdetect can't detect the 0x49 device?

    BR

    Shenghao Ding

  • Hi, Shenghao

    I'm sorry, but I pressed the "solved" button by mistake.

    I will contact you regarding the current situation.
    The timeout error at startup has not been resolved.
    Touch operation is possible in this state, but the response of the panel is poor.

    I have attached the Evtest log, so is it possible to check it along with the contents of the device tree?

    TSC2004_TOUCH_LOG.txt
    [2023-02-01 10:30:37.333] dmesg | grep tsc200
    [2023-02-01 10:30:45.052] [    5.757880] tsc2004 0-0049: tsc2004_cmd: failed, command: 1 i2c error: -6
    [2023-02-01 10:30:45.052] [    6.038441] tsc2004 0-0049: tsc2004_cmd: failed, command: 0 i2c error: -6
    [2023-02-01 10:30:45.052] [    6.074451] tsc2004 0-0049: tsc2004_cmd: failed, command: 1 i2c error: -6
    [2023-02-01 10:30:45.052] [    6.141076] tsc2004 0-0049: tsc2004_cmd: failed, command: 0 i2c error: -6
    [2023-02-01 10:30:45.068] [    6.166355] tsc2004 0-0049: tsc2004_cmd: failed, command: 1 i2c error: -6
    [2023-02-01 10:30:45.068] [    6.211083] tsc2004 0-0049: tsc2004_cmd: failed, command: 0 i2c error: -6
    [2023-02-01 10:30:45.068] [    6.238263] tsc2004 0-0049: tsc2004_cmd: failed, command: 1 i2c error: -6
    [2023-02-01 10:30:45.068] [    8.332753] tsc2004 0-0049: tsc2004_cmd: failed, command: 0 i2c error: -6
    [2023-02-01 10:30:45.068] [   16.918274] tsc2004 0-0049: TSC200X not responding - resetting
    [2023-02-01 10:30:45.068] root@tqma8mpxl-mba8mpxl:~# 
    [2023-02-01 10:30:51.332] root@tqma8mpxl-mba8mpxl:~# 
    [2023-02-01 10:30:51.566] root@tqma8mpxl-mba8mpxl:~# 
    [2023-02-01 10:30:51.769] root@tqma8mpxl-mba8mpxl:~# evtest
    [2023-02-01 10:30:53.410] No device specified, trying to scan all of /dev/input/event*
    [2023-02-01 10:30:53.410] Available devices:
    [2023-02-01 10:30:53.410] /dev/input/event0:	30370000.snvs:snvs-powerkey
    [2023-02-01 10:30:53.425] /dev/input/event1:	TSC200X touchscreen
    [2023-02-01 10:30:53.441] Select the device event number [0-1]: 1
    [2023-02-01 10:30:54.566] Input driver version is 1.0.1
    [2023-02-01 10:30:54.566] Input device ID: bus 0x18 vendor 0x0 product 0x7d4 version 0x0
    [2023-02-01 10:30:54.566] Input device name: "TSC200X touchscreen"
    [2023-02-01 10:30:54.566] Supported events:
    [2023-02-01 10:30:54.566]   Event type 0 (EV_SYN)
    [2023-02-01 10:30:54.566]   Event type 1 (EV_KEY)
    [2023-02-01 10:30:54.566]     Event code 330 (BTN_TOUCH)
    [2023-02-01 10:30:54.566]   Event type 3 (EV_ABS)
    [2023-02-01 10:30:54.566]     Event code 0 (ABS_X)
    [2023-02-01 10:30:54.566]       Value   3442
    [2023-02-01 10:30:54.566]       Min        0
    [2023-02-01 10:30:54.566]       Max     4095
    [2023-02-01 10:30:54.566]     Event code 1 (ABS_Y)
    [2023-02-01 10:30:54.566]       Value   1656
    [2023-02-01 10:30:54.566]       Min        0
    [2023-02-01 10:30:54.566]       Max     4095
    [2023-02-01 10:30:54.566]     Event code 24 (ABS_PRESSURE)
    [2023-02-01 10:30:54.566]       Value      0
    [2023-02-01 10:30:54.566]       Min        0
    [2023-02-01 10:30:54.566]       Max     2048
    [2023-02-01 10:30:54.566]       Fuzz       2
    [2023-02-01 10:30:54.566] Properties:
    [2023-02-01 10:30:54.566]   Property type 1 (INPUT_PROP_DIRECT)
    [2023-02-01 10:30:54.566] Testing ... (interrupt to exit)
    [2023-02-01 10:30:56.425] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 0 (ABS_X), value 3860
    [2023-02-01 10:30:56.425] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 1 (ABS_Y), value 2280
    [2023-02-01 10:30:56.425] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 288
    [2023-02-01 10:30:56.425] Event: time 1616581573.1616581573, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
    [2023-02-01 10:30:56.425] Event: time 1616581573.1616581573, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:56.440] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 0 (ABS_X), value 3859
    [2023-02-01 10:30:56.440] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 1 (ABS_Y), value 3703
    [2023-02-01 10:30:56.440] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 226
    [2023-02-01 10:30:56.440] Event: time 1616581573.1616581573, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:56.440] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 0 (ABS_X), value 3857
    [2023-02-01 10:30:56.440] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 1 (ABS_Y), value 3705
    [2023-02-01 10:30:56.440] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 211
    [2023-02-01 10:30:56.440] Event: time 1616581573.1616581573, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:56.440] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 0 (ABS_X), value 3854
    [2023-02-01 10:30:56.440] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 1 (ABS_Y), value 3706
    [2023-02-01 10:30:56.440] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 192
    [2023-02-01 10:30:56.440] Event: time 1616581573.1616581573, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:56.456] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 0 (ABS_X), value 3857
    [2023-02-01 10:30:56.456] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 1 (ABS_Y), value 3708
    [2023-02-01 10:30:56.456] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 181
    [2023-02-01 10:30:56.456] Event: time 1616581573.1616581573, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:56.459] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 0 (ABS_X), value 3858
    [2023-02-01 10:30:56.459] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 173
    [2023-02-01 10:30:56.459] Event: time 1616581573.1616581573, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:56.459] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 0 (ABS_X), value 3861
    [2023-02-01 10:30:56.459] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 1 (ABS_Y), value 3710
    [2023-02-01 10:30:56.459] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 167
    [2023-02-01 10:30:56.459] Event: time 1616581573.1616581573, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:56.459] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 0 (ABS_X), value 3864
    [2023-02-01 10:30:56.459] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 1 (ABS_Y), value 3711
    [2023-02-01 10:30:56.459] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 162
    [2023-02-01 10:30:56.459] Event: time 1616581573.1616581573, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:56.474] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 0 (ABS_X), value 3867
    [2023-02-01 10:30:56.474] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 157
    [2023-02-01 10:30:56.474] Event: time 1616581573.1616581573, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:56.474] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 152
    [2023-02-01 10:30:56.474] Event: time 1616581573.1616581573, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:56.474] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 0 (ABS_X), value 3868
    [2023-02-01 10:30:56.474] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 1 (ABS_Y), value 3710
    [2023-02-01 10:30:56.474] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 151
    [2023-02-01 10:30:56.474] Event: time 1616581573.1616581573, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:56.490] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 1 (ABS_Y), value 3711
    [2023-02-01 10:30:56.490] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 150
    [2023-02-01 10:30:56.490] Event: time 1616581573.1616581573, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:56.490] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 0 (ABS_X), value 3869
    [2023-02-01 10:30:56.490] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 1 (ABS_Y), value 3710
    [2023-02-01 10:30:56.490] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 149
    [2023-02-01 10:30:56.490] Event: time 1616581573.1616581573, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:56.490] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 0 (ABS_X), value 3870
    [2023-02-01 10:30:56.490] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 148
    [2023-02-01 10:30:56.490] Event: time 1616581573.1616581573, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:56.490] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 0 (ABS_X), value 3871
    [2023-02-01 10:30:56.490] Event: time 1616581573.1616581573, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:56.508] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 1 (ABS_Y), value 3709
    [2023-02-01 10:30:56.508] Event: time 1616581573.1616581573, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:56.508] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 0 (ABS_X), value 3870
    [2023-02-01 10:30:56.508] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 1 (ABS_Y), value 3710
    [2023-02-01 10:30:56.508] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 149
    [2023-02-01 10:30:56.508] Event: time 1616581573.1616581573, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:56.508] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 0 (ABS_X), value 3868
    [2023-02-01 10:30:56.508] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 158
    [2023-02-01 10:30:56.508] Event: time 1616581573.1616581573, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:56.524] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 0 (ABS_X), value 3866
    [2023-02-01 10:30:56.524] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 1 (ABS_Y), value 3709
    [2023-02-01 10:30:56.524] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 167
    [2023-02-01 10:30:56.524] Event: time 1616581573.1616581573, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:56.524] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 0 (ABS_X), value 3861
    [2023-02-01 10:30:56.524] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 1 (ABS_Y), value 3708
    [2023-02-01 10:30:56.524] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 178
    [2023-02-01 10:30:56.524] Event: time 1616581573.1616581573, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:56.524] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 0 (ABS_X), value 3859
    [2023-02-01 10:30:56.524] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 1 (ABS_Y), value 3709
    [2023-02-01 10:30:56.524] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 187
    [2023-02-01 10:30:56.524] Event: time 1616581573.1616581573, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:56.524] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 0 (ABS_X), value 3857
    [2023-02-01 10:30:56.524] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 1 (ABS_Y), value 3710
    [2023-02-01 10:30:56.524] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 203
    [2023-02-01 10:30:56.524] Event: time 1616581573.1616581573, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:56.540] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 0 (ABS_X), value 3855
    [2023-02-01 10:30:56.540] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 1 (ABS_Y), value 3709
    [2023-02-01 10:30:56.540] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 222
    [2023-02-01 10:30:56.540] Event: time 1616581573.1616581573, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:56.540] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 0 (ABS_X), value 3856
    [2023-02-01 10:30:56.540] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 1 (ABS_Y), value 3708
    [2023-02-01 10:30:56.540] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 310
    [2023-02-01 10:30:56.540] Event: time 1616581573.1616581573, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:56.587] Event: time 1616581573.1616581573, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 0
    [2023-02-01 10:30:56.587] Event: time 1616581573.1616581573, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0
    [2023-02-01 10:30:56.587] Event: time 1616581573.1616581573, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:57.414] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 0 (ABS_X), value 3788
    [2023-02-01 10:30:57.414] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 1 (ABS_Y), value 492
    [2023-02-01 10:30:57.414] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 179
    [2023-02-01 10:30:57.414] Event: time 1616581574.1616581574, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
    [2023-02-01 10:30:57.414] Event: time 1616581574.1616581574, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:57.414] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 0 (ABS_X), value 3803
    [2023-02-01 10:30:57.414] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 1 (ABS_Y), value 525
    [2023-02-01 10:30:57.414] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 143
    [2023-02-01 10:30:57.414] Event: time 1616581574.1616581574, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:57.414] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 0 (ABS_X), value 3809
    [2023-02-01 10:30:57.414] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 1 (ABS_Y), value 529
    [2023-02-01 10:30:57.414] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 134
    [2023-02-01 10:30:57.414] Event: time 1616581574.1616581574, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:57.430] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 0 (ABS_X), value 3810
    [2023-02-01 10:30:57.430] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 129
    [2023-02-01 10:30:57.430] Event: time 1616581574.1616581574, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:57.430] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 0 (ABS_X), value 3811
    [2023-02-01 10:30:57.430] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 1 (ABS_Y), value 528
    [2023-02-01 10:30:57.430] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 128
    [2023-02-01 10:30:57.430] Event: time 1616581574.1616581574, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:57.430] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 0 (ABS_X), value 3812
    [2023-02-01 10:30:57.430] Event: time 1616581574.1616581574, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:57.446] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 0 (ABS_X), value 3810
    [2023-02-01 10:30:57.446] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 1 (ABS_Y), value 529
    [2023-02-01 10:30:57.446] Event: time 1616581574.1616581574, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:57.446] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 1 (ABS_Y), value 530
    [2023-02-01 10:30:57.446] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 129
    [2023-02-01 10:30:57.446] Event: time 1616581574.1616581574, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:57.461] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 1 (ABS_Y), value 531
    [2023-02-01 10:30:57.461] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 130
    [2023-02-01 10:30:57.461] Event: time 1616581574.1616581574, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:57.461] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 0 (ABS_X), value 3809
    [2023-02-01 10:30:57.461] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 1 (ABS_Y), value 532
    [2023-02-01 10:30:57.461] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 134
    [2023-02-01 10:30:57.461] Event: time 1616581574.1616581574, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:57.461] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 1 (ABS_Y), value 531
    [2023-02-01 10:30:57.461] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 138
    [2023-02-01 10:30:57.461] Event: time 1616581574.1616581574, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:57.477] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 0 (ABS_X), value 3806
    [2023-02-01 10:30:57.477] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 1 (ABS_Y), value 533
    [2023-02-01 10:30:57.477] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 139
    [2023-02-01 10:30:57.477] Event: time 1616581574.1616581574, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:57.477] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 0 (ABS_X), value 3803
    [2023-02-01 10:30:57.477] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 1 (ABS_Y), value 530
    [2023-02-01 10:30:57.477] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 146
    [2023-02-01 10:30:57.477] Event: time 1616581574.1616581574, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:57.491] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 0 (ABS_X), value 3802
    [2023-02-01 10:30:57.491] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 1 (ABS_Y), value 527
    [2023-02-01 10:30:57.491] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 147
    [2023-02-01 10:30:57.491] Event: time 1616581574.1616581574, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:57.492] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 0 (ABS_X), value 3800
    [2023-02-01 10:30:57.492] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 1 (ABS_Y), value 525
    [2023-02-01 10:30:57.492] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 154
    [2023-02-01 10:30:57.492] Event: time 1616581574.1616581574, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:57.492] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 0 (ABS_X), value 3798
    [2023-02-01 10:30:57.492] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 1 (ABS_Y), value 521
    [2023-02-01 10:30:57.492] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 161
    [2023-02-01 10:30:57.492] Event: time 1616581574.1616581574, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:57.492] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 0 (ABS_X), value 3793
    [2023-02-01 10:30:57.492] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 1 (ABS_Y), value 513
    [2023-02-01 10:30:57.492] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 185
    [2023-02-01 10:30:57.492] Event: time 1616581574.1616581574, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:57.492] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 0 (ABS_X), value 3786
    [2023-02-01 10:30:57.492] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 1 (ABS_Y), value 480
    [2023-02-01 10:30:57.492] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 231
    [2023-02-01 10:30:57.492] Event: time 1616581574.1616581574, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:57.508] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 0 (ABS_X), value 3787
    [2023-02-01 10:30:57.508] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 1 (ABS_Y), value 484
    [2023-02-01 10:30:57.508] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 413
    [2023-02-01 10:30:57.508] Event: time 1616581574.1616581574, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:57.539] Event: time 1616581574.1616581574, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 0
    [2023-02-01 10:30:57.539] Event: time 1616581574.1616581574, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0
    [2023-02-01 10:30:57.539] Event: time 1616581574.1616581574, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:58.609] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 0 (ABS_X), value 1297
    [2023-02-01 10:30:58.609] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 1 (ABS_Y), value 2314
    [2023-02-01 10:30:58.609] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 1206
    [2023-02-01 10:30:58.609] Event: time 1616581575.1616581575, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
    [2023-02-01 10:30:58.609] Event: time 1616581575.1616581575, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:58.614] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 0 (ABS_X), value 260
    [2023-02-01 10:30:58.614] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 1 (ABS_Y), value 452
    [2023-02-01 10:30:58.614] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 194
    [2023-02-01 10:30:58.614] Event: time 1616581575.1616581575, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:58.618] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 0 (ABS_X), value 255
    [2023-02-01 10:30:58.619] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 1 (ABS_Y), value 453
    [2023-02-01 10:30:58.619] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 176
    [2023-02-01 10:30:58.619] Event: time 1616581575.1616581575, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:58.623] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 0 (ABS_X), value 253
    [2023-02-01 10:30:58.623] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 1 (ABS_Y), value 457
    [2023-02-01 10:30:58.623] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 169
    [2023-02-01 10:30:58.623] Event: time 1616581575.1616581575, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:58.627] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 167
    [2023-02-01 10:30:58.627] Event: time 1616581575.1616581575, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:58.632] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 0 (ABS_X), value 251
    [2023-02-01 10:30:58.632] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 1 (ABS_Y), value 460
    [2023-02-01 10:30:58.632] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 158
    [2023-02-01 10:30:58.632] Event: time 1616581575.1616581575, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:58.637] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 0 (ABS_X), value 252
    [2023-02-01 10:30:58.637] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 1 (ABS_Y), value 463
    [2023-02-01 10:30:58.637] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 151
    [2023-02-01 10:30:58.637] Event: time 1616581575.1616581575, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:58.643] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 0 (ABS_X), value 253
    [2023-02-01 10:30:58.643] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 1 (ABS_Y), value 465
    [2023-02-01 10:30:58.643] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 145
    [2023-02-01 10:30:58.643] Event: time 1616581575.1616581575, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:58.647] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 0 (ABS_X), value 254
    [2023-02-01 10:30:58.647] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 1 (ABS_Y), value 464
    [2023-02-01 10:30:58.647] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 141
    [2023-02-01 10:30:58.647] Event: time 1616581575.1616581575, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:58.651] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 0 (ABS_X), value 256
    [2023-02-01 10:30:58.651] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 1 (ABS_Y), value 465
    [2023-02-01 10:30:58.651] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 137
    [2023-02-01 10:30:58.651] Event: time 1616581575.1616581575, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:58.656] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 1 (ABS_Y), value 466
    [2023-02-01 10:30:58.656] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 131
    [2023-02-01 10:30:58.656] Event: time 1616581575.1616581575, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:58.661] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 0 (ABS_X), value 260
    [2023-02-01 10:30:58.661] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 1 (ABS_Y), value 465
    [2023-02-01 10:30:58.661] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 127
    [2023-02-01 10:30:58.661] Event: time 1616581575.1616581575, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:58.666] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 0 (ABS_X), value 263
    [2023-02-01 10:30:58.666] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 126
    [2023-02-01 10:30:58.666] Event: time 1616581575.1616581575, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:58.670] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 0 (ABS_X), value 264
    [2023-02-01 10:30:58.670] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 125
    [2023-02-01 10:30:58.670] Event: time 1616581575.1616581575, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:58.675] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 1 (ABS_Y), value 464
    [2023-02-01 10:30:58.675] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 124
    [2023-02-01 10:30:58.675] Event: time 1616581575.1616581575, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:58.680] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 0 (ABS_X), value 262
    [2023-02-01 10:30:58.680] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 1 (ABS_Y), value 465
    [2023-02-01 10:30:58.680] Event: time 1616581575.1616581575, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:58.685] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 1 (ABS_Y), value 463
    [2023-02-01 10:30:58.685] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 128
    [2023-02-01 10:30:58.685] Event: time 1616581575.1616581575, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:58.690] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 0 (ABS_X), value 256
    [2023-02-01 10:30:58.690] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 132
    [2023-02-01 10:30:58.690] Event: time 1616581575.1616581575, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:58.695] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 0 (ABS_X), value 255
    [2023-02-01 10:30:58.695] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 1 (ABS_Y), value 462
    [2023-02-01 10:30:58.695] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 138
    [2023-02-01 10:30:58.695] Event: time 1616581575.1616581575, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:58.700] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 0 (ABS_X), value 253
    [2023-02-01 10:30:58.700] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 1 (ABS_Y), value 461
    [2023-02-01 10:30:58.700] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 139
    [2023-02-01 10:30:58.700] Event: time 1616581575.1616581575, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:58.704] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 144
    [2023-02-01 10:30:58.704] Event: time 1616581575.1616581575, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:58.709] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 150
    [2023-02-01 10:30:58.709] Event: time 1616581575.1616581575, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:58.714] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 0 (ABS_X), value 252
    [2023-02-01 10:30:58.714] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 156
    [2023-02-01 10:30:58.714] Event: time 1616581575.1616581575, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:58.721] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 1 (ABS_Y), value 459
    [2023-02-01 10:30:58.721] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 162
    [2023-02-01 10:30:58.721] Event: time 1616581575.1616581575, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:58.724] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 1 (ABS_Y), value 458
    [2023-02-01 10:30:58.724] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 170
    [2023-02-01 10:30:58.724] Event: time 1616581575.1616581575, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:58.729] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 0 (ABS_X), value 254
    [2023-02-01 10:30:58.729] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 1 (ABS_Y), value 457
    [2023-02-01 10:30:58.729] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 183
    [2023-02-01 10:30:58.729] Event: time 1616581575.1616581575, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:58.734] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 0 (ABS_X), value 255
    [2023-02-01 10:30:58.734] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 1 (ABS_Y), value 458
    [2023-02-01 10:30:58.734] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 212
    [2023-02-01 10:30:58.734] Event: time 1616581575.1616581575, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:58.782] Event: time 1616581575.1616581575, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 0
    [2023-02-01 10:30:58.782] Event: time 1616581575.1616581575, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0
    [2023-02-01 10:30:58.782] Event: time 1616581575.1616581575, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:59.889] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 0 (ABS_X), value 343
    [2023-02-01 10:30:59.889] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 1 (ABS_Y), value 3652
    [2023-02-01 10:30:59.889] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 255
    [2023-02-01 10:30:59.889] Event: time 1616581576.1616581576, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
    [2023-02-01 10:30:59.889] Event: time 1616581576.1616581576, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:59.891] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 0 (ABS_X), value 344
    [2023-02-01 10:30:59.891] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 1 (ABS_Y), value 3656
    [2023-02-01 10:30:59.891] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 221
    [2023-02-01 10:30:59.891] Event: time 1616581576.1616581576, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:59.896] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 0 (ABS_X), value 345
    [2023-02-01 10:30:59.896] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 1 (ABS_Y), value 3660
    [2023-02-01 10:30:59.896] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 206
    [2023-02-01 10:30:59.896] Event: time 1616581576.1616581576, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:59.901] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 1 (ABS_Y), value 3663
    [2023-02-01 10:30:59.901] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 179
    [2023-02-01 10:30:59.901] Event: time 1616581576.1616581576, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:59.906] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 0 (ABS_X), value 315
    [2023-02-01 10:30:59.906] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 1 (ABS_Y), value 3636
    [2023-02-01 10:30:59.906] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 149
    [2023-02-01 10:30:59.906] Event: time 1616581576.1616581576, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:59.911] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 0 (ABS_X), value 311
    [2023-02-01 10:30:59.911] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 1 (ABS_Y), value 3630
    [2023-02-01 10:30:59.911] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 143
    [2023-02-01 10:30:59.911] Event: time 1616581576.1616581576, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:59.915] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 0 (ABS_X), value 312
    [2023-02-01 10:30:59.915] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 1 (ABS_Y), value 3628
    [2023-02-01 10:30:59.915] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 138
    [2023-02-01 10:30:59.915] Event: time 1616581576.1616581576, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:59.920] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 0 (ABS_X), value 315
    [2023-02-01 10:30:59.920] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 1 (ABS_Y), value 3622
    [2023-02-01 10:30:59.920] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 134
    [2023-02-01 10:30:59.920] Event: time 1616581576.1616581576, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:59.925] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 0 (ABS_X), value 314
    [2023-02-01 10:30:59.925] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 140
    [2023-02-01 10:30:59.925] Event: time 1616581576.1616581576, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:59.930] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 1 (ABS_Y), value 3634
    [2023-02-01 10:30:59.930] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 147
    [2023-02-01 10:30:59.930] Event: time 1616581576.1616581576, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:59.935] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 0 (ABS_X), value 342
    [2023-02-01 10:30:59.935] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 1 (ABS_Y), value 3647
    [2023-02-01 10:30:59.935] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 184
    [2023-02-01 10:30:59.935] Event: time 1616581576.1616581576, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:59.940] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 0 (ABS_X), value 343
    [2023-02-01 10:30:59.940] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 1 (ABS_Y), value 3670
    [2023-02-01 10:30:59.940] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 188
    [2023-02-01 10:30:59.940] Event: time 1616581576.1616581576, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:59.945] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 0 (ABS_X), value 344
    [2023-02-01 10:30:59.945] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 1 (ABS_Y), value 3669
    [2023-02-01 10:30:59.945] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 197
    [2023-02-01 10:30:59.945] Event: time 1616581576.1616581576, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:59.950] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 0 (ABS_X), value 343
    [2023-02-01 10:30:59.950] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 1 (ABS_Y), value 3667
    [2023-02-01 10:30:59.950] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 205
    [2023-02-01 10:30:59.950] Event: time 1616581576.1616581576, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:59.955] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 0 (ABS_X), value 344
    [2023-02-01 10:30:59.955] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 211
    [2023-02-01 10:30:59.955] Event: time 1616581576.1616581576, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:59.959] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 1 (ABS_Y), value 3665
    [2023-02-01 10:30:59.959] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 222
    [2023-02-01 10:30:59.959] Event: time 1616581576.1616581576, -------------- SYN_REPORT ------------
    [2023-02-01 10:30:59.964] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 0 (ABS_X), value 345
    [2023-02-01 10:30:59.964] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 1 (ABS_Y), value 3664
    [2023-02-01 10:30:59.964] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 240
    [2023-02-01 10:30:59.964] Event: time 1616581576.1616581576, -------------- SYN_REPORT ------------
    [2023-02-01 10:31:00.009] Event: time 1616581576.1616581576, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 0
    [2023-02-01 10:31:00.009] Event: time 1616581576.1616581576, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0
    [2023-02-01 10:31:00.009] Event: time 1616581576.1616581576, -------------- SYN_REPORT ------------
    [2023-02-01 10:31:00.813] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 0 (ABS_X), value 2009
    [2023-02-01 10:31:00.813] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 1 (ABS_Y), value 2171
    [2023-02-01 10:31:00.813] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 173
    [2023-02-01 10:31:00.813] Event: time 1616581577.1616581577, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 1
    [2023-02-01 10:31:00.813] Event: time 1616581577.1616581577, -------------- SYN_REPORT ------------
    [2023-02-01 10:31:00.816] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 0 (ABS_X), value 2022
    [2023-02-01 10:31:00.816] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 1 (ABS_Y), value 2162
    [2023-02-01 10:31:00.816] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 142
    [2023-02-01 10:31:00.816] Event: time 1616581577.1616581577, -------------- SYN_REPORT ------------
    [2023-02-01 10:31:00.820] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 0 (ABS_X), value 2023
    [2023-02-01 10:31:00.820] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 1 (ABS_Y), value 2158
    [2023-02-01 10:31:00.820] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 133
    [2023-02-01 10:31:00.820] Event: time 1616581577.1616581577, -------------- SYN_REPORT ------------
    [2023-02-01 10:31:00.824] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 0 (ABS_X), value 2026
    [2023-02-01 10:31:00.824] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 1 (ABS_Y), value 2154
    [2023-02-01 10:31:00.824] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 127
    [2023-02-01 10:31:00.824] Event: time 1616581577.1616581577, -------------- SYN_REPORT ------------
    [2023-02-01 10:31:00.828] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 0 (ABS_X), value 2030
    [2023-02-01 10:31:00.828] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 1 (ABS_Y), value 2146
    [2023-02-01 10:31:00.828] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 122
    [2023-02-01 10:31:00.828] Event: time 1616581577.1616581577, -------------- SYN_REPORT ------------
    [2023-02-01 10:31:00.833] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 0 (ABS_X), value 2033
    [2023-02-01 10:31:00.833] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 1 (ABS_Y), value 2140
    [2023-02-01 10:31:00.833] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 120
    [2023-02-01 10:31:00.833] Event: time 1616581577.1616581577, -------------- SYN_REPORT ------------
    [2023-02-01 10:31:00.838] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 0 (ABS_X), value 2034
    [2023-02-01 10:31:00.838] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 1 (ABS_Y), value 2138
    [2023-02-01 10:31:00.838] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 119
    [2023-02-01 10:31:00.838] Event: time 1616581577.1616581577, -------------- SYN_REPORT ------------
    [2023-02-01 10:31:00.843] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 0 (ABS_X), value 2033
    [2023-02-01 10:31:00.843] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 1 (ABS_Y), value 2137
    [2023-02-01 10:31:00.843] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 118
    [2023-02-01 10:31:00.843] Event: time 1616581577.1616581577, -------------- SYN_REPORT ------------
    [2023-02-01 10:31:00.848] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 0 (ABS_X), value 2035
    [2023-02-01 10:31:00.848] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 117
    [2023-02-01 10:31:00.848] Event: time 1616581577.1616581577, -------------- SYN_REPORT ------------
    [2023-02-01 10:31:00.856] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 1 (ABS_Y), value 2136
    [2023-02-01 10:31:00.856] Event: time 1616581577.1616581577, -------------- SYN_REPORT ------------
    [2023-02-01 10:31:00.858] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 0 (ABS_X), value 2036
    [2023-02-01 10:31:00.858] Event: time 1616581577.1616581577, -------------- SYN_REPORT ------------
    [2023-02-01 10:31:00.863] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 0 (ABS_X), value 2035
    [2023-02-01 10:31:00.863] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 1 (ABS_Y), value 2135
    [2023-02-01 10:31:00.863] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 118
    [2023-02-01 10:31:00.863] Event: time 1616581577.1616581577, -------------- SYN_REPORT ------------
    [2023-02-01 10:31:00.868] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 0 (ABS_X), value 2033
    [2023-02-01 10:31:00.868] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 1 (ABS_Y), value 2136
    [2023-02-01 10:31:00.868] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 119
    [2023-02-01 10:31:00.868] Event: time 1616581577.1616581577, -------------- SYN_REPORT ------------
    [2023-02-01 10:31:00.873] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 1 (ABS_Y), value 2139
    [2023-02-01 10:31:00.873] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 123
    [2023-02-01 10:31:00.873] Event: time 1616581577.1616581577, -------------- SYN_REPORT ------------
    [2023-02-01 10:31:00.877] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 0 (ABS_X), value 2031
    [2023-02-01 10:31:00.877] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 1 (ABS_Y), value 2142
    [2023-02-01 10:31:00.877] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 130
    [2023-02-01 10:31:00.877] Event: time 1616581577.1616581577, -------------- SYN_REPORT ------------
    [2023-02-01 10:31:00.882] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 0 (ABS_X), value 2024
    [2023-02-01 10:31:00.882] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 1 (ABS_Y), value 2149
    [2023-02-01 10:31:00.882] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 131
    [2023-02-01 10:31:00.882] Event: time 1616581577.1616581577, -------------- SYN_REPORT ------------
    [2023-02-01 10:31:00.887] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 0 (ABS_X), value 2020
    [2023-02-01 10:31:00.887] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 138
    [2023-02-01 10:31:00.887] Event: time 1616581577.1616581577, -------------- SYN_REPORT ------------
    [2023-02-01 10:31:00.892] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 0 (ABS_X), value 2007
    [2023-02-01 10:31:00.892] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 1 (ABS_Y), value 2147
    [2023-02-01 10:31:00.892] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 159
    [2023-02-01 10:31:00.892] Event: time 1616581577.1616581577, -------------- SYN_REPORT ------------
    [2023-02-01 10:31:00.896] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 0 (ABS_X), value 2003
    [2023-02-01 10:31:00.896] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 1 (ABS_Y), value 2144
    [2023-02-01 10:31:00.896] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 209
    [2023-02-01 10:31:00.896] Event: time 1616581577.1616581577, -------------- SYN_REPORT ------------
    [2023-02-01 10:31:00.941] Event: time 1616581577.1616581577, type 3 (EV_ABS), code 24 (ABS_PRESSURE), value 0
    [2023-02-01 10:31:00.941] Event: time 1616581577.1616581577, type 1 (EV_KEY), code 330 (BTN_TOUCH), value 0
    [2023-02-01 10:31:00.941] Event: time 1616581577.1616581577, -------------- SYN_REPORT ------------
    [2023-02-01 10:31:03.829] ^Croot@tqma8mpxl-mba8mpxl:~# evtestdmesg | grep tsc200
    [2023-02-01 10:31:08.531] [    5.757880] tsc2004 0-0049: tsc2004_cmd: failed, command: 1 i2c error: -6
    [2023-02-01 10:31:08.531] [    6.038441] tsc2004 0-0049: tsc2004_cmd: failed, command: 0 i2c error: -6
    [2023-02-01 10:31:08.531] [    6.074451] tsc2004 0-0049: tsc2004_cmd: failed, command: 1 i2c error: -6
    [2023-02-01 10:31:08.531] [    6.141076] tsc2004 0-0049: tsc2004_cmd: failed, command: 0 i2c error: -6
    [2023-02-01 10:31:08.531] [    6.166355] tsc2004 0-0049: tsc2004_cmd: failed, command: 1 i2c error: -6
    [2023-02-01 10:31:08.531] [    6.211083] tsc2004 0-0049: tsc2004_cmd: failed, command: 0 i2c error: -6
    [2023-02-01 10:31:08.531] [    6.238263] tsc2004 0-0049: tsc2004_cmd: failed, command: 1 i2c error: -6
    [2023-02-01 10:31:08.531] [    8.332753] tsc2004 0-0049: tsc2004_cmd: failed, command: 0 i2c error: -6
    [2023-02-01 10:31:08.531] [   16.918274] tsc2004 0-0049: TSC200X not responding - resetting
    [2023-02-01 10:31:08.531] root@tqma8mpxl-mba8mpxl:~# i2cdetect -t   y 0
    [2023-02-01 10:31:23.293]      0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
    [2023-02-01 10:31:23.293] 00:                         -- -- -- -- -- -- -- -- 
    [2023-02-01 10:31:23.293] 10: -- -- -- -- -- -- -- -- -- -- -- UU -- -- -- -- 
    [2023-02-01 10:31:23.315] 20: -- -- -- -- -- UU -- -- -- -- -- -- -- -- -- -- 
    [2023-02-01 10:31:23.315] 30: -- -- -- 33 -- -- -- -- -- -- -- -- -- -- -- -- 
    [2023-02-01 10:31:23.331] 40: -- -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- 
    [2023-02-01 10:31:23.346] 50: -- UU -- UU -- -- -- UU -- -- -- -- -- -- -- -- 
    [2023-02-01 10:31:23.362] 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
    [2023-02-01 10:31:23.362] 70: -- -- -- -- -- -- -- --                         
    [2023-02-01 10:31:23.378] root@tqma8mpxl-mba8mpxl:~# 

    The LCD panel is a KYOCERA 800x480 resistive panel.

    To operate evtest, click the upper right → lower right → lower left → upper left → center part of the LCD panel in order.
    No timeout errors seem to occur during this time.

    Thanks,

    Eevee

  • Hi, Shenghao

    I got a notification saying "I got a reply from you". However, there was no reply from you on the forum. Could you send the answer again?

    Thanks,

    Eevee

  • Hi Eevee,

    I have checked the code and found that tsc2004_probe will be called during the whole system boot-up.

    In tsc2004_probe, tsc200x_stop_scan will be called. In tsc200x_stop_scan, it will have i2c communication, can you confirm whether i2c-1 bus is ready during that i2c communications? If i2c-1 bus is not ready, i2c communication must be error. Kindly, be sure to be ready for i2c1 bus before i2c communication. You may as well consult platform vendor for such a bootup issue.

    BR
    Shenghao
  • Hi, Shenghao

    Regarding I2C-0 communication, I can communicate with other devices on the same bus before TSC2004 communication, so I think there is no problem with the communication status.
    example)
    0x25 nxp-pca9450
    0x51 rtc-pcf85063

    Also, the slave address of TSC2004, but there is a device at 0x49
    It has also been confirmed that it can be accessed using the i2cget command.

    |~# i2cdetect -y 0
    | 0 1 2 3 4 5 6 7 8 9 a b c d e f
    |40: -- -- -- -- -- -- -- -- UU -- -- -- -- -- --

    Thanks,

    Eevee

  • |~# i2cdetect -y 0
    | 0 1 2 3 4 5 6 7 8 9 a b c d e f
    |40: -- -- -- -- -- -- -- -- UU -- -- -- -- -- --

                   0  1 2  3 4 5 6  7   8 

    The UU is really at 0x48, do you think so?

    I have another confusion is why use "i2cdetect -y 0" instead of "i2cdetect -y 1"?

    One more thing, what's the status of RESET pin and PINTDAV pin in probe phase?

  • Hi, Shenghao

    The UU is really at 0x48, do you think so?

    Below is an image that captures the log.
    As far as this image is concerned, it has been confirmed that the device exists at 0x49 and can be accessed with the i2cget command.

    I have another confusion is why use "i2cdetect -y 0" instead of "i2cdetect -y 1"?

    Can using I2C bus 0 be a problem?

    One more thing, what's the status of RESET pin and PINTDAV pin in probe phase?

    I would like to confirm. What does probe phase mean?

    Thanks,

    Eevee

  •  I meant the time of the function tsc2004_init is called.

    Following document is still very useful.

    TSC2004 Linux&reg; Driver (ti.com)

  • Hi, Shenghao

    The driver source used in the Linux environment uses the same level as the source that can be downloaded from the following URL.
    https://www.ti.com/tool/ja-jp/TSC200XSW-LINUX

    The timestamp is around 2015, and our driver source is newer than the source you presented, but which one should I use?

    tsc2004_init does not exist in our environment.
    Specifically, should I check the signal state at initialization (tsc2004_probe), the signal state at interrupt time (tsc200x_irq_thread) RESET, and the PINTDAV pin status?

    Thanks,

  • Hi Eevee,

    So far, you sitll block at timeout during startup, am I correct?

  • Hi, Shenghao

    Yes, you are correct in that perception.

    Thanks,

  • So, except startup issue, all work well, right?

  • Hi, Shenghao

    The problem is that commands to the TSC2004 are timing out at startup. In order to solve the timeout, we are doing trial and error for the device tree, but it is not solved.Touch operation is possible in the timeout state, but the response of the panel is poor.
    The main problem is about this timeout. In addition, since the coordinates immediately after touch may be misaligned, we are consulting on other threads.

    Thanks,

    Eevee

  • What's the i2c clk freq for TSC2004, 100kHz or 400kHz?

    One more thing, can you help check which function occured timeout? is the i2c_smbus_write_byte?

  • Hi, 

    I will let you know the communication speed to I2C later. What does below mean? what code are you showing?

     >is the i2c_smbus_write_byte?

    Thanks,

    Eevee

  • Hi, Shenghao

    What's the i2c clk freq for TSC2004, 100kHz or 400kHz?

    It is currently communicating using 400kHz.

    One more thing, can you help check which function occured timeout? is the i2c_smbus_write_byte?

    Your perception is correct. The timeout occurs in the above function.

    Thanks,

    Eevee

  • Kindly try 100kHz for the i2c clk freq.