Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6001955ybe; Tue, 10 Sep 2019 12:00:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqzHgyyFLJjtoY0SpfRHnWBXTLRfbht67ZcPnGE5nas0e64EavHPspcxJi69Ykq4UPK11CPB X-Received: by 2002:a17:906:1197:: with SMTP id n23mr27012757eja.122.1568142033986; Tue, 10 Sep 2019 12:00:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568142033; cv=none; d=google.com; s=arc-20160816; b=IUO2y6YE2foswaPO0nnAIqI5LW3KbC+jSJMFvVy9qHpJS2UA4nI1hdGlN924mE+hsJ LJDZ9jTfAIPc68hYbtCQV1ctFLhN3Otqblks1pRuYtmGP4gfXB8S74i32WU/I+dlIj5l SsHHVQTgK5Z94zDXmT2FY4RF6nnXSkG0MCN5/dk2pNfA9uef/2ssAQXlInYhvM6qG7OM zQNM9CVlvVkU+Vua8p56fPI4Bgv4inbXs534J04FaETK5wbEQS4ypUwospf4anTJJxNb ojtesjMg6vrFaz/dIYCfmdyrTwJV6Hage1fqGdzrDC8+q+B5sw1SwwHJlsxz2sOIGpX/ +l5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=JnWsg4k6YJns9UhKvzkyJX6g04Vz3inwFxZy7vjS6mM=; b=Ls+8fXmL+PVEmrXpa/P1i0mHwJphrRzvJun2QvLR6INP7xDMaGrNO1GtfstQF6tC8C mQOiE8Lp/oAEpdG7GlGn5i+O2/qei5LaACjOZfb/5JPuTkGafZdA/TFYZ9NT+4llRVfR IRw/nGvqJP097MKhDEvicxgxLfm6u8Fz6/25lijnC9Xk3ZIAMp1nEp+ngjXvFhBvnAhp WPv6NvxrtdRRo7u6fot3br+q0B3rHlFRvtkQlcXiFN/itkKfcbgE3j81I7zVQOcAGUmw /XPkun7+4q6IySkBJhAeHnWxnCpTsZt5Q+rTvnUq1oVcgY9qthYeI33KaFl2ZfAU9PhM SQJw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s7si11496983edm.74.2019.09.10.12.00.08; Tue, 10 Sep 2019 12:00:33 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389553AbfIJMVO (ORCPT + 99 others); Tue, 10 Sep 2019 08:21:14 -0400 Received: from inva021.nxp.com ([92.121.34.21]:53476 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388896AbfIJMVM (ORCPT ); Tue, 10 Sep 2019 08:21:12 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 23037200236; Tue, 10 Sep 2019 14:21:10 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 0B5F82001BA; Tue, 10 Sep 2019 14:21:06 +0200 (CEST) Received: from lsv03124.swis.in-blr01.nxp.com (lsv03124.swis.in-blr01.nxp.com [92.120.146.121]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id CE05E402E3; Tue, 10 Sep 2019 20:21:00 +0800 (SGT) From: Ashish Kumar To: devicetree@vger.kernel.org, robh@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Ashish Kumar , Kuldeep Singh Subject: [PATCH] arm64: dts: ls1088a: Add QSPI support for NXP LS1088 Date: Tue, 10 Sep 2019 17:50:54 +0530 Message-Id: <1568118055-9740-4-git-send-email-Ashish.Kumar@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1568118055-9740-1-git-send-email-Ashish.Kumar@nxp.com> References: <1568118055-9740-1-git-send-email-Ashish.Kumar@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add QSPI node in dtsi(ls1088si), and dts(ls1088ardb, ls1088aqds) boards. Both ls1088ardb and ls1088aqds has two 64MB flash from SPANSION(s25fs512s). QUAD I/O is tested in case of read and single I/O is tested in case of write. Signed-off-by: Kuldeep Singh Signed-off-by: Ashish Kumar --- arch/arm64/boot/dts/freescale/fsl-ls1088a-qds.dts | 26 +++++++++++++++++++++++ arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts | 26 +++++++++++++++++++++++ arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 13 ++++++++++++ 3 files changed, 65 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1088a-qds.dts b/arch/arm64/boot/dts/freescale/fsl-ls1088a-qds.dts index 120e62d..3347e6a 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1088a-qds.dts +++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a-qds.dts @@ -143,6 +143,32 @@ status = "okay"; }; +&qspi { + status = "okay"; + + qflash0: s25fs512s@0 { + compatible = "spansion,s25fs512a", "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + m25p,fast-read; + spi-max-frequency = <50000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <4>; + reg = <0>; + }; + + qflash1: s25fs512s@1 { + compatible = "spansion,s25fs512a", "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + m25p,fast-read; + spi-max-frequency = <50000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <4>; + reg = <1>; + }; +}; + &sata { status = "okay"; }; diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts index 8e925df..09d3203 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts +++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts @@ -86,6 +86,32 @@ status = "okay"; }; +&qspi { + status = "okay"; + + qflash0: s25fs512s@0 { + compatible = "spansion,s25fs512a", "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + m25p,fast-read; + spi-max-frequency = <50000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <4>; + reg = <0>; + }; + + qflash1: s25fs512s@1 { + compatible = "spansion,s25fs512a", "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + m25p,fast-read; + spi-max-frequency = <50000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <4>; + reg = <1>; + }; +}; + &sata { status = "okay"; }; diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi index d1469b0..5a81a7e 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi @@ -408,6 +408,19 @@ status = "disabled"; }; + qspi: spi@20c0000 { + compatible = "fsl,ls2080a-qspi", "fsl,ls1088a-qspi"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x0 0x20c0000 0x0 0x10000>, + <0x0 0x20000000 0x0 0x10000000>; + reg-names = "QuadSPI", "QuadSPI-memory"; + interrupts = ; + clock-names = "qspi_en", "qspi"; + clocks = <&clockgen 4 3>, <&clockgen 4 3>; + status = "disabled"; + }; + sata: sata@3200000 { compatible = "fsl,ls1088a-ahci"; reg = <0x0 0x3200000 0x0 0x10000>, -- 2.7.4