Setting GPIO pins on touchscreen Linux Driver
a7x
New Member Posts: 3 ✭
Greetings.
I need to specify the GPIO pins of my EDT-FT5206 display but I don't know where to start.
I know that the linux kernel of the UpBoard has some specific drivers for this type of screen that are located in "/drivers/input/touchscreen/edt-ft5x06. c" and that can be called by means of the modprobe command but I don't know how to specify which pins to receive the information from.
The documentation found specifies that certain lines of code can be added to the devicetree of the operating system, but I don't know how to apply it to this board.
Thank you in advance for your help.
I need to specify the GPIO pins of my EDT-FT5206 display but I don't know where to start.
I know that the linux kernel of the UpBoard has some specific drivers for this type of screen that are located in "/drivers/input/touchscreen/edt-ft5x06. c" and that can be called by means of the modprobe command but I don't know how to specify which pins to receive the information from.
The documentation found specifies that certain lines of code can be added to the devicetree of the operating system, but I don't know how to apply it to this board.
Thank you in advance for your help.
Comments
-
There is no device-tree table on x86-boards at all, x86 uses ACPI-tables for that. I do not know how to mess with ACPI-tables, and while dcleri or someone promised that they'd write a guide on how to write ACPI-overlays, they didn't say when they do that, so unless someone more knowledgeable steps in to explain how to do ACPI-overlays, you're just shit out of luck.
-
Hi all
1) Thank you WereCatf
2) I will add something to the wiki about how to add an acpi overlay as soon as I have some time to do that (sorry I am only one)
Regards
Nicola Lunghi -
Would e.g. https://github.com/armbian/sunxi-DT-overlays/blob/master/examples/i2c-edt-ft5x06.dts help? I do not have the display and obviously cannot comment on its functionality, but it should be easy enough to translate to ACPI-tables.
-
Thank you in advance for the help of everyone, I will be waiting for the publication of this guide.
-
In the meantime you can look at the utility used to enable spi devices here
https://up-community.org/wiki/Pinout_UP2#Installing_ACPI_overrides_to_enable_spi_in_userspace -
Hi!.
Any news on how to add an acpi overlay?. I think that being Up a maker/experiment board, the possibility to enable the driver of peripalls used on ARM boards is particularly important.
Thanks. -
Bump?