LBEE5KL1DX-883 issue with SDMMC3
Hi.. there
Hope all are doing well
We have designed our own custom board by taking the reference of the DK2 board, in which we're using the LBEE5KL1DX-883 WiFi/BT module from Murata at SDMMC3
somehow, the module is unable to detect!
after dmesg of the MMC log, I got to know that the SDMMC 3 is not initialized
here is the mmc dmesg logs
[ 0.000000] Kernel command line: console=ttySTM0,115200n8 quiet hw_dispid=6 hw_code=143 fastboot=n board_name=ns02_ek435 touch_type= root=/dev/mmcblk0p2 rootfstype=ext4 rootwait
[ 0.678302] mmci-pl18x: probe of 48004000.sdmmc failed with error -22
[ 0.679283] mmci-pl18x 58005000.sdmmc: Linked as a consumer to regulator.3
[ 0.679417] mmci-pl18x 58005000.sdmmc: mmc0: PL180 manf 53 rev2 at 0x58005000 irq 63,0 (pio)
[ 0.708451] mmci-pl18x 58007000.sdmmc: Linked as a consumer to regulator.2
[ 0.708585] mmci-pl18x 58007000.sdmmc: mmc1: PL180 manf 53 rev2 at 0x58007000 irq 64,0 (pio)
[ 0.743212] mmc0: host does not support reading read-only switch, assuming write-enable
[ 0.751166] mmc0: new high speed SDHC card at address aaaa
[ 0.763214] mmcblk0: mmc0:aaaa JULIE 29.7 GiB
[ 0.789431] mmcblk0: p1 p2 p3 p4
[ 0.790501] mmc1: new high speed MMC card at address 0001
[ 0.803767] mmcblk1: mmc1:0001 Q2J55L 7.09 GiB
[ 0.805337] mmcblk1boot0: mmc1:0001 Q2J55L partition 1 16.0 MiB
[ 0.806805] mmcblk1boot1: mmc1:0001 Q2J55L partition 2 16.0 MiB
[ 0.807161] mmcblk1rpmb: mmc1:0001 Q2J55L partition 3 4.00 MiB, chardev (245:0)
[ 0.992158] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 3.989839] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 42.152122] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)From the logs snipped you can see that the mmc initialization is failed with error code 22 !
My DTS file configuration is shown at below
/* WiFi node */
&sdmmc3 {
arm,primecell-periphid = <0x10153180>;
pinctrl-names = "default", "opendrain", "sleep";
pinctrl-0 = <&sdmmc3_pins_mx>;
pinctrl-1 = <&sdmmc3_opendrain_pins_mx>;
pinctrl-2 = <&sdmmc3_sleep_pins_mx>;
non-removable;
st,neg-edge;
bus-width = <4>;
vmmc-supply = <&v3v3>;
mmc-pwrseq = <&wifi_pwrseq>;
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
brcmf: bcrmf@1 {
reg = <1>;
compatible = "brcm,bcm4329-fmac";
};
};
//---------------------------------------------------
/* WiFi power ON Sequance from device driver */
wifi_pwrseq:wifi-pwrseq{
compatible = "mmc-pwrseq-simple";
reset-gpios = <&gpioh 4 GPIO_ACTIVE_LOW>; /* WL_REG_ON -> PH4 */
};right now, I'm deleing with the older BSP without TF-A (4.19.49)
Do I need to set the clock at uboot also?
Can anyone redirect me towards a right solution?
Thanks
