8.3 DTS Settings for SDIO Interface
To configure the SDIO interface for the WILCS02 on the
SAMA5D27-SOM1-EK1 platform, you need to set the
interrupt-parent
and interrupts
properties of
the mmc
node in the Device Tree Source (DTS) file. Although the
IRQN pin does not have a feature in the current firmware, use it for host wake-up in
the future.
The WILCS02 does not support similar pins for
CHIP_EN
and RESET
, but define the dummy pins
in the device tree for driver compatibility.
The following is an example of the SDIO DTS setting on the SAMA5D27-SOM1-EK1
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";
};
};