I’m using the v25.1 yocto bsp and I got the following error in reading I2C.
root@genio-510-evk:~# dmesg | grep -i goodix
[ 1.073154] Goodix-TS 5-0014: supply AVDD28 not found, using dummy regulator
[ 1.074153] Goodix-TS 5-0014: supply VDDIO not found, using dummy regulator
[ 1.173853] Goodix-TS 5-0014: Error reading 1 bytes from 0x8140: -6
[ 1.201834] Goodix-TS 5-0014: Error reading 1 bytes from 0x8140: -6
[ 1.229618] Goodix-TS 5-0014: I2C communication failure: -6
kernel device tree in mt8370-genio-510-evk.dts
&pio {
i2c5_pins: i2c5-pins {
pins {
pinmux = <PINMUX_GPIO66__FUNC_B1_SDA5>,
<PINMUX_GPIO65__FUNC_B1_SCL5>;
bias-pull-up = <MTK_PULL_SET_RSEL_011>;
drive-strength-microamp = <1000>;
};
};
touch_pins: touch-pins {
pins-irq {
pinmux = <PINMUX_GPIO3__FUNC_B_GPIO3>;
input-enable;
bias-disable;
};
pins-reset {
pinmux = <PINMUX_GPIO8__FUNC_B_GPIO8>;
output-high;
};
};
};
&i2c5 {
pinctrl-names = "default";
pinctrl-0 = <&i2c5_pins>;
clock-frequency = <400000>;
status = "okay";
touchscreen@5d {
compatible = "goodix,gt911";
reg = <0x5d>;
interrupt-parent = <&pio>;
interrupts = <3 IRQ_TYPE_EDGE_RISING>;
irq-gpios = <&pio 3 GPIO_ACTIVE_HIGH>;
reset-gpios = <&pio 8 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&touch_pins>;
};
};
Can someone please help me ?
Thanks in advance.