我有一个基于 SDIO 的 Wi-Fi 模块,我在 Zynq Petalinux 上使用它。所以设备树有SDIO1接口,加上它有fixedregulator。但我不知道如何让 Linux 将这个 SDIO1 接口用于 Wi-Fi。
我记得我必须对 Linux 使用一个 I2C 设备进行 RTC 做出回应。那么这里是不是很相似呢?
这是我的设备树:
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>;
};
问题
如何告诉 Linux 将此 SDIO1 用于 Wi-Fi?