Thank you very much for your response Mr. Nelson.

I tried with your solution but it did not work for me. 
Situation was the same. 
But, more importantly, you made me thinking and finally I have a working 
dts:

    fragment@0 {
        target = <&am33xx_pinmux>;
        __overlay__ {
            bb_i2c1_pins: pinmux_bb_i2c1_pins {
                pinctrl-single,pins = <
                    BONE_P9_18 0x72    // spi0_d1.i2c1_sda, SLEWCTRL_SLOW | 
INPUT_PULLUP | MODE2
                    BONE_P9_17 0x72    // spi0_cs0.i2c1_scl, SLEWCTRL_SLOW 
| INPUT_PULLUP | MODE2
                >;
            };            
        };
    };
    
    fragment@1 {
        target = <&am33xx_pinmux>;
        __overlay__ {
            gt911_ts: pinmux_gt911_ts {
                pinctrl-single,pins = <                
                BONE_P8_13 (PIN_INPUT_PULLUP | MUX_MODE7)
                BONE_P8_14 (PIN_OUTPUT_PULLUP | MUX_MODE7)
                >;
            };
        };
    };
    

    fragment@2 {
        target = <&i2c1>;    // i2c1 is numbered correctly
        __overlay__ {
            status = "okay";
            pinctrl-names = "default";
            pinctrl-0 = <&bb_i2c1_pins>;

            // configuration start
            clock-frequency = <100000>;

            #address-cells = <1>;
            #size-cells = <0>;
                    
            ctp@5d {
                status = "okay";
                pinctrl-names = "default";
                compatible = "goodix,gt911";
                                
                reg = <0x5d>;
                interrupt-parent = <&gt911_ts>;
                interrupts = <1 0>;                 
                irq-gpios = <&gt911_ts 0 GPIO_ACTIVE_LOW>;
                reset-gpios = <&gt911_ts 1 GPIO_ACTIVE_LOW>;
                touchscreen-swapped-x-y;                
            };            
        };
    };
    

Once again, thank you for your help.
Regards,
--
Libor Orgovan.





уторак, 04. октобар 2016. 17.29.53 UTC+2, RobertCNelson је написао/ла:
>
> On Tue, Oct 4, 2016 at 7:01 AM,  <[email protected] <javascript:>> 
> wrote: 
> > I am pretty sure that the problem is in the following block of code: 
> >                 interrupts = <8 13 2>; 
> >                 irq-gpios = <8 13>; 
> >                 reset-gpios = <8 14>; 
> > 
> > I do not know how to define these gpios in that block of code, how to 
> assign 
> > them to interrupts, irg-gpios and reset-gpios. 
> > 
> > Gpio which is connected to GT911 controller's interrupt is P8_13 and 
> gpio 
> > for reset of the GT911 controller is P8_14. 
>
> Well, 
>
>
> https://github.com/derekmolloy/boneDeviceTree/blob/master/docs/BeagleboneBlackP8HeaderTable.pdf
>  
>
> P8_13 = gpio0_23 
> P8_24 = gpio0_26 
>
>
> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/input/touchscreen/goodix.txt
>  
>
> interrupt-parent = <&gpio0>; 
> interrupts = <0 0>; //interrupts : Interrupt to which the chip is 
> connected 
>
> irq-gpios = <&gpio0 23 GPIO_ACTIVE_LOW>; 
> reset-gpios = <&gpio0 26 GPIO_ACTIVE_LOW>; 
>
> Regards, 
>
> -- 
> Robert Nelson 
> https://rcn-ee.com/ 
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/b79c8282-9fb8-450b-b106-6a46dc8a7eb0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to