how to configure i.mx53 in spi slave mode

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

how to configure i.mx53 in spi slave mode

Jump to solution
3,022 Views
vijayk
Contributor I

I want to configure spi in slave mode for i.mx53. In which the processor will be in slave mode. So In order to work in slave mode can any body provide me the link how to update mx53_loco file and driver file.

Labels (1)
0 Kudos
Reply
1 Solution
2,163 Views
maheshmahadeva1
NXP Employee
NXP Employee

I have attached a patch that shows implementation for slave mode. This was done for MX51, but should be similar for MX53. Hope this helps.

View solution in original post

0 Kudos
Reply
9 Replies
2,163 Views
maheshmahadeva1
NXP Employee
NXP Employee

Hi Sanjeev,

The patch that was attached is to make the MX6 behave as a SPI slave device. By default, the driver provided in the BSP configures the MX6 SPI to be master.

So if you have a SPI slave device with MX6 as SPI master, then you do not need this patch.

Best regards,

-Mahesh

0 Kudos
Reply
2,163 Views
LeonardoSandova
Specialist I

HI maheshmahadevan-r9aadq, are the patches to make the MX6 behave as SPI slave for the i.MX6 platform SDK?

Leo

0 Kudos
Reply
2,163 Views
YixingKong
Senior Contributor IV

vijayk, does Mahesh's example help you? If yes, please mark him response as Correct Answer.

Thanks,

Yixing

0 Kudos
Reply
2,164 Views
maheshmahadeva1
NXP Employee
NXP Employee

I have attached a patch that shows implementation for slave mode. This was done for MX51, but should be similar for MX53. Hope this helps.

0 Kudos
Reply
2,163 Views
sanjeevsharma
Contributor IV

Hi Mahesh,

Will it be helpful for Imx6 too ? and do you have sample application too to test the change ?

@Vijay K:Did you get the chance to test the change?

Regards

Sanju

0 Kudos
Reply
2,163 Views
vijayk
Contributor I

@Sanjeev: No

0 Kudos
Reply
2,163 Views
maheshmahadeva1
NXP Employee
NXP Employee

Should work on MX6 as well since the same eCSPI module is present on MX6. You will have to port it to the driver that is included as part of the MX6 BSP.

Best regards,

-Mahesh

0 Kudos
Reply
2,163 Views
sanjeevsharma
Contributor IV

Thanks Mahesh,

Are you referring to same patch attached by you need to port on kernel i

have been using for imx6 platform.I there any limitation if device is

working in slave mode?

Regards

Sanju

On Sat, May 11, 2013 at 1:56 AM, Mahesh Mahadevan <

0 Kudos
Reply
2,163 Views
cheersalam
Contributor II

HI Sanjeev,

Were you able to make MX6 work in Slave mode using patch above?

Regards

Alam

0 Kudos
Reply