cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MP133C: SDMMC1 clock at 50MHz

SATEESH_52
Associate II

Hi Team,

In the DTS node property mwifiex mentioned below, the default operating frequency is 25 MHz. I would like to update my SDMMC1 clock to 50 MHz and require assistance with configuring it accordingly. Could you please provide me with details or reference documents?

&sdmmc1 {
pinctrl-names = "default", "opendrain", "sleep";
pinctrl-0 = <&sdmmc1_pins_mx>;
pinctrl-1 = <&sdmmc1_opendrain_pins_mx>;
pinctrl-2 = <&sdmmc1_sleep_pins_mx>;
non-removable;
st,neg-edge;
bus-width = <4>;
vmmc-supply = <&scmi_vdd_sd>;
mmc-pwrseq = <&wifi_pwrseq>;
mmc-ddr-3_3v;
#address-cells = <1>;
#size-cells = <0>;
status = "okay";

mwifiex: mwifiex@1 {
compatible = "marvell,sd8978";
reg = <1>;
interrupt-parent = <&gpiof>;
interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
//marvell,wakeup-pin = <3>; /* FIXME: check */
};
};

1 REPLY 1
PatrickF
ST Employee

Hi,

 

please check if you add 'max-frequency' token.

https://github.com/STMicroelectronics/linux/blob/v6.1-stm32mp/Documentation/devicetree/bindings/mmc/mmc-controller.yaml#L90

maybe also check if SDMMC kernel clock is high enough (I think it should be twice as external clock)

https://wiki.st.com/stm32mpu/wiki/STM32MP13_clock_tree

Regards.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.