Menu ▾ ▴

WifiPage

Olivier

TI WL1250 / WL1251 Wi-Fi Hardware & Linux Driver Guide

Reverse-engineered from Windows Mobile driver (TIACXWLN.dll).

1. Chipset & Bus Specifications

  • Chipset: Texas Instruments WL1250 / WL1251 (TNETW1251, NVS magic signature 0x00EE1250).
  • Reference Oscillator (ref_clock): 19.2 MHz (verified via NVS byte 0x67 != 0; 40 MHz is explicitly rejected by DriverEntry).
  • Host Interface: PXA270 4-bit SDIO (MMC controller at 0x41100000, identification clock 19.5 MHz >> 6 = 304.68 kHz, full speed 19.5 MHz).
  • Linux Kernel Driver: Mainline wl1251 + wl1251_sdio (drivers/net/wireless/ti/wl1251/).

2. Pinout & Hardware Control

Domain Pin / Register Mask Direction / Polarity Function
PXA270 MMC GPIO 32 0x00000001 Output (ALT2) MMCLK (SDIO Clock)
PXA270 MMC GPIO 92 0x10000000 Bidir (ALT1) MMDAT0 (SDIO Data 0)
PXA270 MMC GPIO 109 0x00002000 Bidir (ALT1) MMDAT1 (SDIO Data 1)
PXA270 MMC GPIO 110 0x00004000 Bidir (ALT1) MMDAT2 (SDIO Data 2)
PXA270 MMC GPIO 111 0x00008000 Bidir (ALT1) MMDAT3 (SDIO Data 3)
PXA270 MMC GPIO 112 0x00010000 Bidir (ALT1) MMCMD (SDIO Command)
PXA270 GPIO GPIO 35 (0x23) 0x00000008 Input (Falling Edge) WIFI_IRQ (Hardware Interrupt)
PXA270 GPIO GPIO 54 0x00400000 Output (1 = ON) WIFI_PWR_EN (Base power/oscillator enable)
PXA270 GPIO GPIO 72 0x00000100 Output (Active-Low) WIFI_RESET (0 = Reset, 1 = Run)
PXA270 GPIO GPIO 113 0x00020000 Input (Active-Low) WIFI_READY (0 = Ready)
CPLD1 (+0x2) GPIOB7 0x0080 Output (1 = ON) Wi-Fi Status LED
CPLD1 (+0x4) GPIOC3 0x0008 Output (1 = ON) wifi_pwr3 (Power rail 3)
CPLD1 (+0x4) GPIOC6 0x0040 Output (1 = ON) wifi_pwr4 (Power rail 4)
CPLD2 (GPIOI) GPIOI6 0x0040 Output (1 = ON) wifi_pwr1 (Power rail 1)
CPLD2 (GPIOI) GPIOI7 0x0080 Output (1 = ON) wifi_pwr2 (Power rail 2)

3. Exact Power-Up & Reset Sequence (FUN_1001e4f4)

  1. Set PXA270 GPIO 54 = 1 and GPIO 72 (WIFI_RESET) = 1.
  2. Delay 3 ms.
  3. Set CPLD1 Cpin (+0x4) bit 6 (0x0040 / wifi_pwr4) = 1.
  4. Delay 3 ms.
  5. Set CPLD2 GPIOI bits 6 & 7 (0x00C0 / wifi_pwr1 & wifi_pwr2) = 1.
  6. Delay 3 ms.
  7. Set CPLD1 Cpin (+0x4) bit 3 (0x0008 / wifi_pwr3) = 1.
  8. Delay 60 ms.
  9. Assert reset: Set PXA270 GPIO 72 = 0, wait 32 ms, then set GPIO 72 = 1.
  10. Delay 100 ms before issuing SDIO CMD0 / CMD5 initialization sequence.
  11. (Optional) Set CPLD1 Bpin (+0x2) bit 7 (0x0080) = 1 to turn on the Wi-Fi LED.

Power-Down Sequence

Clear CPLD1 Bpin (0x80) -> CPLD2 GPIOI (0x80) -> CPLD2 GPIOI (0x40) -> CPLD1 Cpin (0x08) -> CPLD1 Cpin (0x40) -> GPIO 72 = 0 -> GPIO 54 = 0.

(Note: Windows Mobile also uses a shared memory flag at 0x398 and event _BTWlanCoexitNotified for Bluetooth/WLAN PTA antenna coexistence).


4. NVS / Calibration EEPROM Extraction

The bootloader copies the 752-byte (0x2F0) NVS calibration data (including the factory MAC address and 19.2 MHz clock flag) into RAM at virtual address 0xAC031000 (verified in FUN_1001f1f8).

To extract the NVS file from Windows Mobile using HaRET for Linux /lib/firmware/wl1251-nvs.bin:

pwf wl1251-nvs.bin 0xac031000 0x2f0

Place both wl1251-fw.bin (from standard linux-firmware) and wl1251-nvs.bin inside /lib/firmware/ on your Linux rootfs.