From patchwork Tue Jan 30 17:44:22 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: 10192103 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 8659C60375 for ; Tue, 30 Jan 2018 17:46:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 754C92434C for ; Tue, 30 Jan 2018 17:46:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 697B324B44; Tue, 30 Jan 2018 17:46:22 +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 CE15E24603 for ; Tue, 30 Jan 2018 17:46:21 +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=z/e1qWGL/NyDJ6KXkuC10PSwheHP7U12WD8asi2IAgE=; b=dDPCQWvU9rit8z kuxQLPt+kXE87dEVLtooFQHefi4fR9wPdw5uMJXEA8WVUF2kj4n9dW7ThuhCVvOJgpglpJeRr76oc 0IYok4aUVs1zyGLDU09UDAXOMnTfDNDFcXv7h97kRou/yDMNZwsT2Y/3bdOpwmUsq35wnx3rbELqK 0E+BsQ0CX3kdlreYGik3sJxP0zwdl6d2gfbbNhEePYeR6l+RUKKqP6VPgnhZMVWZu8cgkFCzkZ+ef tJJpNPdyscopciD9ezZpnDzhH7mQgpoAIoqjsvids3VOY2/irpzsim/Nw3Xv4UVW74CaZ35ll/8dr 9di1iPzKWwN18iduO0+A==; 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 1egZz7-0006MS-KZ; Tue, 30 Jan 2018 17:46:17 +0000 Received: from mail-eopbgr50067.outbound.protection.outlook.com ([40.107.5.67] helo=EUR03-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1egZyp-0006C9-U1; Tue, 30 Jan 2018 17:46:05 +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=1ennroACDNFr617O9o4Z8p25TQedCdAEM4BiLZoMD2I=; b=KeXAbSP+qpBCTQWyuon7WR0LiZQukXRSbC8lMFGrDrnZG+oJK43xVCimu6xmjY2DIJkNVe5WkONDEBeV+CYdQndqjQtmRarN/OHNEFCVdh0zNgTUCXGo1/nMFDiyPGvErzefNYGl4JjQE8b8JGElPp9a0iibCtxgXoscb6/iQaA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yogeshnarayan.gaur@nxp.com; Received: from idcbfarm.ap.freescale.net (192.88.169.1) by VI1PR0402MB2846.eurprd04.prod.outlook.com (2603:10a6:800:b6::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.444.14; Tue, 30 Jan 2018 17:45:42 +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 v2] arm64: dts: ls1088a: Add qspi device node for ls1088a-rdb Date: Tue, 30 Jan 2018 23:14:22 +0530 Message-Id: <1517334262-17969-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: BM1PR0101CA0046.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1a::32) To VI1PR0402MB2846.eurprd04.prod.outlook.com (2603:10a6:800:b6::11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 7051e6ad-326d-4be7-7bc3-08d568094a37 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:VI1PR0402MB2846; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0402MB2846; 3:kU3EOIOjJe+G0GQ407LjUdRtFie9VxErfnIIM+V9PEjHOI/UX1kN8QxRAQTSGomVYRz2D2bI+iKBRL2bM7dKwmXrzaYWmmbiyY254+Lq+pfHt0q8DHG9Lvq8sWZBEcYkastv1zdTFVzLmhM/ju3LnSIQWy+LhYDQxMczsNaL/nhL7+rzQIS5/p9ZARSWm3cS0ER4YJi+W09UfmIA/EuMN/c2AoXSP3VpRVXKrj+CK3kmdS0y1LM99PtthVwm3ny0; 25:utORz2NH1oKV8mjVm14YiJT4U4FSfvKOWVGRW0pU0vx+l/fk3GO/uoVsRhBuANat5UdUwr4jIBY/O23quK28mnc3bRg9k4wYufIBmkQMV/e+4WO7/DZ6TrL5nYKwF5Q03umT8Jq7BiejTTFYOoZ6jms7aBVRVBQ4PELUzrJk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Jkl5lkA2e20u+HcLjMU1auMgZWYMzdTK1LoXP49Ar2HOp87QapwnA6uoogKloTiQrse66W2vMWDWteDWt4xBV5gwbY2bfg9iD+V5u7wcvmY0FCuaExKgjcLRxzj2zg/5tpDts3rninoNf+wXYjcIpJht11pDiOWuV2C53CLTfKbPPLdDHywr0Vm+mswqyFAH81P1EkHMWtibOvmnCPR+9nG9gcqkj+Jh0vucAMJwJlXNvyrsbbHK485YBJGJ 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)(3002001)(3231101)(944501161)(10201501046)(6055026)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123564045)(20161123562045)(6072148)(201708071742011); SRVR:VI1PR0402MB2846; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0402MB2846; X-Forefront-PRVS: 0568F32D91 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(346002)(366004)(39380400002)(376002)(396003)(199004)(189003)(106356001)(105586002)(81166006)(39060400002)(53936002)(47776003)(6666003)(6512007)(50466002)(6306002)(81156014)(4326008)(575784001)(86362001)(8936002)(66066001)(48376002)(5660300001)(50226002)(8676002)(16586007)(59450400001)(36756003)(316002)(966005)(186003)(3846002)(478600001)(6116002)(16526019)(386003)(6506007)(97736004)(51416003)(25786009)(26005)(52116002)(7736002)(7416002)(68736007)(6486002)(2906002)(305945005); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0402MB2846; H:idcbfarm.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX: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; VI1PR0402MB2846; 23:nDxsYS2wNNwvmTmDeOrS9tq8LuCr/TrEU8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I2w0UW7P6DHco/cYltJ+wGGgkAUwHUDRC5CJrIkU3atdUXORGLqqiqZsdPSrA9eR1SkQcVL8PDh6p17f5wyf5GwkAA8CNQfNhCg23RGT5ASpqNzBvIeHZ858Hxp8Ltm7ibIovAwTpRwQ+Qe1W5RXZ5NJ5Pk+8lUZ9u4gToVK5Fzq2WTL8JL75xr0e1N7w0hm2WbgtEqPB65su/BL3MgH8lAfcY4K/wEfv8EWArxiO3oPJwNa SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jan 2018 17:45:42.7250 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7051e6ad-326d-4be7-7bc3-08d568094a37 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB2846 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 --- Depends on https://patchwork.ozlabs.org/project/linux-mtd/list/?series=26084 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 | 23 ++++++++++++++++++++++ arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 12 +++++++++++ 3 files changed, 36 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..8afe536 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts +++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts @@ -94,6 +94,29 @@ }; }; +&qspi { + status = "okay"; + fsl,qspi-has-second-chip; + qflash0: s25fs512s@0 { + #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 { + #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>,