Hi guys!
We're trying to connect WIFI + BT module: http://www.lsr.com/wireless-products/tiwi-r2
A hw partner connected it based on the general examples, at porting guides and as it was described in the board-am335xevm.c at the general purpose eves part.
The mmc and uart configration is the following (we connected it via mmc1 and uart1):
/* Module pin mux for wlan and bluetooth */
static struct pinmux_config mmc1_wl12xx_pin_mux[] = {
{"gpmc_ad8.mmc1_dat0", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLUP},
{"gpmc_ad1.mmc1_dat1", OMAP_MUX_MODE1 | AM33XX_PIN_INPUT_PULLUP},
{"gpmc_ad10.mmc1_dat2", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLUP},
{"gpmc_ad11.mmc1_dat3", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLUP},
{"gpmc_csn2.mmc1_cmd", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLUP},
{"gpmc_csn1.mmc1_clk", OMAP_MUX_MODE2 | AM33XX_PIN_INPUT_PULLUP},
{NULL, 0},
};
static struct pinmux_config uart1_wl12xx_pin_mux[] = {
{"uart1_ctsn.uart1_ctsn", OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT},
{"uart1_rtsn.uart1_rtsn", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT},
{"uart1_rxd.uart1_rxd", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP},
{"uart1_txd.uart1_txd", OMAP_MUX_MODE0 | AM33XX_PULL_ENBL},
{NULL, 0},
};
We always get "wl12xx mmc device initialization failed" after setting platform data for wifi.
We don't have here any sophisticated daughter board but only connected WIFI to mmc and BT to uart.
Practically we altered the pinmux structs, enable gpios, and added init functions to cfg struct just as it is written in the porting guides but no success.
Could someone more experienced on this tell me how to start debugging the mmc init failed stuff.
Do wl12xx_set_platform_data needs to succeed in order to have a properly initialized device? Because for now I only see that it determines success based on if the .dev is not null.
I attached the complete board file. 4774.board-am335xevm.c