From patchwork Wed Jan 31 04:44:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yogesh Narayan Gaur X-Patchwork-Id: 10193227 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D9E5860383 for ; Wed, 31 Jan 2018 04:46:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B6D69262AE for ; Wed, 31 Jan 2018 04:46:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AA446281E1; Wed, 31 Jan 2018 04:46:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 000A9262AE for ; Wed, 31 Jan 2018 04:46:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=zSIH2IaF7hSPTdCUFTycwHvQ+ZAzIIADkBUBTSv2M4A=; b=lzGhamA/fnhilq Z6TSsvmLpz7yGgaPBtIfpZy6lWXrLqbjHpOQl9badBhAvb1RhRoDh9Hlkk8ubkV8Dhs3X2TucIW0n JEo4P8DJ/MtCH4qUsQZzSykh5RzIQxU+yt5+ntAbda7o6FL0UsQundfFWpUG+YogYt1F1K+5k78ux q1+yiPR2MilHTBQ2G27w8uY/y+PXpejCChSs6z8KOxfp3Ze8ncnsFMMaWNMJXuoIFUB7vp/famWC3 uXr9VZneew705bGYMRa5dlG9Jy557VoNerOfgBlsI3eDivu536VdzJVxIS3D1nOwrH+3jfFMHxpjf g4AdUdtWfHeFeYRAmGzw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1egkHo-0002iz-BJ; Wed, 31 Jan 2018 04:46:16 +0000 Received: from mail-eopbgr50072.outbound.protection.outlook.com ([40.107.5.72] helo=EUR03-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1egkHb-0002ZO-Pm; Wed, 31 Jan 2018 04:46:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=5O+CJO33TWHvX0xOSNw7gwaSnIa/x3FeaGdQxli+e08=; b=jKV/nZeWZXnKMw80Q/ZYiIjqCMIpRObTjtNvNIYFYUvgN3hdqORuzJBYy9ILvNUlCezEBfA/y+NpklX5aPNGcueXwYJOhbsrE/mD/OvyoIwPqHYsw7XD3moOjeDCDgEb098bEhi3t5wuDB1jmlYdDz8fZCVFXdqBQPm1/cnaXwc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yogeshnarayan.gaur@nxp.com; Received: from idcbfarm.ap.freescale.net (192.88.169.1) by VI1PR0402MB2847.eurprd04.prod.outlook.com (2603:10a6:800:b6::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.444.14; Wed, 31 Jan 2018 04:45:44 +0000 From: Yogesh Gaur To: linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, robh@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org Subject: [PATCH v3] arm64: dts: ls1088a: Add qspi device node for ls1088a-rdb Date: Wed, 31 Jan 2018 10:14:48 +0530 Message-Id: <1517373888-4716-1-git-send-email-yogeshnarayan.gaur@nxp.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [192.88.169.1] X-ClientProxiedBy: BM1PR0101CA0052.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::14) To VI1PR0402MB2847.eurprd04.prod.outlook.com (2603:10a6:800:b6::12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: f39cdb1b-40cc-4b22-80e9-08d568657f40 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:VI1PR0402MB2847; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0402MB2847; 3:PH5qCfL1XZoIFv7/HcndsR40OlP/ofdUaMjzNQjh1qzUqe/8YrYuG+0f2q+nFjn0wAllWsn521Y/G3BEVBjoieOebN4UlXpE1merkLIEA/KfM/jFmHoo92cbctUJHNM+TrsVrTWf3G1hMcRQpbU1dUWGHPv+5vnFnUsLT2glfutunHqzqzwx2QAMHMFnEQX8MhIav0rtwslJQOip8gu7P6d1gKp4glNjoLksn9Nznn02tI4po70EN53FsnIeekuG; 25:jrvdMCtob7TfFNMLt69ImmZdkqRCHn0wc4NRI/j696wqixUAv31eD9qVdfzIneyaRvOC5g/CsAMtYtdD7IFVnQBELIDp78CjNBGOHm5T04x0irJdI2FyAfVwJ8DPfm1sUhncZ6aHQqlFpnZRkcTPrwQhhxhXGpiQw0q3bYtH9b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KfzJACmuy+EtvVRFfkv8Ktn0xGFVICdQVsjiZj/qeIpVZ+Eftguk7nI/UVBVVkFyY67KHCJ+kfAfn84JcjHR360NdvkyIkeNFXzoxcfxXv0vhSvyTTSJhFi9rRPpL3lRLcEqYOfYSg1tvUXFLfxhlWeO3Nzk79rnuvLwx+w13QcrifPlzFmGuZO+0uxSe94lvvuev7Y47datL2iwzb54kmzRLKqeXP5q3ISMHALoJKn+Mj/Z X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3231101)(2400082)(944501161)(3002001)(6055026)(6041288)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(6072148)(201708071742011); SRVR:VI1PR0402MB2847; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0402MB2847; X-Forefront-PRVS: 056929CBB8 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(39860400002)(366004)(396003)(39380400002)(346002)(189003)(199004)(50226002)(478600001)(50466002)(966005)(39060400002)(6486002)(25786009)(4326008)(48376002)(8936002)(81166006)(68736007)(97736004)(3846002)(106356001)(66066001)(52116002)(7736002)(47776003)(386003)(6506007)(5660300001)(51416003)(16526019)(105586002)(59450400001)(305945005)(7416002)(6116002)(186003)(53936002)(16586007)(36756003)(6306002)(575784001)(81156014)(2906002)(26005)(316002)(8676002)(6512007)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0402MB2847; H:idcbfarm.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0402MB2847; 23:m4ou/LbGBYqgqxLBMgvoBZgXkBGxkr7xxBtt3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NnNEK4tKO2ewH2NbHQo8Jo0eH+8xkTibnO4VAhPKXFFNYDOnlcDejRMUMoM/SdaCE6rCu5XksC25tAVRejS4PPdcoFChhQpp1rB0AyuTneHzL7/2WvWOkErlqJvACaFFJJ1Y+tWBqM4CYZhi1veupPGRqxitDtYydzNvYukKrsW SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jan 2018 04:45:44.7618 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f39cdb1b-40cc-4b22-80e9-08d568657f40 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB2847 X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: boris.brezillon@free-electrons.com, Yogesh Gaur , prabhakar.kushwaha@nxp.com, suresh.gupta@nxp.com, cyrille.pitchen@wedev4u.fr, han.xu@nxp.com, computersforpeace@gmail.com, festevam@gmail.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add nodes and properties for QSPI controller. Add support for spansion flash, s25fs512s, as slave device for QSPI controller. Added entry of "fsl,ls1088a-qspi" in fsl-quadspi.txt binding file. Signed-off-by: Suresh Gupta Signed-off-by: Yogesh Gaur Reviewed-by: Rob Herring --- Depends on https://patchwork.ozlabs.org/project/linux-mtd/list/?series=26084 Changes for v3: - Add compatible string for slave nodes. Changes for v2: - Move property spi-rx-bus-width and spi-tx-bus-width from controller to connected slave device node. .../devicetree/bindings/mtd/fsl-quadspi.txt | 1 + arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts | 25 ++++++++++++++++++++++ arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 12 +++++++++++ 3 files changed, 38 insertions(+) diff --git a/Documentation/devicetree/bindings/mtd/fsl-quadspi.txt b/Documentation/devicetree/bindings/mtd/fsl-quadspi.txt index 811da0e..956c23c 100644 --- a/Documentation/devicetree/bindings/mtd/fsl-quadspi.txt +++ b/Documentation/devicetree/bindings/mtd/fsl-quadspi.txt @@ -7,6 +7,7 @@ Required properties: or "fsl,ls2080a-qspi" followed by "fsl,ls1021a-qspi", "fsl,ls1043a-qspi" followed by "fsl,ls1021a-qspi" + "fsl,ls2080a-qspi" followed by "fsl,ls1088a-qspi", - reg : the first contains the register location and length, the second contains the memory mapping address and length - reg-names: Should contain the reg names "QuadSPI" and "QuadSPI-memory" diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts index 0f6fcda..99a514a 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts +++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts @@ -94,6 +94,31 @@ }; }; +&qspi { + status = "okay"; + fsl,qspi-has-second-chip; + qflash0: s25fs512s@0 { + compatible = "spansion,m25p80"; + #address-cells = <1>; + #size-cells = <1>; + spi-max-frequency = <20000000>; + reg = <0>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <4>; + }; + + qflash1: s25fs512s@1 { + compatible = "spansion,m25p80"; + #address-cells = <1>; + #size-cells = <1>; + spi-max-frequency = <20000000>; + reg = <1>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <4>; + }; + +}; + &ifc { ranges = <0 0 0x5 0x30000000 0x00010000 2 0 0x5 0x20000000 0x00010000>; diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi index bd80e9a..b45a522 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi @@ -394,6 +394,18 @@ status = "disabled"; }; + qspi: quadspi@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 = <0 25 0x4>; /* Level high type */ + clocks = <&clockgen 4 3>, <&clockgen 4 3>; + clock-names = "qspi_en", "qspi"; + }; + sata: sata@3200000 { compatible = "fsl,ls1088a-ahci"; reg = <0x0 0x3200000 0x0 0x10000>,