I have an SDIO based Wi-Fi module and I play to use it on Zynq Petalinux. So the device tree has SDIO1 interface, and plus it has fixedregulator. But I couldn't figure out how to let Linux use this SDIO1 interface for the Wi-Fi.
I remember I have to echo something for Linux to use one I2C device for RTC. So is it similar here?
Here is my device tree:
wlcore {
compatible = "wlcore";
interrupt-parent = <&intc>;
irq = <0x0>;
platform-quirks = <0x1>;
board-ref-clock = <0x4>;
};
fixedregulator@1 {
compatible = "regulator-fixed";
regulator-name = "wlan-en-regulator";
regulator-min-microvolt = <0x325aa0>;
regulator-max-microvolt = <0x325aa0>;
/* WLAN_EN GPIO for this board - Bank1, pin9, what does 4 mean? */
gpio = <&gpio0 0x9 0x4>;
startup-delay-us = <0x11170>;
enable-active-high;
linux,phandle = <0x6>;
phandle = <0x6>;
};
};
&sdhci1{
xlnx,has-cd = <0x1>;
xlnx,has-power = <0x0>;
xlnx,has-wp = <0x0>;
vmmc-supply = <0x6>;
cap-power-off-card;
status = "okay";
compatible = "arasan,sdhci-8.9a";
clock-names = "clk_xin", "clk_ahb";
clocks = <&clkc 22>, <&clkc 33>;
interrupt-parent = <&intc>;
interrupts = <0 47 4>;
reg = <0xe0101000 0x1000>;
};
Question
How to tell Linux to use this SDIO1 for the Wi-Fi?