Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1010436imu; Wed, 9 Jan 2019 10:00:53 -0800 (PST) X-Google-Smtp-Source: ALg8bN4lHFZF9U5twrReGwdIGfaQWGGqZ9eqDg18f/bewXiRVzXMKmqAjVFd2e4QeI/j9m4ovxTg X-Received: by 2002:a17:902:6848:: with SMTP id f8mr6810702pln.300.1547056853862; Wed, 09 Jan 2019 10:00:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547056853; cv=none; d=google.com; s=arc-20160816; b=r6Zvd4ej/fBlwXfVSyo3O6pyI7Fs3U/qR1nvaynnDT4GbD6JGo/VLnalE65cOxm0bc IKlvdiYk9F4bxDFYGPYY7lxFO3Tl7YaYAFk0q8RH+JUMEKaBkfkMucW4958KPhzIU+GB ZjlH5G4QMLMFtDr3zSNXtg3qui2X/OSPicHw9l4SZ5uhm2V95FmwX/78YeK70nG0eGXs mGMDVh7vWKsJCNpveuhUsVc3NbY9QMzFHM6rWDSEO7xvmb6BvCeqI1qGjQpBaxdEuRn/ Ex6+OgbKyhlRdVNnhwymbOeV/fzIcla+/pDLum1OzIWJp49zDPF3NQc4WOIvPNfdly7+ Bk0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from; bh=k8aNotEq/9LZOiA9nzxKK5lhoMXHOWi84XyWKJWQAkU=; b=cVbpXLBuTXCnSPncAzuEDSPDzlpjCSf+BseaH3wB2+p6UTzuUgYbxorvo5cfRgfWzY U6eqlCZLcQgxdm6PI68uTGInxSOIYiU5h2Y+B4fCxDf3n8diB8z7yTF0Lfbl/DqO9dGI i+rOcTyIlGgf0Q6LtHYci4hsuXfUgFBD4hCakvtwglo+aag26kAN7KyE/l3AHvs6Y55x pAYdjY0Hpo948GBIUAz+XARMLrwNI+NKsh9hS6r8Ibbr7fn9zEet4dnGfxiMrsVrKovK k/0NIlWHKtmrIKTKYW6f1d5zdBUbPjn7b+Fz+pXFIAGpSgTv+rjnUukIze8a3r3GrtY3 lsVw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z5si8211238plh.133.2019.01.09.10.00.37; Wed, 09 Jan 2019 10:00:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732289AbfAIP0y convert rfc822-to-8bit (ORCPT + 99 others); Wed, 9 Jan 2019 10:26:54 -0500 Received: from skedge04.snt-world.com ([91.208.41.69]:36490 "EHLO skedge04.snt-world.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730871AbfAIP0x (ORCPT ); Wed, 9 Jan 2019 10:26:53 -0500 Received: from sntmail12r.snt-is.com (unknown [10.203.32.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by skedge04.snt-world.com (Postfix) with ESMTPS id E450767A8D2; Wed, 9 Jan 2019 16:26:49 +0100 (CET) Received: from sntmail12r.snt-is.com (10.203.32.182) by sntmail12r.snt-is.com (10.203.32.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1466.3; Wed, 9 Jan 2019 16:26:49 +0100 Received: from sntmail12r.snt-is.com ([fe80::e551:8750:7bba:3305]) by sntmail12r.snt-is.com ([fe80::e551:8750:7bba:3305%5]) with mapi id 15.01.1466.003; Wed, 9 Jan 2019 16:26:49 +0100 From: Schrempf Frieder To: Lukasz Majewski CC: Yogesh Narayan Gaur , "linux-mtd@lists.infradead.org" , "boris.brezillon@bootlin.com" , "marek.vasut@gmail.com" , "broonie@kernel.org" , "linux-spi@vger.kernel.org" , "devicetree@vger.kernel.org" , "mark.rutland@arm.com" , "robh@kernel.org" , "linux-kernel@vger.kernel.org" , "computersforpeace@gmail.com" , "shawnguo@kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH v6 0/5] spi: spi-mem: Add driver for NXP FlexSPI controller Thread-Topic: [PATCH v6 0/5] spi: spi-mem: Add driver for NXP FlexSPI controller Thread-Index: AQHUpzP4PV9+XjynmUWrRoOqEAtjTqWm7WUAgAAKcQCAAAh4gA== Date: Wed, 9 Jan 2019 15:26:49 +0000 Message-ID: <33797571-8456-0b18-087b-71330901f3a8@kontron.de> References: <1546939346-20181-1-git-send-email-yogeshnarayan.gaur@nxp.com> <7188c406-3dd2-88a6-b6ed-d5e8bf678df8@kontron.de> <20190109155630.3ec34c60@jawa> In-Reply-To: <20190109155630.3ec34c60@jawa> Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.25.9.43] x-c2processedorg: 51b406b7-48a2-4d03-b652-521f56ac89f3 Content-Type: text/plain; charset="Windows-1252" Content-ID: Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-SnT-MailScanner-Information: Please contact the ISP for more information X-SnT-MailScanner-ID: E450767A8D2.A0A1D X-SnT-MailScanner: Found to be clean X-SnT-MailScanner-SpamCheck: X-SnT-MailScanner-From: frieder.schrempf@kontron.de X-SnT-MailScanner-To: boris.brezillon@bootlin.com, broonie@kernel.org, computersforpeace@gmail.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, linux-spi@vger.kernel.org, lukma@denx.de, marek.vasut@gmail.com, mark.rutland@arm.com, robh@kernel.org, shawnguo@kernel.org, yogeshnarayan.gaur@nxp.com X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Lukasz, On 09.01.19 15:56, Lukasz Majewski wrote: > Hi Schrempf, > >> On 08.01.19 10:24, Yogesh Narayan Gaur wrote: >>> - Add driver for NXP FlexSPI host controller >>> >>> FlexSPI is a flexsible SPI host controller [1], Chapter 30 page >>> 1475, 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. >>> >>> - Tested this driver with mtd_debug(Erase/Write/Read) utility and >>> JFFS2 filesystem mounting and booting on NXP LX2160ARDB[2] 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, mt35xu512aba, [Read - 1 bit mode] >>> Cypress, s25fl512s, [Read - 1/2/4 bit mode] >>> >>> [1] https://www.nxp.com/docs/en/reference-manual/IMXRT1050RM.pdf >>> [2] >>> https://patchwork.kernel.org/project/linux-arm-kernel/list/?submitter=182097 >>> >>> Yogesh Narayan Gaur (5): >>> spi: spi-mem: Add driver for NXP FlexSPI controller >>> dt-bindings: spi: add binding file for NXP FlexSPI controller >>> arm64: dts: lx2160a: add FlexSPI node property >>> arm64: defconfig: enable NXP FlexSPI driver >>> MAINTAINERS: add maintainers for the NXP FlexSPI driver >>> >>> Changes for v6: >>> - Rebase on top of v5.0-rc1. >> >> Your patches don't apply to v5.0-rc1. It seems like you have instead >> rebased onto the for-5.1 or for-next branch of the SPI tree. I guess >> this is okay, but you should have pointed that out correctly here. > > If I may ask for a few (1-2) days, so I can test this code on vf610 NXP > SoC. > > As fair as I remember there were some issues when I tested it a few > months back. You're probably mixing that up. This series is about the FlexSPI controller in the Layerscape SOCs. The QuadSPI driver is already in linux-next to be merged in 5.1 [1]. The issues with vf610 existed in the old SPI-NOR driver and probably still exist in the new SPI driver. You are welcome to test the new driver and come up with some fixes. Sooner or later, there will probably also be other changes coming up, such as implementation of the dirmap API. Thanks, Frieder [1]: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/drivers/spi?h=next-20190109&id=84d043185dbe0d1b4f6db575bd91c834d37e2f78 > >> >>> - Incorporated review comments for >>> patch 'spi: spi-mem: Add driver for NXP FlexSPI controller'. >>> - Updated s-b tag in all patches. >>> Changes for v5: >>> - Rebase on top of v4.20-rc2 >>> - Incorporated review comments for >>> patch 'spi: spi-mem: Add driver for NXP FlexSPI controller'. >>> Changes for v4: >>> - Incorporated review comments for >>> patch 'spi: spi-mem: Add driver for NXP FlexSPI controller'. >>> - Incorporated binding file review comments. >>> Changes for v3: >>> - Incorporated review comments for >>> patch 'spi: spi-mem: Add driver for NXP FlexSPI controller'. >>> Changes for v2: >>> - Incorporated Boris review comments and drop below patches as per >>> the comments. >>> - Patch 'spi: add slave device size in spi_device struct' >>> - Patch 'spi: add flags for octal I/O data transfer' >>> - Incorporated DTS and Binding file review comments of Shawn Guo >>> and Rob Herring. >>> >>> .../devicetree/bindings/spi/spi-nxp-fspi.txt | 39 + >>> MAINTAINERS | 7 + >>> .../boot/dts/freescale/fsl-lx2160a-rdb.dts | 22 + >>> .../arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 13 + >>> arch/arm64/configs/defconfig | 1 + >>> drivers/spi/Kconfig | 10 + >>> drivers/spi/Makefile | 1 + >>> drivers/spi/spi-nxp-fspi.c | 1095 >>> +++++++++++++++++ 8 files changed, 1188 insertions(+) >>> create mode 100644 >>> Documentation/devicetree/bindings/spi/spi-nxp-fspi.txt create mode >>> 100644 drivers/spi/spi-nxp-fspi.c >> ______________________________________________________ >> Linux MTD discussion mailing list >> http://lists.infradead.org/mailman/listinfo/linux-mtd/ > > > > > Best regards, > > Lukasz Majewski > > -- > > DENX Software Engineering GmbH, Managing Director: Wolfgang Denk > HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany > Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de >