WILC1000 not working in SAM5D2_Xplained Board

For SAMA5D2 Xplained, SAMA5D3 Xplained and SAMA5D4 Xplained

Moderator: nferre

freaky_geek234
Posts: 9
Joined: Sat May 13, 2017 12:06 pm

WILC1000 not working in SAM5D2_Xplained Board

Fri Oct 20, 2017 12:11 pm

Hi,
Iam trying to port WILC1000 to linux (Atmel SAMA5D2_Xplained board). I have enabled WILC1000 SPI driver in staging drivers as a module (option <M>)

I have copied wilc1000_spi.ko and wilc1000.ko to /lib/modules/${Kernel_version}/kernel/drivers/staging/wilc/

and copied wilc1003_firmware.bin (which i got from some github) to /lib/firmware/atmel (atmel folder created by me) and also checked copying to lib/firmware, /atmel/ , /lib/modules/${Kernel_version}/kernel/drivers/staging/wilc/ also

I have made entry for wilc1000_spi in dts file as below:

spi1: spi@fc000000 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_spi1_default>;
status = "okay";

wilc_spi@0 {
compatible = "atmel,wilc_spi";
spi-max-frequency = <6000000>;
reg = <0>;
status = "okay";
};




};


but after doing all these things, wilc1000 is not being detected.

if i run ifconfig: wlan0 is not appearing.

in the document when insmod is bein run. then it is initializing wilc1000 and firmware also being initialized and updated. debug messages are being displayed.

but when iam running insmod, no messages are being displayed. if i run modinfo -F firmware wilc1000 or modinfo -F firmware wilc1000_spi then also iam not getting any firmware required info.

am i missing anything. how firmware is being updated or initialized by insmod command.

is there any way to debug this problem????
blue_z
Location: USA
Posts: 1566
Joined: Thu Apr 19, 2007 10:15 pm

Re: WILC1000 not working in SAM5D2_Xplained Board

Tue Oct 24, 2017 2:17 am

freaky_geek234 wrote:I have made entry for wilc1000_spi in dts file as below:
What kernel version?
What "dts file"?
What you present doesn't look complete. You reference a pinctrl_spi1_default; where is that defined?

freaky_geek234 wrote:is there any way to debug this problem????
You could enable debug-message capability in selected subsystems. Start with pin-control, and then spi.

Regards
freaky_geek234
Posts: 9
Joined: Sat May 13, 2017 12:06 pm

Re: WILC1000 not working in SAM5D2_Xplained Board

Wed Oct 25, 2017 3:32 pm

forgot to post pinctrl_spi1_default: spi1_default which is defined in my dts (at91-sama5d2_xplained_common.dtsi) file as follows:





pinctrl_spi1_default: spi1_default {
pinmux = <PIN_PC1__SPI1_SPCK>,
<PIN_PC2__SPI1_MOSI>,
<PIN_PC3__SPI1_MISO>,
<PIN_PC4__SPI1_NPCS0>;
bias-disable;
};

Return to “SAMA5 Xplained”

Who is online

Users browsing this forum: No registered users and 1 guest