@ritesh.tx
Please find the below configuration done
using image torizon-core-docker-colibri-imx8x-Tezi_5.7.2+build.20.tar
1) device-trees/overlays/colibri-imx8_goodix-gt928-ts_overlay.dts
// Capacitive Goodix GT928 touchscreen for the 10.4 inch display.
/dts-v1/;
/plugin/;
/ {
compatible = “toradex,colibri-imx8x”;
};
&goodix_ts {
pinctrl-names = “default”;
pinctrl-0 = <&pinctrl_cap_ts>;
status = “okay”;
};
2) device-trees/dts-arm64/imx8x-colibri.dtsi
&i2c1 {
clock-frequency = <400000>;
pinctrl-names = “default”;
pinctrl-0 = <&pinctrl_i2c1>;
status = “okay”;
goodix_ts: gt928@5d {
compatible = "goodix,gt928";
reg = <0x5d>;
interrupt-parent = <&lsio_gpio3>;
interrupts = <22 IRQ_TYPE_EDGE_FALLING>; // SODIMM 102
reset-gpios = <&lsio_gpio0 31 GPIO_ACTIVE_HIGH>; // SODIMM 100
touchscreen-size-x = <1024>;
touchscreen-size-y = <600>;
status = "disabled";
};
};
&iomuxc {
pinctrl-names = “default”;
pinctrl-0 = <&pinctrl_hog0>, <&pinctrl_hog1>, <&pinctrl_hog2>,
<&pinctrl_ext_io0>, <&pinctrl_lpspi2_cs2>;
colibri-imx8qxp {
pinctrl_cap_ts: captsgrp {
fsl,pins = <
IMX8QXP_SAI1_RXFS_LSIO_GPIO0_IO31 0x20 /* SODIMM 100 */
IMX8QXP_QSPI0B_DQS_LSIO_GPIO3_IO22 0x20 /* SODIMM 102 */
>;
};
pinctrl_hog1: hog1grp {
fsl,pins = <
/*IMX8QXP_SAI1_RXFS_LSIO_GPIO0_IO31 0x20*/
/*IMX8QXP_QSPI0B_DQS_LSIO_GPIO3_IO22 0x20*/
>;
};
/* Colibri I2C */
pinctrl_i2c1: i2c1grp {
fsl,pins = <
IMX8QXP_MIPI_DSI0_GPIO0_00_ADMA_I2C1_SCL 0x06000021 /* SODIMM 196 */
IMX8QXP_MIPI_DSI0_GPIO0_01_ADMA_I2C1_SDA 0x06000021 /* SODIMM 194 */
>;
};
}
}
3) tcbuild.yaml
Sample configuration file:
input:
easy-installer:
local: torizon-core-docker-colibri-imx8x-Tezi_5.7.2+build.20.tar
customization:
device-tree:
include-dirs:
- device-trees/include/
custom: device-trees/dts-arm64/imx8qxp-colibri-lvds-single-channel.dts
overlays:
add:
- device-trees/overlays/colibri-imx8_goodix-gt928-ts_overlay.dts
output:
easy-installer:
local: torizon-core-docker-colibri-imx8x-Tezi_5.7.2.CUSTOM
4) Hardware connections
CTP_RST–> SODIMM_100
CTP_INT–> SODIMM_102
I2C_SDA–> X22_16
I2C_SCK–> X22_15
Error:
orizon@colibri-imx8x-07202984:~$ dmesg | grep Goodix
[ 8.612136] Goodix-TS 17-005d: 17-005d supply AVDD28 not found, using dummy regulator
[ 8.612229] Goodix-TS 17-005d: 17-005d supply VDDIO not found, using dummy regulator
[ 8.733008] Goodix-TS 17-005d: i2c test failed attempt 1: -5
[ 8.771357] Goodix-TS 17-005d: i2c test failed attempt 2: -5
[ 8.821427] Goodix-TS 17-005d: I2C communication failure: -5
[ 8.834897] Goodix-TS: probe of 17-005d failed with error -5