Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6001661ybe; Tue, 10 Sep 2019 12:00:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqxNIWEAcr0pcJgqR++en79aFkyqmKP20pqHIFBO7ngnPYGH6gpw/00XhqReP9q51YyueAdP X-Received: by 2002:a17:906:139b:: with SMTP id f27mr26693642ejc.273.1568142022341; Tue, 10 Sep 2019 12:00:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568142022; cv=none; d=google.com; s=arc-20160816; b=yuovUm6HAivZJ28C/LfD/wPCIql+0ehljdBZR5mgdXv3BippCbS8afCqqpc5aJbGvK Swo7XZ1tLYkmoQU32TfmvmkM5U1MQhh+WMMoBYB5vznFhJuGZXU2Ni9kj9pp8VZi9u3W /35LB9RnHcAhBn9INNyYDPsGp3EvRtnG4kY/X2mPhhSSXenWuWg4LR4z6TYRntB38A2s nFydKCyoby6XzOqCa65De60oSjM3nHrSCPnMEcE5WjtT78v0NUZQQqYwvh+5LCE1jfTM YkAAW3kwJLaohREo2vy+OEyLKPpDaZxS8Xibd1eZpm2gVmY9/S0VSzGCEVG9XWn404be iOdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=lPEmZB6JOrCc1ynEOdHGGh8uzb3ocBnSX+UrAIyrup8=; b=qJbanoDRxNeSUZr+MaViqFVWsY9R7AXFUXhC98dcj13uOqQWyt/ydPFHomUAXlKH1A MFAlknUHtnmafvBEuJVT8iaCvFq8RunrHDX226UUEe80ERAWv58Pz8o4HfQmFp2qUO2u IIyNiT0zMBfptB8h5Va52wxS9LTXkuzOqaeErX7uF2y1rwhwEh/N6jdInRjWR+x8qaCm EOCrtHRF4g9be272JPdwA6DDyOQrG5+vMGR/EKjDXlZMGdfPvXsEbkxQ8jFNWHclHn5i bjEOhXeFIzW3plqoVzjj8pyXljfsX7LBweGMR73i+Q7B02M/H7ovlHJCDjr6LtPLyoS5 xckA== 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 z43si11606543edc.389.2019.09.10.11.59.58; Tue, 10 Sep 2019 12:00:22 -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 S2389275AbfIJMVL (ORCPT + 99 others); Tue, 10 Sep 2019 08:21:11 -0400 Received: from inva021.nxp.com ([92.121.34.21]:53454 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388902AbfIJMVK (ORCPT ); Tue, 10 Sep 2019 08:21:10 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 93FAD200090; Tue, 10 Sep 2019 14:21:08 +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 521212004BF; Tue, 10 Sep 2019 14:21:04 +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 1F134402A5; Tue, 10 Sep 2019 20:20:59 +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 , Xiaowei Bao Subject: [PATCH] arm64: dts: ls1028a: Add FlexSPI support for NXP LS1028 Date: Tue, 10 Sep 2019 17:50:51 +0530 Message-Id: <1568118055-9740-1-git-send-email-Ashish.Kumar@nxp.com> X-Mailer: git-send-email 2.7.4 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 fspi node property for LS1028A SoC for FlexSPI driver. Property added for FlexSPI controller and for the connected slave device for the LS1028ARDB and LS1028AQDS target. RDB and QDS is having one SPI-NOR flash device, mt35xu02g connected at CS0. This flash device "mt35xu02g" is tested for octal read Signed-off-by: Xiaowei Bao Signed-off-by: Ashish Kumar --- arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts | 15 +++++++++++++++ arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts | 15 +++++++++++++++ arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 13 +++++++++++++ 3 files changed, 43 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts index 5e14e5a..5d46993 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts @@ -103,6 +103,21 @@ status = "okay"; }; +&fspi { + status = "okay"; + flash0: mt35xu02g@0 { + compatible = "micron,mt35xu02g", "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + m25p,fast-read; + spi-max-frequency = <50000000>; + reg = <0>; + /* The following setting enables 1-1-8 (CMD-ADDR-DATA) mode */ + spi-rx-bus-width = <8>; /* 8 SPI Rx lines */ + spi-tx-bus-width = <1>; /* 1 SPI Tx line */ + }; +}; + &i2c0 { status = "okay"; diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts index 1a69221..f33cb2e 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts @@ -96,6 +96,21 @@ status = "okay"; }; +&fspi { + status = "okay"; + flash0: mt35xu02g@0 { + compatible = "micron,mt35xu02g", "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + m25p,fast-read; + spi-max-frequency = <50000000>; + reg = <0>; + /* The following setting enables 1-1-8 (CMD-ADDR-DATA) mode */ + spi-rx-bus-width = <8>; /* 8 SPI Rx lines */ + spi-tx-bus-width = <1>; /* 1 SPI Tx line */ + }; +}; + &i2c0 { status = "okay"; diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi index b139b29..4aa1825 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi @@ -174,6 +174,19 @@ clocks = <&sysclk>; }; + 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 = ; + clocks = <&clockgen 4 3>, <&clockgen 4 3>; + clock-names = "fspi_en", "fspi"; + status = "disabled"; + }; + i2c0: i2c@2000000 { compatible = "fsl,vf610-i2c"; #address-cells = <1>; -- 2.7.4