I am using a GOODIX touch which is connected to the imx processor through an hid device like hid-ft260.
how to integrate a i2c touch driver which is controlled by an hid device in yocto. currently i am adding the goodix driver in the devicetree of the I2c node which is created by the hid device. Is it the right way to add the driver to the yocto
The hid device create the i2c bus 8 when connected with the imx . So is it ok to give the i2c node inside that bus which the imx able to detect it. Should i need to implement any other logic inside this
I will add the devictree snippet which i have added in the root node
ft260_i2c_bus: i2c@8 {
#address-cells = <1>;
#size-cells = <0>;
reg = <8>;
status = "okay";
ft260_gpio: gpio {
gpio-controller;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
};
touchcontroller: touchcontroller@5d {
compatible = "goodix,gt911";
reg = <0x5d>;
interrupt-parent = <&ft260_gpio>;
interrupts =
reset-gpios = <&ft260_gpio 2 GPIO_ACTIVE_LOW>;
status = "okay";
};
};
Hello,
For goodix touchscreen one can look at boundary devices nitrogen 8m board:
Regards
Can i add it after connecting the hid device to the imx board.