From patchwork Tue Mar 21 12:43:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Ungerer X-Patchwork-Id: 9636551 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 E270E602CC for ; Tue, 21 Mar 2017 12:47:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D456A27C0B for ; Tue, 21 Mar 2017 12:47:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C93F227E22; Tue, 21 Mar 2017 12:47:57 +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=-6.9 required=2.0 tests=BAYES_00,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 735FB27C0B for ; Tue, 21 Mar 2017 12:47:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932369AbdCUMr5 (ORCPT ); Tue, 21 Mar 2017 08:47:57 -0400 Received: from icp-osb-irony-out4.external.iinet.net.au ([203.59.1.220]:36616 "EHLO icp-osb-irony-out4.external.iinet.net.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932242AbdCUMr5 (ORCPT ); Tue, 21 Mar 2017 08:47:57 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2AvAgCqH9FY/zXSMGdeHAEBBAEBCgEBg1GBa41ykDIBAQEGlmeCDhqGCAKDDD8YAQIBAQEBAQEBayiFFgZ5EBgnElcZiXcMrQMmAooqATGGCYlYfIR6HwWcTQGSSIpshj+TXh84gQQjFggkCIcqLjWHBII9AQEB X-IPAS-Result: A2AvAgCqH9FY/zXSMGdeHAEBBAEBCgEBg1GBa41ykDIBAQEGlmeCDhqGCAKDDD8YAQIBAQEBAQEBayiFFgZ5EBgnElcZiXcMrQMmAooqATGGCYlYfIR6HwWcTQGSSIpshj+TXh84gQQjFggkCIcqLjWHBII9AQEB X-IronPort-AV: E=Sophos;i="5.36,198,1486396800"; d="scan'208";a="246776701" Received: from unknown (HELO goober.accelecon.com) ([103.48.210.53]) by icp-osb-irony-out4.iinet.net.au with ESMTP; 21 Mar 2017 20:43:51 +0800 From: Greg Ungerer To: linux-spi@vger.kernel.org Cc: shawnguo@kernel.org, kernel@pengutronix.de, fabio.estevam@nxp.com, Greg Ungerer Subject: [PATCHv2 2/2] spi: imx: document use of native chip-selects in devicetree Date: Tue, 21 Mar 2017 22:43:25 +1000 Message-Id: <1490100205-31309-3-git-send-email-gerg@linux-m68k.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1490100205-31309-1-git-send-email-gerg@linux-m68k.org> References: <1490100205-31309-1-git-send-email-gerg@linux-m68k.org> 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 Document the "<0>" notation for specifying use of a native chip-select in the "cs-gpios" tag of an SPI device in devicetree. This isn't unique to the spi-imx driver, but this clearly spells out that you can use it with this driver. Signed-off-by: Greg Ungerer --- Documentation/devicetree/bindings/spi/fsl-imx-cspi.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) v2: added documentation to patch set diff --git a/Documentation/devicetree/bindings/spi/fsl-imx-cspi.txt b/Documentation/devicetree/bindings/spi/fsl-imx-cspi.txt index 8bc95e2..cfc60cb 100644 --- a/Documentation/devicetree/bindings/spi/fsl-imx-cspi.txt +++ b/Documentation/devicetree/bindings/spi/fsl-imx-cspi.txt @@ -12,6 +12,7 @@ Required properties: - reg : Offset and length of the register set for the device - interrupts : Should contain CSPI/eCSPI interrupt - cs-gpios : Specifies the gpio pins to be used for chipselects. + Specify use of native chipselects with "<0>" in place of a gpio. - clocks : Clock specifiers for both ipg and per clocks. - clock-names : Clock names should include both "ipg" and "per" See the clock consumer binding, @@ -32,7 +33,8 @@ ecspi@70010000 { reg = <0x70010000 0x4000>; interrupts = <36>; cs-gpios = <&gpio3 24 0>, /* GPIO3_24 */ - <&gpio3 25 0>; /* GPIO3_25 */ + <&gpio3 25 0>, /* GPIO3_25 */ + <0>; /* Native chip select */ dmas = <&sdma 3 7 1>, <&sdma 4 7 2>; dma-names = "rx", "tx"; };