From patchwork Mon Oct 8 11:11:41 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: 10630421 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 B6A4114DB for ; Mon, 8 Oct 2018 11:14:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A81E528492 for ; Mon, 8 Oct 2018 11:14:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9C50628AE3; Mon, 8 Oct 2018 11:14:26 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0FD6528492 for ; Mon, 8 Oct 2018 11:14:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727669AbeJHSZi (ORCPT ); Mon, 8 Oct 2018 14:25:38 -0400 Received: from mail-db5eur01on0057.outbound.protection.outlook.com ([104.47.2.57]:16928 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726511AbeJHSZh (ORCPT ); Mon, 8 Oct 2018 14:25:37 -0400 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=3EygQjPUn5/oqLEKez/nsE+IZNDdJTjgKIOtJRGEPzk=; b=UpFiyRAVeZFCVz0MLEEwTe8oV8s2e768kiVjzkQMruwo1YiDpTrfmKpX6idcN9ZE0wFI4WNxgljSRp1BZ+AltsfiHsfyML6IHXVsA3INdZ6g3GFARXNKET/nwGfc2sn8szmRaPL0S8fRTielqGfD1YOubUn5lFBS3RxV2cKroZo= 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.1207.27; Mon, 8 Oct 2018 11:13:54 +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 Cc: robh@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, linux-arm-kernel@lists.infradead.org, computersforpeace@gmail.com, frieder.schrempf@exceet.de, linux-kernel@vger.kernel.org, Yogesh Gaur Subject: [PATCH v4 3/5] arm64: dts: lx2160a: add FlexSPI node property Date: Mon, 8 Oct 2018 16:41:41 +0530 Message-Id: <1538997103-11152-4-git-send-email-yogeshnarayan.gaur@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1538997103-11152-1-git-send-email-yogeshnarayan.gaur@nxp.com> References: <1538997103-11152-1-git-send-email-yogeshnarayan.gaur@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: SG2PR04CA0144.apcprd04.prod.outlook.com (2603:1096:3:16::28) To HE1PR04MB1034.eurprd04.prod.outlook.com (2a01:111:e400:581a::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5270b541-9370-45bd-33c3-08d62d0f250b X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:HE1PR04MB1034; X-Microsoft-Exchange-Diagnostics: 1;HE1PR04MB1034;3:sBd9GLhU74P1P+Qod0OcSaNptxLw2yucpyF6WTFBOlq7ukZuIcTzaqukfU9tTQvntpNeRuuty52X1wpgf1Glwv7KbX6jplAF5lZ3WT3PGjMCUL1aMhzPq5pB8Z3NRCYF9t1FsscI4ixYsn+P+BVxpVDZLZ2rL4Un0coSQqC3HIk2rAY05+fNYBndV+gybi4n4Zk9CACsbZunX6dE4oMWqOeK8VPF5DGggmYKEADo9ItSJUDceK3DTPVDRtkxCJ5T;25:0vvYJUHPe07oHQ9eBwXSMYxM3RULQSv75hTYFICYVJHsdqvPxurI8iLBWR7LMVquivkbunthx+QYNsNT8NoTLKnUBBj1qgD9/G91/z/Byz5tT9jfxqe7MHsewmOCDrgcPJJwncWu+eg+ItnzEmZnWyy8pe/ZddMSjMV+aJNGg9GS0QwGFdh3FCfwWW+cZTvZ3FKpXIxa8TZVJxRNr5+MzhjDHgs/i+vaAk0OkLWW8L3XnNqAQo3XhXdecCWv6aTaqXFzbBLQ+LTYYKfOd0X4PyFpA020ypXY5H8C7o0quZJWy0WVMXnDgsMBXtoJvSVLa+SQzcDIxIhOrh8HMSqlPUbnbuwCb5IJxZmFnel07Rc=;31:PGiWB5HRV481TWrHT3aZzkIui19Ha2/gaz5sjaDK8PeIjLHYgFOWpFYHXwBtnowuU9HvcOvNbGhf1CLplHXjBFJMhjYXa9wn7tMawnTj+98MQUZUf0pQxQFsDhGICQ2fELATeEzOnvm67YPbtr7c+qlnWOyMU3Ki5SOVbmszuCZHiwEGHImjbvzMaPMmQ5dlJ+uocj06VL73RNP+3NPosnPaYIiBmLmSFU1vN7gK7Tg= X-MS-TrafficTypeDiagnostic: HE1PR04MB1034: X-Microsoft-Exchange-Diagnostics: 1;HE1PR04MB1034;20:d4VDD28EXdkwc0z33h/I7vF7/9rG4pXC7QAL2a0u9SLy0giGPS9phFX/3gdGeZz8krmXJWS7Sw5FcicLm9/5bYLKJ2aJC1d2xkO1MZuxl/FLb7e7UPqDyh69UUbxTSOaRPDyVFen+Vy1BonHSzxpuPWLX9HHfjgRCBxYsGJHe17WlZqqWN/hHUtoXw/YK3jAsWHcVlT3AE1c3Y3vYCn+7JzHJua31VZZWnxxrluOvGWtLRZBODI/k5OtJ/H3QrtKdvGEzBC+YKJ6jRPgKUZXQhncgVCXD/fwt6DW9Vz3Ir1A5zsNN8Lw2TzkU1m6t+tKFeLLs9H5skUBZf+1HsRIBgbByeyrCnLMTwPhrbyZJxBlmiJoSDyzvKwd8xI+R0q8oZWEprGx8u5UhcL8ZuswqxYjiA2xgNIkkHC/Sql3vgtcEwnXH/UurisNh8ESDrsSTpbLfE9nc2qwjiqGngPSLrtTd5wPk7YYFntE8U6AMBWOlieDpWGtrUMV2OwE4A6h;4:rgK2LTmi7YZIupnY84CUnTF96a6HtXs0x4mPlNgbqg2UHRbrnnglDfvzwxc0utiOKnpJf6CLwKFA7NapIUw4I0n1zneB83IYSiansXYJoL/rrq+QY7N5kLYP9ne9H8lwQzgGpHz8zzgBESddZRgmcYgE9qLxc4xXdWaPffdAtlSjuSqUmExkSTjEzItxBKtBWXZ5B4hDlVj+oNE1Yitbkfr6OUZNNQFVEkCgHtN4+TNapiKyJ7GPPg/6HrAZ275/hK9X5U9Ka+5OvMof/dvkZcJ4GS6vJIxfz48qkw0iIIWr5KBfaknxhK+scf0PlCwb 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)(3231355)(944501410)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(20161123564045)(20161123560045)(201708071742011)(7699051);SRVR:HE1PR04MB1034;BCL:0;PCL:0;RULEID:;SRVR:HE1PR04MB1034; X-Forefront-PRVS: 081904387B X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(39860400002)(366004)(346002)(376002)(136003)(396003)(189003)(199004)(2906002)(16586007)(105586002)(6506007)(55236004)(48376002)(316002)(50466002)(16526019)(6486002)(186003)(53936002)(6512007)(68736007)(26005)(106356001)(4326008)(52116002)(5660300001)(39060400002)(386003)(5009440100003)(51416003)(76176011)(97736004)(47776003)(7416002)(478600001)(2616005)(956004)(14444005)(66066001)(25786009)(6666003)(6116002)(36756003)(476003)(486006)(86362001)(8676002)(305945005)(81156014)(81166006)(11346002)(446003)(3846002)(8936002)(50226002)(7736002)(110426005);DIR:OUT;SFP:1101;SCL:1;SRVR:HE1PR04MB1034;H:idcbfarm.ap.freescale.net;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: 1;HE1PR04MB1034;23:t8VWgOhz28Zgaw/5BGF4WXLbmFq8f4zSwQGRcKDsU0jyKA65HnK3WzjKqum4ORCDiJzMNYMhO5qNiLt3UfIJ1q4ylxGJSvkJg3dvNqBjOsvHRxfPohq3ssC9cKbGjOvkzmcoSHS4QSTMej/KWYMfS29QzzSP7MQ6NhDf0C5Fj7jLnxBg8BXcjp9WlEhkSJRKkaToliH4qgQqGgnhn9QqswotZEOvM3r9KQ3QkSnYNeTOP5F5UpjyDlEKuG93+BTs1cKrJbzcZudb6bfEbK8M3N7EGn3pJFsSn1yvFjCuGbLwD54fpPxZIlQtolzQywt6o5de7oojGLtir28JH4rrBbsEJ+H9sr/5jV9Db6g5MsXFEJOMbbmMhtNU7/8NbJALT6i7etyFS4LFja27zRZcQHkCb2ws3TvOyXGD6aneHv8JKDn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uvA73V4hlIXPiyQnyMXiHNbsPzI/BZ76EtG SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Oct 2018 11:13:54.4223 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5270b541-9370-45bd-33c3-08d62d0f250b X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR04MB1034 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.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 --- Changes for v4: - None Changes for v3: - None Changes for v2: - Incorporated Shawn review comments. arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts | 22 ++++++++++++++++++++++ arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 12 ++++++++++++ 2 files changed, 34 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..901ca346 100644 --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts @@ -32,6 +32,28 @@ status = "okay"; }; +&fspi { + status = "okay"; + + mt35xu512aba0: flash@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "spansion,m25p80"; + m25p,fast-read; + spi-max-frequency = <20000000>; + reg = <0>; + }; + + mt35xu512aba1: flash@1 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "spansion,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..bd2d606 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 { + 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"; + status = "disabled"; + }; }; };