-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to setup misc GPIOs not associated with a driver (4.1x kernel) #224
Comments
@mfallavol so gpio never got it's own standard driver.. thus, we all abuse "gpio-leds"... best of all you can set a startup state or trigger.. Regards, |
Thanks @RobertCNelson I wondered about that. So gpio-leds for outputs, I assume then gpio-keys for inputs? |
exactly! |
Thanks again @RobertCNelson. M fragment now looks like this:
It seems to be working now. I can see my outputs under /sys/class/leds but I can't find anything similar for my input (P9_16). That said if I export the GPIO it shows the direction as 'in'. The only other thing that is a little bothersome is that the pin modes shown by cat'ing $PINS does not seem to reflect the expected mode but only for these GPIO pins. All of the other pins I set in the overlay seem to be show as expected. |
I have a rather large overlay for a project that sets up an SPI bus, UART, RTC etc but I also need to configure some GPIOs that I control via an application using BBBioLib. I did all of this with the 3.8 kernel and it all worked fine. I've converted the overlay and it compiles and seems to load okay and all of the pins seem to be set to the correct mux except for the GPIO pins.
Here is the entire overlay:
The section that I'm concerned about fragment 10:
Is this the correct way to specify the GPIO pins?
The text was updated successfully, but these errors were encountered: