{"action":"created","issue":{"url":"https://api.github.com/repos/jackmitch/libsoc/issues/30","labels_url":"https://api.github.com/repos/jackmitch/libsoc/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/jackmitch/libsoc/issues/30/comments","events_url":"https://api.github.com/repos/jackmitch/libsoc/issues/30/events","html_url":"https://github.com/jackmitch/libsoc/pull/30","id":109920085,"number":30,"title":"RFC: Build up support for easier access to GPIOs","user":{"login":"doanac","id":227620,"avatar_url":"https://avatars.githubusercontent.com/u/227620?v=3","gravatar_id":"","url":"https://api.github.com/users/doanac","html_url":"https://github.com/doanac","followers_url":"https://api.github.com/users/doanac/followers","following_url":"https://api.github.com/users/doanac/following{/other_user}","gists_url":"https://api.github.com/users/doanac/gists{/gist_id}","starred_url":"https://api.github.com/users/doanac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doanac/subscriptions","organizations_url":"https://api.github.com/users/doanac/orgs","repos_url":"https://api.github.com/users/doanac/repos","events_url":"https://api.github.com/users/doanac/events{/privacy}","received_events_url":"https://api.github.com/users/doanac/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-06T01:43:01Z","updated_at":"2015-10-06T09:16:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jackmitch/libsoc/pulls/30","html_url":"https://github.com/jackmitch/libsoc/pull/30","diff_url":"https://github.com/jackmitch/libsoc/pull/30.diff","patch_url":"https://github.com/jackmitch/libsoc/pull/30.patch"},"body":"Hey Jack,\r\n\r\nMy name is Andy Doan and I work for David Mandala at Linaro. I believe he approached you with regards to making this library a little easier to use for our 96Boards project. The main issue we have is that all the boards have the same GPIO pin layouts (we call GPIO_A ... GPIO_L). However, the actual GPIO ID is different depending on the SoC. As I read your gpio_test.c file, I see that current projects like BeagleBone have similar issues (just not quite as bad). I've tried to come up with a simple, optional (autoconf enabled) solution to this problem.\r\n\r\nI was hoping to see what you thought about these patches. The branch is pretty easy to test. Just do something like:\r\n\r\n ./configure BOARD=beaglebone\r\n\r\nI attempted to create a beaglebone gpio.conf to make your testing easier. You could then get GPIO id for P9_42 in something like your gpio_test.c file with: libsoc_gpio_id(\"P9_42\")"},"comment":{"url":"https://api.github.com/repos/jackmitch/libsoc/issues/comments/145794888","html_url":"https://github.com/jackmitch/libsoc/pull/30#issuecomment-145794888","issue_url":"https://api.github.com/repos/jackmitch/libsoc/issues/30","id":145794888,"user":{"login":"davidvg","id":921050,"avatar_url":"https://avatars.githubusercontent.com/u/921050?v=3","gravatar_id":"","url":"https://api.github.com/users/davidvg","html_url":"https://github.com/davidvg","followers_url":"https://api.github.com/users/davidvg/followers","following_url":"https://api.github.com/users/davidvg/following{/other_user}","gists_url":"https://api.github.com/users/davidvg/gists{/gist_id}","starred_url":"https://api.github.com/users/davidvg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidvg/subscriptions","organizations_url":"https://api.github.com/users/davidvg/orgs","repos_url":"https://api.github.com/users/davidvg/repos","events_url":"https://api.github.com/users/davidvg/events{/privacy}","received_events_url":"https://api.github.com/users/davidvg/received_events","type":"User","site_admin":false},"created_at":"2015-10-06T09:16:55Z","updated_at":"2015-10-06T09:16:55Z","body":"Hi, I think you have sent this message to the wrong person :)\nThe point is I am actually starting working with BeagleBone and last month\nI visited your repo in GitHub. Nice work, by the way.\n\nBest regards,\nDavid Vazquez.\n\n2015-10-06 3:43 GMT+02:00 Andy Doan <notifications@github.com>:\n\n> Hey Jack,\n>\n> My name is Andy Doan and I work for David Mandala at Linaro. I believe he\n> approached you with regards to making this library a little easier to use\n> for our 96Boards project. The main issue we have is that all the boards\n> have the same GPIO pin layouts (we call GPIO_A ... GPIO_L). However, the\n> actual GPIO ID is different depending on the SoC. As I read your\n> gpio_test.c file, I see that current projects like BeagleBone have similar\n> issues (just not quite as bad). I've tried to come up with a simple,\n> optional (autoconf enabled) solution to this problem.\n>\n> I was hoping to see what you thought about these patches. The branch is\n> pretty easy to test. Just do something like:\n>\n> ./configure BOARD=beaglebone\n>\n> I attempted to create a beaglebone gpio.conf to make your testing easier.\n> You could then get GPIO id for P9_42 in something like your gpio_test.c\n> file with: libsoc_gpio_id(\"P9_42\")\n> ------------------------------\n> You can view, comment on, or merge this pull request online at:\n>\n>   https://github.com/jackmitch/libsoc/pull/30\n> Commit Summary\n>\n>    - Add optional \"board\" support mechanism\n>    - contrib: Add ability to install board-specific gpio.conf\n>    - gpio: Add optional board-specific helper\n>\n> File Changes\n>\n>    - *M* Makefile.am\n>    <https://github.com/jackmitch/libsoc/pull/30/files#diff-0> (3)\n>    - *M* configure.ac\n>    <https://github.com/jackmitch/libsoc/pull/30/files#diff-1> (12)\n>    - *A* contrib/board_files/Makefile.am\n>    <https://github.com/jackmitch/libsoc/pull/30/files#diff-2> (1)\n>    - *A* contrib/board_files/beaglebone/gpio.conf\n>    <https://github.com/jackmitch/libsoc/pull/30/files#diff-3> (69)\n>    - *A* contrib/board_files/bubblegum/gpio.conf\n>    <https://github.com/jackmitch/libsoc/pull/30/files#diff-4> (14)\n>    - *A* contrib/board_files/dragonboard/gpio.conf\n>    <https://github.com/jackmitch/libsoc/pull/30/files#diff-5> (14)\n>    - *A* contrib/board_files/hikey/gpio.conf\n>    <https://github.com/jackmitch/libsoc/pull/30/files#diff-6> (14)\n>    - *M* lib/Makefile.am\n>    <https://github.com/jackmitch/libsoc/pull/30/files#diff-7> (6)\n>    - *A* lib/board.c\n>    <https://github.com/jackmitch/libsoc/pull/30/files#diff-8> (98)\n>    - *A* lib/include/libsoc_board.h\n>    <https://github.com/jackmitch/libsoc/pull/30/files#diff-9> (13)\n>    - *A* test/board_test.c\n>    <https://github.com/jackmitch/libsoc/pull/30/files#diff-10> (53)\n>\n> Patch Links:\n>\n>    - https://github.com/jackmitch/libsoc/pull/30.patch\n>    - https://github.com/jackmitch/libsoc/pull/30.diff\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/jackmitch/libsoc/pull/30>.\n>\n"}}