From patchwork Fri Nov 16 11:13:57 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: 10686001 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 136E614D6 for ; Fri, 16 Nov 2018 11:15:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 01C282D1A4 for ; Fri, 16 Nov 2018 11:15:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E975B2D1AC; Fri, 16 Nov 2018 11:15:41 +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=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW 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 6D02A2D1A4 for ; Fri, 16 Nov 2018 11:15:37 +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:In-Reply-To:References: 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=35k+H/ygQMGZu84iGjvZTlGXt9r/8eAJ2gFitTG9GFU=; b=XwBB57tpoVUCjA dtV6rbSrBCIxN/xEbpZB8STQ0AuULVav3UKKAU3hB2lm19PsSwXXY/WVLmMWq3TJpd4zUc9H2f1xL 38cMmOWFJRqDHm79q4RehiLVdos3xssm6HCjC6BkuRFaawLm57CH8+EPAsq66f+vGY2ZVF/OvLSwn WAJvfDWPEj1KBFfr6Yy6euwO9xEfVC9ZyUeDjyKlZrukRnC3dC7geAb3WXMwth9Uq2JD+bJepEn3I Pr1SQPKzR5bINIebyjmE5AwLkQlrnXle3af5BztzSHiphmy019QjkkPfX6PtnsqObLHY6X6sQYBdj kvcJ5n3tW6INIpTvnOkA==; 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 1gNc5x-0000Kg-RO; Fri, 16 Nov 2018 11:15:29 +0000 Received: from mail-ve1eur03on0618.outbound.protection.outlook.com ([2a01:111:f400:fe09::618] helo=EUR03-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gNc4f-0006CE-IK; Fri, 16 Nov 2018 11:14:11 +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=1cD9Bj9YXyBtf3Y1n4dkaJ0o/tUjSOKIc4IpguhCOZg=; b=K2Y8zp8KcKGXm46l/Hnb+Ml3/1cvlFpAoa8DPvyxX3EWoeMHrJk1NV9ZG+IHUIQM5wOeSnUt8MEm5cnFvQTimPVBV/eT4vTStHuDDBiCC4/i+4mdPlWaAN1epf6SMRmIHQOpW4N+MFXNfAMDlADwcF1goIRk0k408DQrpRgO65o= Received: from VI1PR04MB5726.eurprd04.prod.outlook.com (20.178.127.24) by VI1PR04MB3294.eurprd04.prod.outlook.com (10.170.231.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.27; Fri, 16 Nov 2018 11:13:58 +0000 Received: from VI1PR04MB5726.eurprd04.prod.outlook.com ([fe80::297b:bb50:9b83:48e1]) by VI1PR04MB5726.eurprd04.prod.outlook.com ([fe80::297b:bb50:9b83:48e1%4]) with mapi id 15.20.1294.045; Fri, 16 Nov 2018 11:13:58 +0000 From: Yogesh Narayan Gaur To: "linux-mtd@lists.infradead.org" , "boris.brezillon@bootlin.com" , "marek.vasut@gmail.com" , "broonie@kernel.org" , "linux-spi@vger.kernel.org" , "devicetree@vger.kernel.org" Subject: [PATCH v5 2/5] dt-bindings: spi: add binding file for NXP FlexSPI controller Thread-Topic: [PATCH v5 2/5] dt-bindings: spi: add binding file for NXP FlexSPI controller Thread-Index: AQHUfZ14KADl+doeRU6lN/QG09PPjg== Date: Fri, 16 Nov 2018 11:13:57 +0000 Message-ID: <1542366701-16065-3-git-send-email-yogeshnarayan.gaur@nxp.com> References: <1542366701-16065-1-git-send-email-yogeshnarayan.gaur@nxp.com> In-Reply-To: <1542366701-16065-1-git-send-email-yogeshnarayan.gaur@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SG2PR04CA0149.apcprd04.prod.outlook.com (2603:1096:3:16::33) To VI1PR04MB5726.eurprd04.prod.outlook.com (2603:10a6:803:e4::24) authentication-results: spf=none (sender IP is ) smtp.mailfrom=yogeshnarayan.gaur@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [14.143.30.134] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR04MB3294; 6:NcI7TDqW4Lsxwx7Z/r214tKdWbBxm3vNMdiXIdlNw2MjsrhuuErIeflsK3aCwdSyYKA5vFZtp4Scg/1gYNyF4svfPsHozLmL40TA5BmzlM/8iUGy3IVYJ79Gv0CzKL1L8XoR8h6itmx65jHBnAhyf5MomNReLNAGQDNtGrM1GJT1GV6UDa/feRR1+1zYncQO46mUJHc48ziiIq6hUsivVhOoV4Dc9FjCPuQ+1izBs+wk/nX0n7Podw/FA94P6/zjkH4kfH49tOmgp4QWoPFL7FemKiYELS6iz++B+5BcjXZCSjKU9vJqU7CY/lHecrFUW3p1t6MbgXdZ53STIR7MSc6zDqlw7IzYISuV4AQRwkwP3P3XvE1yBcvwhINfO8Gq4iw8KeB3Z2nMyLVX7rmgFsAqlIpLE94T/Lk43GlFzbRs9X0Frz2bxkYJWLvlBGqsokx/8wHSnwoMFzCAhaBJyA==; 5:OV/cYFCnEFT13w0Ldg75hys8s7Ccyeb6PscuZKwANboFXc+IYjQGycnUqjh7bXriyEvKlDxfbIlY6PLAS4/zTQy1U2/UQmCmOhUpJ8AGZLWWtZjdShXFNrkVGKKTbhSJpnrmUbYZnJrvoDKQnLFNNwbqCIxBfnT/JVK/Lcscr1A=; 7:y8LcuqxsaxSQsfOOeTV0oH0s8oP9EeqHh3ffg1sqmLEmEpHVqA5dhzaNDIzvyF05IUWFSvsVM2n61y+C6KrmVUybJHFJ9AXrelp6FpjFH+86RF/WHzWz8sOBnnv5mRMZCYK1J9WfZ2RV7qIGSQodfw== x-ms-office365-filtering-correlation-id: 307f8a81-0b86-4217-8370-08d64bb49a59 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390098)(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:VI1PR04MB3294; x-ms-traffictypediagnostic: VI1PR04MB3294: 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)(10201501046)(3231415)(944501410)(52105112)(93006095)(93001095)(3002001)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(20161123564045)(20161123558120)(201708071742011)(7699051)(76991095); SRVR:VI1PR04MB3294; BCL:0; PCL:0; RULEID:; SRVR:VI1PR04MB3294; x-forefront-prvs: 0858FF8026 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(136003)(366004)(396003)(39860400002)(376002)(199004)(189003)(2906002)(81166006)(8676002)(6436002)(106356001)(81156014)(6486002)(102836004)(25786009)(53936002)(4326008)(316002)(478600001)(8936002)(7416002)(6506007)(55236004)(6512007)(386003)(26005)(105586002)(186003)(54906003)(110136005)(68736007)(14454004)(99286004)(52116002)(2501003)(2900100001)(2201001)(76176011)(3846002)(6116002)(97736004)(476003)(2616005)(36756003)(78486014)(305945005)(486006)(7736002)(446003)(66066001)(256004)(71190400001)(86362001)(71200400001)(39060400002)(11346002)(5660300001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB3294; H:VI1PR04MB5726.eurprd04.prod.outlook.com; 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-antispam-message-info: iD8NWTTbHiLxduSpxjD9w3dgKBUENe2zxZVNNQ3s2dhyM5bKU6v7k+XxdTLyFnBchlNcBuP3WQT9jvghUt1obNHOPl1aL6sGsYsM804R6Fe/lRqFkV9h3zZK8Rc+IpH3S89JXrJvjd9iEVQ9sPTEfdWPJTJgKbyMkNoBvWxKfoJJpi09kOE1DlLeXrNEkQqPm6C1CwZDz41baGibhyy59F0bSHoxJ4wo0/jjzvIoy3kK8VxURNNd6t8zKn7QEH9LEOkWDPYUL3IaheHBYFiCkVaLRuhuxDgJoHfrkXcMF80zJNndCQaXYAnzARJmVsntdkpd+j/Qs9m6yguIO4BGD2cmrIsYjtxkz6E78GEm64I= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 307f8a81-0b86-4217-8370-08d64bb49a59 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Nov 2018 11:13:57.9380 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB3294 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181116_031409_619971_9DD9CC9D X-CRM114-Status: GOOD ( 14.71 ) 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 Narayan Gaur , "linux-kernel@vger.kernel.org" , "frieder.schrempf@kontron.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 binding file for NXP FlexSPI controller Signed-off-by: Yogesh Gaur Reviewed-by: Rob Herring --- Changes for v5: - None Changes for v4: - Incorporated Rob review comments. Changes for v3: - Removed node property 'big-endian'. Changes for v2: - Incorporated Rob review comments. .../devicetree/bindings/spi/spi-nxp-fspi.txt | 39 ++++++++++++++++++++++ 1 file changed, 39 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..2cd67eb --- /dev/null +++ b/Documentation/devicetree/bindings/spi/spi-nxp-fspi.txt @@ -0,0 +1,39 @@ +* 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 + +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: + +fspi0: spi@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"; + + mt35xu512aba0: flash@0 { + reg = <0>; + .... + }; + + mt35xu512aba1: flash@1 { + reg = <1>; + .... + }; +};