5.2.3 DTS Settings for SDIO Interface
To work with the SDIO interface, the interrupt-parent and interrupts of the MMC node in the Device Tree Source (DTS) file need to be set for the IRQN pin. For WILCS02, the Interrupt Request Number (IRQN) pin does not have a feature in the current firmware. It can be used for a host wake-up feature in the future.
WILCS02 does not support similar pins, CHIP_EN and RESET pin. However, the device tree must define the dummy pins for driver compatibility reasons.
Below is an example of the SDIO DTS setting for WILCS02 on the SAMA5D27-SOM1-EK platform
&sdmmc0 {
bus-width = <4>;
status = "okay";
wifi_sdio@1 {
compatible = "microchip,wilc1000", "microchip,wilc3000";
interrupt-parent = <&pioA>;
interrupts = <PIN_PA8 0>;
reset-gpios = <&pioA PIN_PA25 0>; //dummy pin
chip_en-gpios = <&pioA PIN_PA26 0>; //dummy pin
reg = <0>;
bus-width = <4>;
status = "okay";
};
DTS Overlay example for WILC1000/3000 on SAMA5D4 EVB: GitHub Link.
DTS Overlay example for WILCS02 on SAM9x75 Curiosity Board: GitHub Link.