From patchwork Thu Oct 4 08:48:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yogesh Narayan Gaur X-Patchwork-Id: 10625713 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3CB181515 for ; Thu, 4 Oct 2018 08:50:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2DC0428CC1 for ; Thu, 4 Oct 2018 08:50:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2C04728D6D; Thu, 4 Oct 2018 08:50:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B449928CC5 for ; Thu, 4 Oct 2018 08:50:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727758AbeJDPmv (ORCPT ); Thu, 4 Oct 2018 11:42:51 -0400 Received: from mail-eopbgr20041.outbound.protection.outlook.com ([40.107.2.41]:51552 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727172AbeJDPmu (ORCPT ); Thu, 4 Oct 2018 11:42:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nQEcaeO393Qd9mbvgueJWC0CFxQBHTEkSU/fMAACmUQ=; b=WCn6sK4I/GTgDk5J4BzM3y0qhzIF8ONUsbhbo2p1Li7NHsDikwTs+8FOjprM+GKRpzSoAHZaO0VAZebGLpnq0JiNRr78aEDPif30lW3cWxyyLlcNdcVlC19F572Mh1bS+2MzWzYWarj6BnGuqbwiGkHNQQV4yqwv1QrbM24ZevM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yogeshnarayan.gaur@nxp.com; Received: from idcbfarm.ap.freescale.net (14.143.30.134) by AM2PR04MB1025.eurprd04.prod.outlook.com (2a01:111:e400:8442::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1185.25; Thu, 4 Oct 2018 08:50:29 +0000 From: Yogesh Gaur To: linux-mtd@lists.infradead.org, boris.brezillon@bootlin.com, marek.vasut@gmail.com, vigneshr@ti.com, linux-spi@vger.kernel.org, devicetree@vger.kernel.org Cc: robh@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, linux-arm-kernel@lists.infradead.org, computersforpeace@gmail.com, frieder.schrempf@exceet.de, linux-kernel@vger.kernel.org, Yogesh Gaur Subject: [PATCH 1/4] spi: add support for octal I/O data transfer Date: Thu, 4 Oct 2018 14:18:37 +0530 Message-Id: <1538642920-3843-2-git-send-email-yogeshnarayan.gaur@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1538642920-3843-1-git-send-email-yogeshnarayan.gaur@nxp.com> References: <1538642920-3843-1-git-send-email-yogeshnarayan.gaur@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: SG2PR06CA0156.apcprd06.prod.outlook.com (2603:1096:1:1f::34) To AM2PR04MB1025.eurprd04.prod.outlook.com (2a01:111:e400:8442::11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 19123110-63d9-4cf4-80de-08d629d671f6 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:AM2PR04MB1025; X-Microsoft-Exchange-Diagnostics: 1;AM2PR04MB1025;3:zQHAKYLxmhFc88mN+ewTQVrAvv+3ATR62mt4HhXG1Ry14BREzg4PumGQneK+MlMNFaGWPVCfkphcxE5ME+rELfCnC6xP0yHS6ZdQtMth2yHijM8b2yusxxAXziU+w8iewWA9t6eoEBmAXA8QiNlzBqXFe3cYxRgivJXTbwd4RKzKuWnUtl+ugXDliYGLdAZIvbm2CBe6zN8jojCu8O2C+iBrt87U+yzIljo5pa9Zd9Vy5NKfFRCTIRXZFbK6evR1;25:aDb4IpRc7e9cLLbn+NtydcfQ5tTBTefKjcw7f8D1g86dv5KpMDWLMmkr19GQk75J5tXTpkNOTglSH0xiBdL7QTuiGQG8nopU35y0S+CIWa2e/k+GAe8cipg5KwqjVnw7B/6ipXLhoIa4mlzrtE8By5vROKI818yABQlXrO+C6E4wuOT3wr4hjMNgxcWaEFY+tL+ndHDz2C071oBhjSIy/0qvEh3ntISJBJ+7GebVhq7b+DACxbz7iYJn4yU3bJCs7/XL7vD3Kht6SogDuOkQiz8kdYkcPJ8x91+t1pZvev3RKboR6IJ4zBksx12gjRLAQSWoVOFNyUP9jyzJZeTzmQ==;31:4lTfAivd9kDtM0caH6x2g8tqQkDQsgwcEoPeYWAHGJnwRL/IXqM6lUqrgICHCzs/YjVs4fFmsmvy8fVnCrhmismsR9gpqJplZ9505gwPSdwExw7avmUW+lwuXps+8/Q+2Eadpi/cyGD4aHxTqm45jsu3YGvCL62FnFBjC45OJcjiCeUsneec/GKptoRApCCLVpZEwwQLV6LYfUBz3OAw3rlNxvXOQWKjeaC9UMlnBRg= X-MS-TrafficTypeDiagnostic: AM2PR04MB1025: X-Microsoft-Exchange-Diagnostics: 1;AM2PR04MB1025;20:hjm4DH7l7x7fqKwCJF0k4DC2CnSRRStsllFrZwWMJubETbX5UDJ+wlGAzYYh2oIKHvlcV4pWaSKhH0zXkw72HgGzgaH2aSm4/0JLc46e9m15T8KQhf3X4ondkTcHxz4JLNDCIOJNljbtbJv76JMWi2S1csGdaIoU+TrJacFjO5B24A4rEeVZJikExJKzRP+bADsG1zWtaMcL9+KvfnuDVIEb7Pjy8OovSbIgHL3LCVXhrC3vAAvgJjNboZNlSUUj36qQa74ePd9FxJixB/3tT970M+m8VpL5y2qe7pXo9gEE66Sx3QvdOl9ETCMioQ3HcSn5ZNRbuV6K85xJennt3mL2Vn73UDUIn8fLH8CLck3jkknjw5+JWx5CCwDyoV4LOmvGbQNx/LLjvsIHcxlWC4wjB66nW/V/L8K7kc0Q5LVrttmpxeL39XW2H1piWSX1m2XLJaQOEfK7YD021aVg3eA/gWOmZKRbPYBWmId0cgzp17UTz//BfeRmpLuuh3Mm;4:7wETs4MOk+F9fkuvQYHjwGAo2wooikmFkaKLOsW0Og19mYRi4noN2P9yPDlNYeg9hn3mZ+zmfPSsismOBbgeSdoHkqltvHPbl+S+CbEWQp0Vdp1BzVgbfvqB1USKOV66tfmiKUfNx6OHGf5HdtmeJAm5TY5TiF1jx7/be30s9vQx1L8oAPJA79Zm9BSJR/lA3cwClZPOAZCEI5C5dPpPicXXAcl5ingMH7/kau0fnEHtNSkQcHyTnDlNY7O00jA1t/dM1q7vPNt3M8Q7WmT/s0MLkS0OzkowiRTmmXEXlbGapykPW9CsjJzEBn/Kzz1o X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3002001)(3231355)(944501410)(52105095)(6055026)(149066)(150057)(6041310)(20161123558120)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(201708071742011)(7699051);SRVR:AM2PR04MB1025;BCL:0;PCL:0;RULEID:;SRVR:AM2PR04MB1025; X-Forefront-PRVS: 0815F8251E X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(366004)(39860400002)(396003)(136003)(346002)(376002)(189003)(199004)(6512007)(8676002)(3846002)(6116002)(7416002)(476003)(11346002)(2616005)(956004)(446003)(66066001)(386003)(52116002)(16586007)(51416003)(6506007)(81156014)(81166006)(6486002)(486006)(68736007)(8936002)(316002)(106356001)(105586002)(25786009)(26005)(48376002)(7736002)(76176011)(2906002)(50466002)(186003)(16526019)(478600001)(53936002)(47776003)(50226002)(97736004)(36756003)(305945005)(6666003)(5009440100003)(39060400002)(55236004)(4326008)(86362001)(5660300001)(110426005);DIR:OUT;SFP:1101;SCL:1;SRVR:AM2PR04MB1025;H:idcbfarm.ap.freescale.net;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: 1;AM2PR04MB1025;23:4AQ7UHAeNUay0EXPVC9E/AyKOFOY2JoS4w3Z0RDLFqqCwD/fdyU/AcUNfj1anOmFfu+UPjAn3tvLL7RVnwyNPC7/TazTm4jLidyRG42qs3WpKr1VlCLG5JMSUp5Ce/PL1bsvOBl7+drx91gQKLao1IeWjt+E9gfI2i/zV0fMHg23txLgtEndUC9ZlxAtJGyhNjaQ+hg69OEPtJw3smtMcf5qp1YP54nFZbEcx5NEmmbd7kQr0154Mo7f+dj2yfSdF3VQV8vITTke9NHgd4qiz2t/fNRVfzRaITFJetqoEJoTvsQTYGJdbK4D2qMMHxEU19c/woVaQLoujeFSVJNsPefxIFNngQWDlo+2ZO2v8tZEgNcOG4DPrP+kaHYqzDXY54Qcqa0obq8yOy2FgE7lKnn5hUSHZQYFy7kZIJAeRc1UztbDNK3kABz8MznHMIcANi4M6ViNzCq7Dm/PZq5jCJzhIxGHkRUQV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SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2018 08:50:29.0673 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 19123110-63d9-4cf4-80de-08d629d671f6 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB1025 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add flags for Octal I/O data transfer Required for the SPI controller which can do the data transfer (TX/RX) on 8 data lines e.g. NXP FlexSPI controller. SPI_TX_OCTAL: transmit with 8 wires SPI_RX_OCTAL: receive with 8 wires Signed-off-by: Yogesh Gaur --- drivers/spi/spi.c | 6 ++++++ include/linux/spi/spi.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index ec395a6..80f672f 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -1573,6 +1573,9 @@ static int of_spi_parse_dt(struct spi_controller *ctlr, struct spi_device *spi, case 4: spi->mode |= SPI_TX_QUAD; break; + case 8: + spi->mode |= SPI_TX_OCTAL; + break; default: dev_warn(&ctlr->dev, "spi-tx-bus-width %d not supported\n", @@ -1591,6 +1594,9 @@ static int of_spi_parse_dt(struct spi_controller *ctlr, struct spi_device *spi, case 4: spi->mode |= SPI_RX_QUAD; break; + case 8: + spi->mode |= SPI_RX_OCTAL; + break; default: dev_warn(&ctlr->dev, "spi-rx-bus-width %d not supported\n", diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index a64235e..2d21307 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h @@ -163,6 +163,8 @@ struct spi_device { #define SPI_TX_QUAD 0x200 /* transmit with 4 wires */ #define SPI_RX_DUAL 0x400 /* receive with 2 wires */ #define SPI_RX_QUAD 0x800 /* receive with 4 wires */ +#define SPI_TX_OCTAL 0x1000 /* transmit with 8 wires */ +#define SPI_RX_OCTAL 0x2000 /* receive with 8 wires */ int irq; void *controller_state; void *controller_data; From patchwork Thu Oct 4 08:48:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yogesh Narayan Gaur X-Patchwork-Id: 10625715 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E71E21515 for ; Thu, 4 Oct 2018 08:50:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D47AD28C80 for ; Thu, 4 Oct 2018 08:50:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D217928D69; Thu, 4 Oct 2018 08:50:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 261AE28C80 for ; Thu, 4 Oct 2018 08:50:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727395AbeJDPm4 (ORCPT ); Thu, 4 Oct 2018 11:42:56 -0400 Received: from mail-eopbgr00067.outbound.protection.outlook.com ([40.107.0.67]:23148 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727172AbeJDPmz (ORCPT ); Thu, 4 Oct 2018 11:42:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AwcExRxe1qLsQ1IfBjI518YzgsmxnfelDWNuAiUt7KQ=; b=xBzJjAUp2WrAChV0wrAkes4Kzh4nctom3jGAm9a6mbcSazpA8WYj/OOQY1k/NfDKy5ZjlxemLDL6WdNQJ2mIl0tqBVRjel8XHpM67ZIVOExB8RZTgwZMgqakH/jgqQdZRPsJLNnTI1InSa3ixONLkFrwmuJW17bH76Lb3zYY1Sg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yogeshnarayan.gaur@nxp.com; Received: from idcbfarm.ap.freescale.net (14.143.30.134) by AM2PR04MB1025.eurprd04.prod.outlook.com (2a01:111:e400:8442::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1185.25; Thu, 4 Oct 2018 08:50:33 +0000 From: Yogesh Gaur To: linux-mtd@lists.infradead.org, boris.brezillon@bootlin.com, marek.vasut@gmail.com, vigneshr@ti.com, linux-spi@vger.kernel.org, devicetree@vger.kernel.org Cc: robh@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, linux-arm-kernel@lists.infradead.org, computersforpeace@gmail.com, frieder.schrempf@exceet.de, linux-kernel@vger.kernel.org, Yogesh Gaur Subject: [PATCH 2/4] mtd: spi-nor: add support for octal mode data transfer Date: Thu, 4 Oct 2018 14:18:38 +0530 Message-Id: <1538642920-3843-3-git-send-email-yogeshnarayan.gaur@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1538642920-3843-1-git-send-email-yogeshnarayan.gaur@nxp.com> References: <1538642920-3843-1-git-send-email-yogeshnarayan.gaur@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: SG2PR06CA0156.apcprd06.prod.outlook.com (2603:1096:1:1f::34) To AM2PR04MB1025.eurprd04.prod.outlook.com (2a01:111:e400:8442::11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 288483c1-3899-4f6b-7fe4-08d629d674bb X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:AM2PR04MB1025; X-Microsoft-Exchange-Diagnostics: 1;AM2PR04MB1025;3:rsFX2v35XzYpwGn0qybGYrb6tHXccNxbZubck/7JepUln5Sj68YBpNCHQ3tvgEfMU9gesET8c8tN8PXCfsud0uXfnJ5ncpenta/L1elyHoU1oxrAzQCg48Kkvwd828A9IqxiGH0uPJN+JX4tmO22itnMzL5pifYXTMOtJ2ls1HOOVqVeaxTbecV3qnhAZ3n1juqCTUQhs0Pj3QjKNRruLn3ZajYVNw4yGolDfWPIlZ+Kp8wwWa1L14s2G92RTBX+;25:UG6voDoX21tenL0jVsAJ4yYl+tGRh2Z60+7yRPsLl97a0jbYCfj+d591e5/pw6M6bT+WOex6ziPg+J/ewG0w+zdg98opqj51to94i3IC2mkAWcqqkkbOgm2T9HUeoPENNaCfr4wdhv8Xw3nB7mDaKSVzYH6hQq5gXGsyNDCu872baarwsEvv+f726bpIIVa9D5wO7x/UTCDbIG5b8T0IIH8Eh51+DshBLSX7d2GdXFgqWYyylLr8gSWL5TLXTrDhzJ9bmen8MK8mNYyzqM9vs96sRFGkHS0Y0cKlRFDX1PLRL6gcql26l/yzB9hSh7yVaQDm4ohSEJbMu/9TaQYv6Q==;31:/lmnUKD+8/xAzbqNgBQLOOLbQQtzDygWwFweMp0xZ7R9JzCoV6fIskPGhAcQYa+HSqxoD5gvzAOxBZk91Jeb9Cao+foVlFBXqzL2XSq5oI7lYIo1JoYtZmIOg59GHgPckZjM/RoNrxs80kvAQ+20sIUHr4eOU4u1WofBDGwtJg0tgiss+6yUB9RHPOuQbnNM93ROTSd8Vz5Qf1vl5Wg4cvLqyDN/wVINN6a/BTfDV2M= X-MS-TrafficTypeDiagnostic: AM2PR04MB1025: X-Microsoft-Exchange-Diagnostics: 1;AM2PR04MB1025;20:O7QedWRtAhej7wVCJ9n/O/4FXT0x641CSJ9GWw5LiRyapW5D5hiTvd7gdAEzWN78Xf/FtPekoUbf0ihnbDzcXSc7wMA5SoMq1zLGgq3I/FlEUQAC2JDnl9izDDFa4Qpyrvez57kJm+IA+Sgg06dj8RVBsOwBbcMkDcIxYZe5bGWA7xkLX/4kDb2qI9icI6hEKsdGE8dSOK29GO9IFmVsitVwJDX52rXpEIxTIfFT02Yt/YfD/oGY3/TmCY9JZiRCkCVjKsUnK6MA2cMm1xTxSCoHTOJhHBSrRhZ1pUtyh4rH5DytTp59Z5Rx+C4xVHYcKXczh2D73Ta90VuVdu8vezyBeCImg2mEZYuM5P54pZjNAt0sUCSOXeBs+imAL+vi2Puus+46vEodLm3Aua+d2ecIAFVU9sjjdgaIoujzvdMSGr0h0qU9x0YirYxAAtfGp8Io17RqZcyA+O0S+mXwzMArvQ3FYIkMA/mbhOuMj+bPi3dh3Vai7VFZXBppTTI1;4:RCTz/gEx82pIMqxvGyExW+ozPVEeKGyh2M/s2KplaolfMOeyldy0wFbAzGTwkvZlHSR2dUIn2eh+FWdSHdZ2KGKIoIqVwHpNqeV9cXy+59aYvjR4BlxDd9miA+DloJCNXjbn6pfv+BKn0O0LmxSmrIoUhwMpKcfiBiIQb+IBxpGavn+ICZiwJmJ4aTlD7leiOl4UftFdLB+wyoNT/8LcLs6wZB4MquskzqCVc1zb+h0PISZxh86TprJh2lhgci+KKkvis4J6sXehmN4hyN/UhD38V9mRAwX2v5TIXlv7nXDb7UhoDSbcZPXK0yLMYo9ySQBQSm/OHkZ+7k4nG6EZLDcPXQbEH/kW+VShezOXtHQ= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(31051911155226)(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3002001)(3231355)(944501410)(52105095)(6055026)(149066)(150057)(6041310)(20161123558120)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(201708071742011)(7699051);SRVR:AM2PR04MB1025;BCL:0;PCL:0;RULEID:;SRVR:AM2PR04MB1025; X-Forefront-PRVS: 0815F8251E X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(366004)(39860400002)(396003)(136003)(346002)(376002)(189003)(199004)(6512007)(8676002)(3846002)(6116002)(7416002)(476003)(11346002)(2616005)(956004)(446003)(66066001)(386003)(52116002)(16586007)(51416003)(6506007)(81156014)(81166006)(6486002)(486006)(68736007)(8936002)(316002)(106356001)(105586002)(25786009)(26005)(48376002)(7736002)(76176011)(2906002)(50466002)(186003)(16526019)(478600001)(53936002)(47776003)(50226002)(97736004)(36756003)(305945005)(5009440100003)(39060400002)(55236004)(4326008)(86362001)(5660300001)(110426005);DIR:OUT;SFP:1101;SCL:1;SRVR:AM2PR04MB1025;H:idcbfarm.ap.freescale.net;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: 1;AM2PR04MB1025;23:PZUOgdbkfl65I2KUksouQYgxwNdmLwgvWRb8a1megsxeUVbDIx5fOSuz7jk65rWUL/yyTiFZSzfxT4PRuee06G7xiTR87UGiE/zxUz5WJe2mWRjtuP45KC4Z7YgFHCKaC5K5j9wepZ6A7BNk+3P6JJf+aK+DGEK0QmhSSgu43x1ibYeBaLLAVdEpxHQqK0PPq6bT18YmwKEBCYg2LtVPAg3UVKuQtQH4IFCbhFG15ZihJHvJV8mSk8qKxPF6Yk57regJLH1BWDEiaDejTT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9vvqwU5jn29CrxehLzfDNRHoNgZzxBJ23yhs1H+QO3Mc+Y244KOmjFotN3dolCrxLIpO+3m8mgqyIJUX4q2x7X0fQsUSRs9Ze5aO2Jcj0mVXWLzwOc81i6M4wXkr8UZS8sPy8R2K9llm3dbK9PnO3BeVVT SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2018 08:50:33.7238 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 288483c1-3899-4f6b-7fe4-08d629d674bb X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB1025 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add support for octal mode data transfer for Micron mt35xu512aba. Unfortunately, this flash is only complaint to SFDP JESD216B and does not seem to support newer JESD216C standard that provides auto detection of Octal mode capabilities and opcodes. Therefore, this capability is manually added using new SPI_NOR_OCTAL_READ flag. Added support of Octal mode parsing for 'm25p80' spi-nor flash interface. Signed-off-by: Vignesh R Signed-off-by: Yogesh Gaur --- drivers/mtd/devices/m25p80.c | 9 ++++++++- drivers/mtd/spi-nor/spi-nor.c | 14 +++++++++++++- include/linux/mtd/spi-nor.h | 8 ++++++++ 3 files changed, 29 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c index fe260cc..e22aa2b 100644 --- a/drivers/mtd/devices/m25p80.c +++ b/drivers/mtd/devices/m25p80.c @@ -182,7 +182,14 @@ static int m25p_probe(struct spi_mem *spimem) spi_mem_set_drvdata(spimem, flash); flash->spimem = spimem; - if (spi->mode & SPI_RX_QUAD) { + if (spi->mode & SPI_RX_OCTAL) { + hwcaps.mask |= SNOR_HWCAPS_READ_1_1_8; + + if (spi->mode & SPI_TX_OCTAL) + hwcaps.mask |= (SNOR_HWCAPS_READ_1_8_8 | + SNOR_HWCAPS_PP_1_1_8 | + SNOR_HWCAPS_PP_1_8_8); + } else if (spi->mode & SPI_RX_QUAD) { hwcaps.mask |= SNOR_HWCAPS_READ_1_1_4; if (spi->mode & SPI_TX_QUAD) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index 6042df8..0587b9c 100644 --- a/drivers/mtd/spi-nor/spi-nor.c +++ b/drivers/mtd/spi-nor/spi-nor.c @@ -89,6 +89,7 @@ struct flash_info { #define NO_CHIP_ERASE BIT(12) /* Chip does not support chip erase */ #define SPI_NOR_SKIP_SFDP BIT(13) /* Skip parsing of SFDP tables */ #define USE_CLSR BIT(14) /* use CLSR command */ +#define SPI_NOR_OCTAL_READ BIT(15) /* Flash supports Octal Read */ int (*quad_enable)(struct spi_nor *nor); }; @@ -208,6 +209,8 @@ static inline u8 spi_nor_convert_3to4_read(u8 opcode) { SPINOR_OP_READ_1_2_2, SPINOR_OP_READ_1_2_2_4B }, { SPINOR_OP_READ_1_1_4, SPINOR_OP_READ_1_1_4_4B }, { SPINOR_OP_READ_1_4_4, SPINOR_OP_READ_1_4_4_4B }, + { SPINOR_OP_READ_1_1_8, SPINOR_OP_READ_1_1_8_4B }, + { SPINOR_OP_READ_1_8_8, SPINOR_OP_READ_1_8_8_4B }, { SPINOR_OP_READ_1_1_1_DTR, SPINOR_OP_READ_1_1_1_DTR_4B }, { SPINOR_OP_READ_1_2_2_DTR, SPINOR_OP_READ_1_2_2_DTR_4B }, @@ -224,6 +227,8 @@ static inline u8 spi_nor_convert_3to4_program(u8 opcode) { SPINOR_OP_PP, SPINOR_OP_PP_4B }, { SPINOR_OP_PP_1_1_4, SPINOR_OP_PP_1_1_4_4B }, { SPINOR_OP_PP_1_4_4, SPINOR_OP_PP_1_4_4_4B }, + { SPINOR_OP_PP_1_1_8, SPINOR_OP_PP_1_1_8_4B }, + { SPINOR_OP_PP_1_8_8, SPINOR_OP_PP_1_8_8_4B }, }; return spi_nor_convert_opcode(opcode, spi_nor_3to4_program, @@ -1114,7 +1119,7 @@ static const struct flash_info spi_nor_ids[] = { { "mt25qu02g", INFO(0x20bb22, 0, 64 * 1024, 4096, SECT_4K | USE_FSR | SPI_NOR_QUAD_READ | NO_CHIP_ERASE) }, /* Micron */ - { "mt35xu512aba", INFO(0x2c5b1a, 0, 128 * 1024, 512, SECT_4K | USE_FSR | SPI_NOR_4B_OPCODES) }, + { "mt35xu512aba", INFO(0x2c5b1a, 0, 128 * 1024, 512, SECT_4K | USE_FSR | SPI_NOR_OCTAL_READ | SPI_NOR_4B_OPCODES) }, /* PMC */ { "pm25lv512", INFO(0, 0, 32 * 1024, 2, SECT_4K_PMC) }, @@ -2493,6 +2498,13 @@ static int spi_nor_init_params(struct spi_nor *nor, SNOR_PROTO_1_1_4); } + if (info->flags & SPI_NOR_OCTAL_READ) { + params->hwcaps.mask |= SNOR_HWCAPS_READ_1_1_8; + spi_nor_set_read_settings(¶ms->reads[SNOR_CMD_READ_1_1_8], + 0, 8, SPINOR_OP_READ_1_1_8, + SNOR_PROTO_1_1_8); + } + /* Page Program settings. */ params->hwcaps.mask |= SNOR_HWCAPS_PP; spi_nor_set_pp_settings(¶ms->page_programs[SNOR_CMD_PP], diff --git a/include/linux/mtd/spi-nor.h b/include/linux/mtd/spi-nor.h index f43bfc5..b23c69d 100644 --- a/include/linux/mtd/spi-nor.h +++ b/include/linux/mtd/spi-nor.h @@ -50,9 +50,13 @@ #define SPINOR_OP_READ_1_2_2 0xbb /* Read data bytes (Dual I/O SPI) */ #define SPINOR_OP_READ_1_1_4 0x6b /* Read data bytes (Quad Output SPI) */ #define SPINOR_OP_READ_1_4_4 0xeb /* Read data bytes (Quad I/O SPI) */ +#define SPINOR_OP_READ_1_1_8 0x8b /* Read data bytes (Octal Output SPI) */ +#define SPINOR_OP_READ_1_8_8 0xcb /* Read data bytes (Octal I/O SPI) */ #define SPINOR_OP_PP 0x02 /* Page program (up to 256 bytes) */ #define SPINOR_OP_PP_1_1_4 0x32 /* Quad page program */ #define SPINOR_OP_PP_1_4_4 0x38 /* Quad page program */ +#define SPINOR_OP_PP_1_1_8 0x82 /* Octal page program */ +#define SPINOR_OP_PP_1_8_8 0xc2 /* Octal page program */ #define SPINOR_OP_BE_4K 0x20 /* Erase 4KiB block */ #define SPINOR_OP_BE_4K_PMC 0xd7 /* Erase 4KiB block on PMC chips */ #define SPINOR_OP_BE_32K 0x52 /* Erase 32KiB block */ @@ -73,9 +77,13 @@ #define SPINOR_OP_READ_1_2_2_4B 0xbc /* Read data bytes (Dual I/O SPI) */ #define SPINOR_OP_READ_1_1_4_4B 0x6c /* Read data bytes (Quad Output SPI) */ #define SPINOR_OP_READ_1_4_4_4B 0xec /* Read data bytes (Quad I/O SPI) */ +#define SPINOR_OP_READ_1_1_8_4B 0x7c /* Read data bytes (Octal Output SPI) */ +#define SPINOR_OP_READ_1_8_8_4B 0xcc /* Read data bytes (Octal I/O SPI) */ #define SPINOR_OP_PP_4B 0x12 /* Page program (up to 256 bytes) */ #define SPINOR_OP_PP_1_1_4_4B 0x34 /* Quad page program */ #define SPINOR_OP_PP_1_4_4_4B 0x3e /* Quad page program */ +#define SPINOR_OP_PP_1_1_8_4B 0x84 /* Octal page program */ +#define SPINOR_OP_PP_1_8_8_4B 0x8e /* Octal page program */ #define SPINOR_OP_BE_4K_4B 0x21 /* Erase 4KiB block */ #define SPINOR_OP_BE_32K_4B 0x5c /* Erase 32KiB block */ #define SPINOR_OP_SE_4B 0xdc /* Sector erase (usually 64KiB) */ From patchwork Thu Oct 4 08:48:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yogesh Narayan Gaur X-Patchwork-Id: 10625719 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EC8261515 for ; Thu, 4 Oct 2018 08:51:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DEB2A28D59 for ; Thu, 4 Oct 2018 08:51:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DC8F428DA3; Thu, 4 Oct 2018 08:51:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 756E728D59 for ; Thu, 4 Oct 2018 08:51:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727809AbeJDPnD (ORCPT ); Thu, 4 Oct 2018 11:43:03 -0400 Received: from mail-eopbgr20074.outbound.protection.outlook.com ([40.107.2.74]:64779 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727172AbeJDPnD (ORCPT ); Thu, 4 Oct 2018 11:43:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=pAVRD8M58pASWtSy3XObgRqod/eUyA0ztQImlbmKSb4=; b=CufoaQ8k0hEPBKXSvZ2ZyBqBPNKgWUwjMOjI+QlzTZho89VIs81DMuFWMR7PGl9A3bQ4n8XDilPTlSJdS77dGVUw/9Zsl2EOslM/mPeZFSOzwmNGUXWF7AzvQ3ntFIL9Fl+0LO+BiO3g8AuTDPI/VOBHtVNlyvTPbtsw4w2XBeU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yogeshnarayan.gaur@nxp.com; Received: from idcbfarm.ap.freescale.net (14.143.30.134) by AM2PR04MB1025.eurprd04.prod.outlook.com (2a01:111:e400:8442::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1185.25; Thu, 4 Oct 2018 08:50:38 +0000 From: Yogesh Gaur To: linux-mtd@lists.infradead.org, boris.brezillon@bootlin.com, marek.vasut@gmail.com, vigneshr@ti.com, linux-spi@vger.kernel.org, devicetree@vger.kernel.org Cc: robh@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, linux-arm-kernel@lists.infradead.org, computersforpeace@gmail.com, frieder.schrempf@exceet.de, linux-kernel@vger.kernel.org, Yogesh Gaur Subject: [PATCH 3/4] spi: nxp-fspi: add mode flag bit for octal support Date: Thu, 4 Oct 2018 14:18:39 +0530 Message-Id: <1538642920-3843-4-git-send-email-yogeshnarayan.gaur@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1538642920-3843-1-git-send-email-yogeshnarayan.gaur@nxp.com> References: <1538642920-3843-1-git-send-email-yogeshnarayan.gaur@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: SG2PR06CA0156.apcprd06.prod.outlook.com (2603:1096:1:1f::34) To AM2PR04MB1025.eurprd04.prod.outlook.com (2a01:111:e400:8442::11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f0a8ced3-8f9b-482a-0fd0-08d629d67787 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:AM2PR04MB1025; X-Microsoft-Exchange-Diagnost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S1EoARMYiTMtty9g2fcWwdVyvpXt2Imn3cDGOvL0tjH/awGa9J2NzxPYlFDTecHsW0tF9U+VV8aQhBlejPIqCyY/E9ejAna/BpD37zznV0hoHZj9wWPO9F9iZTSW+WO43wyvTSE7cRsAlFoKpyvEQkuJJ1YiHtpQcChlkb5+lnDz8e+Gx1sUelT00wkhlWgFqB5foolUDza6aCEvBkMiuNSMwwbTi0BWoBPR4xSJOCu9gxLRLshuFPQ4Ug+4OdUJ9YFKZXqsAztT95/Qk2KZPlimk15K7lpl63vCMLiEZWomWDASpwn13jP04akjeLAoGjHCa4RWX6ibLUKV+uT86O3v8kuclKFKT;4:5fgrbkBpHJuerDwUGYI3r6rZc9oHxSoAlGTm161YJtAc+TUaTIEMC+JeMU6AHO25oAMR+NG+w+Lw8roqkpSWjrpCxmEZe/75+P9YFY1FIV6nQGULTTdmX8XxMSVQVV3XPBypiga3zKzI2STB+JXTm/+gj6y0FGWdBjuHUeSBNXDFI5Yi+Fc72r00exfor+Kugen23TiSxGGQXtzcvfmwwN89Zwclvv8DyXF3IgUSRq39rejeZLNXTE8HZ989nj5DBLVgGJwj28hUEsZTitSCKHzPUYymnDgx5+SlIswinpsOGmoU0pyFZSIyl7Wdus5m X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3002001)(3231355)(944501410)(52105095)(6055026)(149066)(150057)(6041310)(20161123558120)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(201708071742011)(7699051);SRVR:AM2PR04MB1025;BCL:0;PCL:0;RULEID:;SRVR:AM2PR04MB1025; X-Forefront-PRVS: 0815F8251E X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(366004)(39860400002)(396003)(136003)(346002)(376002)(189003)(199004)(6512007)(8676002)(3846002)(6116002)(7416002)(476003)(11346002)(2616005)(956004)(446003)(66066001)(386003)(52116002)(16586007)(51416003)(6506007)(81156014)(81166006)(6486002)(486006)(68736007)(8936002)(316002)(106356001)(105586002)(25786009)(26005)(48376002)(7736002)(76176011)(2906002)(50466002)(186003)(16526019)(478600001)(53936002)(47776003)(50226002)(97736004)(36756003)(305945005)(5009440100003)(39060400002)(55236004)(4326008)(86362001)(5660300001)(110426005);DIR:OUT;SFP:1101;SCL:1;SRVR:AM2PR04MB1025;H:idcbfarm.ap.freescale.net;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: 1;AM2PR04MB1025;23:NvFFSgfyAgYdm+2Spu+rSRYycJJMmIUg4PRL0YFqh0pPOPUmPgq2O8w+InFTX1VOsi+RQm47d13gh3nsPFi+rv9f2OXQAQMYrkADhrfrApJ04xDkYMauFTsdNgkmhp8vitx2hIohS1rKL4BL/Us21yy7cavW3olWkpT28nq/o/Ufho3Oew5O4R8kNG7ax5CUYpwhVGNrTpT4qxmKzZGcu2L+c88kqhrb60xgv92hetwlAsMC7T/jFzsvGlBzSrm2OEBKfZNsS/5SwAWGVrQC1yLN5ZinZfv+8MC8VvJkq/XO1kRihpKnilXKSeQ4bcT4hChyjGvnrD6hOcaE12Kq0SSXmYkfp0xpf2hBLxF7skPvZI/F4mdMgxLMjuvQdUZd1eRo3WviLhFszriqYzfTtmBB24a5UoguVGn9CcryQ9VhQD3NxJeqxdxK0+xHrPElZcXDjLOvNbl0hf+nBk8Xf1dlfybm/wQKXU0jKLmi9zEY9CPMnYBZc9ydH7+0A3NqJrI0rygifkVPfILYrjWaVq/EESlgAkU+fe109P//uu2dx+6UsLEHDUFrKgk2CX3eNygL7gjgQ3KhI1HxN+6uvwR3pXQHK90OOrkxmzv9sPAtCzuxh+PZGfysYy42NHzEgzhuSXF8N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LGnvezY+S/d4SgDqRUhuTOdQCyliG0vJH00QyO0IWVQE0a1FEGUnDPT2PA/6lp5cqsF+Ynob5VjPWhauv8oHA1zg0pQ6J6o+HCgp42wNQcGzPWw0jhxCh6ZaQKSittqVYvz+q5gLnntVEOmnoQP/TKFUaVP9A4Ej1qusLgeDpaM5yn0TkQcGQdaq38UMYcyjnSXSeZ1IiZES16A3XUcQCt7Szpg3fIec5Xi9XkD11UL4PVbHJK7ymkqz3/wupqNjxtdvJvU/8KQ2sddC1jqtnogDK3WDHKf0ULriWyy07N6nnoGShbHXyPuf+XXl/qtpwhomvFcabOunvphzTpoHM+xMBS4NkgLyUKN3pa86aP67+WMemKTPY8XGrQsbPMVMRcswdy9K2AwCNoAR3JIyVQtPxOzq9UsYX0+j4g==;5:s+0gbHq8f8hdUaxdRRriGFDSMbW7idhIqlznNjU5YeLphwGJJfhyE6C9bN9EV+fpUF8YzfLXNUbGn937BpJryyBwzD06hJ53rdkqjJqvkZA5JTt63xrczePvgoAomRy7vPvE/ingGs+MBwXT0eNqxA4ojRbXIrtQ9xdwutXWofI=;7:NOca9mxl3ZjhUK8s1j+XwnnEQcxayGrSIXGb0cPXQy/+xZvP6X3bRHvdxTF554XoQxnEzlPFe8CbHSfB/RqNSisJka/PVaLvc1A6XwMukghf2BiazIZXLDOAknCIGip7cnWDAxGDizLRLmyfndCsB3K9ZnJ0pjBBacxVL51ruKmT5gnWwpOA/QSmq2NL4OhU2IPpCzOPal7z2V0Fd+suzRo9onW/9MPDjSv/t6n7UdBRYlxyx4DJdVnbWvFo7PJg SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2018 08:50:38.4023 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f0a8ced3-8f9b-482a-0fd0-08d629d67787 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB1025 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add mode flags for octal I/O data transfer support. NXP FlexSPI controller supports octal mode data transfer. Signed-off-by: Yogesh Gaur --- drivers/spi/spi-nxp-fspi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-nxp-fspi.c b/drivers/spi/spi-nxp-fspi.c index 0967651..ebab44a 100644 --- a/drivers/spi/spi-nxp-fspi.c +++ b/drivers/spi/spi-nxp-fspi.c @@ -1065,8 +1065,8 @@ static int nxp_fspi_probe(struct platform_device *pdev) if (!ctlr) return -ENOMEM; - ctlr->mode_bits = SPI_RX_DUAL | SPI_RX_QUAD | - SPI_TX_DUAL | SPI_TX_QUAD; + ctlr->mode_bits = SPI_RX_DUAL | SPI_RX_QUAD | SPI_RX_OCTAL | + SPI_TX_DUAL | SPI_TX_QUAD | SPI_TX_OCTAL; f = spi_controller_get_devdata(ctlr); f->dev = dev; From patchwork Thu Oct 4 08:48:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yogesh Narayan Gaur X-Patchwork-Id: 10625717 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 48B971515 for ; Thu, 4 Oct 2018 08:51:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3BB6828CD9 for ; Thu, 4 Oct 2018 08:51:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3961F28D56; Thu, 4 Oct 2018 08:51:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BC52128CD9 for ; Thu, 4 Oct 2018 08:51:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727832AbeJDPnH (ORCPT ); Thu, 4 Oct 2018 11:43:07 -0400 Received: from mail-eopbgr20074.outbound.protection.outlook.com ([40.107.2.74]:64779 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727569AbeJDPnF (ORCPT ); Thu, 4 Oct 2018 11:43:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CQt4hdsLJ6GKXAK02mUWAXMz6usudWF8b6gKf+mgUvs=; b=gqjrdffbUlOHE9tTPZsmYL7UItv24FUZan6+zlog/U2p8fP9zfFQ6RYCo7+kMt3eT/WEDwqUvb8ZVzLzzm6T1KN+2sYAazUjeHOwrNqRQp5pgHs9tpRllQO6TWqNNZLGqw8m+29afuPvEnclxo7vf3WKrBEV46agjak/7RvVJ9o= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yogeshnarayan.gaur@nxp.com; Received: from idcbfarm.ap.freescale.net (14.143.30.134) by AM2PR04MB1025.eurprd04.prod.outlook.com (2a01:111:e400:8442::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1185.25; Thu, 4 Oct 2018 08:50:43 +0000 From: Yogesh Gaur To: linux-mtd@lists.infradead.org, boris.brezillon@bootlin.com, marek.vasut@gmail.com, vigneshr@ti.com, linux-spi@vger.kernel.org, devicetree@vger.kernel.org Cc: robh@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, linux-arm-kernel@lists.infradead.org, computersforpeace@gmail.com, frieder.schrempf@exceet.de, linux-kernel@vger.kernel.org, Yogesh Gaur Subject: [PATCH 4/4] arm64: dts: lx2160a: update fspi node Date: Thu, 4 Oct 2018 14:18:40 +0530 Message-Id: <1538642920-3843-5-git-send-email-yogeshnarayan.gaur@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1538642920-3843-1-git-send-email-yogeshnarayan.gaur@nxp.com> References: <1538642920-3843-1-git-send-email-yogeshnarayan.gaur@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: SG2PR06CA0156.apcprd06.prod.outlook.com (2603:1096:1:1f::34) To AM2PR04MB1025.eurprd04.prod.outlook.com (2a01:111:e400:8442::11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 460e8173-013c-43c1-2807-08d629d67a49 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:AM2PR04MB1025; X-Microsoft-Exchange-Diagnostics: 1;AM2PR04MB1025;3:vL4N9jWtIJEUe4Pc5kP22CSk7VNA/67tAwZgAtr6XYV7uKwhNisC1EZHE5ESIcLW1m4yB3n1WbKyPKyYV3xd59WBOl2px3XGQgfGD3a/hT3RRZosVO+UffyKOq85im+ydkINh6ALdiF34fWj9OKtYbOl86tUIhhPjSzqZE/I3BZrj1LIawSLYsT+vglSCmb/iNzu8N8FyioWaEfq5z10wvZ7h/zj+Z1DhF3nadfH/RUeFpPIiwXCgPiNJ8mvPY08;25:o/fErEmWGXajUazwH6sMy6Rff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VUgkTI5DDettV0s0ccLpi06nIHw/HBebNW9W/9IWRUS563kZy/1Y1qBuPn+tO/SWwVlkB9m;4:iZfQFpYTC7d31I8Y34trRglkpID/x0y+3OpFNURha7eQ5i18hfdQi/ukcyy02w3t4XS+2aDGOIeMPT8q+IVvNB0ii1sBngbPveJO6rGjSwBWUc2IcFGXxgjkXI25DaYN8HCP+WzZNuKH7XlzcW55/R+rAPd0a6iEOpyaBLwsCIDp2Kc8SCaubgUCXoqto7WfED/k7DoaeEPPHROWKSYVYEGdCSJqOH7ZCg4tta1SmXqaHDwZajX71ytAcUrKP5qO0/rR3P1sIpYI9hBfXAmjWGU5kUzstexlovc6mXqjQ92eqGfLd/jgTb4oia0u3oQi X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3002001)(3231355)(944501410)(52105095)(6055026)(149066)(150057)(6041310)(20161123558120)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(201708071742011)(7699051);SRVR:AM2PR04MB1025;BCL:0;PCL:0;RULEID:;SRVR:AM2PR04MB1025; X-Forefront-PRVS: 0815F8251E X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(366004)(39860400002)(396003)(136003)(346002)(376002)(189003)(199004)(6512007)(8676002)(3846002)(6116002)(7416002)(476003)(11346002)(2616005)(956004)(446003)(66066001)(386003)(52116002)(16586007)(51416003)(6506007)(81156014)(81166006)(6486002)(486006)(68736007)(8936002)(316002)(106356001)(105586002)(25786009)(26005)(48376002)(7736002)(76176011)(2906002)(50466002)(186003)(16526019)(478600001)(53936002)(47776003)(50226002)(97736004)(36756003)(305945005)(5009440100003)(39060400002)(55236004)(4326008)(86362001)(5660300001)(110426005);DIR:OUT;SFP:1101;SCL:1;SRVR:AM2PR04MB1025;H:idcbfarm.ap.freescale.net;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: 1;AM2PR04MB1025;23:q++1JvBOR5gg4gFa6ZXu9+svK814zDGI4/x6LSW2GOdwqQypFUYVjbkuVZh6gsfPfjvP0W2iWJ1nznIJ9TiVelurxx0/H4pzklU+I+nBSUR9FSMzSazGbJNumhTerpHayzkkfD1ThY1NFBnBnW8WYkj8N9DQPEwiZLR47CVybJnfxjaXWekUG5Y+xvLXk9RbO3FyzX9O6cSx3k4X+HqgyMg7Se6MQzrQ1EgH+SBzdFfWl/80L+5iloaKdHFwcCfJKVciAS4rVauUz5ywq7ovySxJf6APmEy4VK9mqtzNu38NRO5NCz0w6/T1+JlBJf4q4TpYjXdIvfMqgACQ/fTk75Lz+t8srThCZrCcORwpq8GCgZkBszQTVl2GDb9L75Ps1rdkzFIs8jMF/b/G8BZ82bBLcaGmFiNbd6irAJZzoJgMLWZ9q8ZF2TGp/ZYt3pMonu1qPSZ06VkkW98k1HbVp5cxuFsUJzHbgvduOijgQHqWst3GXFlQHLHoy4PqxYzRbNjTAqtWsIWj2TK2f5Zkxcx7zNJa9dvOE4+Kmr5RUx0s0eUs4LcNzRN3wTmR/sCj5L1b0RA8ZnazpaiKOj7zASGJkjDrVMoI4qbiDskl6LT5k0WfpFhlupKBW+Xl91OKrpFGYx3vf4SSRESb8s10nUVzPeth6fzDNUL3e3V3nbudW/ykBMrcIHHaiCRW+dl+xkbsUNiklDfdA+cYVugB4Sa4YV1Zq46zLsQBh6ciAUVxL+ZnIM/ecKZks6qSHc+gegdQ/3B/2/TXPW0TV+B0ysfneq9BnBFm0Rtxhz25TzbrdT64KPjqdF8QUgZA2PeEg30CtzqgOwUuDSl0bFj/c+MVhv/3uwphGb7jg/vLUv1GRmmNDd6Qeczl8ZVLrdRVBBrhbwOesm/kH/jm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7G2GE1mgk2yuoX3IZ2TJHuM9MBgl66BgShwYAuSg3L/iYh9XvydJABwAV9zMXxZs70Necp7mSGPTYtcO4oEQgNIGOTpgQ2w4SUhasSnDobVc6wgV88Ky1VX4hMIC3KGZVzyxjxKZ7kDUfsFkGoXbWTrqRAxc/OCVg==;5:o+bIzha+DpvS/gVWEqTW5mvm8B1clQona8kbEYYZeSZRbtsexyzOzOyRZ0Mc6C+XB5AiE4KlpJRz97bAxbNLM3RScAXPVFW/sJPI5MMtl09oU9ADjP1UGmKy9bnyO+Uu802O/KnawDObDQOjGhvz6jDIoJWxcENPoyxtaKINSVE=;7:rgscNKcYDMtKK1qavLgWiSXer18atmirWhjX6aZJFGpvb3TVydDUhaYTiTw48Uxy6oFb6+Vuf9GFEBosp2ksB2phu4hH7fNpVi/xzk0WQaBhgkiyexxc6iTGOtdYWLShnImenvhhd9bK4MV3ZmAQqdfX1cd/IeKBGoAA0mnoh9JYvEc7K2tIG+XhhJZD3M14RtEHjQNG2O2JKKBqnRBeWJGIzP3k6OXlfEfdHdnPru4hVr9DzR9RUZEbumqRxfEY SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2018 08:50:43.0388 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 460e8173-013c-43c1-2807-08d629d67a49 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB1025 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Flash mt35xu512aba connected to FlexSPI controller supports 1-1-8 protocol. Added flag spi-rx-bus-width and spi-tx-bus-width with values as 8 and 1 respectively for both flashes connected at CS0 and CS1. Signed-off-by: Yogesh Gaur --- arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts index 901ca346..817175a 100644 --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts @@ -42,6 +42,8 @@ m25p,fast-read; spi-max-frequency = <20000000>; reg = <0>; + spi-rx-bus-width = <8>; + spi-tx-bus-width = <1>; }; mt35xu512aba1: flash@1 { @@ -51,6 +53,8 @@ m25p,fast-read; spi-max-frequency = <20000000>; reg = <1>; + spi-rx-bus-width = <8>; + spi-tx-bus-width = <1>; }; };