Re: [PATCH v3 1/4] spi: LS7A: Add Loongson LS7A SPI controller driver support

2020-12-14 Thread Oleksij Rempel
Hi After quick search I found (nearly?) identical SPI controller on many other Loongson products. For example: ls1b, ls2k, 3A4000, etc... Probably it will help you to make right decisions now, if you compare this docs: http://www.loongson.cn/product/ Am 14.12.20 um 06:58 schrieb Qing Zhang: >

Re: [PATCH v3 1/4] spi: LS7A: Add Loongson LS7A SPI controller driver support

2020-12-14 Thread Mark Brown
On Mon, Dec 14, 2020 at 01:58:51PM +0800, Qing Zhang wrote: > +static int ls7a_spi_do_transfer(struct ls7a_spi *ls7a_spi, > + struct spi_device *spi, > + struct spi_transfer *t) This does a lot of configuration, as far as I can see only

[PATCH v3 1/4] spi: LS7A: Add Loongson LS7A SPI controller driver support

2020-12-13 Thread Qing Zhang
The SPI controller has the following characteristics: - Full-duplex synchronous serial data transmission - Support up to 4 variable length byte transmission - Main mode support - Mode failure generates an error flag and issues an interrupt request - Double buffer receiver - Serial clock with