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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

248 次查看
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 项奖励
回复
2 回复数

206 次查看
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 项奖励
回复

203 次查看
Cyriactoms
Contributor II

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

0 项奖励
回复