cancel
Showing results for 
Search instead for 
Did you mean: 

STM32Mp157c ecosystem5 with Murata LBEE5KL1YN

AndreasH
Associate

Dear Community,

we currently try to set up a Murata  LBEE5KL1YN with an Ocatavo System OSD32MP157c. We use ecosystem5 and kernel 6.1.28. The problem is, the brcmfmac driver is not loaded. We do not see any output of brcm in the boot log and also not in dmesg. It seems that the driver is never loaded. There is no error message no load error, nothing to find which would indicate a load or crash of brcm drivers.

It seems that SDIO detection on sdmmc3 works. We geht the following dmesg output

[    3.903290] mmc2: new high speed SDIO card at address 0001

and also in the booted system we see

sudo cat /sys/kernel/debug/mmc2/ios
clock:          50000000 Hz
actual clock:   49500000 Hz
vdd:            21 (3.3 ~ 3.4 V)
bus mode:       2 (push-pull)
chip select:    0 (don't care)
power mode:     2 (on)
bus width:      2 (4 bits)
timing spec:    2 (sd high-speed)
signal voltage: 0 (3.30 V)
driver type:    0 (driver type B)

We do see communication on the CMD line and also the power up sequence on the oscilloscope.

The relevant device tree sections we use are:

wifi_pwrseq: wifi-pwrseq {
	compatible = "mmc-pwrseq-simple";
	reset-gpios = <&gpiog 8 GPIO_ACTIVE_LOW>;
};

...
...

&sdmmc3{
	pinctrl-names = "default", "opendrain", "sleep";
	pinctrl-0 = <&sdmmc3_pins_mx>;
	pinctrl-1 = <&sdmmc3_opendrain_pins_mx>;
	pinctrl-2 = <&sdmmc3_sleep_pins_mx>;
	arm,primecell-periphid = <0x10153180>;
  	non-removable;
	st,neg-edge;
	bus-width = <4>;
	vmmc-supply = <&v3v3>;
	mmc-pwrseq = <&wifi_pwrseq>;
	#address-cells = <1>;
	#size-cells = <0>;
	keep-power-in-suspend;
	status = "okay";

	brcmf: bcrmf@1 {
		reg = <1>;
		compatible = "brcm,bcm4329-fmac";
		/*interrupt-parent = <&gpiod>;*/
		/*interrupts = <10 IRQ_TYPE_LEVEL_HIGH>;*/ /* WL_HOST_WAKE */
		/*interrupt-names = "host-wake";*/
	};
};

We use the Alternate function AF10 with the sdmmc3 pins on PDx

The firmware for LBEE5KL1YN is located in /lib/firmware/brcm but there is no indication, that they were loaded or used in any way.

@localhost:/lib/firmware/brcm$ ls
cyfmac43439-sdio.1YN.clm_blob  cyfmac43439-sdio.bin  cyfmac43439-sdio.txt

 We shematics and layout follow the OSD32MP15x Redboard and the Murata HW application note.

Could you please assist to find out, what we are missing here.

Thank you very much.

Andreas

1 ACCEPTED SOLUTION

Accepted Solutions
AndreasH
Associate

Dear community,

to help others I would like to share the resolution for this issue. It seems, the ecosystem5 with Kernel 6.1.28 does not have the correct device and vendor IDs reported by LBEE5KL1YN via SDIO. After applying the following patch

https://patchwork.kernel.org/comment/25296510/

The brcm driver was loaded, which seems to adress this issue.

Best regards,

Andreas

View solution in original post

1 REPLY 1
AndreasH
Associate

Dear community,

to help others I would like to share the resolution for this issue. It seems, the ecosystem5 with Kernel 6.1.28 does not have the correct device and vendor IDs reported by LBEE5KL1YN via SDIO. After applying the following patch

https://patchwork.kernel.org/comment/25296510/

The brcm driver was loaded, which seems to adress this issue.

Best regards,

Andreas