Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp295389ybl; Wed, 4 Dec 2019 02:59:25 -0800 (PST) X-Google-Smtp-Source: APXvYqwG3bkLhTKNZHnJjoFaz/cNjkCiziO/t5087u1l1gwi2NDrckGUAvBPzRoiCPZpVPlF02wJ X-Received: by 2002:aca:48d6:: with SMTP id v205mr1949738oia.10.1575457165078; Wed, 04 Dec 2019 02:59:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575457165; cv=none; d=google.com; s=arc-20160816; b=lIGDKS51UtxPH4z0UODYTN6HLA/KA8EtWPXbiZInVEJM9jwzeYuBzKJgC9SH1LN0ig 9P5+goaSDTdzWNGwQTKdBZIH5ntNbFk41MzQgMQhYQKTnrWJuww+t8WWHtp9MCalky9X g9DaBsmBx+xM+I/gcsdYWA66Zd2jJFNxFFCy2FvFEmAFxVDwEXwofxpdTJ5WiubTozUE x/1KOEsfE1ZpaTZA7wduTC6gF5XTB4IWRvN7MPU8mHKeYcKp4qLb0/N9D76eKaI7TYEk lwn5o/QUoDqJpZlRp0N69d/nPnY/otxjSwRjriZF2C14UJ9oYlOYTGcMAlPllyWFgWH2 L7cA== 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=uiIpcZeDO8Fo2/FIM8J8v52lgTBZJ8uWAAOq3D55yBw=; b=aCqsiearP1PWjfMshgmA45PEXqHcxaEIv1KfwmN2vmgtp1THhi2f3lMngL3rZG8H7h zfjQq20y4I/+AwhaFm+jah0Wi33Da8k/gm/hpbV45leYLjgtllYWPMlShk9R1gfXfrGs nx1PS5L/s67GdnIlniry/32gI6e/U7ME51iLe11mQd/jOLBy+LcJjHPI7oQEPVJiHzxM rfBzU4UzpcfK7z98kXIp+vCxKwlTLhpM0L8cSf1M1XWCGaT/2fPSWbrlHaZQaNjo9Ucx 4OvglYtKDYb/E3zmFo13PDEMSBeke98gIeO07Z3YJV9SNC/l25M4sxlbwtzn+fJkGBB+ 8WuA== 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 q26si2977157oij.38.2019.12.04.02.59.13; Wed, 04 Dec 2019 02:59:25 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727778AbfLDK6i (ORCPT + 99 others); Wed, 4 Dec 2019 05:58:38 -0500 Received: from inva021.nxp.com ([92.121.34.21]:49238 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727727AbfLDK6h (ORCPT ); Wed, 4 Dec 2019 05:58:37 -0500 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 68B7E201177; Wed, 4 Dec 2019 11:58:34 +0100 (CET) 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 A9EC4201178; Wed, 4 Dec 2019 11:58:30 +0100 (CET) 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 ECDD64030D; Wed, 4 Dec 2019 18:58:24 +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 v2 5/5] arm64: dts: ls1088a: Add QSPI support for NXP LS1088 Date: Wed, 4 Dec 2019 16:28:18 +0530 Message-Id: <1575457098-18368-6-git-send-email-Ashish.Kumar@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1575457098-18368-1-git-send-email-Ashish.Kumar@nxp.com> References: <1575457098-18368-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(ls1088a), 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 --- v2: Rebased to top Reword commit message .../boot/dts/freescale/fsl-ls1088a-qds.dts | 24 +++++++++++++++++++ .../boot/dts/freescale/fsl-ls1088a-rdb.dts | 24 +++++++++++++++++++ .../arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 13 ++++++++++ 3 files changed, 61 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1088a-qds.dts b/arch/arm64/boot/dts/freescale/fsl-ls1088a-qds.dts index 120e62dad154..41d8b15f25a5 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1088a-qds.dts +++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a-qds.dts @@ -143,6 +143,30 @@ status = "okay"; }; +&qspi { + status = "okay"; + + s25fs512s0: flash@0 { + compatible = "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + spi-max-frequency = <50000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <1>; + reg = <0>; + }; + + s25fs512s1: flash@1 { + compatible = "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + spi-max-frequency = <50000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <1>; + 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 90b198939251..4d77b345cebd 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts +++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts @@ -86,6 +86,30 @@ status = "okay"; }; +&qspi { + status = "okay"; + + s25fs512s0: flash@0 { + compatible = "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + spi-max-frequency = <50000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <1>; + reg = <0>; + }; + + s25fs512s1: flash@1 { + compatible = "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + spi-max-frequency = <50000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <1>; + 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 c676d0771762..594566265e3d 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi @@ -375,6 +375,19 @@ status = "disabled"; }; + qspi: spi@20c0000 { + compatible = "fsl,ls2080a-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"; + }; + esdhc: esdhc@2140000 { compatible = "fsl,ls1088a-esdhc", "fsl,esdhc"; reg = <0x0 0x2140000 0x0 0x10000>; -- 2.17.1