Hi!
What device file should I open to be able to use the driver ads7846 for the touchscreen?
Or is there a way to get the major and minor number that a driver is using have compiled the driver in to the kernel so it is not a module.
I am using the board AT91SAM9261ek
Thanks
What device file for touchscreen?
Moderator: nferre
- mikrodidakt
- Contact:
- Location: Sweden
- mikrodidakt
- Contact:
- Location: Sweden
Post
Thanks mike for your answer.
I don't have a device file input0 but I do have device files even0-event5
and then I have two device file ts0 and ts1.
I am not shore what you mean with input system I have configured the kernel so that the input device support and the touchscreen under that is configured.
Every driver have a minor and major number connected to them, right?
So if I am missing the device file and would like to create it what major and minor number should that device file have so that I can use the touchscreen driver ads7846? Is there a way to find out what major number a driver is using or could the driver be using a dynamic major number?
Thanks
I don't have a device file input0 but I do have device files even0-event5
and then I have two device file ts0 and ts1.
I am not shore what you mean with input system I have configured the kernel so that the input device support and the touchscreen under that is configured.
Every driver have a minor and major number connected to them, right?
So if I am missing the device file and would like to create it what major and minor number should that device file have so that I can use the touchscreen driver ads7846? Is there a way to find out what major number a driver is using or could the driver be using a dynamic major number?
Thanks
- mwolfram
- Contact:
- Location: Erfurt/Germany
Post
Have you checked where the ts0 and ts1 come from? And what else do you have enabled to get event0-5?
Having a working udev will do the job for you with creating the right device files. I don't have an ads7846 driver, so where did you get it? Is it part of the patches from maxim? Or have you written it yourself? If you want you can send it to me using my email address.
--
Mike
Having a working udev will do the job for you with creating the right device files. I don't have an ads7846 driver, so where did you get it? Is it part of the patches from maxim? Or have you written it yourself? If you want you can send it to me using my email address.
--
Mike
Senior IT Consultant
Germany
Germany
- nferre
- Site Admin
Post
The touchscreen is a ads7843 device. The ads7846 Linux driver has been modified to support ads7843. The code is at the moment in the Linux -mm tree.
Anyway, you will find it in the experimental at91 Linux patchset (applied on top of maxim.org.za patches). They are located on this web site (www.at91.com) in the project section.
Note that it uses SPI and that SPI and SD/MMC cannot be used at the same time on at91sam9261ek.
Anyway, you will find it in the experimental at91 Linux patchset (applied on top of maxim.org.za patches). They are located on this web site (www.at91.com) in the project section.
Note that it uses SPI and that SPI and SD/MMC cannot be used at the same time on at91sam9261ek.
Who is online
Users browsing this forum: Google [Bot] and 5 guests