Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3764946imm; Mon, 17 Sep 2018 02:51:53 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY2XqcbQF6EgfxorpRAZfI/jF/ne8mF//ErZoAHAcWwr868FTLOz88OxjEUysFhg90OgTjs X-Received: by 2002:a62:23c2:: with SMTP id q63-v6mr25083364pfj.116.1537177913937; Mon, 17 Sep 2018 02:51:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537177913; cv=none; d=google.com; s=arc-20160816; b=uxc6auTFad95FhrHWze6uAfFKpfK+62uH8IJTw6X711ooJfbtr5nbNbwyPPdYikMCV U9xJYoMnQUELL3yrtFmj6lYJqVkdWBEO0vNrGdWJuunX2HaWRmJjYfleiu3tzBL1ZT0a 6oE2xJjd0bFYuR49xOvqqUIiVqNNqKi7J8Cnm7s/msbS3m76OPrmjC0Z8DIIfbGmeO4f s+PT/TxWVEg2iP2OclvO7GUPMGfgQN/yVSrZCF7iHq9FqGpxMssVSEB6ks1a3qEIEIVF w2Lw/zarmF7b43CVd8f76PYZX9fPclHWB7Aioy2w4sp8/W5e/xB8B3FrL0XB9bTxh0ll jmWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=M7LEBYYERyl8uAN1XZ2vuufzbdRNxTStgPhAECOFjXc=; b=kUJ2M7G8xLJkjuCtIfBZ7w9Mhq+pcTHrr/vSrLFHt/MzgCGSLrNeyTMv9/TzPcKmGh b9dSqIPhh7V+t2WeBUpPkF9ZF7yLNm/jVFk7liBPps2ycJMtKfP9QEljXEkNufkj5adD +jtIG6aeahfR+oG8vnWWgBZdn/GYWbyVZ8Bo96dcwAJcOiLFSg8VdrHEIeesVwoBU0wI E+JuxsgEU/ES3sXV6oMDOwxfP7hT84uuB/bumWpfQ3SgJXv5M6v1sU2s0gekayRf8Gql IT2VKWERhIjX3/ENv2nfbYW1p4j++A4blV3KPEUMtC8vLPf9/eeZGFuK8ZagTPr1/W3k NELw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=UzUC516K; 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=pass (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 f187-v6si15842265pfg.122.2018.09.17.02.51.38; Mon, 17 Sep 2018 02:51:53 -0700 (PDT) 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; dkim=pass header.i=@nxp.com header.s=selector1 header.b=UzUC516K; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728194AbeIQPSE (ORCPT + 99 others); Mon, 17 Sep 2018 11:18:04 -0400 Received: from mail-he1eur01on0064.outbound.protection.outlook.com ([104.47.0.64]:36864 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725757AbeIQPSC (ORCPT ); Mon, 17 Sep 2018 11:18:02 -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=M7LEBYYERyl8uAN1XZ2vuufzbdRNxTStgPhAECOFjXc=; b=UzUC516KlOmos++dxVYkLLFmnOMBTsC8opQRqip0AtuwwCrfeY0jKLOpJEokPKoAXSvYhG2RnNmfbcGvdDkVD8gC1NQk/ZG6iFiR0hA+Pc3V1pCHKDjLffLVvhTXEfq90MJLb1vK+Ik4z/jcfIjXDW6FdoUhVhXn88bZSprBy6Q= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yogeshnarayan.gaur@nxp.com; Received: from idcbfarm.ap.freescale.net (14.143.30.134) by DB5PR04MB1030.eurprd04.prod.outlook.com (2a01:111:e400:510c::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1122.19; Mon, 17 Sep 2018 09:50:31 +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 v2 2/5] dt-bindings: spi: add binding file for NXP FlexSPI controller Date: Mon, 17 Sep 2018 15:18:27 +0530 Message-Id: <1537177710-9379-3-git-send-email-yogeshnarayan.gaur@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1537177710-9379-1-git-send-email-yogeshnarayan.gaur@nxp.com> References: <1537177710-9379-1-git-send-email-yogeshnarayan.gaur@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: SG2PR06CA0201.apcprd06.prod.outlook.com (2603:1096:4:1::33) To DB5PR04MB1030.eurprd04.prod.outlook.com (2a01:111:e400:510c::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 20152c99-b117-49aa-7513-08d61c83050b 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:DB5PR04MB1030; X-Microsoft-Exchange-Diagnostics: 1;DB5PR04MB1030;3:3l+qIqnQOzUmIKwG6lude8xDLUAFL53t8IwedLTaGOy2TxJ5c71I907SFVUIGa+k0GMTnKBcxKCT4yBRlxAsD8nM/LzseDoQwWDEQjG3YJSR4zzsZtp4iOlSFFTB92B8a9eitWAKxRcG7ut0x3NP3T2ffhmFADL8qXuKfZlXaJf3Xng8N/KaA+5vJiY+J7HV/d0kaVBn1+CEarxJ1/dl93yCLHdOpU+RWah1UoaquHe84sBlrPt55nAt5lzlUV1U;25:vYvCRIkMSeNIsrRpswo3EQP/fB6+68H70a8MxwQHB9t/q0I+Gez13RDENTjm6ayCnA+kwpqXXjLEaerXWAy905Qa22KhmRTLcoyzxkVqMQ4hZGITZ5PVDw0OvPNTSFvvdCYhJfDWrRapd2pMMmIStdVi6yIFO8q3PUYMN/7EcavDztp5NCIWkAkFe4kmFe4S+o9WlIPlzBIG9iC592iXD7KuJdxjMmA120F++XLYwPar0FKi2Wt4masIr9s6qhRpg60L/OQyMYiROe2uwaZaZSX0NwXPcao8p8GenAeiCX4/5g6xMjj3ZHySZK7wulA7oX/nNZVtfLCSJ3/Td8mdXg==;31:tnW6gHO66DJpmruiy7r6gbbCcPJglEWQ+ynxZTJixPsPOlvNbPjcz4Yiro4WQD15t2p+yAgdUPhbH++ngVEu2jDzDeUq4nJxrxPwbLL/vA5t+RR0rG330T5ZSMRb4E088MSFWX/b+8iXodOiYmtnjYxHkp5ttzUUXlkTt7XKduYZ9fQ6cVfjn1QF9ZdNyuWfX25Reb9b/HEkVwW+Q7gvf3Vru1DW9m6TnG/YWWC5xPw= X-MS-TrafficTypeDiagnostic: DB5PR04MB1030: X-Microsoft-Exchange-Diagnostics: 1;DB5PR04MB1030;20:jmhswYeWF2wBFPT33fa1Ef4L9FgumKldlZDdZuRn6aZH0WOTfIYP+9OPIXH8NG6t7K9nbXjWURN1Owblai86fh1R5R6liD23kAzWPIgymRYmAWzN6lbCDR3k5x80U1Hod8MqUNlEwrs082YxxH9o+anReWPhl/6P17jGtmvrGYGJ9kBwzvzHSEQ6JONrrn1syTEzyx2GSpVAHYKDbQC+ejvjEPRWYsV9sFLS+bogXNC9QSYPx9J2EDJ0pLEfn4MdVeAIlflwhCcGMWzi+FSKbNGuiZYj0+9bj5q0zZ7TKPmhSnN0t6JjUoj3WzF6pZKXuzZeZr937Df21jOO4MD98sLEQ/9PtK/LJ9hyUI3ZFePL3EiBbiSCY9BrLrVb6yA1IYuFoNSOnEwhqUiD8s012VLNPB3zXrNLm1OWNuHCtH+Jbk7D9Z+gw24uwFk3w3CP/7Z4FfYCIBiOG67fjFz+ScYcytFBYEl2Mlg4Ztj8cyq+7lkzl9cskrWwLvjBjgPj;4:2YE/hsvG/4FQaTIgql8xaJvzTSHffadlKPn16kaEODlZM5/RW2IID9ppO3iW23GaepO9EelVjTEHVePA1y1DMOrUxQj+rWiithpgOBX/s8ka/FBVTc8V7YWIdbZ+C0U6KSn0KUVu9aDwC/Tt3qx0OWJ2Vovv8xdQFWzO8J/oREXRm32OxwPzHEp9x4tfRRKyik9I4m3Oj+XW5UQRYzuGNGeBiYhJPMc0KFjHAEbsLye0FmcO3XD7qbCZyrWkgGQH+/gZwmVV27sb3nRHvydgShISu1jp+8p9zdrR1Rfp4K0MFAp2ur1UoR9Zr3Anm/MA 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)(8121501046)(5005006)(3002001)(3231355)(944501410)(52105095)(93006095)(93001095)(10201501046)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(201708071742011)(7699050);SRVR:DB5PR04MB1030;BCL:0;PCL:0;RULEID:;SRVR:DB5PR04MB1030; X-Forefront-PRVS: 0798146F16 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(39860400002)(136003)(366004)(376002)(396003)(346002)(189003)(199004)(106356001)(7416002)(26005)(66066001)(386003)(47776003)(316002)(305945005)(6506007)(55236004)(6512007)(6666003)(86362001)(81156014)(186003)(68736007)(6486002)(50226002)(16526019)(105586002)(8936002)(16586007)(51416003)(478600001)(76176011)(52116002)(53936002)(97736004)(8676002)(81166006)(36756003)(5660300001)(7736002)(48376002)(3846002)(39060400002)(476003)(25786009)(4326008)(956004)(446003)(11346002)(2906002)(2616005)(486006)(6116002)(5009440100003)(50466002)(110426005);DIR:OUT;SFP:1101;SCL:1;SRVR:DB5PR04MB1030;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: =?us-ascii?Q?1;DB5PR04MB1030;23:3P3xbeMYRS20KLC0jSvPmDVc9AGij4g60X3k7JQVA?= =?us-ascii?Q?OE+C/rOMD9ur2huazQd/Mcs2329vGByLMoPutrNO+zXG0ARC1xBKSMtVlzwu?= =?us-ascii?Q?4TWP3aIlfW6f7myeeKYJBl6NJexOFn6HUc+z3/zYuJ2qoiRwBzEB4yroDbAT?= =?us-ascii?Q?YoPw0WhGyP4EdYT5xDrrDCov2mgKP26szUvKV9GEfMv+D0JLVSJMOh9c70Cr?= =?us-ascii?Q?wRAncQVwyXqAWfXMbFBfgbBMbKq6iPbdqGRtLZGqsTcm+x8s6wlD2s8auwO+?= =?us-ascii?Q?foa/AJd8vxtH2Ytj1msCPko1+4ZphD1vbSLwRuUk1DEusqJACJqxDWIToxVx?= =?us-ascii?Q?l6FTHl0cFwl4TgEAUtE6cDNsK/m0LO0nB8GWp7WpbR30q/5Y4+Tm9butBH3S?= =?us-ascii?Q?AOZzXUQNHa7rA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QyXECoJ1m7OeFKfAa81am25CMw/DGDMsNupjkq1ntIr9eRUq+mPS/A84oSfG/eEIZGl6sfs67suxc48T6EH96KOJA/NL+bWivnNRLkaiUXKL7nh8JtMuBMDQgTevzdvbJqP68Qgto/UgaoL6ig6HN9WtFAJq/vsfcqbEMSz8BjQMolldaLOjm9bWxvN/+QGFF73TtoxKV7/uGOGp1nCMgE9RYygbPxUZv0hBWuL+l82m SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Sep 2018 09:50:31.7935 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 20152c99-b117-49aa-7513-08d61c83050b X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR04MB1030 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add binding file for NXP FlexSPI controller Signed-off-by: Yogesh Gaur --- Changes for v2: - Incorporated Rob review comments. .../devicetree/bindings/spi/spi-nxp-fspi.txt | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-nxp-fspi.txt diff --git a/Documentation/devicetree/bindings/spi/spi-nxp-fspi.txt b/Documentation/devicetree/bindings/spi/spi-nxp-fspi.txt new file mode 100644 index 0000000..94b5203 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/spi-nxp-fspi.txt @@ -0,0 +1,42 @@ +* NXP Flex Serial Peripheral Interface (FSPI) + +Required properties: + - compatible : Should be "nxp,lx2160a-fspi" + - reg : First contains the register location and length, + Second contains the memory mapping address and length + - reg-names : Should contain the resource reg names: + - fspi_base: configuration register address space + - fspi_mmap: memory mapped address space + - interrupts : Should contain the interrupt for the device + +Optional properties: + - big-endian : See common-properties.txt. + +Required SPI slave node properties: + - reg : There are two buses (A and B) with two chip selects each. + This encodes to which bus and CS the flash is connected: + - <0>: Bus A, CS 0 + - <1>: Bus A, CS 1 + - <2>: Bus B, CS 0 + - <3>: Bus B, CS 1 + +Example showing the usage of two SPI NOR slave devices on bus A: + +fspi@0: flexspi@20c0000 { + compatible = "nxp,lx2160a-fspi"; + 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"; + + flash@0: mt35xu512aba@0 { + reg = <0>; + .... + }; + + flash@1: mt35xu512aba@1 { + reg = <1>; + .... + }; +}; -- 2.7.4