Hi NXP Community,
I am trying to add the goodix predefined touchscreen driver with following configuration in the dts file of imx8mPlus:-
&i2c5 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c5>;
clock-frequency = <200000>;
goodix@14 {
compatible = "goodix,gt911";
reg = <0x14>;
reset-gpios = <&gpio5 10 GPIO_ACTIVE_LOW>;
irq-gpios = <&gpio4 19 IRQ_TYPE_EDGE_FALLING>;
interrupt-parent = <&gpio4>;
interrupt-names = "irq";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ts>;
status = "okay";
};
};
&iomuxc {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_hog>;
pinctrl_i2c5: i2c5grp { /* I2C5: I2C5 IOMUX Pin Configuration */
fsl,pins = <
MX8MP_IOMUXC_SPDIF_RX__I2C5_SDA 0x400001c3
MX8MP_IOMUXC_SPDIF_TX__I2C5_SCL 0x400001c3
>;
};
pinctrl_ts: tsgrp {
fsl,pins = <
// 0x2, 0x00
MX8MP_IOMUXC_SAI1_TXD7__GPIO4_IO19 0x10b0b1 // IRQ pin (GT911 interrupt)
MX8MP_IOMUXC_ECSPI2_SCLK__GPIO5_IO10 0x1b0b1 // Reset pin (GT911 reset)
>;
};
};
and the following in imx8mp_iwg40_gki.fragment
CONFIG_TOUCHSCREEN_GOODIX=m
CONFIG_I2C_CHARDEV=m
CONFIG_I2C=m
Upon boot , the module is not being attached by default
After attaching it manually , it shows the following error
i2cdetect -y 4
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- 14 -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
iwg40m_8mp:/ # dmesgg | grep -i goodix
/system/bin/sh: dmesgg: inaccessible or not found
1|iwg40m_8mp:/ # dmesg | grep -i goodix
1|iwg40m_8mp:/ # echo gt911 0x14 > /sys/bus/i2c/devices/i2c-4/new_device
[ 131.850021][ T2244] Goodix-TS 4-0014: supply AVDD28 not found, using dummy regulator
[ 131.858280][ T2244] Goodix-TS 4-0014: supply VDDIO not found, using dummy regulator
[ 131.867800][ T2244] Goodix-TS 4-0014: ID 911, version: 1060
[ 131.877464][ T2244] input: Goodix Capacitive TouchScreen as /devices/platform/soc@0/30800000.bus/30ad0000.i2c/i2c-4/4-0014/input/input3
[ 131.889968][ T2244] Goodix-TS 4-0014: request IRQ failed: -22
[ 131.919015][ T2244] Goodix-TS: probe of 4-0014 failed with error -22
[ 131.925563][ T2244] i2c i2c-4: new_device: Instantiated device gt911 at 0x14
iwg40m_8mp:/ # dmesg | grep -i goodix
[ 131.850021] Goodix-TS 4-0014: supply AVDD28 not found, using dummy regulator
[ 131.858280] Goodix-TS 4-0014: supply VDDIO not found, using dummy regulator
[ 131.867800] Goodix-TS 4-0014: ID 911, version: 1060
[ 131.877464] input: Goodix Capacitive TouchScreen as /devices/platform/soc@0/30800000.bus/30ad0000.i2c/i2c-4/4-0014/input/input3
[ 131.889968] Goodix-TS 4-0014: request IRQ failed: -22
[ 131.919015] Goodix-TS: probe of 4-0014 failed with error -22
iwg40m_8mp:/ # i2cdetect -y 4
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- 14 -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
iwg40m_8mp:/ # [ 147.187126][ T425] healthd: battery l=85 v=3600 t=35.0 h=2 st=2 c=400000 fc=4000000 cc=32 chg=a
please give your valuable suggestion for resolving this error.
Regards,