From patchwork Fri Aug 31 10:30:02 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: 10583589 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F302A175A for ; Fri, 31 Aug 2018 10:40:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CDCD92B73B for ; Fri, 31 Aug 2018 10:40:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C1BE12B798; Fri, 31 Aug 2018 10:40:50 +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=-2.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 23AD12B73B for ; Fri, 31 Aug 2018 10:40:50 +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:References:In-Reply-To: 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: List-Owner; bh=8vbpnrvdhL19c46QGJQJD5Si+dzzX08/GqBmTpkDhCs=; b=VaDfy6R6ja3uSC qrb+FDgk+SP5fRC9Ei7cwDkL1K3cKyXKMdY7LD2y+0VmwSu3BrkhWJ9+DE9eo3fEYnkKhrSzLlKdc XWYQDVeCRUJ/FSwxnLc2YmtEogXGsCMnHncJd7KvS+1qTNt5n/KL3MMjWY8sYP/x5Bpbqjj9Z32TW ZRJJHCua++Ye4jywdT2j8XFWgoyR43GLO/TN7GM2W01b3vxegC8gNVm9jv2mSUl0S33rSqWNpEcKZ eo8j9xG9mDXHTFsPWaz9NiCBtcjwDcJe1GMdps402RwGBk0gA8Q3jYrhhvponuNMyZaz8WNBkBOTQ NKAsBM3/rOXPZxHohlEg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fvgr3-0006iE-VX; Fri, 31 Aug 2018 10:40:42 +0000 Received: from mail-ve1eur03on0619.outbound.protection.outlook.com ([2a01:111:f400:fe09::619] helo=EUR03-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fvgj2-00012L-E2; Fri, 31 Aug 2018 10:32:25 +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:X-MS-Exchange-SenderADCheck; bh=i53RJaXwfe0j+/MkFWaIKnsOteyq20ut+x2xIp3laPg=; b=X8Y2zdHg2DYHoXfaUt7KW9AWpWHSeq2xzyr9xsM/KF3i6ybKPyfn6N3RyKVBC841BLildyFFJ27cVN7a3y+s1zWWqTL8o8qDkdqGuIvorO0OwY9a30cIR+aOd6EOaMS4IR9W2xQE4GS3BqhlCUo4DZG35eir9awyTDNPsOCyT5o= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yogeshnarayan.gaur@nxp.com; Received: from idcbfarm.ap.freescale.net (14.143.30.134) by HE1PR04MB1034.eurprd04.prod.outlook.com (2a01:111:e400:581a::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1101.16; Fri, 31 Aug 2018 10:32:16 +0000 From: Yogesh Gaur To: linux-mtd@lists.infradead.org, boris.brezillon@bootlin.com, marek.vasut@gmail.com, linux-spi@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 5/7] arm64: dts: lx2160a: add fspi node property Date: Fri, 31 Aug 2018 16:00:02 +0530 Message-Id: <1535711404-29528-6-git-send-email-yogeshnarayan.gaur@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1535711404-29528-1-git-send-email-yogeshnarayan.gaur@nxp.com> References: <1535711404-29528-1-git-send-email-yogeshnarayan.gaur@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: SG2PR01CA0100.apcprd01.prod.exchangelabs.com (2603:1096:3:15::26) To HE1PR04MB1034.eurprd04.prod.outlook.com (2a01:111:e400:581a::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a232d2fc-ae4a-46f2-1655-08d60f2d086e X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:HE1PR04MB1034; X-Microsoft-Exchange-Diagnostics: 1; HE1PR04MB1034; 3:MYvWDqV+9rRF73jonYfkPUGw/DQJ5ObcDbn5AHI8fVLWFLIqhPXKkMd6frPfPBKjYR5ru+ZSyUVQIgawh0h2q2tWRr1veEv47hSkjiojcyoPf/7KMo1nHggn/2pvrZWMhCrHRLQnxqhLogfr7bDvAouvS0BbBGueZFLDXmjgSFqX3iMIyXMjV1XOJycgiRUSW67p2jon4SePs0x/n0Nu0boxJC0cACfrkLRsEE4B6d//VinpgWC1uDOADWQ+Hgxl; 25:QiMeY1LDUEKgwbhc47D8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muUOP5wYszPlG+dhSEST3yVwT2Mc45QvLnCxXsELBu7ptQzgbnzFgDJ2ct4epPEez8w4w+Chvp2e3TCfK0tIDP3; 4:BxypalvYD0BDQRIoEfNF3xGhSz/1E5RqvaRNUcR14KrF6BqwRfj6L5oTAejluFwi14d1wRh6mOeOCfV3eLLB8kN+O95S8XVkIOXYCEK6F0NoOMEeWkjTK/kja4heamQZzLtbswyXMt8h0yFWYp9rQpjIFB3I3cpusrBiMO94dylIh/1FW9vcW/gVABvZjPHZCCzWyUhZAs1s3hK7DfOCcxFTmwCPcgWH/iEe8yL9H+WssWmPr1+dzcc32rdfHJyqACL1Psj3cLf01sd8DkWSRoj4WkWx24dGwujfoaset64iZ0DJITI3+a/LClIaeOMt X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(823301075)(10201501046)(3002001)(3231311)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699016); SRVR:HE1PR04MB1034; BCL:0; PCL:0; RULEID:; SRVR:HE1PR04MB1034; X-Forefront-PRVS: 07817FCC2D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(39850400004)(376002)(346002)(366004)(136003)(199004)(189003)(48376002)(7736002)(7416002)(8936002)(105586002)(5009440100003)(52116002)(106356001)(51416003)(55236004)(386003)(6506007)(81156014)(81166006)(76176011)(2906002)(86362001)(3846002)(186003)(50466002)(16526019)(6116002)(305945005)(26005)(6486002)(66066001)(47776003)(25786009)(36756003)(5660300001)(97736004)(8676002)(53936002)(6512007)(50226002)(14444005)(316002)(6666003)(39060400002)(68736007)(486006)(4326008)(16586007)(11346002)(478600001)(446003)(2616005)(476003)(956004)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR04MB1034; H:idcbfarm.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR04MB1034; 23:1EW3TzIbo14W6Lp+xCe8xlc/gcoxCYqGb5xQqAHZc?= Cahmslkg4tQt0wuCSwYJH2Qk554DwdolWaeyxykr2yEAc+937BlXb+fYEcrbmqXI1yVN0vknufwTeb9tdrztFTjkNqdhV9KFMr8nM0OjLSMrZh6Vhx2pFos499rQHs4LoZi9CPT0aeuJJNFNlHW95yb/LKgzxKA1R9znDC18Lmw6/quzN3/p4bcQwh4ueyjGtVRbKHHhuF6CG1wu/VvWPvvdtP5Q1dB0ECtr7MaxZYp6hDhaVXEZwE1wyG3DkTJpUNW0lTnYeKEF1wpfFDfVTf1GvGhYKW2FZzDxnfnev2/5Sz7TcCWPg5MpixKDu9El5ivPwtY7kdWlgf//2Z4jq6J9u5b9I/Z52ZPT2umtlUeTlpzCK4gelYqtovTSuE2xHPmbhyJtvmZRYqHKUIGZSTC0sNfxgmrbRb6P6Eku1TGIdTWhssv8+uipCrBrtR09ktpoLKjj1NGTD2AAhsCJvBHYUZY0k0e5g9XSmGe4jBj5yhtrJGksS9DIGwKYAQdUzLa3JGuKso7Rl8/UsV7PhJzD0y2DiFsT/tPGu+haTyejr602Fpr3HV2OXTx1PRNL+6i8nCUmf2qi0pJq8BRSUW9/BkPFjyhjF/obX3bD5joHdUiXYcW1P9G5b4qMMZwuOimnBBeKXcsmwdYSxISgtAzCojxth7VWz8GKeExcIPa7sTEd7DS8sFgq8TEAq2lJpiFB97QN/JXIzunrtBQ97sPGDuThev579j0VIdTqq+g69oA+CZwUlo+t/jkXiA5d92i3pLCwtAqMtbtBFYofsfX+dkgl6nRoVKRGJ6C/M5FCfcECD5lNzbc+U/gVGuxNu2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+xtZ7+WqjmBacTPgGwxQvt/5bnH4zIZiU8x4jELfyTUYNcSRxDaO9Fqr0hc0H4Z29IDaFVC/Bs+7kZpQp5B5FALk0Yz1ZgmmyoeDKURGoEvuFsWL7bovkANZQcTWKkL8sFVRAtEg35jhxDSVz72aDytQo9Y5gUQd5FCwRqKgrYZrL+m2Cb5UPGOCB6op4JABXXPRTioGSxW6zIHDCno7dCOuxIYoTzrKiRJMrCPOHI2ULwg==; 5:WYLV5HO0Not3jRa+tQpUT/tNQoh5CFqSCJofR8SxFx91Z90mNHWn0CZSj1gNCJJMeEO82RZDbUfnRrBX0xJyuGh/sbDj7gdax9+6bc/HrHVFz+oEr6bWcMCLjOan7PjzDIFlNxGHH+/MBIXtvzYFWUIgJo3kqADUmGBYRq+/aKU=; 7:R26iZRlJljtbqoScZspRZfWO0YRkLyX8RWxvS5HK1qjJyMsGTrk+BZJ2JqhqEfc6Pmn65QhZrbvX73aeusHbc4Z8N9Weu01PuoyGMY001NX7J2lb1o2xs/DAeVRtRflVtv+X0DAdUhLZpXJoatPVWyFS/yt7WUBeqe4zj4AzgMndLguM7nP0AGWTkR3GiMwgAvt5qJxnky3fJxEnpyVc67xYkuFf9C1DGN5FtEH9TuM6xH4BNHObuMvmbRlDsGVn SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Aug 2018 10:32:16.3412 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a232d2fc-ae4a-46f2-1655-08d60f2d086e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR04MB1034 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180831_033224_546205_97C13D0A X-CRM114-Status: GOOD ( 11.31 ) 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: mark.rutland@arm.com, robh@kernel.org, Yogesh Gaur , linux-kernel@vger.kernel.org, frieder.schrempf@exceet.de, computersforpeace@gmail.com, shawnguo@kernel.org, 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 fspi node property for LX2160A SoC for FlexSPI driver. Property added for the FlexSPI controller and for the connected slave device for the LX2160ARDB target. This is having two SPI-NOR flash device, mt35xu512aba, connected at CS0 and CS1. Signed-off-by: Yogesh Gaur --- arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts | 21 +++++++++++++++++++++ arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 12 ++++++++++++ 2 files changed, 33 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts index 70fad20..3646315 100644 --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts @@ -32,6 +32,27 @@ status = "okay"; }; +&fspi { + status = "okay"; + flash0: mt35xu512aba@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "m25p80"; + m25p,fast-read; + spi-max-frequency = <20000000>; + reg = <0>; + }; + + flash1: mt35xu512aba@1 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "m25p80"; + m25p,fast-read; + spi-max-frequency = <20000000>; + reg = <1>; + }; +}; + &i2c0 { status = "okay"; pca9547@77 { diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi index e35e494..031eb26 100644 --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi @@ -568,5 +568,17 @@ timeout-sec = <30>; }; + fspi: flexspi@20c0000 { + status = "disabled"; + 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 = <0 25 0x4>; /* Level high type */ + clocks = <&clockgen 4 3>, <&clockgen 4 3>; + clock-names = "fspi_en", "fspi"; + }; }; };