From patchwork Thu Oct 11 11:00:32 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: 982396 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="W5D9o5ZA"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="O/Elr8lt"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42W7Pq6yPDz9sC2 for ; Thu, 11 Oct 2018 22:03:59 +1100 (AEDT) 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=IpIoOnWQCS3u2b2s/mdJf49Q5pJiOy4eNzLmpZaTvkU=; b=W5D9o5ZAaI//Ry ME5qZXgxpA657w+trN5e7kwUxAd+J/W4G2ZG8AOT1xLw0ARsCgc7EDGCjOElzQYCLFFExIvi5mzSq 9f8zNKrvQ+NbcbUWGuMpRDxAFpo1dXldR3jwvBPT3C7Mtqb1KVkJqenNkQipmS5iWsxuZSBiwKuMG 3ZyWbOkzMYMCUJBbxb+OcJACAnN6GCYOzQWtl1AA6VnCWKDCYR6T0o4BkOn2odoMZP2nV5Z6HVoo+ QTawkZKGWa2PCs1XYx5cvBMb86HvXWikb/t4UrJgXm6t+XhQ2i/6kQzLX4AcnLdi8ytKa9+2WdtO3 el8F8jrGUb6mZE49U9ug==; 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 1gAYks-0002fb-Fc; Thu, 11 Oct 2018 11:03:46 +0000 Received: from mail-am5eur02on0601.outbound.protection.outlook.com ([2a01:111:f400:fe07::601] helo=EUR02-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gAYi6-0001Da-Be; Thu, 11 Oct 2018 11:02:05 +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=FDp2qOKJMJJxkL14fNgHG+0wJJk5sJ1MFIgMWN/FOaI=; b=O/Elr8ltKPJmzuxEUFoA451tB94Pwu8+XuZV2qmc4r2kZ366wHpAKYIlGMF2lR+U68GnfbuxyLShbpujZcRC1HZaVr7UXwI7I3b0y7sGLgCvctA9jo2B/9vEiz9I+Y5+b/Bz9Ey0NUV5udxD4pw80GeQr1GRdkj8OlEulJaTZ5I= Received: from VI1PR04MB1038.eurprd04.prod.outlook.com (10.161.109.144) by VI1PR04MB1024.eurprd04.prod.outlook.com (10.161.109.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1207.27; Thu, 11 Oct 2018 11:00:33 +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.1207.024; Thu, 11 Oct 2018 11:00:32 +0000 From: Yogesh Narayan Gaur To: "linux-mtd@lists.infradead.org" , "boris.brezillon@bootlin.com" , "marek.vasut@gmail.com" , "linux-spi@vger.kernel.org" , "devicetree@vger.kernel.org" Subject: [PATCH v4 1/5] spi: spi-mem: Add driver for NXP FlexSPI controller Thread-Topic: [PATCH v4 1/5] spi: spi-mem: Add driver for NXP FlexSPI controller Thread-Index: AQHUYVGh6fJl8IVLIEK4mOdK2xUinw== Date: Thu, 11 Oct 2018 11:00:32 +0000 Message-ID: <1539255519-1408-2-git-send-email-yogeshnarayan.gaur@nxp.com> References: <1539255519-1408-1-git-send-email-yogeshnarayan.gaur@nxp.com> In-Reply-To: <1539255519-1408-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: SG2PR06CA0173.apcprd06.prod.outlook.com (2603:1096:1:1e::27) 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; VI1PR04MB1024; 6:LSObYoXOAIomO+qhsGF+3XZh6/FFWPc0xCuuuF38MAg7mOFvNpM3Ht7iTT/T4kasjr87x2bfE8F4srZ63S3vcqjpq1AZSMedFryNHzvCxB4tpDBHPFyF70XmhuoAvrFacdM/ouBlfuuMqL6QamybyEpe6UCbOEOnBZwSMhgUXEvQwRIOkQjEjkdJ4gILW/GKtqRCZbLTRtNeBXuWMhLkw018uV869FN+Wz7P4zsh8bOyFK8FZjSN1X63rqUGf0YHwFco896kEpfnX/b32PW7qqv2l8j+ptTExjQEhllOXDgsfJSdW4TkCefJQadTbmhQxLOyJN81BuKBHprT6miRA9rJ2Ybvy1vhdgHwIgc3kr8XQxB1Wo35rEOFhJdG3vyYvTVM4TAPGXrYKqTfLojFxGnv3eFUvHA1LC66UTTcYbSfO3cwh5pQgoDtQnjmkUw55MWIqIP+M/QCIwPH2iqzNrle87Yzy1nebD5prENrbYU=; 5:/ntV3fLGk9KJ8+/X8uVCMZ89w8iPjcSzhanwdxbYygB7NkS6AP5Im1CJ6A2Cv8yDTDAgVUO6QG2Uq+TKbjdlRheHBy6tg6g+QNn1D1T/+D1AoQzgwMEQJegCD0Q2HycR43yRNT7d89lGZjIaoEaXbN/DY2Yo5atfQcNsDXXygD0=; 7:OWjeLYcGePDqDtb+m3tt/Cfwif580JtG2uCodA8w6SK6SzAEpqmnSqlb4XaXRZ94M99aFit1lcah4NQZ3UNwpQe3JeakU/yKAsdqpQfRNPykrGxUdf+2cQb46m1c33Gd1qdtw9zuzO6hMz81liQ5tpZbjBf9bsllyXtTWvIND1n05fxdLjnKdNKJE2XVeTUtWZ2s5olIbtwCKryaGtnVjeBsPN6Pclt2OjDo/svDtQSo9QBRinItmasXPGEBDiF7 x-ms-office365-filtering-correlation-id: 9e97b38e-51e2-401a-3ac0-08d62f68c339 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:VI1PR04MB1024; x-ms-traffictypediagnostic: VI1PR04MB1024: 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)(3002001)(3231355)(944501410)(52105095)(10201501046)(93006095)(93001095)(6055026)(149066)(150057)(6041310)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(201708071742011)(7699051)(76991055); SRVR:VI1PR04MB1024; BCL:0; PCL:0; RULEID:; SRVR:VI1PR04MB1024; x-forefront-prvs: 08220FA8D6 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(39860400002)(396003)(376002)(346002)(366004)(189003)(199004)(478600001)(39060400002)(4326008)(54906003)(66066001)(25786009)(8676002)(2201001)(53946003)(53936002)(68736007)(486006)(476003)(7416002)(16200700003)(6512007)(446003)(7736002)(3846002)(6116002)(86362001)(11346002)(575784001)(305945005)(8936002)(2616005)(81166006)(81156014)(256004)(14444005)(105586002)(106356001)(6436002)(4744004)(186003)(71190400001)(71200400001)(110136005)(2906002)(55236004)(6506007)(386003)(5250100002)(99286004)(2501003)(97736004)(26005)(52116002)(6486002)(316002)(5660300001)(102836004)(36756003)(14454004)(2900100001)(76176011)(559001)(569006); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB1024; 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: BH7DMICWgkReJPiZ2L/2+7BoY2tgkYBgTiY1XwKS29g7b58E52ab5nuEc05y36Hts1CKvogAkE0qB6HqWmP++DDfzntxR3yWuneMWc518sOk+e07wzyacyJ4pkKzJD0zmqsKWmKRJv5G4h17qFOgOLe4gY54kifOXFieVVFfnt77doX7dQMSirH9qIAG1zBE3xdaeoBCIIkSEnPNz5k0mj6A4tFB8nyOtr6knrXcyUm2RIHjAQrY0dEnkkcSTc8PSTc9FFu4abczmWwNsDKlH6QHvRPLcpNvtMl2MfkE4X43rwJ8UA2h8JqIoTXve+37NErwdf6fvXDsQwJ8+0FIOKrtnA8/bxf49BWEA6QKdL4= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9e97b38e-51e2-401a-3ac0-08d62f68c339 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Oct 2018 11:00:32.7915 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB1024 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181011_040054_607813_47DE3C50 X-CRM114-Status: GOOD ( 20.16 ) X-Spam-Score: -0.1 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2a01:111:f400:fe07:0:0:0:601 listed in] [list.dnswl.org] 0.0 T_SPF_PERMERROR SPF: test of record failed (permerror) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list 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-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org - Add driver for NXP FlexSPI host controller (0) What is the FlexSPI controller? FlexSPI is a flexsible SPI host controller which supports two SPI channels and up to 4 external devices. Each channel supports Single/Dual/Quad/Octal mode data transfer (1/2/4/8 bidirectional data lines) i.e. FlexSPI acts as an interface to external devices, maximum 4, each with up to 8 bidirectional data lines. It uses new SPI memory interface of the SPI framework to issue flash memory operations to up to four connected flash devices (2 buses with 2 CS each). (1) Tested this driver with the mtd_debug and JFFS2 filesystem utility on NXP LX2160ARDB and LX2160AQDS targets. LX2160ARDB is having two NOR slave device connected on single bus A i.e. A0 and A1 (CS0 and CS1). LX2160AQDS is having two NOR slave device connected on separate buses one flash on A0 and second on B1 i.e. (CS0 and CS3). Verified this driver on following SPI NOR flashes: Micron, mt35xu512ab, [Read - 1 bit mode] Cypress, s25fl512s, [Read - 1/2/4 bit mode] Signed-off-by: Yogesh Gaur --- Changes for v4: - Incorporate Boris review comments * Use readl_poll_timeout() instead of busy looping. * Re-define register masking as per comment. * Drop fspi_devtype enum. Changes for v3: - Added endianness flag in platform specific structure instead of DTS. - Modified nxp_fspi_read_ahb(), removed remapping code. - Added Boris and Frieder as Author and provided reference of spi-fsl-qspi.c Changes for v2: - Incorporated Boris review comments. - Remove dependency of driver over connected flash device size. - Modified the logic to select requested CS. - Remove SPI-Octal Macros. drivers/spi/Kconfig | 10 + drivers/spi/Makefile | 1 + drivers/spi/spi-nxp-fspi.c | 1158 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 1169 insertions(+) create mode 100644 drivers/spi/spi-nxp-fspi.c diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index ad5d68e..68da874 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -251,6 +251,16 @@ config SPI_FSL_LPSPI help This enables Freescale i.MX LPSPI controllers in master mode. +config SPI_NXP_FLEXSPI + tristate "NXP Flex SPI controller" + depends on ARCH_LAYERSCAPE || HAS_IOMEM + help + This enables support for the Flex SPI controller in master mode. + Up to four slave devices can be connected on two buses with two + chipselects each. + This controller does not support generic SPI messages and only + supports the high-level SPI memory interface. + config SPI_GPIO tristate "GPIO-based bitbanging SPI Master" depends on GPIOLIB || COMPILE_TEST diff --git a/drivers/spi/Makefile b/drivers/spi/Makefile index cb1f437..52c9f18 100644 --- a/drivers/spi/Makefile +++ b/drivers/spi/Makefile @@ -59,6 +59,7 @@ obj-$(CONFIG_SPI_MPC52xx) += spi-mpc52xx.o obj-$(CONFIG_SPI_MT65XX) += spi-mt65xx.o obj-$(CONFIG_SPI_MXS) += spi-mxs.o obj-$(CONFIG_SPI_NUC900) += spi-nuc900.o +obj-$(CONFIG_SPI_NXP_FLEXSPI) += spi-nxp-fspi.o obj-$(CONFIG_SPI_OC_TINY) += spi-oc-tiny.o spi-octeon-objs := spi-cavium.o spi-cavium-octeon.o obj-$(CONFIG_SPI_OCTEON) += spi-octeon.o diff --git a/drivers/spi/spi-nxp-fspi.c b/drivers/spi/spi-nxp-fspi.c new file mode 100644 index 0000000..e5188b2 --- /dev/null +++ b/drivers/spi/spi-nxp-fspi.c @@ -0,0 +1,1158 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/* + * NXP FlexSPI(FSPI) controller driver. + * + * Copyright 2018 NXP. + * + * FlexSPI is a flexsible SPI host controller which supports two SPI + * channels and up to 4 external devices. Each channel supports + * Single/Dual/Quad/Octal mode data transfer (1/2/4/8 bidirectional + * data lines). + * + * FlexSPI controller is driven by the LUT(Look-up Table) registers + * LUT registers are a look-up-table for sequences of instructions. + * A valid sequence consists of four LUT registers. + * Maximum 32 LUT sequences can be programmed simultaneously. + * + * LUTs are being created at run-time based on the commands passed + * from the spi-mem framework, thus using single LUT index. + * + * Software triggered Flash read/write access by IP Bus. + * + * Memory mapped read access by AHB Bus. + * + * Based on SPI MEM interface and spi-fsl-qspi.c driver. + * + * Author: + * Yogesh Gaur + * Boris Brezillion + * Frieder Schrempf + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +/* + * The driver only uses one single LUT entry, that is updated on + * each call of exec_op(). Index 0 is preset at boot with a basic + * read operation, so let's use the last entry (31). + */ +#define SEQID_LUT 31 + +/* Registers used by the driver */ +#define FSPI_MCR0 0x00 +#define FSPI_MCR0_AHB_TIMEOUT(x) ((x) << 24) +#define FSPI_MCR0_IP_TIMEOUT(x) ((x) << 16) +#define FSPI_MCR0_LEARN_EN BIT(15) +#define FSPI_MCR0_SCRFRUN_EN BIT(14) +#define FSPI_MCR0_OCTCOMB_EN BIT(13) +#define FSPI_MCR0_DOZE_EN BIT(12) +#define FSPI_MCR0_HSEN BIT(11) +#define FSPI_MCR0_SERCLKDIV BIT(8) +#define FSPI_MCR0_ATDF_EN BIT(7) +#define FSPI_MCR0_ARDF_EN BIT(6) +#define FSPI_MCR0_RXCLKSRC(x) ((x) << 4) +#define FSPI_MCR0_END_CFG(x) ((x) << 2) +#define FSPI_MCR0_MDIS BIT(1) +#define FSPI_MCR0_SWRST BIT(0) + +#define FSPI_MCR1 0x04 +#define FSPI_MCR1_SEQ_TIMEOUT(x) ((x) << 16) +#define FSPI_MCR1_AHB_TIMEOUT(x) (x) + +#define FSPI_MCR2 0x08 +#define FSPI_MCR2_IDLE_WAIT(x) ((x) << 24) +#define FSPI_MCR2_SAMEDEVICEEN BIT(15) +#define FSPI_MCR2_CLRLRPHS BIT(14) +#define FSPI_MCR2_ABRDATSZ BIT(8) +#define FSPI_MCR2_ABRLEARN BIT(7) +#define FSPI_MCR2_ABR_READ BIT(6) +#define FSPI_MCR2_ABRWRITE BIT(5) +#define FSPI_MCR2_ABRDUMMY BIT(4) +#define FSPI_MCR2_ABR_MODE BIT(3) +#define FSPI_MCR2_ABRCADDR BIT(2) +#define FSPI_MCR2_ABRRADDR BIT(1) +#define FSPI_MCR2_ABR_CMD BIT(0) + +#define FSPI_AHBCR 0x0c +#define FSPI_AHBCR_RDADDROPT BIT(6) +#define FSPI_AHBCR_PREF_EN BIT(5) +#define FSPI_AHBCR_BUFF_EN BIT(4) +#define FSPI_AHBCR_CACH_EN BIT(3) +#define FSPI_AHBCR_CLRTXBUF BIT(2) +#define FSPI_AHBCR_CLRRXBUF BIT(1) +#define FSPI_AHBCR_PAR_EN BIT(0) + +#define FSPI_INTEN 0x10 +#define FSPI_INTEN_SCLKSBWR BIT(9) +#define FSPI_INTEN_SCLKSBRD BIT(8) +#define FSPI_INTEN_DATALRNFL BIT(7) +#define FSPI_INTEN_IPTXWE BIT(6) +#define FSPI_INTEN_IPRXWA BIT(5) +#define FSPI_INTEN_AHBCMDERR BIT(4) +#define FSPI_INTEN_IPCMDERR BIT(3) +#define FSPI_INTEN_AHBCMDGE BIT(2) +#define FSPI_INTEN_IPCMDGE BIT(1) +#define FSPI_INTEN_IPCMDDONE BIT(0) + +#define FSPI_INTR 0x14 +#define FSPI_INTR_SCLKSBWR BIT(9) +#define FSPI_INTR_SCLKSBRD BIT(8) +#define FSPI_INTR_DATALRNFL BIT(7) +#define FSPI_INTR_IPTXWE BIT(6) +#define FSPI_INTR_IPRXWA BIT(5) +#define FSPI_INTR_AHBCMDERR BIT(4) +#define FSPI_INTR_IPCMDERR BIT(3) +#define FSPI_INTR_AHBCMDGE BIT(2) +#define FSPI_INTR_IPCMDGE BIT(1) +#define FSPI_INTR_IPCMDDONE BIT(0) + +#define FSPI_LUTKEY 0x18 +#define FSPI_LUTKEY_VALUE 0x5AF05AF0 + +#define FSPI_LCKCR 0x1C + +#define FSPI_LCKER_LOCK 0x1 +#define FSPI_LCKER_UNLOCK 0x2 + +#define FSPI_BUFXCR_INVALID_MSTRID 0xE +#define FSPI_AHBRX_BUF0CR0 0x20 +#define FSPI_AHBRX_BUF1CR0 0x24 +#define FSPI_AHBRX_BUF2CR0 0x28 +#define FSPI_AHBRX_BUF3CR0 0x2C +#define FSPI_AHBRX_BUF4CR0 0x30 +#define FSPI_AHBRX_BUF5CR0 0x34 +#define FSPI_AHBRX_BUF6CR0 0x38 +#define FSPI_AHBRX_BUF7CR0 0x3C +#define FSPI_AHBRXBUF0CR7_PREF BIT(31) + +#define FSPI_AHBRX_BUF0CR1 0x40 +#define FSPI_AHBRX_BUF1CR1 0x44 +#define FSPI_AHBRX_BUF2CR1 0x48 +#define FSPI_AHBRX_BUF3CR1 0x4C +#define FSPI_AHBRX_BUF4CR1 0x50 +#define FSPI_AHBRX_BUF5CR1 0x54 +#define FSPI_AHBRX_BUF6CR1 0x58 +#define FSPI_AHBRX_BUF7CR1 0x5C + +#define FSPI_FLSHA1CR0 0x60 +#define FSPI_FLSHA2CR0 0x64 +#define FSPI_FLSHB1CR0 0x68 +#define FSPI_FLSHB2CR0 0x6C +#define FSPI_FLSHXCR0_SZ_KB 10 +#define FSPI_FLSHXCR0_SZ(x) ((x) >> FSPI_FLSHXCR0_SZ_KB) + +#define FSPI_FLSHA1CR1 0x70 +#define FSPI_FLSHA2CR1 0x74 +#define FSPI_FLSHB1CR1 0x78 +#define FSPI_FLSHB2CR1 0x7C +#define FSPI_FLSHXCR1_CSINTR(x) ((x) << 16) +#define FSPI_FLSHXCR1_CAS(x) ((x) << 11) +#define FSPI_FLSHXCR1_WA BIT(10) +#define FSPI_FLSHXCR1_TCSH(x) ((x) << 5) +#define FSPI_FLSHXCR1_TCSS(x) (x) + +#define FSPI_FLSHA1CR2 0x80 +#define FSPI_FLSHA2CR2 0x84 +#define FSPI_FLSHB1CR2 0x88 +#define FSPI_FLSHB2CR2 0x8C +#define FSPI_FLSHXCR2_CLRINSP BIT(24) +#define FSPI_FLSHXCR2_AWRWAIT BIT(16) +#define FSPI_FLSHXCR2_AWRSEQN_SHIFT 13 +#define FSPI_FLSHXCR2_AWRSEQI_SHIFT 8 +#define FSPI_FLSHXCR2_ARDSEQN_SHIFT 5 +#define FSPI_FLSHXCR2_ARDSEQI_SHIFT 0 + +#define FSPI_IPCR0 0xA0 + +#define FSPI_IPCR1 0xA4 +#define FSPI_IPCR1_IPAREN BIT(31) +#define FSPI_IPCR1_SEQNUM_SHIFT 24 +#define FSPI_IPCR1_SEQID_SHIFT 16 +#define FSPI_IPCR1_IDATSZ(x) (x) + +#define FSPI_IPCMD 0xB0 +#define FSPI_IPCMD_TRG BIT(0) + +#define FSPI_DLPR 0xB4 + +#define FSPI_IPRXFCR 0xB8 +#define FSPI_IPRXFCR_CLR BIT(0) +#define FSPI_IPRXFCR_DMA_EN BIT(1) +#define FSPI_IPRXFCR_WMRK(x) ((x) << 2) + +#define FSPI_IPTXFCR 0xBC +#define FSPI_IPTXFCR_CLR BIT(0) +#define FSPI_IPTXFCR_DMA_EN BIT(1) +#define FSPI_IPTXFCR_WMRK(x) ((x) << 2) + +#define FSPI_DLLACR 0xC0 +#define FSPI_DLLACR_OVRDEN BIT(8) + +#define FSPI_DLLBCR 0xC4 +#define FSPI_DLLBCR_OVRDEN BIT(8) + +#define FSPI_STS0 0xE0 +#define FSPI_STS0_DLPHB(x) ((x) << 8) +#define FSPI_STS0_DLPHA(x) ((x) << 4) +#define FSPI_STS0_CMD_SRC(x) ((x) << 2) +#define FSPI_STS0_ARB_IDLE BIT(1) +#define FSPI_STS0_SEQ_IDLE BIT(0) + +#define FSPI_STS1 0xE4 +#define FSPI_STS1_IP_ERRCD(x) ((x) << 24) +#define FSPI_STS1_IP_ERRID(x) ((x) << 16) +#define FSPI_STS1_AHB_ERRCD(x) ((x) << 8) +#define FSPI_STS1_AHB_ERRID(x) (x) + +#define FSPI_AHBSPNST 0xEC +#define FSPI_AHBSPNST_DATLFT(x) ((x) << 16) +#define FSPI_AHBSPNST_BUFID(x) ((x) << 1) +#define FSPI_AHBSPNST_ACTIVE BIT(0) + +#define FSPI_IPRXFSTS 0xF0 +#define FSPI_IPRXFSTS_RDCNTR(x) ((x) << 16) +#define FSPI_IPRXFSTS_FILL(x) (x) + +#define FSPI_IPTXFSTS 0xF4 +#define FSPI_IPTXFSTS_WRCNTR(x) ((x) << 16) +#define FSPI_IPTXFSTS_FILL(x) (x) + +#define FSPI_RFDR 0x100 +#define FSPI_TFDR 0x180 + +#define FSPI_LUT_BASE 0x200 +#define FSPI_LUT_OFFSET (SEQID_LUT * 4 * 4) +#define FSPI_LUT_REG(idx) \ + (FSPI_LUT_BASE + FSPI_LUT_OFFSET + (idx) * 4) + +/* register map end */ + +/* Instruction set for the LUT register. */ +#define LUT_STOP 0x00 +#define LUT_CMD 0x01 +#define LUT_ADDR 0x02 +#define LUT_CADDR_SDR 0x03 +#define LUT_MODE 0x04 +#define LUT_MODE2 0x05 +#define LUT_MODE4 0x06 +#define LUT_MODE8 0x07 +#define LUT_NXP_WRITE 0x08 +#define LUT_NXP_READ 0x09 +#define LUT_LEARN_SDR 0x0A +#define LUT_DATSZ_SDR 0x0B +#define LUT_DUMMY 0x0C +#define LUT_DUMMY_RWDS_SDR 0x0D +#define LUT_JMP_ON_CS 0x1F +#define LUT_CMD_DDR 0x21 +#define LUT_ADDR_DDR 0x22 +#define LUT_CADDR_DDR 0x23 +#define LUT_MODE_DDR 0x24 +#define LUT_MODE2_DDR 0x25 +#define LUT_MODE4_DDR 0x26 +#define LUT_MODE8_DDR 0x27 +#define LUT_WRITE_DDR 0x28 +#define LUT_READ_DDR 0x29 +#define LUT_LEARN_DDR 0x2A +#define LUT_DATSZ_DDR 0x2B +#define LUT_DUMMY_DDR 0x2C +#define LUT_DUMMY_RWDS_DDR 0x2D + +/* + * Calculate number of required PAD bits for LUT register. + * + * The pad stands for the number of IO lines [0:7]. + * For example, the octal read needs eight IO lines, + * so you should use LUT_PAD(8). This macro + * returns 3 i.e. use eight (2^3) IP lines for read. + */ +#define LUT_PAD(x) (fls(x) - 1) + +/* + * Macro for constructing the LUT entries with the following + * register layout: + * + * --------------------------------------------------- + * | INSTR1 | PAD1 | OPRND1 | INSTR0 | PAD0 | OPRND0 | + * --------------------------------------------------- + */ +#define PAD_SHIFT 8 +#define INSTR_SHIFT 10 +#define OPRND_SHIFT 16 + +/* Macros for constructing the LUT register. */ +#define LUT_DEF(idx, ins, pad, opr) \ + ((((ins) << INSTR_SHIFT) | ((pad) << PAD_SHIFT) | \ + (opr)) << (((idx) % 2) * OPRND_SHIFT)) + +/* Oprands for the LUT register. */ +#define ADDR8BIT 0x08 +#define ADDR16BIT 0x10 +#define ADDR24BIT 0x18 +#define ADDR32BIT 0x20 + +#define POLL_TOUT_US 5000 + +struct nxp_fspi_devtype_data { + unsigned int rxfifo; + unsigned int txfifo; + unsigned int ahb_buf_size; + unsigned int quirks; + bool little_endian; +}; + +static const struct nxp_fspi_devtype_data lx2160a_data = { + .rxfifo = SZ_512, /* (64 * 64 bits) */ + .txfifo = SZ_1K, /* (128 * 64 bits) */ + .ahb_buf_size = SZ_2K, /* (256 * 64 bits) */ + .quirks = 0, + .little_endian = 1, /* little-endian */ +}; + +#define NXP_FSPI_MAX_CHIPSELECT 4 + +struct nxp_fspi { + void __iomem *iobase; + void __iomem *ahb_addr; + u32 memmap_phy; + u32 memmap_phy_size; + struct clk *clk, *clk_en; + struct device *dev; + struct completion c; + const struct nxp_fspi_devtype_data *devtype_data; + struct mutex lock; + struct pm_qos_request pm_qos_req; + int selected; + void (*write)(u32 val, void __iomem *addr); + u32 (*read)(void __iomem *addr); +}; + +static void fspi_writel_be(u32 val, void __iomem *addr) +{ + iowrite32be(val, addr); +} + +static void fspi_writel(u32 val, void __iomem *addr) +{ + iowrite32(val, addr); +} + +static u32 fspi_readl_be(void __iomem *addr) +{ + return ioread32be(addr); +} + +static u32 fspi_readl(void __iomem *addr) +{ + return ioread32(addr); +} + +static irqreturn_t nxp_fspi_irq_handler(int irq, void *dev_id) +{ + struct nxp_fspi *f = dev_id; + u32 reg; + + /* clear interrupt */ + reg = f->read(f->iobase + FSPI_INTR); + f->write(FSPI_INTR_IPCMDDONE, f->iobase + FSPI_INTR); + + if (reg & FSPI_INTR_IPCMDDONE) + complete(&f->c); + + return IRQ_HANDLED; +} + +static int nxp_fspi_check_buswidth(struct nxp_fspi *f, u8 width) +{ + switch (width) { + case 1: + case 2: + case 4: + case 8: + return 0; + } + + return -ENOTSUPP; +} + +static bool nxp_fspi_supports_op(struct spi_mem *mem, + const struct spi_mem_op *op) +{ + struct nxp_fspi *f = spi_controller_get_devdata(mem->spi->master); + int ret; + + ret = nxp_fspi_check_buswidth(f, op->cmd.buswidth); + + if (op->addr.nbytes) + ret |= nxp_fspi_check_buswidth(f, op->addr.buswidth); + + if (op->dummy.nbytes) + ret |= nxp_fspi_check_buswidth(f, op->dummy.buswidth); + + if (op->data.nbytes) + ret |= nxp_fspi_check_buswidth(f, op->data.buswidth); + + if (ret) + return false; + + /* + * The number of instructions needed for the op, needs + * to fit into a single LUT entry. + */ + if (op->addr.nbytes + + (op->dummy.nbytes ? 1:0) + + (op->data.nbytes ? 1:0) > 6) + return false; + + /* Max 64 dummy clock cycles supported */ + if (op->dummy.buswidth && + (op->dummy.nbytes * 8 / op->dummy.buswidth > 64)) + return false; + + /* Max data length, check controller limits and alignment */ + if (op->data.dir == SPI_MEM_DATA_IN && + (op->data.nbytes > f->devtype_data->ahb_buf_size || + (op->data.nbytes > f->devtype_data->rxfifo - 4 && + !IS_ALIGNED(op->data.nbytes, 8)))) + return false; + + if (op->data.dir == SPI_MEM_DATA_OUT && + op->data.nbytes > f->devtype_data->txfifo) + return false; + + return true; +} + +/* Instead of busy looping invoke readl_poll_timeout functionality. */ +static int fspi_readl_poll_tout(struct nxp_fspi *f, void __iomem *base, u32 reg, + u32 mask, u32 delay_us, u32 timeout_us) +{ + u32 l_mask; + + if (f->devtype_data->little_endian) + l_mask = mask; + else + l_mask = (u32)cpu_to_be32(mask); + + return readl_poll_timeout(base, reg, (reg & l_mask), + delay_us, timeout_us); +} + +/* + * If the slave device content being changed by Write/Erase, need to + * invalidate the AHB buffer. This can be achieved by doing the reset + * of controller after setting MCR0[SWRESET] bit. + */ +static inline void nxp_fspi_invalid(struct nxp_fspi *f) +{ + u32 reg; + int ret; + u32 l_mask; + + reg = f->read(f->iobase + FSPI_MCR0); + f->write(reg | FSPI_MCR0_SWRST, f->iobase + FSPI_MCR0); + + if (f->devtype_data->little_endian) + l_mask = FSPI_MCR0_SWRST; + else + l_mask = (u32)cpu_to_be32(FSPI_MCR0_SWRST); + + /* w1c register, wait unit clear */ + ret = readl_poll_timeout(f->iobase + FSPI_MCR0, reg, + !(reg & l_mask), 0, POLL_TOUT_US); + WARN_ON(ret); +} + +static void nxp_fspi_prepare_lut(struct nxp_fspi *f, + const struct spi_mem_op *op) +{ + void __iomem *base = f->iobase; + u32 lutval[4] = {}; + int lutidx = 1, i; + + /* cmd */ + lutval[0] |= LUT_DEF(0, LUT_CMD, LUT_PAD(op->cmd.buswidth), + op->cmd.opcode); + + /* addr bus width */ + if (op->addr.nbytes) { + u32 addrlen = 0; + + if (op->addr.nbytes == 3) + addrlen = ADDR24BIT; + else if (op->addr.nbytes == 4) + addrlen = ADDR32BIT; + + lutval[lutidx / 2] |= LUT_DEF(lutidx, LUT_ADDR, + LUT_PAD(op->addr.buswidth), + addrlen); + lutidx++; + } + + /* dummy bytes, if needed */ + if (op->dummy.nbytes) { + lutval[lutidx / 2] |= LUT_DEF(lutidx, LUT_DUMMY, + /* + * Due to FlexSPI controller limitation number of PAD for dummy + * buswidth needs to be programmed as equal to data buswidth. + */ + LUT_PAD(op->data.buswidth), + op->dummy.nbytes * 8 / + op->dummy.buswidth); + lutidx++; + } + + /* read/write data bytes */ + if (op->data.nbytes) { + lutval[lutidx / 2] |= LUT_DEF(lutidx, + op->data.dir == SPI_MEM_DATA_IN ? + LUT_NXP_READ : LUT_NXP_WRITE, + LUT_PAD(op->data.buswidth), + 0); + lutidx++; + } + + /* stop condition. */ + lutval[lutidx / 2] |= LUT_DEF(lutidx, LUT_STOP, 0, 0); + + /* unlock LUT */ + f->write(FSPI_LUTKEY_VALUE, f->iobase + FSPI_LUTKEY); + f->write(FSPI_LCKER_UNLOCK, f->iobase + FSPI_LCKCR); + + /* fill LUT */ + for (i = 0; i < ARRAY_SIZE(lutval); i++) + f->write(lutval[i], base + FSPI_LUT_REG(i)); + + dev_dbg(f->dev, "CMD[%x] lutval[0:%x \t 1:%x \t 2:%x \t 3:%x]\n", + op->cmd.opcode, lutval[0], lutval[1], lutval[2], lutval[3]); + + /* lock LUT */ + f->write(FSPI_LUTKEY_VALUE, f->iobase + FSPI_LUTKEY); + f->write(FSPI_LCKER_LOCK, f->iobase + FSPI_LCKCR); +} + +static int nxp_fspi_clk_prep_enable(struct nxp_fspi *f) +{ + int ret; + + ret = clk_prepare_enable(f->clk_en); + if (ret) + return ret; + + ret = clk_prepare_enable(f->clk); + if (ret) { + clk_disable_unprepare(f->clk_en); + return ret; + } + + return 0; +} + +static void nxp_fspi_clk_disable_unprep(struct nxp_fspi *f) +{ + clk_disable_unprepare(f->clk); + clk_disable_unprepare(f->clk_en); +} + +/* + * In FlexSPI controller, flash access is based on value of FSPI_FLSHXXCR0 + * register and start base address of the slave device. + * + * (Higher address) + * -------- <-- FLSHB2CR0 + * | B2 | + * | | + * B2 start address --> -------- <-- FLSHB1CR0 + * | B1 | + * | | + * B1 start address --> -------- <-- FLSHA2CR0 + * | A2 | + * | | + * A2 start address --> -------- <-- FLSHA1CR0 + * | A1 | + * | | + * A1 start address --> -------- (Lower address) + * + * + * Start base address defines the starting address range for given CS and + * FSPI_FLSHXXCR0 defines the size of the slave device connected at given CS. + * + * But, different targets are having different combinations of number of CS, + * some targets only have single CS or two CS covering controller's full + * memory mapped space area. + * Thus, implementation is being done as independent of the size and number + * of the connected slave device. + * Assign controller memory mapped space size as the size to the connected + * slave device. + * Mark FLSHxxCR0 as zero initially and then assign value only to the selected + * chip-select Flash configuration register. + * + * For e.g. to access CS2 (B1), FLSHB1CR0 register would be equal to the + * memory mapped size of the controller. + * Value for rest of the CS FLSHxxCR0 register would be zero. + * + */ +static void nxp_fspi_select_mem(struct nxp_fspi *f, struct spi_device *spi) +{ + unsigned long rate = spi->max_speed_hz; + int ret; + uint64_t size_kb; + + /* + * Return, if previously selected slave device is same as current + * requested slave device. + */ + if (f->selected == spi->chip_select) + return; + + /* Reset FLSHxxCR0 registers */ + f->write(0, f->iobase + FSPI_FLSHA1CR0); + f->write(0, f->iobase + FSPI_FLSHA2CR0); + f->write(0, f->iobase + FSPI_FLSHB1CR0); + f->write(0, f->iobase + FSPI_FLSHB2CR0); + + /* Assign controller memory mapped space as size, KBytes, of flash. */ + size_kb = FSPI_FLSHXCR0_SZ(f->memmap_phy_size); + + switch (spi->chip_select) { + case 0: + f->write(size_kb, f->iobase + FSPI_FLSHA1CR0); + break; + case 1: + f->write(size_kb, f->iobase + FSPI_FLSHA2CR0); + break; + case 2: + f->write(size_kb, f->iobase + FSPI_FLSHB1CR0); + break; + case 3: + f->write(size_kb, f->iobase + FSPI_FLSHB2CR0); + break; + default: + dev_err(f->dev, "In-correct CS provided\n"); + return; + } + + dev_dbg(f->dev, "Slave device [CS:%x] selected\n", spi->chip_select); + + nxp_fspi_clk_disable_unprep(f); + + ret = clk_set_rate(f->clk, rate); + if (ret) + return; + + ret = nxp_fspi_clk_prep_enable(f); + if (ret) + return; + f->selected = spi->chip_select; +} + +static void nxp_fspi_read_ahb(struct nxp_fspi *f, const struct spi_mem_op *op) +{ + u32 len = op->data.nbytes; + + /* Read out the data directly from the AHB buffer. */ + memcpy_fromio(op->data.buf.in, (f->ahb_addr + op->addr.val), len); +} + +static void nxp_fspi_fill_txfifo(struct nxp_fspi *f, + const struct spi_mem_op *op) +{ + void __iomem *base = f->iobase; + int i, j, ret; + int size, tmp_size, wm_size; + u32 data = 0, reg; + u32 *txbuf = (u32 *) op->data.buf.out; + + /* clear the TX FIFO. */ + f->write(FSPI_IPTXFCR_CLR, base + FSPI_IPTXFCR); + + /* Default value of water mark level is 8 bytes. */ + wm_size = 8; + size = op->data.nbytes / wm_size; + for (i = 0; i < size; i++) { + /* Wait for TXFIFO empty */ + ret = fspi_readl_poll_tout(f, f->iobase + FSPI_INTR, reg, + FSPI_INTR_IPTXWE, 0, POLL_TOUT_US); + WARN_ON(ret); + + j = 0; + tmp_size = wm_size; + while (tmp_size > 0) { + data = 0; + memcpy(&data, txbuf, 4); + f->write(data, base + FSPI_TFDR + j * 4); + tmp_size -= 4; + j++; + txbuf += 1; + } + f->write(FSPI_INTR_IPTXWE, base + FSPI_INTR); + } + + size = op->data.nbytes % wm_size; + if (size) { + /* Wait for TXFIFO empty */ + ret = fspi_readl_poll_tout(f, f->iobase + FSPI_INTR, reg, + FSPI_INTR_IPTXWE, 0, POLL_TOUT_US); + WARN_ON(ret); + + j = 0; + tmp_size = 0; + while (size > 0) { + data = 0; + tmp_size = (size < 4) ? size : 4; + memcpy(&data, txbuf, tmp_size); + f->write(data, base + FSPI_TFDR + j * 4); + size -= tmp_size; + j++; + txbuf += 1; + } + f->write(FSPI_INTR_IPTXWE, base + FSPI_INTR); + } +} + +static void nxp_fspi_read_rxfifo(struct nxp_fspi *f, + const struct spi_mem_op *op) +{ + void __iomem *base = f->iobase; + int i, j; + int size, tmp_size, wm_size, ret; + u32 tmp = 0, reg; + u8 *buf = op->data.buf.in; + u32 len = op->data.nbytes; + + /* Default value of water mark level is 8 bytes. */ + wm_size = 8; + + while (len > 0) { + size = len / wm_size; + + for (i = 0; i < size; i++) { + /* Wait for RXFIFO available */ + ret = fspi_readl_poll_tout(f, f->iobase + FSPI_INTR, + reg, FSPI_INTR_IPRXWA, + 0, POLL_TOUT_US); + WARN_ON(ret); + + j = 0; + tmp_size = wm_size; + while (tmp_size > 0) { + tmp = 0; + tmp = f->read(base + FSPI_RFDR + j * 4); + memcpy(buf, &tmp, 4); + tmp_size -= 4; + j++; + buf += 4; + } + /* move the FIFO pointer */ + f->write(FSPI_INTR_IPRXWA, base + FSPI_INTR); + len -= wm_size; + } + + size = len % wm_size; + + j = 0; + if (size) { + /* Wait for RXFIFO available */ + ret = fspi_readl_poll_tout(f, f->iobase + FSPI_INTR, + reg, FSPI_INTR_IPRXWA, + 0, POLL_TOUT_US); + WARN_ON(ret); + + while (len > 0) { + tmp = 0; + size = (len < 4) ? len : 4; + tmp = f->read(base + FSPI_RFDR + j * 4); + memcpy(buf, &tmp, size); + len -= size; + j++; + buf += size; + } + } + + /* invalid the RXFIFO */ + f->write(FSPI_IPRXFCR_CLR, base + FSPI_IPRXFCR); + /* move the FIFO pointer */ + f->write(FSPI_INTR_IPRXWA, base + FSPI_INTR); + } +} + +static int nxp_fspi_do_op(struct nxp_fspi *f, const struct spi_mem_op *op) +{ + void __iomem *base = f->iobase; + int seqnum = 0; + int err = 0; + u32 reg; + + reg = f->read(base + FSPI_IPRXFCR); + /* invalid RXFIFO first */ + reg &= ~FSPI_IPRXFCR_DMA_EN; + reg = reg | FSPI_IPRXFCR_CLR; + f->write(reg, base + FSPI_IPRXFCR); + + init_completion(&f->c); + + f->write(op->addr.val, base + FSPI_IPCR0); + /* + * Always start the sequence at the same index since we update + * the LUT at each exec_op() call. And also specify the DATA + * length, since it's has not been specified in the LUT. + */ + f->write(op->data.nbytes | + (SEQID_LUT << FSPI_IPCR1_SEQID_SHIFT) | + (seqnum << FSPI_IPCR1_SEQNUM_SHIFT), + base + FSPI_IPCR1); + + /* Trigger the LUT now. */ + f->write(FSPI_IPCMD_TRG, base + FSPI_IPCMD); + + /* Wait for the interrupt. */ + if (!wait_for_completion_timeout(&f->c, msecs_to_jiffies(1000))) + err = -ETIMEDOUT; + + /* Invoke IP data read, if request is of data read. */ + if (!err && op->data.nbytes && op->data.dir == SPI_MEM_DATA_IN) + nxp_fspi_read_rxfifo(f, op); + + return err; +} + +static int nxp_fspi_exec_op(struct spi_mem *mem, const struct spi_mem_op *op) +{ + struct nxp_fspi *f = spi_controller_get_devdata(mem->spi->master); + void __iomem *base = f->iobase; + int err = 0; + u32 status; + + mutex_lock(&f->lock); + + /* Wait for controller being ready. */ + status = f->read(base + FSPI_STS0); + err = fspi_readl_poll_tout(f, f->iobase + FSPI_STS0, status, + FSPI_STS0_ARB_IDLE, 1, POLL_TOUT_US); + WARN_ON(err); + + nxp_fspi_select_mem(f, mem->spi); + + nxp_fspi_prepare_lut(f, op); + /* + * If we have large chunks of data, we read them through the AHB bus + * by accessing the mapped memory. In all other cases we use + * IP commands to access the flash. + */ + if (op->data.nbytes > (f->devtype_data->rxfifo - 4) && + op->data.dir == SPI_MEM_DATA_IN) { + nxp_fspi_read_ahb(f, op); + } else { + if (op->data.nbytes && op->data.dir == SPI_MEM_DATA_OUT) + nxp_fspi_fill_txfifo(f, op); + + err = nxp_fspi_do_op(f, op); + + /* Invalidate the data in the AHB buffer. */ + if (op->data.nbytes && op->data.dir == SPI_MEM_DATA_OUT) + nxp_fspi_invalid(f); + } + + mutex_unlock(&f->lock); + + return err; +} + +static int nxp_fspi_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) +{ + struct nxp_fspi *f = spi_controller_get_devdata(mem->spi->master); + + if (op->data.dir == SPI_MEM_DATA_OUT) { + if (op->data.nbytes > f->devtype_data->txfifo) + op->data.nbytes = f->devtype_data->txfifo; + } else { + if (op->data.nbytes > f->devtype_data->ahb_buf_size) + op->data.nbytes = f->devtype_data->ahb_buf_size; + else if (op->data.nbytes > (f->devtype_data->rxfifo - 4)) + op->data.nbytes = ALIGN_DOWN(op->data.nbytes, 8); + } + + return 0; +} + +static int nxp_fspi_default_setup(struct nxp_fspi *f) +{ + void __iomem *base = f->iobase; + int ret, i; + u32 reg, l_mask; + + /* disable and unprepare clock to avoid glitch pass to controller */ + nxp_fspi_clk_disable_unprep(f); + + /* the default frequency, we will change it later if necessary. */ + ret = clk_set_rate(f->clk, 20000000); + if (ret) + return ret; + + ret = nxp_fspi_clk_prep_enable(f); + if (ret) + return ret; + + /* Reset the module */ + f->write(FSPI_MCR0_SWRST, base + FSPI_MCR0); + + if (f->devtype_data->little_endian) + l_mask = FSPI_MCR0_SWRST; + else + l_mask = (u32)cpu_to_be32(FSPI_MCR0_SWRST); + + /* w1c register, wait unit clear */ + ret = readl_poll_timeout(f->iobase + FSPI_MCR0, reg, + !(reg & l_mask), 0, POLL_TOUT_US); + WARN_ON(ret); + + /* Disable the module */ + f->write(FSPI_MCR0_MDIS, base + FSPI_MCR0); + + /* Reset the DLL register to default value */ + f->write(FSPI_DLLACR_OVRDEN, base + FSPI_DLLACR); + f->write(FSPI_DLLBCR_OVRDEN, base + FSPI_DLLBCR); + + /* enable module */ + f->write(FSPI_MCR0_AHB_TIMEOUT(0xFF) | FSPI_MCR0_IP_TIMEOUT(0xFF), + base + FSPI_MCR0); + + /* + * Disable same device enable bit and configure all slave devices + * independently. + */ + reg = f->read(f->iobase + FSPI_MCR2); + reg = reg & ~(FSPI_MCR2_SAMEDEVICEEN); + f->write(reg, base + FSPI_MCR2); + + /* AHB configuration for access buffer 0~7. */ + for (i = 0; i < 7; i++) + f->write(0, base + FSPI_AHBRX_BUF0CR0 + 4 * i); + + /* + * Set ADATSZ with the maximum AHB buffer size to improve the read + * performance. + */ + f->write((f->devtype_data->ahb_buf_size / 8 | + FSPI_AHBRXBUF0CR7_PREF), base + FSPI_AHBRX_BUF7CR0); + + /* prefetch and no start address alignment limitation */ + f->write(FSPI_AHBCR_PREF_EN | FSPI_AHBCR_RDADDROPT, + base + FSPI_AHBCR); + + /* AHB Read - Set lut sequence ID for all CS. */ + f->write(SEQID_LUT, base + FSPI_FLSHA1CR2); + f->write(SEQID_LUT, base + FSPI_FLSHA2CR2); + f->write(SEQID_LUT, base + FSPI_FLSHB1CR2); + f->write(SEQID_LUT, base + FSPI_FLSHB2CR2); + + f->selected = -1; + + /* enable the interrupt */ + f->write(FSPI_INTEN_IPCMDDONE, base + FSPI_INTEN); + + return 0; +} + +static const struct spi_controller_mem_ops nxp_fspi_mem_ops = { + .adjust_op_size = nxp_fspi_adjust_op_size, + .supports_op = nxp_fspi_supports_op, + .exec_op = nxp_fspi_exec_op, +}; + +static int nxp_fspi_probe(struct platform_device *pdev) +{ + struct spi_controller *ctlr; + struct device *dev = &pdev->dev; + struct device_node *np = dev->of_node; + struct resource *res; + struct nxp_fspi *f; + int ret; + + ctlr = spi_alloc_master(&pdev->dev, sizeof(*f)); + if (!ctlr) + return -ENOMEM; + + ctlr->mode_bits = SPI_RX_DUAL | SPI_RX_QUAD | + SPI_TX_DUAL | SPI_TX_QUAD; + + f = spi_controller_get_devdata(ctlr); + f->dev = dev; + f->devtype_data = of_device_get_match_data(dev); + if (!f->devtype_data) { + ret = -ENODEV; + goto err_put_ctrl; + } + + platform_set_drvdata(pdev, f); + + /* find the resources - configuration register address space */ + res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "fspi_base"); + f->iobase = devm_ioremap_resource(dev, res); + if (IS_ERR(f->iobase)) { + ret = PTR_ERR(f->iobase); + goto err_put_ctrl; + } + + /* find the resources - controller memory mapped space */ + res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "fspi_mmap"); + f->ahb_addr = devm_ioremap_resource(dev, res); + if (IS_ERR(f->ahb_addr)) { + ret = PTR_ERR(f->ahb_addr); + goto err_put_ctrl; + } + + /* assign memory mapped starting address and mapped size. */ + f->memmap_phy = res->start; + f->memmap_phy_size = resource_size(res); + + /* find the clocks */ + f->clk_en = devm_clk_get(dev, "fspi_en"); + if (IS_ERR(f->clk_en)) { + ret = PTR_ERR(f->clk_en); + goto err_put_ctrl; + } + + f->clk = devm_clk_get(dev, "fspi"); + if (IS_ERR(f->clk)) { + ret = PTR_ERR(f->clk); + goto err_put_ctrl; + } + + /* + * R/W functions for big- or little-endian registers: + * The FSPI controller's endianness is independent of + * the CPU core's endianness. So far, although the CPU + * core is little-endian the FSPI controller can use + * big-endian or little-endian. + */ + if (f->devtype_data->little_endian) { + f->write = fspi_writel; + f->read = fspi_readl; + } else { + f->write = fspi_writel_be; + f->read = fspi_readl_be; + } + + ret = nxp_fspi_clk_prep_enable(f); + if (ret) { + dev_err(dev, "can not enable the clock\n"); + goto err_put_ctrl; + } + + /* find the irq */ + ret = platform_get_irq(pdev, 0); + if (ret < 0) { + dev_err(dev, "failed to get the irq: %d\n", ret); + goto err_disable_clk; + } + + ret = devm_request_irq(dev, ret, + nxp_fspi_irq_handler, 0, pdev->name, f); + if (ret) { + dev_err(dev, "failed to request irq: %d\n", ret); + goto err_disable_clk; + } + + mutex_init(&f->lock); + + ctlr->bus_num = -1; + ctlr->num_chipselect = NXP_FSPI_MAX_CHIPSELECT; + ctlr->mem_ops = &nxp_fspi_mem_ops; + + nxp_fspi_default_setup(f); + + ctlr->dev.of_node = np; + + ret = spi_register_controller(ctlr); + if (ret) + goto err_destroy_mutex; + + return 0; + +err_destroy_mutex: + mutex_destroy(&f->lock); + +err_disable_clk: + nxp_fspi_clk_disable_unprep(f); + +err_put_ctrl: + spi_controller_put(ctlr); + + dev_err(dev, "NXP FSPI probe failed\n"); + return ret; +} + +static int nxp_fspi_remove(struct platform_device *pdev) +{ + struct nxp_fspi *f = platform_get_drvdata(pdev); + + /* disable the hardware */ + f->write(FSPI_MCR0_MDIS, f->iobase + FSPI_MCR0); + + nxp_fspi_clk_disable_unprep(f); + + mutex_destroy(&f->lock); + + return 0; +} + +static int nxp_fspi_suspend(struct device *dev) +{ + return 0; +} + +static int nxp_fspi_resume(struct device *dev) +{ + struct nxp_fspi *f = dev_get_drvdata(dev); + + nxp_fspi_default_setup(f); + + return 0; +} + +static const struct of_device_id nxp_fspi_dt_ids[] = { + { .compatible = "nxp,lx2160a-fspi", .data = (void *)&lx2160a_data, }, + { /* sentinel */ } +}; +MODULE_DEVICE_TABLE(of, nxp_fspi_dt_ids); + +static const struct dev_pm_ops nxp_fspi_pm_ops = { + .suspend = nxp_fspi_suspend, + .resume = nxp_fspi_resume, +}; + +static struct platform_driver nxp_fspi_driver = { + .driver = { + .name = "nxp-fspi", + .of_match_table = nxp_fspi_dt_ids, + .pm = &nxp_fspi_pm_ops, + }, + .probe = nxp_fspi_probe, + .remove = nxp_fspi_remove, +}; +module_platform_driver(nxp_fspi_driver); + +MODULE_DESCRIPTION("NXP FSPI Controller Driver"); +MODULE_AUTHOR("NXP Semiconductor"); +MODULE_LICENSE("GPL v2"); From patchwork Thu Oct 11 11:00: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: 982408 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="sw711sTz"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="a1YJV0Pz"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="ZrFLJMja"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42W7kw0Ypbz9sj2 for ; Thu, 11 Oct 2018 22:18:48 +1100 (AEDT) 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=neauquL63uiIfar3EYA9OmstasPK+ofgQKuxXUaohMw=; b=sw711sTzXbJbYD R4Oye2Nhj7ikwq/HuOq5DTg3QpMKrLB7IAy2Dz1Cog4bEJMS4DUk9szWwC+cT46L81JSbB695BzGE HPhNLeTLGp02B6jwkXMpqcPl/sHVQdyfuPz7VcLLkDagpiQatWbgaSthEkEl798EWTL66HUMNYQ06 XKRVeEj66UQtwz2qM6VIecOfJrjZjdU4EpaXXF5rmCjKbbRzcsYMXwAQNM2O8go2eL3v5CbldvCmu R8ufnO7ucZNevuOkeTtLsRnh/Be8dp0R4+cc7BT7Vjlzs2b3yE0umvnXON/5iupZ1LOO2eORjBG8f 1WsKE9gBhwvOlFsPqU8A==; 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 1gAYzD-0002Bo-SY; Thu, 11 Oct 2018 11:18:36 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gAYxP-0001GD-U6; Thu, 11 Oct 2018 11:16:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=MIME-Version:Content-Transfer-Encoding: Content-Type:In-Reply-To:References:Message-ID:Date:Subject:CC:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=eXzbUqqJFXwwoBz1f4lXn1eR5ymgFpx4P9uWX4cx40E=; b=a1YJV0Pz7ORnFbGANkAiW7YfEA zLBRDB6DI9eCgHdq8YeODt/NnikQykNFZHZ6gLncJoeZnAgCn9WEnQVBzklN5m3a6DlnleL6XWcpD 412KOO0OLxeaERaQQthGUx2/xfDAPHnT7hSEg+IItL7v+iesRpuPQQd9Xto9JHqz5of7onnlK+BpO 1xv6AyD8AbP0No3BF0tm/drDhUVi6WPBAjIA25ZW8rnk0Yn4U54G0yh85xr+Jq3f1ksdhxpUYOY0N ebexqIcIgYXnIr6gjxPsVesjDdsWxSipcT3fe00d7av/4CGvHmZX5lbeVWhyHVgqL8iBPUUuW3T6Y kzVUFGXQ==; Received: from mail-db5eur01on0047.outbound.protection.outlook.com ([104.47.2.47] helo=EUR01-DB5-obe.outbound.protection.outlook.com) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gAYin-0004kk-9y; Thu, 11 Oct 2018 11:01:39 +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=eXzbUqqJFXwwoBz1f4lXn1eR5ymgFpx4P9uWX4cx40E=; b=ZrFLJMjaeMIFMtW+xzZT2wG9E7+1oZyKwbdJGTCMB+RMJBkuiX9sXlAanup/XWZVu+Sj4S4iZ3vTSyfctlBOS8R/A52Qx1jHlN0iqW0ZZDimU2WYpRMlnr+QY2Z39kvEk8u252QsmMdH2k/WuQ1gZfYbXBa28ErEgk5VSJXc9I8= Received: from VI1PR04MB1038.eurprd04.prod.outlook.com (10.161.109.144) by VI1PR04MB1024.eurprd04.prod.outlook.com (10.161.109.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1207.27; Thu, 11 Oct 2018 11:00:38 +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.1207.024; Thu, 11 Oct 2018 11:00:38 +0000 From: Yogesh Narayan Gaur To: "linux-mtd@lists.infradead.org" , "boris.brezillon@bootlin.com" , "marek.vasut@gmail.com" , "linux-spi@vger.kernel.org" , "devicetree@vger.kernel.org" Subject: [PATCH v4 2/5] dt-bindings: spi: add binding file for NXP FlexSPI controller Thread-Topic: [PATCH v4 2/5] dt-bindings: spi: add binding file for NXP FlexSPI controller Thread-Index: AQHUYVGkf7E2fRauEUGzrcMJU3QQsg== Date: Thu, 11 Oct 2018 11:00:38 +0000 Message-ID: <1539255519-1408-3-git-send-email-yogeshnarayan.gaur@nxp.com> References: <1539255519-1408-1-git-send-email-yogeshnarayan.gaur@nxp.com> In-Reply-To: <1539255519-1408-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: SG2PR06CA0173.apcprd06.prod.outlook.com (2603:1096:1:1e::27) 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; VI1PR04MB1024; 6:8NPTJKabqhkYfu6Xy5j4RS1+w6I3B/DJH9GT+vmOciZBqStpVowVKkCeKDtzk9vMXO/5mnYeTYFc/6k1syy8Oj4IqMFYTx56mU1UjJtGAjunU4zTKp61K6OZpVa9yffE2cdHXV8t7BZ7AELcciA6iH0H+JlRZ5Fo9131iGSDqK+Z/n2w9EAcxrOhXBPzCCn7ewRj0/MgpYBzRgukiBE8sRk7eHc0A4O/ZIoogRFBcx61h4Uh3q7FxvopXqBz3ZsIzpt83eiSqL6PP4dFr47/qZj6h3dzilyhsDsZClSbtsWQjDjh0vePd89oJrbtloWHIqRF7rITWwVasERYxWQRBS7+TBY0Fx2IfX0lEJdZTCjFglrouBbtFa4VCrMOuy+7Bns756wxRhaXjZh9ARxhRL/uW1vl8oNZTKG3y/iZIMAgODIwSMW42ubqkmYfljRZaiX1hdga0ayJKPXl1QlYLg==; 5:LWHXxq8KW2K6stmIuD4xPDcuZWpyBWdqxlcjfUCtbNHOzzbyMJNb08MDhn63k3IN2dhf09/+BTLyfiQ387RxkJNOQxLebNm8AzXvcq4tXneMZGVWKUVQTHR7teYNjGf7Ims7S6/fsnzp6ZgRek0x2uSGF+64Js/+9qKkI27MQ9k=; 7:5UVQpsaJ8RbYMWGuHn9P5qKovuDBycRhFlCSyXIJq5exZ6dc2PIajZNy6vNA9QeHaJvDLqWUtairaoxJQT1ILLk34rUCqeLNnuzjQ4i4k0AAb7E99n8Tt6WH09gHetTbojii2DwkvxNW8SqlfGnrb4054SjNQXd0lDYGDqMHVQ2B0oswMqF01EvItH7F3IoO35GBH3+daM1JxI7HpQT20t17EsFh8ol0lBEj/w9KdcmzovV2PJEAcaZ8s0rsPPF+ x-ms-office365-filtering-correlation-id: fbf969cf-3a8d-4cb0-76c1-08d62f68c6be 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:VI1PR04MB1024; x-ms-traffictypediagnostic: VI1PR04MB1024: 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)(3002001)(3231355)(944501410)(52105095)(10201501046)(93006095)(93001095)(6055026)(149066)(150057)(6041310)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(201708071742011)(7699051)(76991055); SRVR:VI1PR04MB1024; BCL:0; PCL:0; RULEID:; SRVR:VI1PR04MB1024; x-forefront-prvs: 08220FA8D6 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(39860400002)(396003)(376002)(346002)(366004)(189003)(199004)(478600001)(39060400002)(4326008)(54906003)(66066001)(25786009)(8676002)(2201001)(53936002)(68736007)(486006)(476003)(7416002)(6512007)(446003)(7736002)(3846002)(6116002)(86362001)(11346002)(305945005)(8936002)(2616005)(81166006)(81156014)(256004)(105586002)(106356001)(6436002)(186003)(71190400001)(71200400001)(110136005)(2906002)(55236004)(6506007)(386003)(5250100002)(99286004)(2501003)(97736004)(26005)(52116002)(6486002)(316002)(5660300001)(102836004)(36756003)(14454004)(2900100001)(76176011); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB1024; 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: 10Y+cE/tDIQClapVTNuynYAvm0ynD9V4OO/YJbCMSdVP5KxXBpjYIVrvrECxPnkhSZcrhFzjEf1XAu4l1mmieWFyFLOUykRl0Vx+bNWMEBfwl/GeoWPX+s2GxY+C04gji/ttSEmhp1KiyjrQJmDhaDuUycLp7GkWirb+ga9HAcUlGtd0ULpPIKxbkbBe48V1NJn4GdJhUCxMfvMHsPUGlvTxaU+SHmKgqLhkDf+ULC8rB66VPj7LuR3VEuvzQ3U6cRLma8qP/96JbAY8hTcq7NCehOaSLBxu8bzPZd81au7MOM3dGaJUJ8K+PgK/BxBxMKIomFPbJema1p9DbABTOihMIKEzGy53pA2T4JC9cWk= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: fbf969cf-3a8d-4cb0-76c1-08d62f68c6be X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Oct 2018 11:00:38.5104 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB1024 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181011_120137_355422_D2F90AFF X-CRM114-Status: GOOD ( 17.98 ) X-Spam-Score: -0.1 (/) X-Spam-Report: SpamAssassin version 3.4.1 on casper.infradead.org summary: Content analysis details: (-0.1 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [104.47.2.47 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list 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-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Add binding file for NXP FlexSPI controller Signed-off-by: Yogesh Gaur Reviewed-by: Rob Herring --- Changes for v4: - Incorporated Rob review comments. Changes for v3: - Removed node property 'big-endian'. Changes for v2: - Incorporated Rob review comments. .../devicetree/bindings/spi/spi-nxp-fspi.txt | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-nxp-fspi.txt diff --git a/Documentation/devicetree/bindings/spi/spi-nxp-fspi.txt b/Documentation/devicetree/bindings/spi/spi-nxp-fspi.txt new file mode 100644 index 0000000..2cd67eb --- /dev/null +++ b/Documentation/devicetree/bindings/spi/spi-nxp-fspi.txt @@ -0,0 +1,39 @@ +* NXP Flex Serial Peripheral Interface (FSPI) + +Required properties: + - compatible : Should be "nxp,lx2160a-fspi" + - reg : First contains the register location and length, + Second contains the memory mapping address and length + - reg-names : Should contain the resource reg names: + - fspi_base: configuration register address space + - fspi_mmap: memory mapped address space + - interrupts : Should contain the interrupt for the device + +Required SPI slave node properties: + - reg : There are two buses (A and B) with two chip selects each. + This encodes to which bus and CS the flash is connected: + - <0>: Bus A, CS 0 + - <1>: Bus A, CS 1 + - <2>: Bus B, CS 0 + - <3>: Bus B, CS 1 + +Example showing the usage of two SPI NOR slave devices on bus A: + +fspi0: spi@20c0000 { + compatible = "nxp,lx2160a-fspi"; + reg = <0x0 0x20c0000 0x0 0x10000>, <0x0 0x20000000 0x0 0x10000000>; + reg-names = "fspi_base", "fspi_mmap"; + interrupts = <0 25 0x4>; /* Level high type */ + clocks = <&clockgen 4 3>, <&clockgen 4 3>; + clock-names = "fspi_en", "fspi"; + + mt35xu512aba0: flash@0 { + reg = <0>; + .... + }; + + mt35xu512aba1: flash@1 { + reg = <1>; + .... + }; +}; From patchwork Thu Oct 11 11:00:44 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: 982405 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="dO50wqv8"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="gk7J48Js"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="lB50OHLp"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42W7ht03Jxz9sC2 for ; Thu, 11 Oct 2018 22:17:02 +1100 (AEDT) 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=A/n07PTkTl8YUKzgNINrtEcbFqxSS/sdYEvEHYo+y+Y=; b=dO50wqv8TL2WO+ s1mkMQIzO7+ly1qNlAT4JNBOz2lemjvjYL2MlWwX5q1zvJmzCG1/7mUxVy0Y6BvdoT3JgYE3fAO96 JaxRIuo5zQFY35OsSDk5g1/I2hEM9c19uMsIQqW+74Tt3Ml/bF9kBYwLOjdTp1C4zRhe4G3/MTTOT UAyR7TnBsOsbM8UPX0ROa3Ak+tUa8F4j2IAsssV7/70KyEealILB1NDdN87Wd2LybV4OSi9DlN5Mf /t64h9AWkKLG2jtt3m41JUK13bpXaM01XtTq/vHSKh6KhH+aE4ltBNJ+mTc6p4MP+e8o117RScvC8 3xtO+sF4uZZhz8gByVIQ==; 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 1gAYxU-0001RW-DS; Thu, 11 Oct 2018 11:16:48 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gAYxP-0001Ms-Md; Thu, 11 Oct 2018 11:16:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=MIME-Version:Content-Transfer-Encoding: Content-Type:In-Reply-To:References:Message-ID:Date:Subject:CC:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Kw+v/Y7Y9Mt711JjeLGRjrDd301DFP37N+cxtKVJYL4=; b=gk7J48JsnLpUSMwmP0+9+vpISA OZkU6TIdvhLHvKkaNVyWElXOgTYvZKL1OLPzS1RW//+9+3U1IL1EVBF2FRrFrPxnSuSfs5HdJ9IVm z6Uoef9VO5qSQR7FDy3JN0H4lN8SJchh86k5fZ2LaRsiC71kZmxfuAmVEffsF5KorSAf3ycQk3GMV 9v+CR9s28jgQxBlNNQwYg+ZDNGcSJP9NAJ8/Rjp27nK/PkyFSgVWs8SgpRLwA8kycEQiAPOV8PGSH S5maMqo9vh/Lm72I+C+1crEb93q+CaspbsIHjQT5n9IdqJJ2L+3flQTGJlBufgmZkTO6zjlJVdaPp E0oMTUbA==; Received: from mail-db5eur01on0047.outbound.protection.outlook.com ([104.47.2.47] helo=EUR01-DB5-obe.outbound.protection.outlook.com) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gAYip-0004kk-WB; Thu, 11 Oct 2018 11:01:42 +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=Kw+v/Y7Y9Mt711JjeLGRjrDd301DFP37N+cxtKVJYL4=; b=lB50OHLpB0Ac0N0gDGyLqOsDUPSjDCDaIhP26h/WKQo99f9GXE0tdrEFiurx8gONib0IVWOzxnlfmTvZMpt8y8l2wmm3qFYTEbYVOwL2WKjpFVq6GXZTYRlK9Lxa0x19EndIknDaKRvax2zFycu30GMVnG8TITa+rETKQ1oAwVQ= Received: from VI1PR04MB1038.eurprd04.prod.outlook.com (10.161.109.144) by VI1PR04MB1024.eurprd04.prod.outlook.com (10.161.109.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1207.27; Thu, 11 Oct 2018 11:00:44 +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.1207.024; Thu, 11 Oct 2018 11:00:44 +0000 From: Yogesh Narayan Gaur To: "linux-mtd@lists.infradead.org" , "boris.brezillon@bootlin.com" , "marek.vasut@gmail.com" , "linux-spi@vger.kernel.org" , "devicetree@vger.kernel.org" Subject: [PATCH v4 3/5] arm64: dts: lx2160a: add FlexSPI node property Thread-Topic: [PATCH v4 3/5] arm64: dts: lx2160a: add FlexSPI node property Thread-Index: AQHUYVGn2ipI8GyGGkKr5zFwXCG6bg== Date: Thu, 11 Oct 2018 11:00:44 +0000 Message-ID: <1539255519-1408-4-git-send-email-yogeshnarayan.gaur@nxp.com> References: <1539255519-1408-1-git-send-email-yogeshnarayan.gaur@nxp.com> In-Reply-To: <1539255519-1408-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: SG2PR06CA0173.apcprd06.prod.outlook.com (2603:1096:1:1e::27) 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; VI1PR04MB1024; 6:gR2Jpeb2nsMeddnXqwNAZh0ldvmnAskLSdgKUApq+Ay55MVbdbOJcPJ7NV5FVdrE0e/BQ1jvplhWyIYJ5KPfKV2GQjqxMgZw6A2cHOUbmn3EfSnLJuXIzjIhjkmCTIULL3D6z0Ou2IjXrurgMoki85D7pVRZPJ9oXJmwLRQxAPu1cYmcP4L1y3P1mMmKak6bvewbU1zHP1d807ipXV8ZJGQhHU4Svk2XNi7+T7Q5RyB4VCZMl2aLdFUaVycstTIH3ldeMacIgNbMg0GbLocmclMNfagGF1fDuq0BSW6EuHna697TZJeZbzG6nG44yHQxD+2IiVcyP+AMKaRGY3g6JfPbNtHAjRx+qfcu4lzqSCVZDr8a68LBoUJJrzyDPV8B3LmGZvzuoyk0+FM44KRfQmTAuRb6pUn/KCWKXKvPSu//mbt9ZTjtasdg2kaoZrg/Msovq/LdGYI1nOSllr9QN8GUT0KTcSsrywM5YLzXo7A=; 5:54mU22AyHk/qRb5wwc9wFRNEWFL34HrFQ1r+McJIFFftXKgW1YsWatnxKI/SLS9Zx6wQogp3S0Egw4gkewdDpQcGD0jjm/slEvCQl7+AMPxv53Z5OB2siMzOduX+wnNHZ77TTToghzzi+QN3kYqzdY9ZB+RSLHHMt2EmZmPArq4=; 7:8MS6lJ1V8YSLIw4qVKEgP4hZNZ8exfMC/xgrpE2WQNiaRfAvWFPMcuuwPStPiV0wxAV+Nbl/XkQ8v/B6Tgrj0wbOzB8tFs5iuuimcDmbqNSwhjZ+xwFe6JHDQTjNAJ6Qr1+FML0MmmpjOgbyFZxC9dpL1YJT7gfCAM05ObmOH9OF7INdJhaTq1B9UJE0JYCjwEqCm1cMmLdZSmq42dZuXb6a9hiJog0fewLMzXm55aAUdBW1rvrvSRXTvQ2CrukX x-ms-office365-filtering-correlation-id: e03a3e4f-4c17-4e48-9ff2-08d62f68ca30 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:VI1PR04MB1024; x-ms-traffictypediagnostic: VI1PR04MB1024: 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)(3002001)(3231355)(944501410)(52105095)(10201501046)(93006095)(93001095)(6055026)(149066)(150057)(6041310)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(201708071742011)(7699051)(76991055); SRVR:VI1PR04MB1024; BCL:0; PCL:0; RULEID:; SRVR:VI1PR04MB1024; x-forefront-prvs: 08220FA8D6 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(39860400002)(396003)(376002)(346002)(366004)(189003)(199004)(478600001)(39060400002)(4326008)(54906003)(66066001)(25786009)(8676002)(2201001)(53936002)(68736007)(486006)(476003)(7416002)(6512007)(446003)(7736002)(3846002)(6116002)(86362001)(11346002)(305945005)(8936002)(2616005)(81166006)(81156014)(256004)(14444005)(105586002)(106356001)(6436002)(186003)(71190400001)(71200400001)(110136005)(2906002)(55236004)(6506007)(386003)(5250100002)(99286004)(2501003)(97736004)(26005)(52116002)(6486002)(316002)(5660300001)(102836004)(36756003)(14454004)(2900100001)(76176011); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB1024; 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: nRjOK/DBntRXTmbVXAvUjSB6Jd3jfi75vYpWTR2OSjMyuU8gHMijzw9+uiSuuYm6MuI98SKNqqfytYRruwuQw9YsOe2ZJK6PtLmXb8Wcjv6fdOhceroMkogsizt6ixW8mXnOZmMBmAVAS2MaR3yz/GNxoZK8YTyVib/XN836JdBO1ExRzDE2b8IrH9oTKprjAQmJwkOIbDlH15Z/uzbq7Qs+4N6ib7++qweiU/8MZ7+DGr7tkBgoC7KzCyVg/4gWgP4JjEoH/w1MY7mUlTKBlnZ2IZfMS7YyWtjBA+mV+UtoJ08s8Z4oVoqy8z3bNCf11ehklo5Zn+T2Mx0Tlz5NFgKfWRMpdd0OwZ7UY2aISn0= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e03a3e4f-4c17-4e48-9ff2-08d62f68ca30 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Oct 2018 11:00:44.1042 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB1024 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181011_120140_040487_33D84060 X-CRM114-Status: GOOD ( 14.28 ) X-Spam-Score: -0.1 (/) X-Spam-Report: SpamAssassin version 3.4.1 on casper.infradead.org summary: Content analysis details: (-0.1 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [104.47.2.47 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list 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-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Add fspi node property for LX2160A SoC for FlexSPI driver. Property added for the FlexSPI controller and for the connected slave device for the LX2160ARDB target. This is having two SPI-NOR flash device, mt35xu512aba, connected at CS0 and CS1. Signed-off-by: Yogesh Gaur --- Changes for v4: - Incorporated Rob review comments. Changes for v3: - None. Changes for v2: - - Incorporated Shawn review comments. arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts | 22 ++++++++++++++++++++++ arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 12 ++++++++++++ 2 files changed, 34 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts index 70fad20..901ca346 100644 --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts @@ -32,6 +32,28 @@ status = "okay"; }; +&fspi { + status = "okay"; + + mt35xu512aba0: flash@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "spansion,m25p80"; + m25p,fast-read; + spi-max-frequency = <20000000>; + reg = <0>; + }; + + mt35xu512aba1: flash@1 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "spansion,m25p80"; + m25p,fast-read; + spi-max-frequency = <20000000>; + reg = <1>; + }; +}; + &i2c0 { status = "okay"; pca9547@77 { diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi index e35e494..ba2a247 100644 --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi @@ -568,5 +568,17 @@ timeout-sec = <30>; }; + fspi: spi@20c0000 { + compatible = "nxp,lx2160a-fspi"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x0 0x20c0000 0x0 0x10000>, + <0x0 0x20000000 0x0 0x10000000>; + reg-names = "fspi_base", "fspi_mmap"; + interrupts = <0 25 0x4>; /* Level high type */ + clocks = <&clockgen 4 3>, <&clockgen 4 3>; + clock-names = "fspi_en", "fspi"; + status = "disabled"; + }; }; }; From patchwork Thu Oct 11 11:00:49 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: 982427 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="JPbXqCWF"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="SagwA5No"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="upq1MJxB"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42W81j0FYwz9s9J for ; Thu, 11 Oct 2018 22:31:37 +1100 (AEDT) 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=PK0x5HUDm7iOpPryDtbCWIhWp7erqSoEkeqUfWTedPI=; b=JPbXqCWFiOecM1 095PS6RRzFh2LcPH6ZfsXPNdS3JFpmWLHrzh2G54lOJGJx8AXjinmH4M13I1EQgdVHNfYMv2PwgNk 8zJqcjXG+cp3fr+VWtCVVyd4e18cp+YPX9P14dNVtGbqpCo5CHYm1ksUMrLrGaK0zaYJSVvHn1c/M 7MEsr8pbnizWGsXkThlKq/RRDFEnO/tzTZE1Am79Y0vdWjpS/VURtyE/WZ4v5mcTy2XVf0M7d5wq8 DUlLGZ2qADk8nS7AtduFro9lKnrevSfwkAY8j97fuO7LTl5Nz87e3QzCKsse1Qx7QSFZOeuhWSTsm q0AHyzK4v0K38kT8bJEg==; 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 1gAZBh-0000WK-Qg; Thu, 11 Oct 2018 11:31:29 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gAYxP-0001E9-K2; Thu, 11 Oct 2018 11:16:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=MIME-Version:Content-Transfer-Encoding: Content-Type:In-Reply-To:References:Message-ID:Date:Subject:CC:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=NnK6v5vsJ7Umgt5yF4KnUKEIOHe7cCFP4OXTjhmSUE8=; b=SagwA5NomR0ktNeiaLgHtY7Iod Z8DPdHptAGYvvONP2XtSw8VO7Ehag/1ZSbmS5oMni5TvytSRsXW9B3W2FFld92lCAWQi6YA7zNUgf oErMiJgF0HPa/J42LtTI00SemZUdoe3Xryp7uGx5BXOfVk8vR/jEdUBRKuv8OH0wsUlbU7A9IGBe/ fo/SY1QpSI/PfCscZ+GAaGfsOqdjpcZLvmELKEqqEaB2lI3NLM35Z1p7JuAFkl9pcdsGELzVtlkSx DpTe045NQAaU6O9vmmFYnkkARYnlJX7AFm66IWDaCkWEy7shuiFj1ojbZvpAopNyDZRqDQMsd6y+6 u7XBZ4BA==; Received: from mail-db5eur01on0047.outbound.protection.outlook.com ([104.47.2.47] helo=EUR01-DB5-obe.outbound.protection.outlook.com) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gAYis-0004kk-NS; Thu, 11 Oct 2018 11:01:44 +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=NnK6v5vsJ7Umgt5yF4KnUKEIOHe7cCFP4OXTjhmSUE8=; b=upq1MJxBbIHObgA9Ia+hdh2JWCsKik7eEZMhGW20CJlgaSBFytwFIQi5ErKBV1YPkHYJcguam4o86Eny+Fy3KWgxW62Fv8Fx4qX/Sex+xXrf8HckRAX4vMVfa/SP4vqx9DUwFdp8jy6XhiZlKhDzOC/DP83WsOUxByrutNuz8Dc= Received: from VI1PR04MB1038.eurprd04.prod.outlook.com (10.161.109.144) by VI1PR04MB1024.eurprd04.prod.outlook.com (10.161.109.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1207.27; Thu, 11 Oct 2018 11:00:49 +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.1207.024; Thu, 11 Oct 2018 11:00:49 +0000 From: Yogesh Narayan Gaur To: "linux-mtd@lists.infradead.org" , "boris.brezillon@bootlin.com" , "marek.vasut@gmail.com" , "linux-spi@vger.kernel.org" , "devicetree@vger.kernel.org" Subject: [PATCH v4 4/5] arm64: defconfig: enable NXP FlexSPI driver Thread-Topic: [PATCH v4 4/5] arm64: defconfig: enable NXP FlexSPI driver Thread-Index: AQHUYVGrkfAAcVsJREWOXC3aKbc1Ig== Date: Thu, 11 Oct 2018 11:00:49 +0000 Message-ID: <1539255519-1408-5-git-send-email-yogeshnarayan.gaur@nxp.com> References: <1539255519-1408-1-git-send-email-yogeshnarayan.gaur@nxp.com> In-Reply-To: <1539255519-1408-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: SG2PR06CA0173.apcprd06.prod.outlook.com (2603:1096:1:1e::27) 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; VI1PR04MB1024; 6:vtajIGBqu6HSaoIhih/CXuWBUo2atcubWurQcH+MvT+N6ovLkr438dCbGAR+w3GfGB8+GpKC80wQv6jCkDj1HPT9gghPdybvHj0Mi5CbOuqLHmKzCoi64Yzdk5mXoiEG+g8l+LHp9kPV+CusxZPtQpFWyNQkHDLwwXo8U/UrVLft7jc1jjGTcT83aA9TRzInwY+0mKJWir9pjh4/fLEo9iQL1CIxcS/CVXaiwdAC2+sdRjWqU3Dhsctg1uHhG7TkJpaXsi/jtBfzWuKYPynOS4KzAcvbjfC8JU99UMR73lXRswUDhEM4jJHryhbD5l/QbFHkecFwYcJ4PHxbXjWYrnv9/JBPfQjlT98yFWD4eMyXAPyz3h0XiuTOqOpgC20wTKu3Xdf/4YGy0+3XFqblEKEdNfY9oRLwR7+r+TLGHTCjKOzDiG2KrBqUJ/ARoKk5E0jwLv6E6HG4mcU2NgGiJyrKUTFyjyEW7x7hCz0NJeo=; 5:74yTdSFrwYv03dd49OZuQ/Qa9SpPZwtVkyfIbUkbPB0h+YP0dNOu2unZCHM9cw7p8a5WQHXSGYD2Kxj/fZU5B7NskK9oEYJkuPlMZ7LjYbDgHISnFIaTfxjPGhg23nUSfZK+mZ0Lodi8Bv6Ks1k6QOEko0OCK2w9vWXSDX4NQj4=; 7:tQC0AF5NS+QXvyE6MP2jmqV01zqjv71fba7sFnjFvpWhbWF0+b+INEzkGKOGr27bQi0KcRhmRBJqgXWFmhsLaBmsQDkW1+eNWNZjjJmLhcJm4RcUga9+hYTZOoMlEw4Dos2UeCWFpXxT96LoWNo8jn+vbvAJP8U0X5jaNwWHVrMFaNYfg6/U2yKiyNnTM8mgcqC5YbM0PgMmLWWGvbJEgesCRRp8An+b9s69hw+p0NvM3W+B37tbBa5TbLNQMV/m x-ms-office365-filtering-correlation-id: 89d509c1-1c80-4298-7af4-08d62f68cd94 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:VI1PR04MB1024; x-ms-traffictypediagnostic: VI1PR04MB1024: 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)(3002001)(3231355)(944501410)(52105095)(10201501046)(93006095)(93001095)(6055026)(149066)(150057)(6041310)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(201708071742011)(7699051)(76991055); SRVR:VI1PR04MB1024; BCL:0; PCL:0; RULEID:; SRVR:VI1PR04MB1024; x-forefront-prvs: 08220FA8D6 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(39860400002)(396003)(376002)(346002)(366004)(189003)(199004)(478600001)(39060400002)(4326008)(54906003)(66066001)(25786009)(8676002)(2201001)(53936002)(68736007)(486006)(476003)(7416002)(6512007)(446003)(7736002)(3846002)(6116002)(86362001)(11346002)(305945005)(8936002)(2616005)(81166006)(81156014)(256004)(105586002)(106356001)(6436002)(186003)(71190400001)(71200400001)(110136005)(2906002)(55236004)(6506007)(386003)(5250100002)(99286004)(2501003)(97736004)(26005)(52116002)(6486002)(316002)(5660300001)(102836004)(36756003)(14454004)(2900100001)(76176011); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB1024; 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: mLSFtcgcm77bQWZLpDjOZUWww/MbeTt8AYjufrYIM3q3nDkTrIKcuRil7p+tgzvFOWd5Kz2J5Iz5UjODMjlpzFlIaOA5sVbMX+Tu5aDg+MRHmc0R8F2kLmHWyvmkDBNh/dSdrbJceO/6VAGV63pDqIkSpazauYd2adxxw79vvNQVSI1OsbJhcUWf2/fN8u4OnDR9y22hOngNO1l519bOt+u6vXlGbvcnTK0EguGRVsrUz7zgD0bYWmt9PfcMjAuQtI8UvG1xW5ggMGC5piU8JSX9oawTtdK6R0EiOrTiO55awHTKDYlUHwrlAZdH3XFL2oLWgn/7yYsDk3QueznxsY8j5QssIQu6K9BtdhdTFxc= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 89d509c1-1c80-4298-7af4-08d62f68cd94 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Oct 2018 11:00:49.8230 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB1024 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181011_120142_770494_E49CD08F X-CRM114-Status: GOOD ( 12.14 ) X-Spam-Score: -0.1 (/) X-Spam-Report: SpamAssassin version 3.4.1 on casper.infradead.org summary: Content analysis details: (-0.1 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [104.47.2.47 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list 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-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Enable driver support of NXP FlexSPI controller. Signed-off-by: Yogesh Gaur --- Changes for v4: - None Changes for v3: - None Changes for v2: - None arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 3cfa8ca..75ceddf 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -335,6 +335,7 @@ CONFIG_SPI_QUP=y CONFIG_SPI_ROCKCHIP=y CONFIG_SPI_S3C64XX=y CONFIG_SPI_SPIDEV=m +CONFIG_SPI_NXP_FLEXSPI=y CONFIG_SPMI=y CONFIG_PINCTRL_IPQ8074=y CONFIG_PINCTRL_SINGLE=y From patchwork Thu Oct 11 11:00:55 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: 982407 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Qk+BSf5D"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="HLj5Ev+7"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="my04pd23"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42W7jS4hj9z9sRp for ; Thu, 11 Oct 2018 22:17:32 +1100 (AEDT) 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=3f33ulkMUpNLINQFrycRiPMzPUWWm6hHKOvKQa0lDfM=; b=Qk+BSf5DVJ3KTZ R7Fa8X7xrqEXU94c/zx0oTV4HOS7gH1Z1FFjLCo9lYr2xCXZ1RMm5xbFH1pcMz45ISnkZRfoNlQ9x gufmNV7u7aUsTmv2Jo05pMhc3NMMriRavL0vRbN4r6fvOCuWdNeKYT6nmYI9mzwbybcOgwckT/1aX /L6lNquX9P/x63Mduz6WJXpcNXicIgb+DywlDYwHMs58q6OaYSLrm07zG+XgxqlZDhc6Tx62/tUZk 6wXlACgw9iRud/YVT3HBaLqj+I5lQ5lSNNJ4ZvLbVXzMi3EUUU8qCU0QxxCWZQUatQZLT8BR3wj1d kvlIH5HFcEGyAkT/wFaA==; 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 1gAYy1-0001fK-S6; Thu, 11 Oct 2018 11:17:21 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gAYxP-0001E8-Ih; Thu, 11 Oct 2018 11:16:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=MIME-Version:Content-Transfer-Encoding: Content-Type:In-Reply-To:References:Message-ID:Date:Subject:CC:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=bC5MqRa1cB8ifXhOON6/aCvbWrBB/c3geYEe6rjxLJk=; b=HLj5Ev+7oIlHU03513Gba2UVDQ Z7nfdmAPzVo6XHweAL/t6UgIdT890YDldUkj/T3Z6Qo2jV1kCz8qTAJSJyhkIbVzOj5VVFMwzeesn 6CRu3jjp/+ssz4HXn8JDjtufNnlyMbbAlPoTNyplEYESPR/7Q2TAF4AmoVPzQxe5dL257aAl7jY+k mUoKWImGgmwwHgX4+tkVQ1QHtxZmZaZzGz9FqVQt/wClajnpKDODFV63fPRZDi1kmIu3JouVE3OH9 1glmfIBOTJcsa8Mvnkiqf8hNlGG83Mqj5ci0MHyfhw0xGWzASGvbzLFxOr6/VBTOaqiOOmb9mvI/F d61G+ARQ==; Received: from mail-db5eur01on0047.outbound.protection.outlook.com ([104.47.2.47] helo=EUR01-DB5-obe.outbound.protection.outlook.com) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gAYiu-0004kk-9x; Thu, 11 Oct 2018 11:01:50 +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=bC5MqRa1cB8ifXhOON6/aCvbWrBB/c3geYEe6rjxLJk=; b=my04pd23you2tlwUqJ/kyG0ktioNiPmAxKutbF6AorYhjQ93rbVzxWMd5eYoWMztmSatg/QpbWzBfBe6hMnREYj3gWm+MEydHZ3+1YN8ZjIpcPaPacixLxXc7CvU2ddd5kK0eK+3+n0oYdbhecUooFDOASFpxx/oWSudCPuPAp0= Received: from VI1PR04MB1038.eurprd04.prod.outlook.com (10.161.109.144) by VI1PR04MB1024.eurprd04.prod.outlook.com (10.161.109.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1207.27; Thu, 11 Oct 2018 11:00:55 +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.1207.024; Thu, 11 Oct 2018 11:00:55 +0000 From: Yogesh Narayan Gaur To: "linux-mtd@lists.infradead.org" , "boris.brezillon@bootlin.com" , "marek.vasut@gmail.com" , "linux-spi@vger.kernel.org" , "devicetree@vger.kernel.org" Subject: [PATCH 5/5] MAINTAINERS: add maintainers for the NXP FlexSPI driver Thread-Topic: [PATCH 5/5] MAINTAINERS: add maintainers for the NXP FlexSPI driver Thread-Index: AQHUYVGuXDL8bQ8mOEu+Au0CLsFMOw== Date: Thu, 11 Oct 2018 11:00:55 +0000 Message-ID: <1539255519-1408-6-git-send-email-yogeshnarayan.gaur@nxp.com> References: <1539255519-1408-1-git-send-email-yogeshnarayan.gaur@nxp.com> In-Reply-To: <1539255519-1408-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: SG2PR06CA0173.apcprd06.prod.outlook.com (2603:1096:1:1e::27) 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; VI1PR04MB1024; 6:z6zpt8Z2/uyU5yw2v0BqHODdOJuh6/F3Wh2cEVBEuiTUC9dSWkLuCbOUV1SZzzBaoNCHVncCtknV2cUkrenYbeYpbkQx0gugGdX7Fi/Uny5xMT66cl5ch18f8+lTKsjxJP7HNtqnAYy+u3UkMQDr/afwBGExB0kE/ftVImHft0fYf44sPfPd13dGV73rWoSwFJpliAyNjRLoECeCLmnGXrm2v7mJQ2ViMEZkfl8m0lPbJ4W6jezstOJbdW3r/YEv3DTXNnKSCxj4GVP2kk2ZgKOwZoTRGRTI2t8ecsXIhCHb2xJgKDO7de0TW5juPSsBMfhnK2dDeogVq/v1qQ4A8tdCKflteia9PDqEwGmP4JDe57SnDet3fUp/OG0ZnGTZrLtiRJaSIV02wtZNtHrnK+mx5kJew+ueEd4a0L0XndihHWcCLGD6lzZEwl/UOPTOozyZJRGixXwsyaa8xo5wdstPEP4Ew+ernN5oCylvSkc=; 5:Yqb2FzbSleXx6drvlMAjScx4o8E0Q/EhtlGNZF961oPYGdpYKUDL7CGpHd8Mis+/UdTS55hhA4zOoj5TnbGgVLdD+iIPvTa8gf7wmG5PHf70zoVvg+UCWkRbJ5xOj9MmjeUvljVCBI3/QXD1xJKXP7lm3JjRzmy7S2O/QWWbMNs=; 7:otW7sbZ5d6KO9cPWeSeGkKObXvtTBUlCrLJwL/7TcBwmeMPfmqJQigJVRCN+MPVmo+41+LqeORZ5c9wpqXYaphzRylUJ0JZGCRqMwkY1/902A7+pt+HPoN3UijjWYeh/4uy8FIJz5+iYOwG82nq36AKjGXyf7fVL4AleUqKkPEL+2c5fWGxGCiveoeNp4c7LDCcoGXEu7PUinK4w3DSVQgbWcpcf7R5UmF5R50QjIWEezpn/6uixPpFm5RxFR28X x-ms-office365-filtering-correlation-id: 09b0e918-0c49-48c2-cc81-08d62f68d0ee 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:VI1PR04MB1024; x-ms-traffictypediagnostic: VI1PR04MB1024: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(162533806227266)(9452136761055)(185117386973197); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(3231355)(944501410)(52105095)(10201501046)(93006095)(93001095)(6055026)(149066)(150057)(6041310)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(201708071742011)(7699051)(76991055); SRVR:VI1PR04MB1024; BCL:0; PCL:0; RULEID:; SRVR:VI1PR04MB1024; x-forefront-prvs: 08220FA8D6 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(39860400002)(396003)(376002)(346002)(366004)(189003)(199004)(478600001)(39060400002)(4326008)(54906003)(66066001)(25786009)(8676002)(2201001)(53936002)(68736007)(486006)(476003)(7416002)(6512007)(446003)(7736002)(3846002)(6116002)(86362001)(11346002)(305945005)(8936002)(2616005)(81166006)(81156014)(256004)(105586002)(106356001)(6436002)(186003)(71190400001)(71200400001)(110136005)(2906002)(55236004)(6506007)(386003)(5250100002)(99286004)(2501003)(97736004)(26005)(52116002)(6486002)(316002)(5660300001)(102836004)(36756003)(14454004)(2900100001)(76176011); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB1024; 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: HJLNzJsc78rtSQccRQWZL2+GaJY7x/NZ44XqH+m1HTtI/I4qLSrKx6+B20efYbMLhJwxlmTpcUvY77u8fZBMAVygpUW77/cmfEfWpapteqs41AFDJFUc7uUVIam1jTPMKdSVk+SM4CI0cRadDqASrcPMhomZ5cOeB7iVY7lwitBeLCGSDtInH6glNse4QaOG5UFAHSyAjP/cLxx8NZGL1lFTicetpgy47AElB9hblQyQsEaQIAqDcFWNlMFcKX+C1JgYoDK1fnmbGrNll2ceDfjpW8aeYr4+aLRLb8GiE2jfStIoDEAiH7bg4ri/qsB3yvB8rqCPrnHwTGSY8yBvJuk8R+Ff1xBrFlqJBcQT3Qc= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 09b0e918-0c49-48c2-cc81-08d62f68d0ee X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Oct 2018 11:00:55.5419 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB1024 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181011_120144_343442_C9093B27 X-CRM114-Status: GOOD ( 13.10 ) X-Spam-Score: -0.1 (/) X-Spam-Report: SpamAssassin version 3.4.1 on casper.infradead.org summary: Content analysis details: (-0.1 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [104.47.2.47 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list 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-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Add maintainers for the NXP FlexSPI driver Signed-off-by: Yogesh Gaur --- Changes for v4: - None Changes for v3: - None Changes for v2: - None MAINTAINERS | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9d5eeff..2696898 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10228,6 +10228,12 @@ L: linux-nfc@lists.01.org (moderated for non-subscribers) S: Supported F: drivers/nfc/nxp-nci +NXP FSPI DRIVER +M: Yogesh Gaur +L: linux-spi@vger.kernel.org +S: Maintained +F: drivers/spi/spi-nxp-fspi.c + OBJTOOL M: Josh Poimboeuf M: Peter Zijlstra