This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

GPIO on DM355 DVEVM

Hi everybody,

since my previous post regarding the same argument was removed (actually don't know why) I try to re-post...

I want to have access to pins available on DC7. 

I've found a gio.h in /workdir/lsp/ti-davinci/include/asm-arm/arch-davinci which contains some functions that allow to set direction and level. How can I use the API's contained in that file?

Really appreciate any answer.

Thanks,s.

  • Simone Mauroner said:
    since my previous post regarding the same argument was removed (actually don't know why) I try to re-post...

    When did you make the original post? Did you get any messages as to why it was removed? I don't see any record of another GPIO posting from you, and I don't see any reason your post would have been deleted so this may have been a forum glitch that we need to report to the IT folks.

    Simone Mauroner said:
    I've found a gio.h in /workdir/lsp/ti-davinci/include/asm-arm/arch-davinci which contains some functions that allow to set direction and level. How can I use the API's contained in that file?

    The GPIO functionality in there is for use by other drivers, it is not exposed to user space any where I am aware of, so the way you would use it would be to write a Linux device driver that calls upon the APIs.

    One example of this can be found within dvsdk_2_00_00_22\PSP_02_00_00_140\examples\dm355\gpio which has a C file and a readme that can be used to make a GPIO kernel module that runs a GPIO test.

  • Bernie Thompson said:

    When did you make the original post? Did you get any messages as to why it was removed? I don't see any record of another GPIO posting from you, and I don't see any reason your post would have been deleted so this may have been a forum glitch that we need to report to the IT folks.

    Bernie,

    on 4th Jan at 6pm I posted the message and few hours later I received a mail saying "The thread GPIO on DM355 DVEVM was moved to Digital Media Processors based on Davinci Technology Forum. ". Clicking on the link I jumped to a page saying something like "The post you requested cannot be found or no longer exists. The administrator or moderator may have deleted the post.". The message still appeared on my TI home page but the link didn't work, so I removed it .

    Bernie Thompson said:

    The GPIO functionality in there is for use by other drivers, it is not exposed to user space any where I am aware of, so the way you would use it would be to write a Linux device driver that calls upon the APIs.

    One example of this can be found within dvsdk_2_00_00_22\PSP_02_00_00_140\examples\dm355\gpio which has a C file and a readme that can be used to make a GPIO kernel module that runs a GPIO test.

    Done without using examples. I've read "Linux Device Driver 3rd Edition", fixed the path adding  ~/workdir/lsp/ti-davinci/include, made a simple makefile and....it worked.

    Thanks.

    s.

  • Simone Mauroner said:

    Bernie,

    on 4th Jan at 6pm I posted the message and few hours later I received a mail saying "The thread GPIO on DM355 DVEVM was moved to Digital Media Processors based on Davinci Technology Forum. ". Clicking on the link I jumped to a page saying something like "The post you requested cannot be found or no longer exists. The administrator or moderator may have deleted the post.". The message still appeared on my TI home page but the link didn't work, so I removed it .

     

    6pm in Italy, I think 11am there!

    ciao,s.

  • Simone Mauroner said:
    on 4th Jan at 6pm I posted the message and few hours later I received a mail saying "The thread GPIO on DM355 DVEVM was moved to Digital Media Processors based on Davinci Technology Forum. ". Clicking on the link I jumped to a page saying something like "The post you requested cannot be found or no longer exists. The administrator or moderator may have deleted the post.". The message still appeared on my TI home page but the link didn't work, so I removed it .

    Thank you for the details, I was able to find this, it looks like it got moved to a restricted forum somehow. I am not sure if the forum software bugged and put it there or if someone accidentally moved it to the wrong place, in either case I will look into it with the IT guys.

    Simone Mauroner said:
    Done without using examples. I've read "Linux Device Driver 3rd Edition", fixed the path adding  ~/workdir/lsp/ti-davinci/include, made a simple makefile and....it worked.

    I am glad to hear you got things working, that LDD3 book is fairly handy, though it is starting to get old if you work with the latest kernel versions.