This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

WiFi+BT not working in AM335xevm-sk custom board

Hi

        I'm using AM335xevm_sk custom board. In our board there is a small changes in Wifi schematic but same module. changes are,

1, mmc1 to mmc2

2.WL_IRQ (0,31) to (1,30)

3.WL_enable (1,29) to (1, 31)

#define AM335XEVM_WLAN_IRQ_GPIO GPIO_TO_PIN(3, 17)
#define AM335XEVM_SK_WLAN_IRQ_GPIO GPIO_TO_PIN(1, 30) // GPIO_TO_PIN(0, 31)

........

static void wl12xx_init(int evm_id, int profile)
{
struct device *dev;
struct omap_mmc_platform_data *pdata;
int ret;

if (evm_id == EVM_SK) {
am335xevm_wlan_data.wlan_enable_gpio = GPIO_TO_PIN(1, 31); //(1, 29);
am335xevm_wlan_data.bt_enable_gpio = GPIO_TO_PIN(3, 21);

.....

}

static struct pinmux_config wl12xx_pin_mux_sk[] = {

{"gpmc_csn1.gpio1_30", OMAP_MUX_MODE7 | AM33XX_PIN_INPUT}, //gpmc_wpn.gpio0_31
{"gpmc_csn2.gpio1_31", OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT_PULLUP}, //gpmc_csn0.gpio1_29
{"mcasp0_ahclkx.gpio3_21", OMAP_MUX_MODE7 | AM33XX_PIN_OUTPUT},
{NULL, 0},
};

evm_sk_dev_cfg[] = { 

{mmc2_wl12xx_init, DEV_ON_BASEBOARD, PROFILE_ALL},
{mmc0_init, DEV_ON_BASEBOARD, PROFILE_ALL},

.........

{uart1_wl12xx_init, DEV_ON_BASEBOARD, PROFILE_ALL},
{wl12xx_init, DEV_ON_BASEBOARD, PROFILE_ALL},

}

While i am trying to boot getting below error 

[ 5140.889251] (stk) :line disc installation timed out
[ 5143.019256] (stk) :line disc installation timed out
[ 5145.149261] (stk) :line disc installation timed out
[ 5146.149261] Bluetooth: st_register failed -22
[ 5147.379241] (stk) :line disc installation timed out
[ 5149.509216] (stk) :line disc installation timed out
[ 5151.639221] (stk) :line disc installation timed out 

I checked the enable GPIO and IRQ GPIO like this 

root@android:/data # cd ..
root@android:/ # cat /sys/kernel/debug/gpio
GPIOs 0-31, gpio:
gpio-6 (mmc_cd ) in lo
gpio-30 (SW3 ) in hi

GPIOs 32-63, gpio:
gpio-36 (am335x:EVM_SK:usr0 ) out lo
gpio-37 (am335x:EVM_SK:usr1 ) out lo
gpio-38 (am335x:EVM_SK:heartb) out lo
gpio-39 (am335x:EVM_SK:mmc0 ) out lo
gpio-63 (wlan_en ) out lo

GPIOs 64-95, gpio:
gpio-66 (SW2 ) in lo
gpio-67 (SW1 ) in lo
gpio-69 (SW4 ) in lo

GPIOs 96-127, gpio:
gpio-117 (kim ) out hi

Here i've attached my bootlog and also i'm not geeting the following logs while booting,

6>[    3.152648] cfg80211: World regulatory domain updated:
<6>[    3.158172] cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
<6>[    3.167022] cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
<6>[    3.175384] cfg80211:     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
<6>[    3.183746] cfg80211:     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
<6>[    3.192108] cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
<6>[    3.200469] cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

 

2555.bootlog.txt

  • Hi,

    please verify that you have enabled RTS/CTS for your URAT, as the module requires hard ware flow control. 

    Thanks and regards,

    K Sreenivas

  • Hi sreeni 

              Not only Bluetooth,  wifi and BT both or not working. Wifi communicating with SDIO interface not via UART. Bluetooth only communicating via UART in that case also HW flow control is enabled as follow 

    struct ti_st_plat_data wilink_pdata = {
    .nshutdown_gpio = GPIO_TO_PIN(3, 21),
    .dev_name = "/dev/ttyO1",
    .flow_cntrl = 1,
    .baud_rate = 3000000,
    .suspend = plat_kim_suspend,
    .resume = plat_kim_resume,
    .chip_enable = plat_kim_chip_enable,
    .chip_disable = plat_kim_chip_disable,
    };

    I guess the reason is problem in GPIO toggling in WL_enable and IRQ functions. But its enabled in board-am335xevm.c 

    I can see the 1.8V in WLAN module and GPIO is connecting with module via voltage translators. 

  • Did you check the slow clock frequency that supplied to module..