Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp296091ybl; Wed, 4 Dec 2019 03:00:11 -0800 (PST) X-Google-Smtp-Source: APXvYqyt5XRRI9aRhrllyBTowDdvEgMpLdB7TDqhf30zERTK1F5WuvN63ZVtJ8KaJyT+DUwJ+xSB X-Received: by 2002:aca:b7c4:: with SMTP id h187mr1985200oif.4.1575457211368; Wed, 04 Dec 2019 03:00:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575457211; cv=none; d=google.com; s=arc-20160816; b=dZTUjVtHKi0/PEQdQzvIi6MP1TZyfZiLiOInELFLIMT1yTW6xLdTgEz8HGYoNGVbgz ctUDqT/s+B6yJYA7DMVtHfPX1Q11hrAIVWAY2P6APslomWmQ/hWfWsuk+yumpQILBvZi CG+mIuGCTV1Y+C+njd6bnZPGLIv1xQyQlKDgortXTL5tHIFkqN7hczHFlf+OHEubT9E0 L72zSiL7t3/k/sQ4uIK91DpGKwyxi35Mn3RN34om917FyQvmFaVXmZ2sbBfQYNlKjg57 z76VIpA+te26OD/lG5Cvor4AeLpJpFfZ+YwZjk7bv+48vy5e+ZIaZ/rnLXYaoK0Swv0m ym+A== 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=fu7C/4H1equjQ08yXhl/kohRdV1fufbVDC9WUHpsurQ=; b=EW/OjGlgX2rZnS8wUclIUUq+xLy5QcWi6ULXT5lVuRc39/o01ns07+s8hFn3hdPORd hrw5fQWMksgaCUOC8ppPpmbhlum3g4KESIVxaSBkZHZCGpdIJ7cJqN0wJL1HKifwBf2d XjmltSe35SHgmSFEqH2adRNnKiEhUeryX++6QN54bCJ75Yn3waZGrHtn3dJRnu8yN1UT Y+2g08VIjMVnjWlR2yWI1Dz7RAMNvs2YxdjdxFmbD/SnfhCcsJ5V+LIGpjVxZmcojYeJ thjKTjSMxjqatmMjec8bnverE+kr1G6cYQwn9QQoRQJS03EvVo8qEwZv8+oFQmtY4iAW 56fg== 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 185si718189oie.52.2019.12.04.02.59.58; Wed, 04 Dec 2019 03:00:11 -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 S1727735AbfLDK6f (ORCPT + 99 others); Wed, 4 Dec 2019 05:58:35 -0500 Received: from inva020.nxp.com ([92.121.34.13]:38848 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727604AbfLDK6d (ORCPT ); Wed, 4 Dec 2019 05:58:33 -0500 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 67C721A028E; Wed, 4 Dec 2019 11:58:31 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id A88FA1A077A; Wed, 4 Dec 2019 11:58:27 +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 9F439402BC; Wed, 4 Dec 2019 18:58:22 +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 v2 1/5] arm64: dts: ls1028a: Add FlexSPI support Date: Wed, 4 Dec 2019 16:28:14 +0530 Message-Id: <1575457098-18368-2-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 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 are 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 --- v2: Rebased to top Use "jedec,spi-nor" in compatibles 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 5b9d4b35dd35..ca409d907b36 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts @@ -123,6 +123,21 @@ status = "okay"; }; +&fspi { + status = "okay"; + + mt35xu02g0: flash@0 { + compatible = "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + spi-max-frequency = <50000000>; + /* 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 */ + reg = <0>; + }; +}; + &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 9720a190049f..af25c09ea427 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"; + + mt35xu02g0: flash@0 { + compatible = "jedec,spi-nor"; + #address-cells = <1>; + #size-cells = <1>; + spi-max-frequency = <50000000>; + /* 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 */ + reg = <0>; + }; +}; + &i2c0 { status = "okay"; diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi index 8e8a77eb596a..f7b79fce3df5 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi @@ -271,6 +271,19 @@ status = "disabled"; }; + 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"; + }; + esdhc: mmc@2140000 { compatible = "fsl,ls1028a-esdhc", "fsl,esdhc"; reg = <0x0 0x2140000 0x0 0x10000>; -- 2.17.1