8MMINILPD4-EVK ecspi bring-up

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

8MMINILPD4-EVK ecspi bring-up

1,296 Views
vignesh-baskaran
Contributor III

Hi,

We having 8mminilpd4-evk, we trying to bring up ecspi2 memory MT25QL02GCBB8E12-0SIT.

We tried sf probe at u-boot.

But we were unable to see the device probing.

We can see the IO mux is configured for ecspi2.

Can you give us any lead on this one.

 

Thanks & Regards

Vignesh baskaran

0 Kudos
Reply
4 Replies

1,262 Views
vignesh-baskaran
Contributor III

this is critical issue, can anyone help us on this one.?

0 Kudos
Reply

1,238 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @vignesh-baskaran,

I hope you are doing well.

Yes, It is needed to check that the flash must first be probed with sf probe before any of the other subcommands can be used.

Please make sure you have given the correct sf probe command.
sf probe [[[<bus>:]<cs>] [<hz> [<mode>]]]

Please make sure the ECSPI initialization is appropriately done, If not then follow the procedure as mentioned below.

To initialize the block:
1. Clear the EN bit in ECSPI_CONREG to reset the block.
2. Enable the clocks for ECSPI within the CCM.
3. Configure the Control Register and then set the EN bit in the ECSPI_CONREG to put ECSPI out of reset.
4. Configure corresponding IOMUX for ECSPI external signals.
5. Configure registers of ECSPI properly according to the specifications of the external SPI device.

Please take a look at Section 10.1.5 ECSPI Memory Map/Register Definition of the RM to make sure the IOMUX pin setting is.
https://www.nxp.com/webapp/Download?colCode=IMX8MMRM

Thanks & Regards,
Dhruvit Vasavada

0 Kudos
Reply

1,264 Views
vignesh-baskaran
Contributor III

HI,

We were trying to bring up ecspi2 memory  MT25QL02GCBB8E12-0SIT

We followed this post "https://community.nxp.com/t5/i-MX-Processors/ECSPI2-on-i-MX8M-Mini-EVK/m-p/904313" But we were unable to see the deviceat userspace or probing at boot time .

 

// SPDX-License-Identifier: GPL-2.0
//
// Copyright 2020 NXP

#include "imx8mm-evk.dts"

/delete-node/&spidev0;

&ecspi2 {
#address-cells = <0>;
/delete-property/cs-gpios;
spi-slave;
fsl,spi-num-chipselects = <1>;
cs-gpios = <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ecspi2>;
status = "okay";
 
spidev@0x01 {
//compatible = "fsl,imx8mm-ecspi ";
compatible = "spidev";
spi-max-frequency = <133000000>;
spi-cs-high;
reg = <0>;
};
};

&pinctrl_ecspi2_cs {
fsl,pins = <
MX8MM_IOMUXC_ECSPI2_SS0_ECSPI2_SS0 0x00000116
>;
};


pinctrl_ecspi2: ecspi2grp {
fsl,pins = <
MX8MM_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0x00000116
MX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0x00000116
MX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0x00001916
>;
};

&micfil {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_pdm>;
assigned-clocks = <&clk IMX8MM_CLK_PDM_SRC>, <&clk IMX8MM_CLK_PDM_DIV>;
assigned-clock-parents = <&clk IMX8MM_AUDIO_PLL1_OUT>;
assigned-clock-rates = <0>, <196608000>;
status = "okay";
};

pinctrl_wdog: wdoggrp {
fsl,pins = <
MX8MM_IOMUXC_GPIO1_IO02_WDOG1_WDOG_B 0xc6
>;
};

 

We tried to check at u-boot using $ sf probe , but we didn't seeing ecspi2 getting probe.

We tried enabling all the interfaces for ecspi2 u-boot menu config.

Can you please point out some leads on this one?

 

 

Thanks,

Vignesh Baskaran

0 Kudos
Reply

1,257 Views
vignesh-baskaran
Contributor III

HI,

 

We were trying to flash ecspi2 using UUU .

Can you let us know what was the command used to flash ecspi2?

 

Thanks.

0 Kudos
Reply