2297422_en-US

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

2297422_en-US

2297422_en-US

Mram probe is not working in uboot

Hi I have nvram compatible = "everspin,mr25h40"; for imx6q board .In the uboot 2020 i have configured the pad setting in board file like below :-

static iomux_v3_cfg_t const ecspi5_pads[] = {
    MX6_PAD_SD1_CLK__ECSPI5_SCLK | MUX_PAD_CTRL(SPI_PAD_CTRL),
    MX6_PAD_SD1_DAT0__ECSPI5_MISO | MUX_PAD_CTRL(SPI_PAD_CTRL),
    MX6_PAD_SD1_CMD__ECSPI5_MOSI | MUX_PAD_CTRL(SPI_PAD_CTRL),
    MX6_PAD_SD1_DAT1__ECSPI5_SS0 | MUX_PAD_CTRL(NO_PAD_CTRL),
};
 
In the uboot2024 as it is strictly needs a dts entry for the probe and working i have added the dts entry like below :-
&ecspi5 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ecspi5>;
status = "okay";
 
mram@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "spi-device";
spi-max-frequency = <30000000>;
reg = <0>;
};
};
 
pinctrl_ecspi5: ecspi5grp { 
fsl,pins = <
MX6QDL_PAD_SD1_DAT0__ECSPI5_MISO 0x1b0b1
MX6QDL_PAD_SD1_CMD__ECSPI5_MOSI 0x1b0b1
MX6QDL_PAD_SD1_CLK__ECSPI5_SCLK 0x1b0b1
MX6QDL_PAD_SD1_DAT1__ECSPI5_SS0 0x1b0b1
>;
}; 
 
when i build the uboot 2024 with these changes and booted the device im seeing when i execute the dm tree command it shows as not probed .ajayvk1_0-1769001368810.png

So please help me to how to configure in uboot 2024 dts so that my mram probe happens and works, i have tried using gpio also as a chip select still faced same issue.

i.MX6QuadRe: Mram probe is not working in uboot

Hello,

Please try to change the compatible property with:

compatible = "everspin,mr25h40",

Regarding max frequency, please note that the SPI subsystem just can divide the clock in integers.

For example, in this case the clock used by SPI is 80MHz, so, dividing by:

80/1 = 80MHz

80/2 = 40MHz

80/3 = 26.66MHz

80/4 = 20MHz

The driver proximate the configured clock on the command with its divider and will not get exactly 30MHz but is under the 40MHz supported by your device.

Try to use GPIO as a chip select considering above.

Could you please share the kconfig options that you are using for U-boot?

Best regards.

Re: Mram probe is not working in ubootHi JorgeCas ,
I have attached my uboot .config below and i see there is no driver which tells compatible = "everspin,mr25h40", in uboot 2024 source code, please guide me what all the changes needed completely inorder to make this up ,dts changes and any driver changes needed.
Re: Mram probe is not working in uboot

Hello,

Thank you for the information, I do not see issues in your kconfig options.

If you do not need a custom driver, you can take a look in this device tree configuration:

https://github.com/nxp-imx/uboot-imx/blob/4ddbad60eff308a5b356fb9ab8734ac382ddd692/dts/upstream/Bind...

Best regards.

Re: Mram probe is not working in uboot

Hi JorgeCas ,

I have attached the defconfig below please review and guide any changes needed 

标记 (1)
无评分
版本历史
最后更新:
‎01-27-2026 05:21 AM
更新人: