AnsweredAssumed Answered

Device tree binding: can not make work my touch device

Question asked by aveselinov@generationrfid.com on Jan 23, 2017
Latest reply on Jan 31, 2017 by vinod kumar

I have a Goodix touch device that uses i2c interface. This is the doc on how to bind it.

And this my node:

 

    i2cmux {
        compatible = "i2c-mux-gpio";
        #address-cells = <1>;
        #size-cells = <0>;
        mux-gpios = <&gpio1 2 0>;
        i2c-parent = <&i2c1>;

 

        i2c@0 {
            reg = <0>;
            #address-cells = <1>;
            #size-cells = <0>;

 

            /*my node*/

            gt9271@XX {
                    compatible = "goodix,gt9271";
#if GOODIX_5D
                   reg = <0x5d>;
#else
                   reg = <0x14>;
#endif
                   interrupt-parent = <&gpio1>;
                   interrupts = <4 0>;
                   irq-gpios = <&gpio1 4 0>;
                   resets = <&lcd_reset>;
            };
The driver loads correctly, the reset sequence is OK too, but there are no interrupts generation when I touch the screen. So I suspect if my device tree binding could be wrong. How should I set the 0 value of interrupts and irq-gpios properties? The INT pin is connected to GPIO4, which is configured as input and is on HIGH level by default.  I've tried different combinations (0 0, 0 1, 1 0, 1 1) but all remains the same.

Outcomes