Dear Team,
We are using goodix gt9271 touch ic in our custom rzg2l board. We are experiencing a problem, ie sometimes goodix fails in i2c communication with error described in the following.
[ 2.006416] Goodix-TS 4-005d: i2c test failed attempt 1: -6
[ 2.041424] Goodix-TS 4-005d: i2c test failed attempt 2: -6
[ 2.073360] Goodix-TS 4-005d: I2C communication failure: -6
The below listed is our code in dtsi,
i2c2_pins: i2c2 { pinmux = <RZG2L_PORT_PINMUX(42, 3, 1)>, /* SDA */ <RZG2L_PORT_PINMUX(42, 4, 1)>; /* SCL */ }; &i2c2 { pinctrl-0 =<&i2c2_pins>; pinctrl-names = "default"; clock-frequency = <400000>; status = "okay"; gt9271: gt9271@5d { compatible = "goodix,gt9271"; reg = <0x5d>; avdd28-supply = <&avdd_2v8>; vddio-supply = <®_3p3v>; interrupt-parent = <&pinctrl>; interrupts = <RZG2L_GPIO(45, 3) IRQ_TYPE_EDGE_FALLING>; reset-gpios = <&pinctrl RZG2L_GPIO(45, 2) GPIO_ACTIVE_HIGH>; touchscreen-inverted-x; touchscreen-inverted-y; status = "okay"; }; };
sometimes goodix touch is working and sometimes it fails in i2c communication. Please help.
Try changing you clock frequency to 100k instead of 400k.