From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933619AbbGHUV7 (ORCPT ); Wed, 8 Jul 2015 16:21:59 -0400 Received: from mail-qk0-f171.google.com ([209.85.220.171]:33899 "EHLO mail-qk0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932886AbbGHUVq (ORCPT ); Wed, 8 Jul 2015 16:21:46 -0400 From: Cory Tusar To: robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, shawnguo@kernel.org, kernel@pengutronix.de, han.xu@freescale.com, dwmw2@infradead.org, computersforpeace@gmail.com Cc: stefan@agner.ch, linux@arm.linux.org.uk, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mtd@lists.infradead.org, andrew@lunn.ch, Cory Tusar Subject: [PATCH v1 0/7] fsl-quadspi: Allow additional device combinations. Date: Wed, 8 Jul 2015 16:21:14 -0400 Message-Id: <1436386881-28088-1-git-send-email-cory.tusar@pid1solutions.com> X-Mailer: git-send-email 2.3.6 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series fixes and extends the fsl-quadspi driver to allow for non-contiguous and non-homogeneous SPI NOR device layouts. The current driver assumes that attached devices are all of the same type, and are populated "in order" beginning with QSPIn_A_CS0. The updated driver and DT changes make use of the 'reg' property for each flash to determine the interface and chip select to which each device is attached. Patchset was tested on a custom VF610-based board with a single SPI NOR connected to QSPI0_B_CS0, and also on a Rev. H TWR board with dual SPI NOR devices connected to QSPI0_A_CS0 and QSPI0_B_CS0. MTD tests passed for all devices (readtest, speedtest, and stresstest), and independent access to both devices was verified on the TWR system. Regards, -Cory Changes since RFC: - Rebased onto 4.2-rc1 - Moved the qspi1 node under aips1 where it belongs. Cory Tusar (7): ARM: dts: vf610: Add missing QuadSPI register mapping and names. ARM: dts: vfxxx: Include support for qspi1 functionality. mtd: fsl-quadspi: Support both 24- and 32-bit addressed commands. mtd: fsl-quadspi: Use per-device clk_rate. mtd: fsl-quadspi: Allow non-contiguous flash layouts. mtd: spi-nor: Add support for Micron MT25QL02GC serial flash. ARM: dts: vf610-twr: Enable QSPI and map flash devices. .../devicetree/bindings/mtd/fsl-quadspi.txt | 15 +- arch/arm/boot/dts/vf610-twr.dts | 39 +++ arch/arm/boot/dts/vfxxx.dtsi | 16 +- drivers/mtd/spi-nor/fsl-quadspi.c | 313 +++++++++++---------- drivers/mtd/spi-nor/spi-nor.c | 1 + 5 files changed, 232 insertions(+), 152 deletions(-) -- 2.3.6