Beaglebone GPIO Pin Muxing
View RSS feed GPIO Muxing I had to choose some gpio pins for a 6-key-keypad which will be connected beaglebone and I found these pins: GPIO 1_30, GPIO1_4, GPIO1_0, GPIO1_5, GPIO1_1 and GPIO1_29 They are 21-26 pins at expansion P8 header. As each GPIO index has 32 pins, gpio1_30 is equal to GPIO62 actually. Also GPIO1_0 = GPIO32 The calculation is like this: GPIOx_y = 32*x + y For GPIO1_30 pin, the muxing is the following: echo 27 > /sys/kernel/debug/omap_mux/gpmc_csn1 (you can check gpmc_csn1 from datasheet) echo 62 > /sys/class/gpio/export (gpio62 is from the calculation) echo in /sys/class/gpio/gpio62/direction (direction is input) cat /sys/class/gpio/gpio62/value ...