From patchwork Mon Oct 15 11:48:01 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: 10641629 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 C2658109C for ; Mon, 15 Oct 2018 11:57:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B2FC028FFC for ; Mon, 15 Oct 2018 11:57:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A6C682952E; Mon, 15 Oct 2018 11:57:35 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AEC6F28FFC for ; Mon, 15 Oct 2018 11:57:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=oqLEW5SHnCZquyP8/2j5LyvCCGfGS1vHUwApWb8xZpE=; b=W4htJ7K8QrOEpS KCr2Eq6yEB4mrbEpjcCkAWWIsQ8/BNDuH6bFOytcZtMnmq4Ob0hmr1C/Ott6pbufJQE5be7OuuSvM GxvQGVA/bHbNFNn7st0EKlbc6KqQRytpMUG1qD3MSUhbd7nmV67jxU5U56OrJ4/LwwqdJuw7uAF9b zZNj4YYyhVoFhdmhYbcUQvz50Wg7CexgeFzu4wHV/wabBH1F7ElV/FfkiXntycsCWY6BtvJUvNd3E 2NkPpX/fyzzS1DWXzGmIb+hnMeTiuoo+bM3DpVHQvOJXtLP79WaClLDwIOOhBeATIVFMObUT229MU D1a2cbB67vNVSdGqt/vQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gC1V2-0006V2-KW; Mon, 15 Oct 2018 11:57:28 +0000 Received: from mail-eopbgr50089.outbound.protection.outlook.com ([40.107.5.89] helo=EUR03-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gC1M8-0000Ee-NQ; Mon, 15 Oct 2018 11:48:18 +0000 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=GcWVntAi4IsR1DyHqW4HMz12ZIYgg87aIYfzgghftaE=; b=uIKT6ThwKBC0CDbZltnksfA6FeVtCl6XQ2VJdx0K/hEksXoESksgdII3wNGoV0IS1Vp3dcX9rmp2CAOj9TdRe5cxWGGSX9oPWBQkIwp9LBqPU8mfuxHDlWpxfS7F5aq/rzNTcIvSvku+H7FHdUmH/Aiz1zajoIevo8Umc8AxG3c= Received: from VI1PR04MB1038.eurprd04.prod.outlook.com (10.161.109.144) by VI1PR04MB1616.eurprd04.prod.outlook.com (10.164.84.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.23; Mon, 15 Oct 2018 11:48:01 +0000 Received: from VI1PR04MB1038.eurprd04.prod.outlook.com ([fe80::d887:3c96:479a:4123]) by VI1PR04MB1038.eurprd04.prod.outlook.com ([fe80::d887:3c96:479a:4123%3]) with mapi id 15.20.1228.027; Mon, 15 Oct 2018 11:48:01 +0000 From: Yogesh Narayan 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" Subject: [PATCH v2 1/7] spi: add support for octal I/O data transfer Thread-Topic: [PATCH v2 1/7] spi: add support for octal I/O data transfer Thread-Index: AQHUZHzsiV0kUSLvEEOUFn0AqcywiQ== Date: Mon, 15 Oct 2018 11:48:01 +0000 Message-ID: <1539603969-21076-2-git-send-email-yogeshnarayan.gaur@nxp.com> References: <1539603969-21076-1-git-send-email-yogeshnarayan.gaur@nxp.com> In-Reply-To: <1539603969-21076-1-git-send-email-yogeshnarayan.gaur@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SG2PR02CA0068.apcprd02.prod.outlook.com (2603:1096:4:54::32) To VI1PR04MB1038.eurprd04.prod.outlook.com (2a01:111:e400:5092::16) authentication-results: spf=none (sender IP is ) smtp.mailfrom=yogeshnarayan.gaur@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [14.143.30.134] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR04MB1616; 6:if8rNo0SB8TP19X/T4UDkYWua+xKHtFuSX/03R2/kxzsW2iy5sa+QHiJA1BgA0Mh5VQqjAghMWfYcHRp83OJl13KsoqPm37xlIOpnN5gkqH548lnIpEjNi5E5DFeQvIxz9ZgfmF8nMNnf1cJGRc0kLhVUbRvbCh2IwOGXVk9Q2G9nrehZzC2+n0upDfzS8aH3BE2tfQ9Nig9MaIM8wHXlTC+7StatS0n2dlY4LH4pO33mUHTB/6cpU4neDRZNdC1mTHJTceiKdVQgT2ix1oOFTpXAhFX6u2BrrhZbDEq5CnqnEXbKY7JCnC/iEd4y+E/XbB1tC2AP1U3E3LJAsmHuXecdqwENGjU4uz9W/nhybX2I6Q7jMcZqDkm3gbR6cro4lAdGVXhMVLSxYq24r5hRY268hjY7vd2NfgP/w12ws9K4YaiPIK/XqX5/ASu24/gm8Yms2rgHLn5PYPLdzNR5goiy7cV5yAzPjjIhxFb7eI=; 5:UMvPD49wg/QH5/dOgM6sJidEIyqGJHrI4qPQ2ovS8pry6aQtOFMfVcnMYQ+nEKH/2L8gppSs7dm7yTSxRkfHJrbH6i+agESCCvj3ayT/M9zvTPlB5RYzZhAMrwYlk5YcHXTeHpsXzcqNz4HiroL2LXBlvUCfNlDhXgbgrLn4XeE=; 7:CRHlhgv6U4MoTQYhPe0AG9VKdEMN6u0uRSJqe4CjFGD19xS/P7wiMTT46Ip9wbVbo+eiUsK4MswEhYN7f7jy5M+EugeX69HJUBrmnxfV2POb5oAMHepmNEmvHcjkDesF5x21R2t/BXbvVVcsdQmdao8eKDEfxvUx0c17W4kuJHyvqMwbW5hMCnNaIypMGUhNNfigfsXij7HrnR9q50nfuFS4UmBnGycbO43b3ZaF+5rMjCFYRA22BKa6KlP9fh+S x-ms-office365-filtering-correlation-id: b76c6f14-65cf-4051-b0c5-08d632940f01 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:VI1PR04MB1616; x-ms-traffictypediagnostic: VI1PR04MB1616: 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)(8121501046)(5005006)(3231355)(944501410)(52105095)(3002001)(10201501046)(93006095)(93001095)(6055026)(149066)(150057)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123562045)(201708071742011)(7699051)(76991067); SRVR:VI1PR04MB1616; BCL:0; PCL:0; RULEID:; SRVR:VI1PR04MB1616; x-forefront-prvs: 0826B2F01B x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(979002)(376002)(366004)(346002)(39860400002)(136003)(396003)(199004)(189003)(81166006)(81156014)(8676002)(7416002)(8936002)(4326008)(2501003)(316002)(66066001)(5250100002)(2201001)(53936002)(7736002)(256004)(6512007)(25786009)(6486002)(6436002)(575784001)(86362001)(68736007)(5660300001)(305945005)(52116002)(2906002)(6116002)(3846002)(54906003)(110136005)(76176011)(99286004)(39060400002)(2900100001)(478600001)(476003)(11346002)(2616005)(486006)(446003)(14454004)(106356001)(36756003)(186003)(26005)(55236004)(71200400001)(102836004)(386003)(71190400001)(6506007)(105586002)(97736004)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB1616; H:VI1PR04MB1038.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: qzbwPBTaBBRcf3LrbBie6l8vdk9xO6L5tucFhRJL4hiODNwZo09tS7qGpSr3WFvXqmpFTdJX/77vbR/fiFOVIxo8xwaucmAYDuUvPMAFyx4jovXae2t9CGxJLENzfsqe0lXC67h+ceyN3aPphGvBs5+FIM2EApoN33HXidMDmX2v5Z0gz7YFWWPKegjpbnrazNtqJaJdHI9ptfPg3vRJPg9AYDVb3P5ldx/WrjLa45YLPTcf+UMd+emlzsz6DxYipsx2BkbCTVIxOxuJ1tjOWIYlOnkOj/N4qD0AjpdUKTxL9IzXoLcF3s3jS0u7mTlgX8EKQZ0R792XbbOfOMf3Md53X8/4ppJq5hpMLG/k0i0= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b76c6f14-65cf-4051-b0c5-08d632940f01 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Oct 2018 11:48:01.4226 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB1616 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181015_044816_802742_CA5F64E6 X-CRM114-Status: GOOD ( 11.92 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "mark.rutland@arm.com" , "robh@kernel.org" , Yogesh Narayan Gaur , "linux-kernel@vger.kernel.org" , "frieder.schrempf@exceet.de" , "computersforpeace@gmail.com" , "shawnguo@kernel.org" , "linux-arm-kernel@lists.infradead.org" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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 --- Changes for v2: Incorporated review comments of Boris. 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 Mon Oct 15 11:48:07 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: 10641609 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 70B6018FD for ; Mon, 15 Oct 2018 11:51:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5D7B12964A for ; Mon, 15 Oct 2018 11:51:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4AEFB296BC; Mon, 15 Oct 2018 11:51:51 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D1C9B2964A for ; Mon, 15 Oct 2018 11:51:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=reJUAyrnU3nZQtiq6DRPdGgjrCLDYeaPhd5ogC+L8ww=; b=uZdz76Pyl8VBC5 T2rah7bTTJD0qjXMOL4jhUUWyNkXPWlzVJJbQEPgCj4HNV7Gd44z/me62egA0/mfscUCdPnnCgb8A E4R43qCXMX2R/XjriqNHNeIwP/M9bJEscorPor9X7wbYr8I1XaS36P1dVnow0/kxORhhgqfCGvGg1 95rnvGYdkbbCQCtPGBh1rfjdYgezDJbjOlJkdP2NgLG2MaaiRvnDDgO6cGzUBRzZf4BlqooBL0yrP +HNzHsIVk/UIEcnufxRA3VujxarPrUGjRle8sDxi8GlnR9Kz1R0/kJtAmlzZhG/X8bKQGCK71PNgw T1o5UaSmfm6EEPgr/VQg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gC1PX-0002sn-9x; Mon, 15 Oct 2018 11:51:47 +0000 Received: from mail-eopbgr50089.outbound.protection.outlook.com ([40.107.5.89] helo=EUR03-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gC1MA-0000Ee-LZ; Mon, 15 Oct 2018 11:48:20 +0000 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=YJ0/JgVp/APCSXROLBC8g4dk/xsAJcWKzy3GjBlvnv8=; b=ajxav/QOeW8s00fbPGd7bZlozZHneXewpeH/Hcsv0M1eiwDpetAth8Q7SSgB88BQ2iQUCi8TtWCAnKPnDVagQxah75FzUERcdiLA3Q7wGCeckt+aNT+G9GsPYdfn81IPB9zjWZtyNelMPXrN/zKLFp5v6LnePqIxpu2x4F0nQJM= Received: from VI1PR04MB1038.eurprd04.prod.outlook.com (10.161.109.144) by VI1PR04MB1616.eurprd04.prod.outlook.com (10.164.84.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.23; Mon, 15 Oct 2018 11:48:07 +0000 Received: from VI1PR04MB1038.eurprd04.prod.outlook.com ([fe80::d887:3c96:479a:4123]) by VI1PR04MB1038.eurprd04.prod.outlook.com ([fe80::d887:3c96:479a:4123%3]) with mapi id 15.20.1228.027; Mon, 15 Oct 2018 11:48:07 +0000 From: Yogesh Narayan 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" Subject: [PATCH v2 2/7] mtd: spi-nor: add opcodes for octal Read/Write commands Thread-Topic: [PATCH v2 2/7] mtd: spi-nor: add opcodes for octal Read/Write commands Thread-Index: AQHUZHzwXz3A8eg3bUKJ/kFctIlW3Q== Date: Mon, 15 Oct 2018 11:48:07 +0000 Message-ID: <1539603969-21076-3-git-send-email-yogeshnarayan.gaur@nxp.com> References: <1539603969-21076-1-git-send-email-yogeshnarayan.gaur@nxp.com> In-Reply-To: <1539603969-21076-1-git-send-email-yogeshnarayan.gaur@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SG2PR02CA0068.apcprd02.prod.outlook.com (2603:1096:4:54::32) To VI1PR04MB1038.eurprd04.prod.outlook.com (2a01:111:e400:5092::16) authentication-results: spf=none (sender IP is ) smtp.mailfrom=yogeshnarayan.gaur@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [14.143.30.134] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR04MB1616; 6:uwvdN7RubJnItyz3xm4tUjDOgfpq/P3f5dgH/10dkGQX5pF9/+FbPbMol8Sz1b5Qrf9C3/vLKBC6CNHE7jaEhttMoXmIxGaZhI0U3UQl+y2iwMDzBI5UWPPg6lGk3IaFE9RhkW5wIqlCQZfddqk5ETnlqijbepZye6G2iAyMNYQNiyyCmCOgNZ8fKwHlnA7KYwWzmqKrDxji+o0QscMEhXoSLTN1bAUAmYgP9mTbZtsfe32jBoRHaJbwmEmlYvotwvw+dA/BKuqh1oj5XUwkb1GVpgVFIjkiHs+190SJwv9eWIDo9OqJvseVXAWrta6OySmLngssdCMUKdviv7JB2WMQPxZIYV4sWWCwUZJWxDzWpOeDxFRVUi0F/YuC/5DHRw1vcqKfto5SoLs6kZWly3ZUsNhfLfFhP6cTrqhaR+R3KCs0NN/xTJ1AW0i5D5gJACDhBe2i/lO3cX8enNtL6w==; 5:CHUqsGRrL5AwLy428zad76K0eruqZiGBoCKfPGSM9c4n8CKkY8ptrAFj2TPsxHEa+ijsRHXhHwcmoxyeBFe3C74VFVzfKwN8dvnWuJqTP0PNWxVOOmriNPlyH4pqXX3dewnoP07Y4tOgYfru2o8WhwJNnP+o9KKgZ9O75PnRhN4=; 7:XXj2Cy8jzMUNxl3yaDtttbhmA5YGlcDtQHAz1RwKH+EqFHq1qXtXaMx7V1U3x+m1wG02jYqM8hMHhA2rvYK73x16O0JuHU9ae4M7wwABRWZxK+c9EIhcfn/JbZnmUGC5L0V5J3Krgl8bxxROK9LeZGK06/dLMTsTleYD0kzch+1QYULmJQ9CXPQooMdTHHho8vUCdi9KAN5CLaLK/Bd6Ze4u8eJ7R/tzWoiU6siYhOfHujam/iBSAev4hyuRsgtw x-ms-office365-filtering-correlation-id: bb7d7efe-7b82-4a5d-0774-08d632941288 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:VI1PR04MB1616; x-ms-traffictypediagnostic: VI1PR04MB1616: 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)(8121501046)(5005006)(3231355)(944501410)(52105095)(3002001)(10201501046)(93006095)(93001095)(6055026)(149066)(150057)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123562045)(201708071742011)(7699051)(76991067); SRVR:VI1PR04MB1616; BCL:0; PCL:0; RULEID:; SRVR:VI1PR04MB1616; x-forefront-prvs: 0826B2F01B x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(366004)(346002)(39860400002)(136003)(396003)(199004)(189003)(81166006)(81156014)(8676002)(7416002)(8936002)(4326008)(2501003)(316002)(66066001)(5250100002)(2201001)(53936002)(7736002)(256004)(6512007)(25786009)(6486002)(6436002)(575784001)(86362001)(68736007)(5660300001)(305945005)(52116002)(2906002)(6116002)(3846002)(54906003)(110136005)(76176011)(99286004)(39060400002)(2900100001)(478600001)(476003)(11346002)(2616005)(486006)(446003)(14454004)(106356001)(36756003)(186003)(26005)(55236004)(71200400001)(102836004)(386003)(71190400001)(6506007)(105586002)(97736004)(21314002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB1616; H:VI1PR04MB1038.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: FzcVy1Sph6Q1S7aDPsycQLA5e3W6o5KenHgQpL/VlLX57XW+/LuNv53OaHv30mSdAAChkDMcgK/JwPwo4lYUNkq4tHroZ2GVR9XuKpG4YIqapua0PnviwQf408oVQUwjszsRHaWk2JUmsGvg431FFpELuNvXMmjbs5SpVVkY/YQVHsYeNfYyS0DkHR26KomCmBsT4sKYToSnu0jO41jKqB7Z6bYOzCry1D7md8nlA9jb2a3NtE+VO4rQYKiIK+E2TzAz6HhaH42Wo73JYgu0CSOuJn5svfSzbOtXzNS54GpIf/DTtMJX/hYyrHwhMb3hY6/8rJTChOM8riss+L8gBLxV7t5zOzw5RgKcPfe0Mco= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: bb7d7efe-7b82-4a5d-0774-08d632941288 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Oct 2018 11:48:07.3922 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB1616 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181015_044819_129201_602A69B3 X-CRM114-Status: GOOD ( 13.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "mark.rutland@arm.com" , "robh@kernel.org" , Yogesh Narayan Gaur , "linux-kernel@vger.kernel.org" , "frieder.schrempf@exceet.de" , "computersforpeace@gmail.com" , "shawnguo@kernel.org" , "linux-arm-kernel@lists.infradead.org" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP - Add opcodes for octal I/O commands * Read : 1-1-8 and 1-8-8 protocol * Write : 1-1-8 and 1-8-8 protocol * opcodes for 4-byte address mode command - Entry of macros in _convert_3to4_xxx function - Add flag specifying flash support octal read commands. Signed-off-by: Vignesh R Signed-off-by: Yogesh Gaur --- Changes for v2: Incorporated review comments of Boris and Vignesh drivers/mtd/spi-nor/spi-nor.c | 12 ++++++++++++ include/linux/mtd/spi-nor.h | 8 ++++++++ 2 files changed, 20 insertions(+) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index 0b8a6e0..7c64ff0 100644 --- a/drivers/mtd/spi-nor/spi-nor.c +++ b/drivers/mtd/spi-nor/spi-nor.c @@ -90,6 +90,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); }; @@ -209,6 +210,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 }, @@ -225,6 +228,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, @@ -3195,6 +3200,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 8b1acf6..019f534 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 Mon Oct 15 11:48:13 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: 10641611 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 08F6518FD for ; Mon, 15 Oct 2018 11:53:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EB66D2018E for ; Mon, 15 Oct 2018 11:53:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DD68128470; Mon, 15 Oct 2018 11:53:15 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 881B22018E for ; Mon, 15 Oct 2018 11:53:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=wef9ACNrXeLffmhh3Pvq/Dn+TGm31nI9u838qffS09w=; b=ha6fG5p8CzU+cU 9k6PvC8gL0ehaW6kD7a9y21ShCcZyeWSPzf9F5MOV6f0gz9BDPEi1pHr9hYl9RXz5U3N6jaRkjvSd zMVGHXB6rZQIjf/wMT64yJlawRglMPlNxzNeVnzpDv36WphOw2Mcf0As0ymtahkH42rZ/iEo5PrxO PV7ALx0cUx1mkQ+3pqBV0I1+sPxZyQxQ56gVC3ckJC3FP7nc1tYATSnm60gmhQ0I5MVA/g7eHwQKV aN09tegbFyGmJ1wiXZA6iMGiHeFzMwVshZSxXI9S8wJDg9uc6rJl1GiE5FU9ceADlAlgAEmtggnZY DccgcMXZaIzjR6eSNRaQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gC1Ql-0003ND-IJ; Mon, 15 Oct 2018 11:53:03 +0000 Received: from mail-eopbgr50089.outbound.protection.outlook.com ([40.107.5.89] helo=EUR03-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gC1MD-0000Ee-7b; Mon, 15 Oct 2018 11:48:22 +0000 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=vbpsSOKRqk9CcRIeTqfas15AOZ/alGFiAmz2QAL3i3E=; b=RZ+9BQSJrCkdYA2T42c3F0paM1fhDBuT/mDJpJaOjQjc3RpdPeYOckq+XN4sH8c5wGBK/tjjj2MeqKdhIkGmowhe/NT9Yp1QBGOtpxzTn8zRcO94TY0fEkYbFpNIW4gCSKSJXl50Qn4z6Ul6f4lH2Zd2PP0wLJNhMFjU8RDDe20= Received: from VI1PR04MB1038.eurprd04.prod.outlook.com (10.161.109.144) by VI1PR04MB1616.eurprd04.prod.outlook.com (10.164.84.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.23; Mon, 15 Oct 2018 11:48:13 +0000 Received: from VI1PR04MB1038.eurprd04.prod.outlook.com ([fe80::d887:3c96:479a:4123]) by VI1PR04MB1038.eurprd04.prod.outlook.com ([fe80::d887:3c96:479a:4123%3]) with mapi id 15.20.1228.027; Mon, 15 Oct 2018 11:48:13 +0000 From: Yogesh Narayan 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" Subject: [PATCH v2 3/7] mtd: spi-nor: add octal read flag for flash mt35xu512aba Thread-Topic: [PATCH v2 3/7] mtd: spi-nor: add octal read flag for flash mt35xu512aba Thread-Index: AQHUZHzzKNGdPxeY8EyFFoPgzHf0KA== Date: Mon, 15 Oct 2018 11:48:13 +0000 Message-ID: <1539603969-21076-4-git-send-email-yogeshnarayan.gaur@nxp.com> References: <1539603969-21076-1-git-send-email-yogeshnarayan.gaur@nxp.com> In-Reply-To: <1539603969-21076-1-git-send-email-yogeshnarayan.gaur@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SG2PR02CA0068.apcprd02.prod.outlook.com (2603:1096:4:54::32) To VI1PR04MB1038.eurprd04.prod.outlook.com (2a01:111:e400:5092::16) authentication-results: spf=none (sender IP is ) smtp.mailfrom=yogeshnarayan.gaur@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [14.143.30.134] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR04MB1616; 6:VmzhNWZiahAWMXRfBr+1zl2Wt+D5+tR0hlEjQwnZe74ZaEl8HW+gHqUfpyGu+pHotKDc+NGe9mXvlwbsonF9wdjIdtMP/AAQkYany8RI/3yJHuIu8D5z2V82d8gxfsTlIpe2hxb5q7UMJBdXkhFZVGwoEaN8FZhoJiw+Tp4oEbItnfxg8h4SwH/74dXyEZVEYlf0YZrMfwFxnzrQSb6K3cPN6Y+FT4nr2yctpR2b0tN62UUaSszjyz7mIzOGcCZvR+Koqskbn5cfSw7LaWZgAVMYsSQQSnfVEiHIV9JRPo+UHAWaDwW82238FOrkiep0PfD6oKBMVwfpbhTWnIUyQfeK2MvmPFGVJMTuVo5R6YPEr5uTBfnk6vQ0ltLfvblCqcsP6rxN5qb2+4Su8mHr50Viqsv9Sv4k03IOCMWjGFAxC1sOiDxe/wbF56H9qeGO2GdeaQBiTjNwv8MImtq2eR2Oabj7QyNvmqQ6hX0J7MQ=; 5:tUB7tBiQnDHXMApLhtAdNb/PjPS05Z5HE7F9qw6o/QENshNGWVW6Z+h4MFqrD6u0+nZhLRv1Wp0I+QmHmfnzEw7DVG7fjK6CbqxgoS1fjFbzJkt2WDwTp5Ad81QoFefPPzrpO6zsxqcdxAzQhecikS0mmcESNZLUydCKhn3fwFs=; 7:3ml5Ke5faS5ZIYZ4mANHzGpDzwUbd5yXun/5Un+BVPhzx1bQK6E6LkFeUXkmz18gcXdvFHgfFM0ac8hzQH3SaUahuEPVEkp5eytbf3dSrqJRaCNy1m4JM2jrHOP+vE0INApj5BbJi8kdCOcV2EcadPYX16t7Bxo/iHV14bPDFNUUxVu+ir6LiD6EkAzlGXcG9XuR462wo5zo/3aBU08jqUG4mxNcNc9ib/VAYGUumO/MCAym/w6LiDxEf9yo7b16 x-ms-office365-filtering-correlation-id: 58c4bc60-5334-43ae-d730-08d63294160c x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:VI1PR04MB1616; x-ms-traffictypediagnostic: VI1PR04MB1616: 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)(8121501046)(5005006)(3231355)(944501410)(52105095)(3002001)(10201501046)(93006095)(93001095)(6055026)(149066)(150057)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123562045)(201708071742011)(7699051)(76991067); SRVR:VI1PR04MB1616; BCL:0; PCL:0; RULEID:; SRVR:VI1PR04MB1616; x-forefront-prvs: 0826B2F01B x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(366004)(346002)(39860400002)(136003)(396003)(199004)(189003)(81166006)(81156014)(8676002)(7416002)(8936002)(4326008)(2501003)(316002)(66066001)(5250100002)(2201001)(53936002)(7736002)(256004)(14444005)(6512007)(25786009)(6486002)(6436002)(86362001)(68736007)(5660300001)(305945005)(52116002)(2906002)(6116002)(3846002)(54906003)(110136005)(76176011)(99286004)(39060400002)(2900100001)(478600001)(476003)(11346002)(2616005)(486006)(446003)(14454004)(106356001)(36756003)(186003)(26005)(55236004)(71200400001)(102836004)(386003)(71190400001)(6506007)(105586002)(97736004); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB1616; H:VI1PR04MB1038.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: jFRLdu9ByoCdgZvcKJ+YYXtXWGSjQMQC0fuokRVHHUUICKnVrGsgTtqmJBBH/9HWkUVXIpLE2OOvjfI/k5F5dQrPKLtCJAoA32OJNiouXItFLxpVBCBulyhpBqpZQzL5OhhE2rfKPdC90mMf4fkRpEaUq+dWPWhbWA4Awd/AdsQI2OhrP0hHAXZR86SI2YSzJs6NduYGw3vXgeWchcgcy21FfPVYhVD5sYk2bsWCgM5+9MMCbx5cJQeOwS5NG4TKi7vZrwQ188LIGFzJdPMLjyoW1DUUbyJVxNNS5Hwk/0j4TAmT6z8nUWflszGT1Nu7aGnHUOtCvk8V32EsgP9/tXTi727zHg6S1pAhv1n2980= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 58c4bc60-5334-43ae-d730-08d63294160c X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Oct 2018 11:48:13.2497 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB1616 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181015_044821_431136_C73E0756 X-CRM114-Status: GOOD ( 12.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "mark.rutland@arm.com" , "robh@kernel.org" , Yogesh Narayan Gaur , "linux-kernel@vger.kernel.org" , "frieder.schrempf@exceet.de" , "computersforpeace@gmail.com" , "shawnguo@kernel.org" , "linux-arm-kernel@lists.infradead.org" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add octal read flag for flash mt35xu512aba. This flash, mt35xu512aba, 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. Signed-off-by: Vignesh R Signed-off-by: Yogesh Gaur --- Changes for v2: Incorporated review comments of Boris and Vignesh drivers/mtd/spi-nor/spi-nor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index 7c64ff0..574f3e6 100644 --- a/drivers/mtd/spi-nor/spi-nor.c +++ b/drivers/mtd/spi-nor/spi-nor.c @@ -1413,7 +1413,8 @@ static const struct flash_info spi_nor_ids[] = { /* Micron */ { "mt35xu512aba", INFO(0x2c5b1a, 0, 128 * 1024, 512, - SECT_4K | USE_FSR | SPI_NOR_4B_OPCODES) + SECT_4K | USE_FSR | SPI_NOR_OCTAL_READ | + SPI_NOR_4B_OPCODES) }, /* PMC */ From patchwork Mon Oct 15 11:48:19 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: 10641613 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 1499F18FD for ; Mon, 15 Oct 2018 11:54:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 032F828470 for ; Mon, 15 Oct 2018 11:54:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EBA3E29144; Mon, 15 Oct 2018 11:54:49 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 70F8828470 for ; Mon, 15 Oct 2018 11:54:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Ps6tX9pn6nIdq7Z6MQ80kcD0bMJZMPXnTweelvbaxM8=; b=c7bDk7TT3uogOe Y88eWtbXGF4u8yh4QsPSRfEpEBrxG9Nq3RAhib/0e9aC14RhHfBYP4eLmqyB4/bp+soEev/2FjTWa /Kpns1+Wy79YF3lWbbmJd/x+5/PJODfkU//AZOqplZABpuXVfaCLIaIT+e/ClqGa3TijzeGyWRJQb KeJO5k0FymlYHofOc6Wyg0LMfumwLK+C7bt+lqZqeAMJVHT2av6vYJW67sqGy1dHTvjcjA3bz2nes jjNxgPbuo6vzKcTZe0BRB/3khV6oTwsjaGO1oYrXUiC8//NBfmf8hwrAeeOyF4tdLdnmzeP7ZMsEl YybK/Q3wYWUV/XLw6C/A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gC1SI-00048o-Bn; Mon, 15 Oct 2018 11:54:38 +0000 Received: from mail-eopbgr50089.outbound.protection.outlook.com ([40.107.5.89] helo=EUR03-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gC1MF-0000Ee-BY; Mon, 15 Oct 2018 11:48:25 +0000 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=MNrPP8gxwgeFL/C95rIJq/E6CiOo7cfDlO+xOSX8phQ=; b=xEaWlWaR8zvN6QATLoma8ppEdfPn1aDlSVHS1KHDSRD5hqego9Wb9V0jmUE36954vAW20OaQYuP+7Fr5GhDIgmc1oQpLGZSxXOUluiDOvXxR2mFpip/1H3+pjRX4VKjQwPIJSpuYxJZ/hLlDYsB2nAeGIDsnt/H5PHvsM24+LZE= Received: from VI1PR04MB1038.eurprd04.prod.outlook.com (10.161.109.144) by VI1PR04MB1616.eurprd04.prod.outlook.com (10.164.84.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.23; Mon, 15 Oct 2018 11:48:19 +0000 Received: from VI1PR04MB1038.eurprd04.prod.outlook.com ([fe80::d887:3c96:479a:4123]) by VI1PR04MB1038.eurprd04.prod.outlook.com ([fe80::d887:3c96:479a:4123%3]) with mapi id 15.20.1228.027; Mon, 15 Oct 2018 11:48:19 +0000 From: Yogesh Narayan 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" Subject: [PATCH v2 4/7] mtd: m25p80: add support of octal I/O transfer Thread-Topic: [PATCH v2 4/7] mtd: m25p80: add support of octal I/O transfer Thread-Index: AQHUZHz3yd+54e3bMUCmj/xMT+gPbQ== Date: Mon, 15 Oct 2018 11:48:19 +0000 Message-ID: <1539603969-21076-5-git-send-email-yogeshnarayan.gaur@nxp.com> References: <1539603969-21076-1-git-send-email-yogeshnarayan.gaur@nxp.com> In-Reply-To: <1539603969-21076-1-git-send-email-yogeshnarayan.gaur@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SG2PR02CA0068.apcprd02.prod.outlook.com (2603:1096:4:54::32) To VI1PR04MB1038.eurprd04.prod.outlook.com (2a01:111:e400:5092::16) authentication-results: spf=none (sender IP is ) smtp.mailfrom=yogeshnarayan.gaur@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [14.143.30.134] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR04MB1616; 6:e3b8spW8h3m0+GgJ1o0+OQIaJ8j/S/0LooxYAjdFCiEhjiW2+PhqZkdRQx95BDXLMdaeeI8SNZ2MXz6A7XkZnhMXYo6258Nqzg4ysI9bwA7lgTigGTZ0rvpNYF7/BSsxh59cax79ueELMU1Pbc5cRcSUCuPQ3ddtePDHOpYWIQbWI//RGDqLtcMfnKEn4LWHAqR5iZkcsFfIeB7UTpUp/ziOTLSxqpirrn/e0bDNCKpFYasZqaE27N8GOanCYHW7eLcmXCeKvAJnnCFIcWCfRHkVxE1ho1Ogxma1gBawMjh/hP2q+2jHip7nX6rqQlMo1bB8EhvM7+yq7NkW2XBjoeAe1rdlYSvlUJaDmd3DzHbI5AKwZcplC5c/gwb34BeqK9/4b6hjO2kxl52OijWNb5Q13ZQkEE4pZ1Txb5iCna8Z3JPF0/hYQyZsZ58SxM2De/LNfLowX43/Fu2jSZOrt9PuXvPD6IAcq0+ItPoXx8g=; 5:e9PVa3023vQ4lHZXFf+K4/KWE4hzH/sf/TXSCim9O5godG7uZ1l/tEQyNFt34OFpTK0gr19UdBItzzSNUZSptdMcydd7w5kxcwHTT0cgyUR9/o5sI2Bv3A4Tm15ABI7HoX6HHl+Mj8zdlM6xs4yTyA1ETK/6grohGik9+aDAMVk=; 7:fU4yEckDdirqn509xEm2U8vWRet3azbCNyF6yj3oKqhN3GXCKUE72SJFCsKfY59rVQFh5Z7yLh8VwN+K4J6mek2pXtIsNlSYfn6TBf7psEWxVLLCvVPhKDfH+dhUplru/aFdc1oWnOFaVJPznKAxWBPD6vSxosPGV2cEoB4vsTJcMWvFHIPcxgdYy8Pu31CcTyUi5gfptPe0PqCi1XXbBJoFGqu4ynyBcJbAZH/nfed/1OGWWfmsvAlqbz2LsABa x-ms-office365-filtering-correlation-id: f27d7d72-08c1-460b-9988-08d63294198e x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:VI1PR04MB1616; x-ms-traffictypediagnostic: VI1PR04MB1616: 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)(8121501046)(5005006)(3231355)(944501410)(52105095)(3002001)(10201501046)(93006095)(93001095)(6055026)(149066)(150057)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123562045)(201708071742011)(7699051)(76991067); SRVR:VI1PR04MB1616; BCL:0; PCL:0; RULEID:; SRVR:VI1PR04MB1616; x-forefront-prvs: 0826B2F01B x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(366004)(346002)(39860400002)(136003)(396003)(199004)(189003)(81166006)(81156014)(8676002)(7416002)(8936002)(4326008)(2501003)(316002)(66066001)(5250100002)(2201001)(53936002)(7736002)(256004)(14444005)(6512007)(25786009)(6486002)(6436002)(86362001)(68736007)(5660300001)(305945005)(52116002)(2906002)(6116002)(3846002)(54906003)(110136005)(76176011)(99286004)(39060400002)(2900100001)(478600001)(476003)(11346002)(2616005)(486006)(446003)(14454004)(106356001)(36756003)(186003)(26005)(55236004)(71200400001)(102836004)(386003)(71190400001)(6506007)(105586002)(97736004); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB1616; H:VI1PR04MB1038.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: NUzhtO5WbdPZvKFsk67Wn28KZGUrMBxCExlz4cREoNW6vn/1JvP1uHyZuSA2GEaUmw4zCL+o3uUm6h5gYvs8ibZ1Ip6nPkrZn8gZpROZxjRtq1C+7KZE0/qRy9MnGVqmB73XsdquxZlA2FVSeLQkqia6PJBUIZmSuL01bg3Ig13Vd7ssgxGc3etwf3IKQW22CdfmfVT7jyr9ZpXWAC1rXbb2uoofYNoKXwJEDQDSKe3vDEp5rFkeZxTA4bIy8n/PICj7z3t6bYTcC9mEP04VL8bFpuy4F2XeBfk4NR/8N8T2kTgs+EoBOs3s+pX8+N/HbWM6lu2vRUU1dygMIAYelR34g0nYqBZ10x17Gi/IrMY= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f27d7d72-08c1-460b-9988-08d63294198e X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Oct 2018 11:48:19.1263 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB1616 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181015_044823_505771_11F94C2B X-CRM114-Status: GOOD ( 13.41 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "mark.rutland@arm.com" , "robh@kernel.org" , Yogesh Narayan Gaur , "linux-kernel@vger.kernel.org" , "frieder.schrempf@exceet.de" , "computersforpeace@gmail.com" , "shawnguo@kernel.org" , "linux-arm-kernel@lists.infradead.org" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add support for octal I/O data transfer based on the controller (spi) mode. Assign hw-capability mask bits for octal transfer. Signed-off-by: Yogesh Gaur --- Changes for v2: Incorporated review comments of Boris. drivers/mtd/devices/m25p80.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c index cb14cf9..e5e632c 100644 --- a/drivers/mtd/devices/m25p80.c +++ b/drivers/mtd/devices/m25p80.c @@ -175,7 +175,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) From patchwork Mon Oct 15 11:48:25 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: 10641623 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 EF8B4109C for ; Mon, 15 Oct 2018 11:56:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E01FE28470 for ; Mon, 15 Oct 2018 11:56:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D415729144; Mon, 15 Oct 2018 11:56:15 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B0B8028470 for ; Mon, 15 Oct 2018 11:56:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=nNVg37eRJqyX1fbt/sxzQ2sOzLno5tTofxmx7Z4Zv3I=; b=ldmMB72AwuNwcS 2UY3X8OCD9LibcsCRi1nh2fMtfEvbM22hQXRdy+RIIN6o3LwIA8DREeLrNHWSJ9VWJIpZRL+3SC2W PtC61Qzny0Ocs7a/03dEHFpmgh/k4bWL2LysidmVoDiiQLVIpamIunTLP8Wfz+5P1Rg3hu9ZAJFt1 8P547EEG6tkp/5RMHv93M5QH0CxM9J5cxy54q6dK2HsKqn81c8xkHL/0FS5YhUfwNe9zy/wFxVpPz IXSstwrJHh0mlVVG06ViPPcokg+czWuzEJjVX96y6eUjMOQA814hlUx/ODlsne27PeVODjvkipBT+ 8wPHRgaZ/VZtDVUz5OYA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gC1Te-0005w3-KB; Mon, 15 Oct 2018 11:56:02 +0000 Received: from mail-eopbgr50089.outbound.protection.outlook.com ([40.107.5.89] helo=EUR03-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gC1MM-0000Ee-8U; Mon, 15 Oct 2018 11:48:34 +0000 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=3WIJfYaOQP26NVdDckQvWIuYKXtRUkBOzadkxFb8Dxs=; b=Cq4k7voPR90EwM36PyLdTEdMJ+JlbRePL7PX3XVl9/LIamwnzIDtdx0ORVNSt6o5CxATw2qrB/FhWXsBGE/NIf5HDo8hb3bx5vrPZasfZ43FK340uh3cahN9UNqdESyKAP0AKrzykI3A1jnrp8V4ifleSIPZ3vFvLMFLNu2HiVk= Received: from VI1PR04MB1038.eurprd04.prod.outlook.com (10.161.109.144) by VI1PR04MB1616.eurprd04.prod.outlook.com (10.164.84.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.23; Mon, 15 Oct 2018 11:48:26 +0000 Received: from VI1PR04MB1038.eurprd04.prod.outlook.com ([fe80::d887:3c96:479a:4123]) by VI1PR04MB1038.eurprd04.prod.outlook.com ([fe80::d887:3c96:479a:4123%3]) with mapi id 15.20.1228.027; Mon, 15 Oct 2018 11:48:26 +0000 From: Yogesh Narayan 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" Subject: [PATCH v2 5/7] spi: spi-mem: add support for octal I/O data transfer Thread-Topic: [PATCH v2 5/7] spi: spi-mem: add support for octal I/O data transfer Thread-Index: AQHUZHz6nk0xLhiq/UWKm2fQK4r7Ig== Date: Mon, 15 Oct 2018 11:48:25 +0000 Message-ID: <1539603969-21076-6-git-send-email-yogeshnarayan.gaur@nxp.com> References: <1539603969-21076-1-git-send-email-yogeshnarayan.gaur@nxp.com> In-Reply-To: <1539603969-21076-1-git-send-email-yogeshnarayan.gaur@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SG2PR02CA0068.apcprd02.prod.outlook.com (2603:1096:4:54::32) To VI1PR04MB1038.eurprd04.prod.outlook.com (2a01:111:e400:5092::16) authentication-results: spf=none (sender IP is ) smtp.mailfrom=yogeshnarayan.gaur@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [14.143.30.134] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR04MB1616; 6:TgkF7VL9RbfLRrxj1NQ5rK9Va+aaNx0tqPKPUK5wPgBz3Swqru6v0yK9BQqWtF+xNNieuxUGefCjZxzJ8YzIM/vB1NGiH0+7HBUjUKl3K4iuU1vafg7EG+Zbx0/JAM/bHqVyu6FBKRXCnaYRg+wB9QA4q+F5ZWNwE5oubjXTi2m/yjn5MjOASm36J7zNdtfZtFjvp5CgvF8z+wMLMdOF7nlAHUwiVuz5BLyjsRyeGTw73pRtn5ZJrY35MRPEyUOBYnZOqEQ9gKiDFULyN52FJNpxy4SKul5ZUP914oW7wfEkd4hWympX59dnWaR0w8eqwT0t4sVrGPOnvGNC1htpawM7+HJg2CZdw/fH0jTJEkSaxTktZ+73FrubtmUt5eY0haFerE2T9v3zlihxB4chdeqKE/Tf8vUsb++GaoYyWRZsoc531D4YlwOWz8MEldb9ucijGQAxDSRZwg80R5I3MWjt3UMOouWJ5Y9OzAj1tC0=; 5:GipfEd8xRS+PMomsJMSSJubBg1gZhub2zfYAXibzbpiE0rnE7OQEd2mowb5YH721dpA39L3n39HBNEGD2lbFXKcFfananNCaKAwTDF4uyZcc173kHXPuWQMd+qmJNl9hpLIxhqT7JvkRRQK5Ut2FGIopwzsZS4rTZphCGVHT2Nc=; 7:dDmqm3lxoLqIs6xsYC2jRQDx9bZFLdOUI86gex1SKNBdodh8aDhd4VbnwKhG+yOYy2A06krUxXxoDw7PC+w894idyLBUFjOzzssmJHfpLiUbBxiJ/QY3Z6z8YeOx9H4sWH7O+RQnOLO5PhAime9L93JPCjYYNKvGgQ9mogit7+bFaEVDhSs7qn6mn3mW0PQDvsHrh56G6uG/D2zhEDluuHHR5QLbLIMNXgDPv6yXfhGwyagn6cIUh40g8iTHSD67 x-ms-office365-filtering-correlation-id: 9df28e5d-66e3-47dc-ef45-08d632941d0b x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:VI1PR04MB1616; x-ms-traffictypediagnostic: VI1PR04MB1616: 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)(8121501046)(5005006)(3231355)(944501410)(52105095)(3002001)(10201501046)(93006095)(93001095)(6055026)(149066)(150057)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123562045)(201708071742011)(7699051)(76991067); SRVR:VI1PR04MB1616; BCL:0; PCL:0; RULEID:; SRVR:VI1PR04MB1616; x-forefront-prvs: 0826B2F01B x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(366004)(346002)(39860400002)(136003)(396003)(199004)(189003)(81166006)(81156014)(8676002)(7416002)(8936002)(4326008)(2501003)(316002)(66066001)(5250100002)(2201001)(5024004)(53936002)(7736002)(256004)(14444005)(6512007)(25786009)(6486002)(6436002)(86362001)(68736007)(5660300001)(305945005)(52116002)(2906002)(6116002)(3846002)(54906003)(110136005)(76176011)(99286004)(39060400002)(2900100001)(478600001)(476003)(11346002)(2616005)(486006)(446003)(14454004)(106356001)(36756003)(186003)(26005)(55236004)(71200400001)(102836004)(386003)(71190400001)(6506007)(105586002)(97736004); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB1616; H:VI1PR04MB1038.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: RseJaGKnzLO3Dyf4E1PmYLEqHd1THZMm0jcr3V7+z0jleGjyt4B+7Xr5MAi2Ag44tNVsaypP9wn2KigXZmeKCJXqs2aSC23bB/wVYh3+ph6RzxlFkqIpNSoPYETAX2+ptvhT+QcjGDZqKGcuvkKjHS6i32tlBfvBNYLPFv6gjAx+HXWKS1lomWkv3y1NzX4VUzsPXuxS4XbkWurG+v0r0g4vHAgiJPufPWX9y5g4zYCeY5+suYnQtZ5fVYLTAKdg07KSW+zG4XVVC/8YDcDB8FFOACVOhOmSsdkvih02VmUUIQtq7AiNkCspmCgsNa+sjdhRVUbTG/l9JDhm8vO+Et1AlidaOtn9ZNalIxN9QFc= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9df28e5d-66e3-47dc-ef45-08d632941d0b X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Oct 2018 11:48:25.9146 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB1616 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181015_044830_369004_EAF53EF3 X-CRM114-Status: GOOD ( 13.51 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "mark.rutland@arm.com" , "robh@kernel.org" , Yogesh Narayan Gaur , "linux-kernel@vger.kernel.org" , "frieder.schrempf@exceet.de" , "computersforpeace@gmail.com" , "shawnguo@kernel.org" , "linux-arm-kernel@lists.infradead.org" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add support for octal I/O data transfer in spi-mem framework. Signed-off-by: Yogesh Gaur --- Changes for v2: Patch added in v2 version. drivers/spi/spi-mem.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spi-mem.c b/drivers/spi/spi-mem.c index c6bdea7..6fa95f8 100644 --- a/drivers/spi/spi-mem.c +++ b/drivers/spi/spi-mem.c @@ -12,7 +12,7 @@ #include "internals.h" -#define SPI_MEM_MAX_BUSWIDTH 4 +#define SPI_MEM_MAX_BUSWIDTH 8 /** * spi_controller_dma_map_mem_op_data() - DMA-map the buffer attached to a @@ -121,6 +121,13 @@ static int spi_check_buswidth_req(struct spi_mem *mem, u8 buswidth, bool tx) break; + case 8: + if ((tx && (mode & SPI_TX_OCTAL)) || + (!tx && (mode & SPI_RX_OCTAL))) + return 0; + + break; + default: break; } From patchwork Mon Oct 15 11:48:31 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: 10641633 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 DA8FC18FD for ; Mon, 15 Oct 2018 11:57:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CAB8D28FFC for ; Mon, 15 Oct 2018 11:57:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BF09C2952E; Mon, 15 Oct 2018 11:57:42 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4FCBA28FFC for ; Mon, 15 Oct 2018 11:57:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ZmiGlsYvUbsZqYD5vXxkaoduHAAp77j3luridWJDy9k=; b=VyZII/nXyoKRRN Q+a/GFeDDPuM1T7XKpov7xHgZdZGoOmpS23Cb/G+/27imCuoc6R1lYhwqeiPwEZ6f7hIomv6cu1QU X6aawmRd4Iq+6TY3FWnVSB21LArBOqP35IO4LRcojhO+uGZrwdwW/g8y0aLwj2PiEa9m7axtqyJtx TkBJ6Rf+cplwQXkITIAe+WGda/tYV4rl2Q6wgzGkCJSPyHEWO6vxRfHWRLsqnI+ZGhUQWVV/WIeXV EAeGe36bGPigIIRyvoC0NMDiFASH3KK0gkPTcx2DfBUZ4+Tfea6Pb5QJhtGr6xj1KwNCLEturnBOo ULx1d4R9nF1cxcbjAA6Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gC1V7-0006XI-03; Mon, 15 Oct 2018 11:57:33 +0000 Received: from mail-eopbgr50089.outbound.protection.outlook.com ([40.107.5.89] helo=EUR03-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gC1MQ-0000Ee-P9; Mon, 15 Oct 2018 11:48:40 +0000 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=1Zo8AWgVIPohKPkaxItV4rZx7dVTrfVzyCBq6uTe+8U=; b=H0qpy5utFgrea78jUwxQMgChK7RLCwHqqeOhredELSsIMS/M544DAbzMw5/p7bnVJYQje6ID7toDLje+GuOae69c8gL2mUhhlAruOC/b34DDFHELZzxC1tE0ZxGsinBg3nozRtYF65d4gVan1LcJAK4Dux0W+2DfGkBRpcSpnvc= Received: from VI1PR04MB1038.eurprd04.prod.outlook.com (10.161.109.144) by VI1PR04MB1616.eurprd04.prod.outlook.com (10.164.84.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.23; Mon, 15 Oct 2018 11:48:31 +0000 Received: from VI1PR04MB1038.eurprd04.prod.outlook.com ([fe80::d887:3c96:479a:4123]) by VI1PR04MB1038.eurprd04.prod.outlook.com ([fe80::d887:3c96:479a:4123%3]) with mapi id 15.20.1228.027; Mon, 15 Oct 2018 11:48:31 +0000 From: Yogesh Narayan 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" Subject: [PATCH v2 6/7] spi: nxp-fspi: add mode flag bit for octal support Thread-Topic: [PATCH v2 6/7] spi: nxp-fspi: add mode flag bit for octal support Thread-Index: AQHUZHz+LQlNXeoqgECfJrRyb8GFHQ== Date: Mon, 15 Oct 2018 11:48:31 +0000 Message-ID: <1539603969-21076-7-git-send-email-yogeshnarayan.gaur@nxp.com> References: <1539603969-21076-1-git-send-email-yogeshnarayan.gaur@nxp.com> In-Reply-To: <1539603969-21076-1-git-send-email-yogeshnarayan.gaur@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SG2PR02CA0068.apcprd02.prod.outlook.com (2603:1096:4:54::32) To VI1PR04MB1038.eurprd04.prod.outlook.com (2a01:111:e400:5092::16) authentication-results: spf=none (sender IP is ) smtp.mailfrom=yogeshnarayan.gaur@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [14.143.30.134] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR04MB1616; 6:JzQlcuGnTGO+EXJ6Pqkun0kLJhRXSneq89uTC/qjLfxXgT91SrnPeOmmFcj5bP6EkOMYaCc2qjtY95wQlb2HytQEfDH/kcZ2ipmFI2ldwK4ccmhWTxj5YLr85fwXXMg23d0UOburYSrJhBOnMdHUGKc/G+LRE3vO43RYo4mK5rh6cm2a/YICyVGhjh2Xk0d+V5jZFnCGmb93KbMveRbw4Bw/9NeySVrr3GVTPb8JHyTBALEHJ7czXMmlvtvbIf974yoGf6/+p/X2bbXOWUFN/TBldUeSBDCuHibOxCsByYhjuEgpoGJ2AoE2qu0KPgoYLBYjACUFKQgPcQQtJlhz+2TNn79vz3JO8xF17UOLS8Em/4dKTTh9J4b8EzuCo3FCSf3WWEoBDo+bKpzoxnLQX/wnUm3MWF0j48S2Y0kckZcUtZNTqeJTgyXMrRUie5lSB0coS5kTw03lxdPQLKxH4aX4Xg9bszmVIcsHEtEyFcw=; 5:wHfO7G6XN8ihkRSDjzcr9tsZ+/REexC1LTazOD8FO/R8RXTK2sdAlMITfHPX0Xf+QpTRNZmWZR0i1KuiMrcuki3eU5HdtiaErzbxl7cNquGUBK/BuolU0ZogYbc4ITzYq55gSq6Xqgpy+WxtY2rPi5U3odcS6+TCBCxOxr+Voes=; 7:B7Mg9zwh0ZJxpwsCfjUWDimP3ULC/EmsPLX/XtUOfUxeC0OPYsN6f8TtUBbtfKRQ1E4v+GUPlrblR1jAjNa5kdigIWKs+KsgDTbmMg+n79TMdaMPc2cqcU+xy8d4TxJkpf51BF6a9JQC6RpSiyP4ejbZ5zTBI3koazBwB8UfNJJORDpEq8/Cyn5lZrxunPK+tlT2kIiSmIyOsnGh7L4zfoRcrbFkQ9fi5rHMA5M/3EFcJylvU/2hsFxFalgt5rwm x-ms-office365-filtering-correlation-id: 04016c7e-6cea-4b03-e5dd-08d632942117 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:VI1PR04MB1616; x-ms-traffictypediagnostic: VI1PR04MB1616: 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)(8121501046)(5005006)(3231355)(944501410)(52105095)(3002001)(10201501046)(93006095)(93001095)(6055026)(149066)(150057)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123562045)(201708071742011)(7699051)(76991067); SRVR:VI1PR04MB1616; BCL:0; PCL:0; RULEID:; SRVR:VI1PR04MB1616; x-forefront-prvs: 0826B2F01B x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(979002)(376002)(366004)(346002)(39860400002)(136003)(396003)(199004)(189003)(81166006)(81156014)(8676002)(7416002)(8936002)(4326008)(2501003)(316002)(66066001)(5250100002)(2201001)(53936002)(7736002)(256004)(6512007)(25786009)(6486002)(6436002)(86362001)(68736007)(5660300001)(305945005)(52116002)(2906002)(6116002)(3846002)(54906003)(110136005)(76176011)(99286004)(39060400002)(2900100001)(478600001)(476003)(11346002)(2616005)(486006)(446003)(14454004)(106356001)(36756003)(186003)(26005)(55236004)(71200400001)(102836004)(386003)(71190400001)(6506007)(105586002)(97736004)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB1616; H:VI1PR04MB1038.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: cmqj3TF2GO7STqdXMvBGUuxqIQhu1BGOumfKSPO26J7/XPZhxxWpHAiQgZYHuseh+tDrDwxN7tgk4r9SXi220Jefi4UHpeQ5UUNvN9cFa67u4LXqQrJju8ds67Q17KJ0kBY0fa74EtoeQPe3d/zrawTYbbOa7qq0s6WxPnMuUWtRlXWGNA+13o3pjm3err3ONst6PjvIgKisWmG0eOQ9OuoXoHqttfZOuxueqDhS3hjJ4395LyBbRLANqdk+OGaNZZpRDirNN6F9csvzEGbJfJ3JEL3lOGxRh5qdZcy4/zHRo5CwY8FLGFYAWxVprYRkTCaHivQ4HoceuHax8EIDBXJcdwxBMPgA4IZo5rNz2RY= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 04016c7e-6cea-4b03-e5dd-08d632942117 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Oct 2018 11:48:31.7461 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB1616 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181015_044835_184572_8E08FB7F X-CRM114-Status: GOOD ( 12.58 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "mark.rutland@arm.com" , "robh@kernel.org" , Yogesh Narayan Gaur , "linux-kernel@vger.kernel.org" , "frieder.schrempf@exceet.de" , "computersforpeace@gmail.com" , "shawnguo@kernel.org" , "linux-arm-kernel@lists.infradead.org" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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 --- Changes for v2: None 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 67eea88..c48ca94 100644 --- a/drivers/spi/spi-nxp-fspi.c +++ b/drivers/spi/spi-nxp-fspi.c @@ -993,8 +993,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 Mon Oct 15 11: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: 10641643 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 2A4AD109C for ; Mon, 15 Oct 2018 11:59:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 196BA29652 for ; Mon, 15 Oct 2018 11:59:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0CC442965E; Mon, 15 Oct 2018 11:59:08 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9780329652 for ; Mon, 15 Oct 2018 11:59:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=VJ0gmIfjGkgnfw1Lh42XsZwAwUntwlYUKHQFy9Vvh3M=; b=XUVLIgyQt4BbGE 3D3ecftbQt3lQD+2bz1Gyd6dwS/5U7UJrpErUzehVJn3XJFJakun//wrszFRsuCZcYH+1QQ4fYxS1 n1LFj/qbBFIXkXU0TTfB1pAp991v5guMq1EEfz9WEFv/rutN2cDjJJllD1sRjeAdwZQE1POFQecBG TXCsO4JA3GB/5OxPvcId9CKaeMHVNPJcLMJpYwiURRITi81gNiDxPTzR59HOS0XEJixboUahLJgsJ 4SybVaPCEqrXJcVN1PLk0qx/zl66MWqah7lsp7WPDOK52wCTPbqofIbQwtLaZt8v0nafxGBatEWj/ 54+kMjtAFe8Zo1+d8drA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gC1WS-00075i-IN; Mon, 15 Oct 2018 11:58:56 +0000 Received: from mail-eopbgr40057.outbound.protection.outlook.com ([40.107.4.57] helo=EUR03-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gC1Mi-0000Pw-8g; Mon, 15 Oct 2018 11:49:15 +0000 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=wlTvKAy11pYmvkpxMUN8SJAvwSjb3FEvtpgnOcrcNKQ=; b=beRv9onm2R0567x1uBPPkvybjX7RVAhV2+yywrKNXTLNQGV9q3X/f+k0OfQkH9T26RYHhACy3maR47pCpZePhXNZ2GOs1X2ssVmC+OVlr9NEbYYxzYeR04uQU3bPT0xbraRX3GAVYPqlHQ+cKdFdC9lUGny2vcnYkpYGZFduw4o= Received: from VI1PR04MB1038.eurprd04.prod.outlook.com (10.161.109.144) by VI1PR04MB4912.eurprd04.prod.outlook.com (20.177.49.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.23; Mon, 15 Oct 2018 11:48:37 +0000 Received: from VI1PR04MB1038.eurprd04.prod.outlook.com ([fe80::d887:3c96:479a:4123]) by VI1PR04MB1038.eurprd04.prod.outlook.com ([fe80::d887:3c96:479a:4123%3]) with mapi id 15.20.1228.027; Mon, 15 Oct 2018 11:48:37 +0000 From: Yogesh Narayan 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" Subject: [PATCH v2 7/7] arm64: dts: lx2160a: update fspi node Thread-Topic: [PATCH v2 7/7] arm64: dts: lx2160a: update fspi node Thread-Index: AQHUZH0CH9NuyTQbaUSk9MuShuFRIw== Date: Mon, 15 Oct 2018 11:48:37 +0000 Message-ID: <1539603969-21076-8-git-send-email-yogeshnarayan.gaur@nxp.com> References: <1539603969-21076-1-git-send-email-yogeshnarayan.gaur@nxp.com> In-Reply-To: <1539603969-21076-1-git-send-email-yogeshnarayan.gaur@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SG2PR02CA0068.apcprd02.prod.outlook.com (2603:1096:4:54::32) To VI1PR04MB1038.eurprd04.prod.outlook.com (2a01:111:e400:5092::16) authentication-results: spf=none (sender IP is ) smtp.mailfrom=yogeshnarayan.gaur@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [14.143.30.134] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR04MB4912; 6:O6Yp6ff8+9SlkgTnYfhHPHMd8BEscJM7/yBZb37wIwkMorwODKqva+EaBUe71i78nOCM+6PFJMqVsfnM7BETUI9CCKrwfZFCDo6PR+mwcA+1d5R7r7AUspF/Rlk7GqySUwqgRAinVkR+Flv49+4B6DkjjVbDSAsu6fBDfohAdZvW5e2wOc9cxqYqhuGEP2fwwI28/NstfSyfbCQPutcYccM+6Vp/jCHybxvoAKEhCniUCzHHoWy49c6o5aaFXhC3kOL4uzdUFYv+ACBm6A7Hy4MAlTWoIYmcfNEkQZq3e/gU5BMVGaCEZIfVJC9GlEFHfMjHlDeV8GeCuE6bKgmDgmOdV3M0wPUYDD4JLHDs9bZNnxeQUR/q00u0DfndY7QCOINSnWiX8SFFNJMth/XofL7f682U4hcYWs+GnvShZEYlNNncjl5WBRl0Ca7Gz8Zn+iPkosd1Mc7TV8x8Xv9a+g==; 5:ynXZGlA7cQa0TPX+AwIcBuFRWQtjZlDi6oJ0wWvgj1H2PB9Q9ruwn9XjleKm7Yrw1CInFGIefzCJu0uHH5jy4tz03ZuIMZIPbSJBFYVP0oEM+pQ27BFz4y2TXIVxSy+U2cJMK2Ygk4DRH1CKbzG/47PJqg3bypne/Qwzh8xghYA=; 7:iyj9gAJaH6Gv241ML0l2Mh4wPUqtnqMWZ49jLj0UMRh6DqSI6kD6VldDyxcPeOIfO8tQxOYEHjoxaARedC4eoC4QTsbbK+EHIGFqEUd2rkX6Y2YcfwaVm6NGnR4nAXlabL8c4/1n+uhnxcwPC9/h0aJPACUlz23gmDZVoBfEo8zZcTtwi8EQKkuV+RkwDtCVG9f+Xwoy91oVK0GdDZmyMC1xiaugECRDNl+PvaKLV0rpNwZEWrvWu2zAr+CzB1gV x-ms-office365-filtering-correlation-id: d41eb8b3-665e-4495-7bf3-08d632942492 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:VI1PR04MB4912; x-ms-traffictypediagnostic: VI1PR04MB4912: 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)(93006095)(93001095)(10201501046)(3002001)(3231355)(944501410)(52105095)(6055026)(149066)(150057)(6041310)(20161123560045)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(201708071742011)(7699051)(76991067); SRVR:VI1PR04MB4912; BCL:0; PCL:0; RULEID:; SRVR:VI1PR04MB4912; x-forefront-prvs: 0826B2F01B x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(39860400002)(136003)(366004)(376002)(396003)(189003)(199004)(11346002)(39060400002)(25786009)(478600001)(2906002)(2616005)(476003)(4326008)(6486002)(6512007)(54906003)(6436002)(55236004)(6506007)(386003)(76176011)(110136005)(446003)(71190400001)(71200400001)(66066001)(99286004)(186003)(52116002)(486006)(7416002)(53936002)(2900100001)(102836004)(5250100002)(2501003)(26005)(97736004)(14454004)(6116002)(3846002)(256004)(7736002)(305945005)(316002)(8676002)(8936002)(5660300001)(105586002)(81166006)(2201001)(86362001)(81156014)(106356001)(36756003)(68736007); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB4912; H:VI1PR04MB1038.eurprd04.prod.outlook.com; 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-antispam-message-info: aLu6I6sSOuocrGcISn0v4ancRXqz3y7Cfjq57cCicmGFGsvVd+AmmAQVmgRXyZt1DGkaBZDaJehQH3i2OuFCFECzEEcJw6BJ+GcS7ql98geJtQdlHB12ubUVy/+NwXH6AdEnNWv+JoFxv/Y7RIJndXgmJCY5zmudJcRmSEZ+iL6p6BZyQ9Iq3DTJVTG9iwtSJhSl4tcSaiHmn0AHOH2+voXZK2nQtwXSqemFYovJI/zJ8q7hBYqwAgBcN2MypwUzVlCoRKg4fI1sg3IjOEdF6oxsaRLEQQjEizZ2kHSWN4qQU4O2QnKheOk51iIG0+Et1k2QNw0i5TekRmaIrpdCl2UK9Tf8GYFhGuncP8cIddw= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d41eb8b3-665e-4495-7bf3-08d632942492 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Oct 2018 11:48:37.5747 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4912 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181015_044852_431654_625C4FB5 X-CRM114-Status: UNSURE ( 9.95 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "mark.rutland@arm.com" , "robh@kernel.org" , Yogesh Narayan Gaur , "linux-kernel@vger.kernel.org" , "frieder.schrempf@exceet.de" , "computersforpeace@gmail.com" , "shawnguo@kernel.org" , "linux-arm-kernel@lists.infradead.org" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Flash mt35xu512aba connected to FlexSPI controller supports 1-1-8/1-8-8 protocol. Added flag spi-rx-bus-width and spi-tx-bus-width with values as 8 and 8 respectively for both flashes connected at CS0 and CS1. Signed-off-by: Yogesh Gaur --- Changes for v2: None 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 3b20c97..24cc41c 100644 --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts @@ -45,6 +45,8 @@ m25p,fast-read; spi-max-frequency = <20000000>; reg = <0>; + spi-rx-bus-width = <8>; + spi-tx-bus-width = <8>; }; mt35xu512aba1: flash@1 { @@ -54,6 +56,8 @@ m25p,fast-read; spi-max-frequency = <20000000>; reg = <1>; + spi-rx-bus-width = <8>; + spi-tx-bus-width = <8>; }; };