Page 1 of 1

Support SPI slave for SAM9g25

Posted: Tue May 28, 2019 9:23 am
by ramgopikrishna
Hi,

We are using SAM9g25 processor and kernel linux 3.10 version. The processor supports Master/Slave which I got it from data-sheet but when
I looked kernel and it supports only master interface, I hope the driver will be supported by Atmel. Please some one share the link or patch or the kernel version which supports the slave of sam925.

Re: Support SPI slave for SAM9g25

Posted: Wed May 29, 2019 12:36 am
by blue_z
You would need to use Linux kernel version 4.13 or later for framework that supports SPI slave mode.
However the Atmel SPI device driver, spi-atmel.c, only supports supports master mode.

You will have to write your own driver for SPI slave mode.

BTW the SAM9G25 is a SoC that has a ARM926EJ-S processor.
The SPI controller is part of the SoC, not the processor.

Regards

Re: Support SPI slave for SAM9g25

Posted: Mon Jul 08, 2019 9:18 am
by ramgopikrishna
Hi,

Thank you for the response. It means atmel will not support spi slave in their driver but still we can use our own driver as a slave since hardware
supports it. Is there any API or document to make this? Please suggest me.

Thanks
Gopi Krishna

Re: Support SPI slave for SAM9g25

Posted: Tue Jul 09, 2019 3:30 am
by blue_z
Try this.

Regards

Re: Support SPI slave for SAM9g25

Posted: Mon Aug 19, 2019 1:44 pm
by ramgopikrishna
Hi,

Even after doing changes in spi-atmel.c, I face lot of difficulties to make it working. Is Atmel does not have any document to do that?

Please kindly helpful.

Thanks
Gopi Krishna

Re: Support SPI slave for SAM9g25

Posted: Tue Aug 20, 2019 12:20 am
by blue_z
ramgopikrishna wrote: Is Atmel does not have any document to do that?
AFAIK there are no such documents.
You could check with Atmel/Microchip Tech Support.

Regards

Re: Support SPI slave for SAM9g25

Posted: Thu Aug 29, 2019 7:36 am
by ramgopikrishna
Hi,

I have changes which supports spi atmel as a slave, if needed I will share the patch and where I need to share the patch and it might help
others>? please let me know.

Re: Support SPI slave for SAM9g25

Posted: Sun Apr 05, 2020 2:58 pm
by gselabs
ramgopikrishna wrote: Hi,

I have changes which supports spi atmel as a slave, if needed I will share the patch and where I need to share the patch and it might help
others>? please let me know.
Hello Gopi Krishna,

please post your patch here.