Hi Experts,
I am trying to migrate the WLAN code from the Linux SDK 6 to 7 by updating the DTS file.
I have added the following lines of code into EVMSK DTS file with reference to schematic references.
/* wl12xx/wl18xx card on mmc2 */
mmc2_pins: pinmux_mmc2_pins {
pinctrl-single,pins = <
0x000 0x31 /* gpmc_ad0.mmc1_dat0, INPUT_PULLUP | MODE3 */
0x004 0x31 /* gpmc_ad1.mmc1_dat1, INPUT_PULLUP | MODE3 */
0x008 0x31 /* gpmc_ad2.mmc1_dat2, INPUT_PULLUP | MODE3 */
0x00C 0x31 /* gpmc_ad3.mmc1_dat3, INPUT_PULLUP | MODE3 */
0x084 0x32 /* gpmc_csn2.mmc1_cmd, INPUT_PULLUP | MODE3 */
0x080 0x32 /* gpmc_csn1.mmc1_clk, INPUT_PULLUP | MODE3 */
>;
};
/* wl12xx/wl18xx card enable/irq GPIOs. */
wlan_pins: pinmux_wlan_pins {
pinctrl-single,pins = <
0x40 0x07 /* gpmc_a0.gpio1_16, OUTPUT | MODE7 */
0x070 0x27 /* mcasp0_ahclkr.gpio3_17, INPUT | MODE7 */
0x07C 0x17 /* mcasp0_ahclkx.gpio3_21, OUTPUT_PULLUP | MODE7 */
>;
};
wlcore {
compatible = "wlcore";
gpio = <113>; /* Bank3, pin17 */
/*
* TODO: use edge irqs for suspend/resume.
* in newer kerenls, we seem to miss interrupts when
* working with edge irqs, so revert back to level irqs.
*/
/* platform-quirks = <1>; */
/* if a 12xx card is there, configure the clock to
WL12XX_REFCLOCK_38_XTAL */
board-ref-clock = <4>;
};
kim {
compatible = "kim";
nshutdown_gpio = <117>; /* Bank3, pin21 */
dev_name = "/dev/ttyO1";
flow_cntrl = <1>;
baud_rate = <3000000>;
};
btwilink {
compatible = "btwilink";
};
wlan_en_reg: fixedregulator@2 {
compatible = "regulator-fixed";
regulator-name = "wlan-en-regulator";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
/* WLAN_EN GPIO for this board - Bank1, pin16 */
gpio = <&gpio1 16 0>;
/* WLAN card specific delay */
startup-delay-us = <70000>;
enable-active-high;
};
&mmc2 {
/* these are on the crossbar and are outlined in the
xbar-event-map element */
dmas = <&edma 12
&edma 13>;
dma-names = "tx", "rx";
status = "okay";
vmmc-supply = <&wlan_en_reg>;
bus-width = <4>;
ti,non-removable;
ti,needs-special-hs-handling;
cap-power-off-card;
keep-power-in-suspend;
};
But it doesn't worked out.
The bootup log captured is here as follows,
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: Generic AM33XX (Flattened Device Tree), model: TI AM335x EVM-SK
[ 0.000000] cma: CMA: reserved 24 MiB at 8d800000
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] AM335X ES1.0 (sgx neon )
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 64256
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Memory: 222636K/259072K available (6159K kernel code, 568K rwdata, 2072K rodata, 347K init, 226K bss, 36436K reserved, 0K highm)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xd0800000 - 0xff000000 ( 744 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc081204c (8233 kB)
[ 0.000000] .init : 0xc0813000 - 0xc0869cf8 ( 348 kB)
[ 0.000000] .data : 0xc086a000 - 0xc08f81b8 ( 569 kB)
[ 0.000000] .bss : 0xc08f81b8 - 0xc0930d2c ( 227 kB)
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[ 0.000000] Total of 128 interrupts on 1 active controller
[ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[ 0.000000] OMAP clocksource: timer1 at 24000000 Hz
[ 0.000000] Console: colour dummy device 80x30
[ 0.000311] Calibrating delay loop... 479.23 BogoMIPS (lpj=2396160)
[ 0.119731] pid_max: default: 32768 minimum: 301
[ 0.119833] Security Framework initialized
[ 0.119884] Mount-cache hash table entries: 512
[ 0.128459] CPU: Testing write buffer coherency: ok
[ 0.128864] Setting up static identity map for 0xc0609ca8 - 0xc0609d18
[ 0.129834] devtmpfs: initialized
[ 0.131567] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.193726] omap_hwmod: debugss: _wait_target_disable failed
[ 0.194457] pinctrl core: initialized pinctrl subsystem
[ 0.195338] regulator-dummy: no parameters
[ 0.197764] NET: Registered protocol family 16
[ 0.200089] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.202803] cpuidle: using governor ladder
[ 0.202821] cpuidle: using governor menu
[ 0.211608] platform mpu.1: FIXME: clock-name 'fck' DOES NOT exist in dt!
[ 0.212710] platform 49000000.edma: FIXME: clock-name 'fck' DOES NOT exist in dt!
[ 0.213959] OMAP GPIO hardware version 0.1
[ 0.222584] platform 56000000.sgx: FIXME: clock-name 'fck' DOES NOT exist in dt!
[ 0.226377] DSS not supported on this SoC
[ 0.226398] No ATAGs?
[ 0.226408] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.254304] bio: create slab <bio-0> at 0
[ 0.269184] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
[ 0.270126] vbat: 5000 mV
[ 0.270513] lis3_reg: no parameters
[ 0.270968] wlan-en-regulator: 1800 mV
[ 0.274088] vgaarb: loaded
[ 0.275412] SCSI subsystem initialized
[ 0.276793] usbcore: registered new interface driver usbfs
[ 0.276987] usbcore: registered new interface driver hub
[ 0.277185] usbcore: registered new device driver usb
[ 0.278175] omap_i2c 44e0b000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c0_pins, deferring probe
[ 0.278204] platform 44e0b000.i2c: Driver omap_i2c requests probe deferral
[ 0.278440] media: Linux media interface: v0.10
[ 0.278630] Linux video capture interface: v2.00
[ 0.278895] pps_core: LinuxPPS API ver. 1 registered
[ 0.278904] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.279038] PTP clock support registered
[ 0.281719] cfg80211: Calling CRDA to update world regulatory domain
[ 0.283137] Switched to clocksource timer1
[ 0.302204] NET: Registered protocol family 2
[ 0.302862] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.302916] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.302948] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.303019] TCP: reno registered
[ 0.303033] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.303054] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.303346] NET: Registered protocol family 1
[ 0.303758] RPC: Registered named UNIX socket transport module.
[ 0.303771] RPC: Registered udp transport module.
[ 0.303778] RPC: Registered tcp transport module.
[ 0.303785] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.304757] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.305410] PM: Loading am335x-pm-firmware.bin
[ 0.474475] VFS: Disk quotas dquot_6.5.2
[ 0.474559] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.475170] NFS: Registering the id_resolver key type
[ 0.475264] Key type id_resolver registered
[ 0.475274] Key type id_legacy registered
[ 0.475317] jffs2: version 2.2. (NAND) (SUMMARY) �© 2001-2006 Red Hat, Inc.
[ 0.475507] msgmni has been set to 482
[ 0.477125] NET: Registered protocol family 38
[ 0.477176] io scheduler noop registered
[ 0.477186] io scheduler deadline registered
[ 0.477209] io scheduler cfq registered (default)
[ 0.479329] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[ 0.518857] Console: switching to colour frame buffer device 60x34
[ 0.522642] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.525614] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 88, base_baud = 3000000) is a OMAP UART0
[ 1.142521] console [ttyO0] enabled
[ 1.147718] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
[ 1.164994] brd: module loaded
[ 1.173429] loop: module loaded
[ 1.177106] (stk) :sysfs entries created
[ 1.181300] (stk) : debugfs entries created
[ 1.189990] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 1.200820] usbcore: registered new interface driver zd1201
[ 1.207614] usbcore: registered new interface driver asix
[ 1.213552] usbcore: registered new interface driver ax88179_178a
[ 1.220187] usbcore: registered new interface driver cdc_ether
[ 1.226508] usbcore: registered new interface driver r815x
[ 1.232519] usbcore: registered new interface driver smsc95xx
[ 1.238749] usbcore: registered new interface driver net1080
[ 1.244909] usbcore: registered new interface driver rndis_host
[ 1.251349] usbcore: registered new interface driver cdc_subset
[ 1.257753] usbcore: registered new interface driver zaurus
[ 1.263899] usbcore: registered new interface driver cdc_ncm
[ 1.270074] usbcore: registered new interface driver cdc_mbim
[ 1.276682] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.283611] ehci-pci: EHCI PCI platform driver
[ 1.288518] ehci-omap: OMAP-EHCI Host Controller driver
[ 1.295026] usbcore: registered new interface driver cdc_acm
[ 1.301018] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 1.309707] usbcore: registered new interface driver cdc_wdm
[ 1.315914] usbcore: registered new interface driver usb-storage
[ 1.323430] mousedev: PS/2 mouse device common for all mice
[ 1.331279] input: ti-tsc as /devices/ocp.2/44e0d000.tscadc/TI-am335x-tsc/input/input0
[ 1.341846] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
[ 1.350207] i2c /dev entries driver
[ 1.354509] Driver for 1-wire Dallas network protocol.
[ 1.362213] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 1.371455] edma-dma-engine edma-dma-engine.0: allocated channel for 0:25
[ 1.378791] edma-dma-engine edma-dma-engine.0: allocated channel for 0:24
[ 1.386046] omap_hsmmc 48060000.mmc: unable to get vmmc regulator -517
[ 1.392975] edma-dma-engine edma-dma-engine.0: freeing channel for 24
[ 1.399809] edma-dma-engine edma-dma-engine.0: freeing channel for 25
[ 1.406743] platform 48060000.mmc: Driver omap_hsmmc requests probe deferral
[ 1.414446] edma-dma-engine edma-dma-engine.0: allocated channel for 0:13
[ 1.421640] edma-dma-engine edma-dma-engine.0: allocated channel for 0:12
[ 1.502549] omap_hwmod: gpio1: _wait_target_disable failed
[ 1.538827] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.545722] edma-dma-engine edma-dma-engine.0: allocated channel for 0:36
[ 1.553011] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
[ 1.561611] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
[ 1.567833] edma-dma-engine edma-dma-engine.0: allocated channel for 0:5
[ 1.574953] edma-dma-engine edma-dma-engine.0: allocated channel for 0:6
[ 1.583492] usbcore: registered new interface driver usbhid
[ 1.589384] usbhid: USB HID core driver
[ 1.595798] oprofile: no performance counters
[ 1.600817] oprofile: using timer interrupt.
[ 1.605739] TCP: cubic registered
[ 1.609242] Initializing XFRM netlink socket
[ 1.613796] NET: Registered protocol family 17
[ 1.618541] NET: Registered protocol family 15
[ 1.623313] 8021q: 802.1Q VLAN Support v1.8
[ 1.627815] Key type dns_resolver registered
[ 1.632974] cpu cpu0: cpu0 regulator not ready, retry
[ 1.638451] platform cpufreq-cpu0.0: Driver cpufreq-cpu0 requests probe deferral
[ 1.646839] ThumbEE CPU extension supported.
[ 1.654990] tps65910 0-002d: No interrupt support, no core IRQ
[ 1.663280] vrtc: 1800 mV
[ 1.666410] vrtc: supplied by vbat
[ 1.671257] vio: at 1500 mV
[ 1.674404] vio: supplied by vbat
[ 1.679310] vdd_mpu: 912 <--> 1375 mV at 1137 mV
[ 1.684366] vdd_mpu: supplied by vbat
[ 1.689621] vdd_core: 912 <--> 1150 mV at 1137 mV
[ 1.694766] vdd_core: supplied by vbat
[ 1.699836] vdd3: 5000 mV
[ 1.703916] vdig1: at 1800 mV
[ 1.707216] vdig1: supplied by vbat
[ 1.712069] vdig2: at 1800 mV
[ 1.715377] vdig2: supplied by vbat
[ 1.720256] vpll: at 1800 mV
[ 1.723476] vpll: supplied by vbat
[ 1.728266] vdac: at 1800 mV
[ 1.731458] vdac: supplied by vbat
[ 1.736244] vaux1: at 1800 mV
[ 1.739537] vaux1: supplied by vbat
[ 1.744458] vaux2: at 3300 mV
[ 1.747750] vaux2: supplied by vbat
[ 1.752621] vaux33: at 3300 mV
[ 1.756024] vaux33: supplied by vbat
[ 1.760973] vmmc: 1800 <--> 3300 mV at 3300 mV
[ 1.765851] vmmc: supplied by vbat
[ 1.771236] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[ 1.778144] edma-dma-engine edma-dma-engine.0: allocated channel for 0:25
[ 1.785386] edma-dma-engine edma-dma-engine.0: allocated channel for 0:24
[ 1.893172] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[ 1.899636] davinci_mdio 4a101000.mdio: detected phy mask fffffffc
[ 1.907682] libphy: 4a101000.mdio: probed
[ 1.911949] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver Atheros 8031 ethernet
[ 1.921730] davinci_mdio 4a101000.mdio: phy[1]: device 4a101000.mdio:01, driver Atheros 8031 ethernet
[ 1.932338] Missing dual_emac_res_vlan in DT.
[ 1.937006] Using 1 as Reserved VLAN for 0 slave
[ 1.941908] Missing dual_emac_res_vlan in DT.
[ 1.946525] Using 2 as Reserved VLAN for 1 slave
[ 1.951406] Detected MACID = d4:94:a1:86:23:7b
[ 1.957377] cpsw: Detected MACID = d4:94:a1:86:23:7c
[ 1.964833] input: gpio_buttons.8 as /devices/gpio_buttons.8/input/input1
[ 1.972765] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 00:00:01 UTC (946684801)
[ 1.985891] Waiting for root device /dev/mmcblk0p2...
[ 1.998341] mmc1: host does not support reading read-only switch. assuming write-enable.
[ 2.012010] mmc1: new high speed SDHC card at address aaaa
[ 2.018592] mmcblk0: mmc1:aaaa SU04G 3.69 GiB
[ 2.026986] mmcblk0: p1 p2
[ 2.110418] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 2.119104] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[ 2.130223] devtmpfs: mounted
[ 2.134011] Freeing unused kernel memory: 344K (c0813000 - c0869000)
INIT: version 2.88 booting
Starting udev
[ 2.785094] udevd[869]: starting version 182
[ 3.000116] bluetooth: disagrees about version of symbol sock_register
[ 3.007121] bluetooth: Unknown symbol sock_register (err -22)
[ 3.113494] bluetooth: disagrees about version of symbol __sock_recv_ts_and_drops
[ 3.121448] bluetooth: Unknown symbol __sock_recv_ts_and_drops (err -22)
[ 3.314270] bluetooth: disagrees about version of symbol __sock_recv_timestamp
[ 3.321943] bluetooth: Unknown symbol __sock_recv_timestamp (err -22)
[ 3.593621] bluetooth: disagrees about version of symbol __sock_recv_wifi_status
[ 3.601481] bluetooth: Unknown symbol __sock_recv_wifi_status (err -22)
[ 3.694106] PM: CM3 Firmware Version = 0x186
[ 3.771897] davinci_evm sound.3: ASoC: CPU DAI (null) not registered
[ 3.873479] lis3lv02d: 16 bits lis331dlh sensor found
[ 3.905352] davinci_evm sound.3: snd_soc_register_card failed (-517)
[ 4.014000] bluetooth: disagrees about version of symbol sock_register
[ 4.020998] bluetooth: Unknown symbol sock_register (err -22)
[ 4.043826] input: ST LIS3LV02DL Accelerometer as /devices/platform/lis3lv02d/input/input2
[ 4.060476] platform sound.3: Driver davinci_evm requests probe deferral
[ 4.110365] bluetooth: disagrees about version of symbol __sock_recv_ts_and_drops
[ 4.118508] bluetooth: Unknown symbol __sock_recv_ts_and_drops (err -22)
[ 4.134664] davinci_evm sound.3: ASoC: CPU DAI (null) not registered
[ 4.141434] davinci_evm sound.3: snd_soc_register_card failed (-517)
[ 4.275182] platform sound.3: Driver davinci_evm requests probe deferral
[ 4.300754] bluetooth: disagrees about version of symbol __sock_recv_timestamp
[ 4.308513] bluetooth: Unknown symbol __sock_recv_timestamp (err -22)
[ 4.329727] davinci_evm sound.3: tlv320aic3x-hifi <-> 4803c000.mcasp mapping ok
[ 4.428305] bluetooth: disagrees about version of symbol __sock_recv_wifi_status
[ 4.436252] bluetooth: Unknown symbol __sock_recv_wifi_status (err -22)
[ 6.135303] musb-hdrc musb-hdrc.0.auto: Enabled SW babble control
[ 6.195373] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
[ 6.263472] musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 1
[ 6.340373] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 6.347653] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 6.355311] usb usb1: Product: MUSB HDRC host driver
[ 6.360556] usb usb1: Manufacturer: Linux 3.12.10-ti2013.12.01 musb-hcd
[ 6.367563] usb usb1: SerialNumber: musb-hdrc.0.auto
[ 6.430318] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 6.614340] hub 1-0:1.0: USB hub found
[ 6.643450] hub 1-0:1.0: 1 port detected
[ 6.678326] musb-hdrc musb-hdrc.1.auto: Enabled SW babble control
[ 6.718965] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 6.779300] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 2
[ 6.804841] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[ 6.812071] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 6.819774] usb usb2: Product: MUSB HDRC host driver
[ 6.825035] usb usb2: Manufacturer: Linux 3.12.10-ti2013.12.01 musb-hcd
[ 6.832030] usb usb2: SerialNumber: musb-hdrc.1.auto
[ 6.851484] hub 2-0:1.0: USB hub found
[ 6.855610] hub 2-0:1.0: 1 port detected
[ 7.045798] cryptodev: driver 1.6 loaded.