调试过程中,我们已经能够在/sys/bus/sdio/devices/下发现设备
mmc2:0001:1 mmc2:0001:2 mmc2:0001:3
硬件:AM4376,wifi模组(IC为BCM43455)
内核: linux3.12
硬件连接: 4根data,cmd,clk【我们没有使用CD检测脚】
dts配置如下:ti,non-removable;和broken-cd;都试过
mmc3: mmc@47810000 {
compatible = "ti,omap4-hsmmc";
reg = <0x47810000 0x1000>;
ti,hwmods = "mmc3";
clocks = <&mmc_clk>, <&clkdiv32k_ick>;
clock-names = "fck", "mmchsdb_fck";
ti,dual-volt;
ti,needs-special-reset;
dmas = <&edma 22
&edma 23>;
dma-names = "tx", "rx";
interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
// status = "disabled";
status = "okay";
};
mmc3_pins: pinmux_mmc3_pins {
pinctrl-single,pins = <
0x1f0 (PIN_INPUT_PULLUP | MUX_MODE3)
0x1f4 (PIN_INPUT_PULLUP | MUX_MODE3)
0x1f8 (PIN_INPUT_PULLUP | MUX_MODE3)
0x1fc (PIN_INPUT_PULLUP | MUX_MODE3)
0x200 (PIN_INPUT_PULLUP | MUX_MODE3)
0x204 (PIN_INPUT_PULLUP | MUX_MODE3)
};
mmc3_sleep_pins: pinmux_mmc3_sleep_pins {
pinctrl-single,pins = <
0x1f0 (PIN_INPUT | MUX_MODE3)
0x1f4 (PIN_INPUT | MUX_MODE3)
0x1f8 (PIN_INPUT | MUX_MODE3)
0x1fc (PIN_INPUT | MUX_MODE3)
0x200 (PIN_INPUT | MUX_MODE3)
0x204 (PIN_INPUT | MUX_MODE3)
>;
};
&mmc3 {
status = "okay";
vmmc-supply = <&vmmcsd_fixed>;
bus-width = <4>;
pinctrl-names = "default", "sleep";
pinctrl-0 = <&mmc3_pins>;
pinctrl-1 = <&mmc3_sleep_pins>;
// ti,non-removable;
broken-cd;
keep-power-in-suspend;
};