Trying to configure MMC2 for SDIO comminucation using device tree. Getting logs as mmc1 detected. Is this correct. Also offset for mm2_cmd is wrong i think, can you please suggest the correct offset.
mmc2_pins: pinmux_mmc2_pins {
pinctrl-single,pins = <
0x3C (PIN_INPUT_PULLUP | MUX_MODE3) /* mmc2_dat3 */ P8_15
0x38 (PIN_INPUT_PULLUP | MUX_MODE3) /* mmc2_dat2 */ P8_16
0x34 (PIN_INPUT_PULLUP | MUX_MODE3) /* mmc2_dat1 */ P8_11
0x30 (PIN_INPUT_PULLUP | MUX_MODE3) /* mmc2_dat0 */ P8_12
0x8c (PIN_INPUT_PULLUP | MUX_MODE3) /* mmc2_clk */ P8_18
0x88 (PIN_INPUT_PULLUP | MUX_MODE3) /* mmc2_cmd */ ? -----> we have connected to P9_15 (T13(mmc2_cmd) & R13 are connected together)
>;
};
&mmc2 {
status = "okay";
vmmc-supply = <&wl12xx_vmmc>;
ti,non-removable;
bus-width = <4>;
cap-power-off-card;
pinctrl-names = "default";
pinctrl-0 = <&mmc2_pins>;
#address-cells = <1>;
#size-cells = <0>;
wlcore: wlcore@2 {
compatible = "ti,wl1271";
reg = <2>;
interrupt-parent = <&gpio0>;
interrupts = <26 0x4>; /* gpio 31 */
ref-clock-frequency = <38400000>;
};
};
dmesg log:
[ 5.041921] mmc1: MAN_BKOPS_EN bit is not set
[ 5.050108] mmc1: new high speed MMC card at address 0001
[ 5.056351] mmcblk0: mmc1:0001 MMC04G 3.65 GiB
[ 5.061023] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[ 5.067148] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
[ 5.073719] mmcblk0boot0: mmc1:0001 MMC04G partition 1 1.00 MiB
[ 5.080324] davinci_mdio: dt: updated phy_id[0] from phy_mask[fffffffe]
[ 5.087002] davinci_mdio: dt: updated phy_id[1] from phy_mask[fffffffe]
[ 5.093787] mmcblk0boot1: mmc1:0001 MMC04G partition 2 1.00 MiB
[ 5.102195] libphy: 4a101000.mdio: probed
[ 5.106251] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
[ 5.115705] mmcblk0: p1 p2
[ 5.122237] cpsw 4a100000.ethernet: Detected MACID = 54:4a:16:fb:d4:80
[ 5.130939] omap_rtc 44e3e000.rtc: setting system clock to 2015-08-19 16:19:37 UTC (1440001177)
[ 5.139858] of_cfs_init
[ 5.142378] of_cfs_init: OK
[ 5.152131] net eth0: initializing cpsw version 1.12 (0)
[ 5.160059] net eth0: phy found : id is : 0x7c0f1
[ 5.164888] libphy: PHY 4a101000.mdio:01 not found