AnsweredAssumed Answered

How to set the bitmask for GPIO input correctly

Question asked by Sebastian Krahl on Dec 6, 2018
Latest reply on Dec 11, 2018 by Sebastian Krahl

Hello,

 

I'm working on a project where a goodix gt911 touchscreen is connected to an imx6q SOM. The communication via I2C is working properly. It is found by the kernel driver and initialized. But the INT-pin connected to GPIO2_IO21 is always low. To me it is not clear witch value of MX6QDL_PAD_EIM_A17__GPIO2_IO21 (currently ) 0xb0b1 has to be set. There is no external pull-up or -down resistor in the line and it is directly connected. My set up for the device tree is:

 

touch: gt911@5d {
   compatible = "goodix,gt911";    
   reg = <0x5d>;
   pinctrl-names = "default";
   inctrl-0 = <&pinctrl_goodix>;
   interrupt-parent = <&gpio2>;
   interrupts = <21 IRQ_TYPE_EDGE_FALLING>;
   //irq-gpios = <&gpio2 21 GPIO_ACTIVE_HIGH>;
   //reset-gpios =<&gpio0 16 GPIO_ACTIVE_LOW>;
   //reset = <&lcd_reset>;
   status = "okay";

};

 

and

 

pinctrl_goodix: gt911 {
   fsl,pins = <
       MX6QDL_PAD_EIM_A17__GPIO2_IO21            0xb0b1
   >;
};

 

Can somebody give me a hint where to look for the solution?

 

Regards,

 

Sebastian

Outcomes