I am looking at changing the GPIO states as soon as possible on the Edison. My idea is to do it in a U-Boot script.
However to do that i need to know the memory mapping to write on the GPIOs like it is done here:
http://www.jubilinux.org/u-boot-commands/ U-Boot Commands – jubilinux
Can anyone help finding the info?
Thank you for your interest in the Intel Edison Platform. Unfortunately, changes to the U-Boot is not part of our support scope. We do provide the Yocto image source code for users to modify the image to their needs and share their results with the community.
I get that you dont support that. But how do i need to change the GPIO state as soon as possible. Even with Yocto. This is a must have for us (and we have more that 100 Edisons...)
Can you point to where to do that in Yocto right after boot.
You can find Yocto recipes-bsp for the Intel Edison in the following link: http://git.yoctoproject.org/cgit/cgit.cgi/meta-intel-edison/plain/meta-intel-edison-bsp/recipes-bsp/
Unfortunately we do not have detailed instructions on the specific changes you want to do with the GPIO.
Thanks for that link.
You surely must have someone in your team that has that knowledge and that could help us finding the right way to do so?
Again we have 100 edisons that need to be shipped by january. We need to find a way to change a GPIO state less than 3 sec after boot (power button).
As it's been announced, the Intel Edison has been EOL'd therefore there will be no more updates or new documentation planned for the platform. Furthermore, there are no engineering resources available for changes to the U-Boot. We apologize for the inconvenience. For more information on the Intel Edison discontinuation notice, you can check the flowing link: /docs/DOC-112093 https://communities.intel.com/docs/DOC-112093
martinguillon you may find latest Edison U-boot here https://github.com/andy-shev/u-boot/commits/edison Commits · andy-shev/u-boot · GitHub
This is u-boot v2017.11 with just 3 Edison specific patches.
I think you are looking for the memory mapping of the gpio's. You might able to dig that out of https://github.com/andy-shev/linux/tree/eds GitHub - andy-shev/linux at eds
Or maybe this (from edison's experimental u-boot version)
https://github.com/u-boot/u-boot/commit/39665beed6f741fd8ae6ebf23d07fbd546a0d55e# diff-169c1a545b87c4da3f4cc2c2d93614f5 x86: tangier: Enable ACPI support for Intel Tangier · u-boot/u-boot@39665be · GitHub
There is a southcluster.asl defining gpio stuff. These should be sufficient to allow an (edison) acpi enabled kernel to get gpio support up.
FerryT Wow thanks a lot ! That might of a great help.
Actually we are looking at writing GPIO drivers for the U-Boot as well as PinCtrl. That way we will be able to enable gpio command in uboot.
@https://github.com/andy-shev andy-shev (Andy Shevchenko) · GitHub has been guiding me on this. We will create a PR on the official u-boot rep.