Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751830AbbGNEYc (ORCPT ); Tue, 14 Jul 2015 00:24:32 -0400 Received: from mail-lb0-f195.google.com ([209.85.217.195]:36791 "EHLO mail-lb0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750993AbbGNEYa (ORCPT ); Tue, 14 Jul 2015 00:24:30 -0400 MIME-Version: 1.0 In-Reply-To: References: <1436445895-25504-1-git-send-email-ranjit.waghmode@xilinx.com> Date: Tue, 14 Jul 2015 09:54:28 +0530 Message-ID: Subject: Re: [RFC PATCH 0/2] spi: add dual parallel & stacked mode support in Zynq MPSoC GQSPI controller From: Harini Katakam To: Thomas.Betker@rohde-schwarz.com Cc: Ranjit Waghmode , linux-mtd , =?UTF-8?B?TWFyZWsgVmHFoXV0?= , ben@decadent.org.uk, zajec5@gmail.com, "linux-kernel@vger.kernel.org" , linux-spi , juhosg@openwrt.org, Mark Brown , linux-mtd@lists.infradead.org, =?UTF-8?Q?S=C3=B6ren_Brinkmann?= , shijie.huang@intel.com, Punnaiah Choudary Kalluri , Ranjit Waghmode , Brian Norris , David Woodhouse , Michal Simek , "linux-arm-kernel@lists.infradead.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3209 Lines: 78 Hi Thomas, On Mon, Jul 13, 2015 at 3:34 PM, wrote: > Hello Ranjit: > >> What is dual parallel mode? >> --------------------------- >> ZynqMP GQSPI controller supports Dual Parallel mode with following >> functionalities: >> 1) Supporting two SPI flash memories operating in parallel. 8 I/O lines. >> 2) Chip selects and clock are shared to both the flash devices >> 3) This mode is targeted for faster read/write speed and also doubles > the size >> 4) Commands/data can be transmitted/received from both the > devices(mirror), >> or only upper or only lower flash memory devices. >> 5) Data arrangement: >> With stripe enabled, >> Even bytes i.e. 0, 2, 4,... are transmitted on Lower Data Bus >> Odd bytes i.e. 1, 3, 5,.. are transmitted on Upper Data Bus. > > In the dual-parallel configuration, odd and even _bits_ of each byte are > distributed over the flash chips; I am assuming this works just as in Zynq > QSPI (apparently, the TRM for ZynqMP isn't out yet). > > Striping seems to be a different mechanism, though. Can you explain it a > bit more? Also, the wording seems to indicate that it belongs to > dual-stacked rather than dual-parallel. This differs between Zynq and ZynqMP. Bytes are alternated between the two flash devices in ZynqMP. In Zynq, bits were alternated. This is dual parallel because both the chips can be selected at the same time and have two separate data bus connected. One of the two can be done: 1. Enable Stripe - data bytes 0,2,4... to one flash and data bytes 1,3,5.. to the other This is typically used for read and write memory operations. 2. Disable Stripe (Mirror) - all the bytes are sent to both flash devices. This is typically used for control operations such as WriteEnable etc. > >> Suggestions on MTD layer support >> -------------------------------- >> In order to add above two specified modes, we may required to get some >> support from MTD layer. >> >> I'm trying to list the dependencies as follows: >> 1) Support for two flashes >> 2) Enable/Disable data stripe as and when required. >> 3) May need to update read_sr() to get status of both flashes >> 4) May also need to update read_fsr() to get status of both flashes >> 5) Adjustment of offset value based on the parallel/stacked mode > configuration >> 6) Setting either parallel or stacked mode during the scan process. >> 7) In case of stacked mode, is there a MTD concatenation support? > > In addition to 5), the MTD driver using a dual-parallel QSPI flash has to > 5a) add padding at the start of data for unaligned addresses, > 5b) add padding at the end of data for unaligned lengths. In dual-parallel in ZynqMP, we no longer stripe bits, eliminating the need for padding unaligned lengths. Regards, Harini > > Best regards, > Thomas Betker > > ______________________________________________________ > Linux MTD discussion mailing list > http://lists.infradead.org/mailman/listinfo/linux-mtd/ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/