Hello,
I try to connect to the touch controller goodix gt928 with the ixora (pin 13,pin 14 of X27) aplis (imx6).
I have read the forum and found that post. The Problem is that I don’t understand why you say that they should use parent gpio2. I think this is because of the GPIO2_IO04. But if I look in the Apalis datatsheet (page 23), I see for gpio01 GPIO1_IO01. GPIO2_IO04 is connected to pin 104.
- Why is it GPIO2_IO04 and not GPIO1_IO01 ?
- What is (“i.MX6 gpio function”) for the GPIO02 (pin 14 of X27 ixora)?
- What is the best way to get the (“i.MX6 gpio function”) from a ixora pin?
I think the overlay should look like:
Is that right?
&i2c1 {
clock-frequency = <100000>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c1>;
status = "okay";
gt928@5d {
compatible = "goodix,gt928";
reg = <0x5d>;
interrupt-parent = <&gpio2>; // X27 GPIO1
interrupts = <4 IRQ_TYPE_LEVEL_LOW>; // X27 GPIO1
irq-gpios = <&gpio2 4 IRQ_TYPE_LEVEL_LOW>; // X27 GPIO1
reset-gpios = <&gpio2 5 IRQ_TYPE_LEVEL_LOW>; // X27 GPIO2
};
};
Have a nice day
I try to connect to the touch controller goodix gt928 with the ixora (pin 13, pin 14 of X27)
So that would be MXM3 pins 1 and 3.
aplis (imx6).
Which would correspond to the i.MX 6 SoC balls NAND_DATA04 and NAND_DATA05 which are GPIO2_IO04 and GPIO2_IO05. BTW all of this may be seen from resp. data sheets.
I have read the forum and found that post. The Problem is that I don’t understand why you say that they should use parent gpio2. I think this is because of the GPIO2_IO04. But if I look in the Apalis datatsheet (page 23), I see for gpio01 GPIO1_IO01. GPIO2_IO04 is connected to pin 104.
I am not sure from which data sheet you would have taken such information.
Why is it GPIO2_IO04 and not GPIO1_IO01 ?
Because GPIO1_IO01 is MXM3 pin 4 aka Apalis PWM2.
What is (“i.MX6 gpio function”) for the GPIO02 (pin 14 of X27 ixora)?
As mentioned above that would be GPIO2_IO05.
What is the best way to get the (“i.MX6 gpio function”) from a ixora pin?
The Ixora data sheet tells you which MXM3 pins that header pin is routed to and the Apalis iMX6 data sheet tells you what i.MX 6 SoC ball that MXM3 pin is connected to listing all its alternate functions including the GPIO ones.
I think the overlay should look like:
I don’t think we do support overlays as of yet, but whatever.
One thing to note: Either use interrupt-parent and interrupts or irq-gpios but not both.
Thanks you it is now a little bit more clear.