firmware icon indicating copy to clipboard operation
firmware copied to clipboard

ISSUE: Failed to initialize wilc (linux4sam-2021.04)

Open davidtekin37 opened this issue 4 years ago • 2 comments

Hello, I am facing an issue with the WILC3000 firmware 15.5 directly from the kernel 5.10.50.

I have my SAMA5d27-som1 and my WILC3000 fully working with the version (linux4sam-6.0 WILC 15.2). But now I want to upgrade to the last version.

I use the WILC3000 in SPI mode, this configuration is defined in my dts file.

dts

When I want to run the firmware I am facing an issue, the firmware won't start. ATWILC

Anyone does have the same issues? I think there is an error on my device tree file, but I don't know where.

davidtekin37 avatar Dec 23 '21 15:12 davidtekin37

In order to continue the investigation I captured the debug of the WILC3000 on the UART serial port. Here is the TX output of the module. Capture d’écran 2021-12-24 à 09 04 12

davidtekin37 avatar Dec 24 '21 08:12 davidtekin37

I use the WILC3000 in SPI mode, this configuration is defined in my dts file.

dts

Your instantiation in your dts file is missing interrupt information. In our experience, this would indeed cause a failure similar to what you are seeing. The driver loads the firmware and then waits for an interrupt to occur. The driver, however, does not error if no interrupt is established, even though it is required for operation. There are a number of quirks like this that are difficult to overcome unless you already are aware of them.

You will likely want to set your interrupt pin to GPIO mode (most CPU GPIO controllers have IRQ modes that the driver correctly enables as needed), and then the actual callout in the section would look something like:

interrupt-parent = <&pioA>; interrupts = <PIN_... GPIO_ACTIVE_HIGH>;

ts-kris avatar Dec 27 '21 17:12 ts-kris