how to integrate a i2c touch driver which is controlled by an hid device in yocto

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to integrate a i2c touch driver which is controlled by an hid device in yocto

238 Views
Cyriactoms
Contributor II

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 = IRQ_TYPE_EDGE_FALLING>;

reset-gpios = <&ft260_gpio 2 GPIO_ACTIVE_LOW>;

status = "okay";

};

};

0 Kudos
Reply
2 Replies

196 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

For goodix touchscreen one can look at boundary devices nitrogen 8m board:

linux-imx6/imx8mq-nitrogen8m.dts at boundary-imx_4.14.x_2.0.0_ga · boundarydevices/linux-imx6 · GitH... 

Boundary Devices 

 

Regards

 

0 Kudos
Reply

193 Views
Cyriactoms
Contributor II

Can i add it after connecting the hid device to the imx board.

0 Kudos
Reply