Other Parts Discussed in Thread: TPS65218, AM4372
Tool/software: Linux
So i am cutting my teeth on linux drivers and i am starting with GPIO drivers. i am using SDK 4.03
i am using these pages as resources:
so i am trying to control the only GPIO i seem to have available, GPIO16.
so i open export and write "16" to it, i open direction and write "out" to it, i open value and i write "1" or "0" to it. when i read back value i get the value i wrote to it. so the files seem to work... but according to the schematic linked above GPIO16 is attached to status LED5 which is D11 on my board which never changes. so am i wrong to assume it is as simple as export, direction, value? am i missing something?
general question about these GPIO drivers:
there are lots of potential GPIO lines to control, but according to my /sys/class/gpio directory i only seem to have access to 1 GPIO. a lot of GPIOs are attached to LEDS, but when i look in the LED directory the directory is empty. so i have a lot of, seemingly, unaccounted for GPIOs. do the GPIO folders get created when i do an export? are the other GPIOs not included on purpose to force people to write their own drivers?
the next general question i have on this EVM is GPIO input - the buttons are all tied to keyboard scanning GPIOs. how do i use the drivers for these GPIOs? i am a linux newbie so how do i use the custom keyboard created on this EVM? i didn't see anything obvious in the sys/class directory to indicate a keyboard