how to configure i.mx53 in spi slave mode

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

how to configure i.mx53 in spi slave mode

跳至解决方案
2,406 次查看
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.

标签 (1)
0 项奖励
1 解答
1,547 次查看
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 项奖励
9 回复数
1,547 次查看
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 项奖励
1,547 次查看
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 项奖励
1,547 次查看
YixingKong
Senior Contributor IV

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

Thanks,

Yixing

0 项奖励
1,548 次查看
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 项奖励
1,547 次查看
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 项奖励
1,547 次查看
vijayk
Contributor I

@Sanjeev: No

0 项奖励
1,547 次查看
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 项奖励
1,547 次查看
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 项奖励
1,547 次查看
cheersalam
Contributor II

HI Sanjeev,

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

Regards

Alam

0 项奖励