From patchwork Tue Jan 14 12:41:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean Pihet X-Patchwork-Id: 11332095 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7528D6C1 for ; Tue, 14 Jan 2020 12:41:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 541192072B for ; Tue, 14 Jan 2020 12:41:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=newoldbits-com.20150623.gappssmtp.com header.i=@newoldbits-com.20150623.gappssmtp.com header.b="pMLSCkzk" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726195AbgANMlm (ORCPT ); Tue, 14 Jan 2020 07:41:42 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:33742 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726053AbgANMlm (ORCPT ); Tue, 14 Jan 2020 07:41:42 -0500 Received: by mail-wm1-f66.google.com with SMTP id d139so2226176wmd.0 for ; Tue, 14 Jan 2020 04:41:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=newoldbits-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=vPAerjwfRTihubxHAn1HswyMzaCBBBc15AgIAvML+i0=; b=pMLSCkzkZR/qtuYHhKICy4qYV7f5DCH2i1eljSbz/PMD2y4ILHDlLWR4bZUqnrzrUP Bo6lEzARv9DE55skocechK0YfFFklzAEeRYeF74GeqZnuHjsAsWif3egu2E9Nj/J5YGf kFZfMqG8YMSYsXnasTRh/g2PzC6Ps+u28bTEXlAKVdnn0lis8rJsMxTiGIi7LfgJv0ti 1WZprhp0gTZi4D3NBXOE/FeNK40be479x6K8+DehjoUwvC8pP4w9GxbqMSsw7+55KTiA LA40XjA9ZR1xKt2QpiZfTiim9PI33zsVY1lH21nZRuH3EwvId5ZMcMtvnVTytmCk/GFS 32LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=vPAerjwfRTihubxHAn1HswyMzaCBBBc15AgIAvML+i0=; b=trFkhVAtdzp7EIWAKxVjhX1TgqfRoT/FXwiOuueQWjLlr1AHqNUhqwWtSxgGAPW9ZT 0xwu5vBfcPHNvYvYWO5qYT/ih6wEF/l1gWNK/17ov4bs6MUTIj62waV/VQyH9LLFJR5+ 3NFcZX5OacveO8suq4gySqlBT3XlF4V1uiH26zR8AqoeMVjmLbyjoQKDz+0MaH1lgx1W X5aXOAZq/OpcCIFGN8YLYf+Kjp/ttWDxKqIo/NRSJbTKldBmleSJ0lARORonsAlpxHO9 eW33FOyEVBDw/RuVB4IaUCgU1TlTkeJ0uOsXvzVBEzwfHvEvK29Eqc5RJz0y2JUQhWz5 XcFg== X-Gm-Message-State: APjAAAWqymdzTCaR+pQCOpPvbujOZ9FshbOjmF9rc3ws67+TC6EetznV abLnkpbBYZdXZEe6bJp9CpGQ/Q== X-Google-Smtp-Source: APXvYqwF9RtBkXt7FzSGjLRK32ZPmaUicOnr40QiymdFrL/jb31oIzGt0fqHhlztilk00uDNT00htw== X-Received: by 2002:a1c:628b:: with SMTP id w133mr26195068wmb.25.1579005700230; Tue, 14 Jan 2020 04:41:40 -0800 (PST) Received: from msilabo.lan (241.33-200-80.adsl-dyn.isp.belgacom.be. [80.200.33.241]) by smtp.gmail.com with ESMTPSA id i5sm18260185wml.31.2020.01.14.04.41.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jan 2020 04:41:39 -0800 (PST) From: Jean Pihet To: Mark Brown , Tony Lindgren , Vignesh Raghavendra Cc: linux-omap@vger.kernel.org, linux-spi@vger.kernel.org, Ryan Barnett , Conrad Ratschan , Arnout Vandecappelle , Jean Pihet Subject: [PATCH 0/2] spi: spi-ti-qspi: Support large NOR SPI flash Date: Tue, 14 Jan 2020 13:41:23 +0100 Message-Id: <20200114124125.361429-1-jean.pihet@newoldbits.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org v3 release: fix compilation warnings. Large devices are bigger than >64MB in size. - Since the TI QSPI IP block only maps 64MB of MMIO, use MMIO below the 64MB boundary and software generated transfers above. - Optimize the software generated byte-transfers for dual and quad I/O read operations. The speed-up is 4.9x for quad I/O reads. Note: depends on Tony's patches for hwmod cleanup, in order to get the desired QSPI clk rate: - [PATCH 1/2] ARM: dts: Configure interconnect target module for am4 qspi - [PATCH 2/2] ARM: OMAP2+: Drop legacy platform data for am4 qspi Tested using raw accesses (mtd_debug) and JFFS2 FS read/write/erase; in single, dual and quad modes. All accesses have been checked on the logic analyzer. Jean Pihet (2): spi: spi-ti-qspi: support large flash devices spi: spi-ti-qspi: optimize byte-transfers drivers/spi/spi-ti-qspi.c | 84 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 81 insertions(+), 3 deletions(-)