From: Tudor.Ambarus at microchip.com Date: Tue, 7 May 2019 11:21:09 +0000 Subject: [U-Boot] [PATCH 0/5] spi: Add Atmel QuadSPI driver Message-ID: <20190507112059.17121-1-tudor.ambarus@microchip.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Tudor Ambarus Backport the driver from linux v5.1-rc5 and adapt it for u-boot. Tested on sama5d2_xplained Rev B with mx25l25635e spi-nor flash. => sf probe 1:0 SF: Detected mx25l25635e with page size 256 Bytes, erase size 64 KiB, total 32 MiB => sf erase 0 100000 SF: 1048576 bytes @ 0x0 Erased: OK => mw.b 0x21000000 bc 100000 => sf write 0x21000000 0 100000 device 0 offset 0x0, size 0x100000 SF: 1048576 bytes @ 0x0 Written: OK => sf read 0x21100000 0 100000 device 0 offset 0x0, size 0x100000 SF: 1048576 bytes @ 0x0 Read: OK => cmp.b 0x21000000 0x21100000 100000 Total of 1048576 byte(s) were the same Tudor Ambarus (5): dt-bindings: spi: add bindings for Atmel QSPI driver spi: Add Atmel QuadSPI driver configs: sama5d2_xplained: enable SST and MACRONIX flashes ARM: dts: at91: sama5d2_xplained: use jedec,spi-nor compatible ARM: dts: at91: sama5d2_xplained: describe flash bus width arch/arm/dts/at91-sama5d2_xplained.dts | 4 +- configs/sama5d2_xplained_mmc_defconfig | 2 + doc/device-tree-bindings/spi/atmel-quadspi.txt | 37 ++ drivers/spi/Kconfig | 7 + drivers/spi/Makefile | 1 + drivers/spi/atmel-quadspi.c | 535 +++++++++++++++++++++++++ 6 files changed, 585 insertions(+), 1 deletion(-) create mode 100644 doc/device-tree-bindings/spi/atmel-quadspi.txt create mode 100644 drivers/spi/atmel-quadspi.c -- 2.9.5