Champs,
I am literally posting this direct from my customer as i couldn't find anything on the forums yet; and it looks right to me. I'm trying to dig up a beagle-bone now to officially replicate, but I'll probably be successful so in preparation for that eventuality I thought I'd get this out there to see if anyone has done this. We're basically jiust trying to use the EMU pins as GPIOs, as follows: but I can’t figure out what is correct way to initialize the pinmum utility.
In board-am335xevm.c I did this:
/* pinmux for captouch device */
static struct pinmux_config gpio_captouch_mux[] = {
{"emu1.gpio3_8", OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT},
{"emu0.gpio3_7", OMAP_MUX_MODE7 | AM33XX_PIN_INPUT},
{NULL, 0},
};
But when I boot Linux complains:
[ 0.990844] _omap_mux_get_by_name: Could not find signal emu1.gpio3_8
[ 0.997192] _omap_mux_get_by_name: Could not find signal emu0.gpio3_7
I also tried
/* pinmux for captouch device */
static struct pinmux_config gpio_captouch_mux[] = {
{"gpio3_8", OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT},
{"gpio3_7", OMAP_MUX_MODE7 | AM33XX_PIN_INPUT},
{NULL, 0},
};
But I got
[ 0.990844] _omap_mux_get_by_name: Could not find signal gpio3_8
[ 0.997192] _omap_mux_get_by_name: Could not find signal gpio3_7
Looking through omap_get_by_name() it should find mux either by full name or mux mode. Do you know what is trick to set these pins as GPIOs?
Any ideas? gpio3_8 seems like the right name to me...