From patchwork Tue Jan 15 13:46:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "(Exiting) Baolin Wang" X-Patchwork-Id: 10764499 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 C7260139A for ; Tue, 15 Jan 2019 13:47:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AE2C42C103 for ; Tue, 15 Jan 2019 13:47:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A13292C150; Tue, 15 Jan 2019 13:47:59 +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 471E82BB7C for ; Tue, 15 Jan 2019 13:47:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729819AbfAONrl (ORCPT ); Tue, 15 Jan 2019 08:47:41 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:45573 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727931AbfAONrk (ORCPT ); Tue, 15 Jan 2019 08:47:40 -0500 Received: by mail-pl1-f194.google.com with SMTP id a14so1304992plm.12 for ; Tue, 15 Jan 2019 05:47:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=ll6G7H6g2hrlSHKMGdHliIHSg/LmHRKVCWDufi604es=; b=afhPf+/AFgSiaeZ3wgDf7gCHK4jm7lzRvezQGcUKH0vah5oY24CEyIgHwho2UQGJju fWhPmSQgnZsRdLr2uzhsrSEs3GmSR0LVCU+FoONj3Xf9ayn5sk8flu9UQRip/LBqd864 uGakXmzHHyyk11OaWHqJxXny9svFskj+xj5WM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=ll6G7H6g2hrlSHKMGdHliIHSg/LmHRKVCWDufi604es=; b=J+o3uj7LdexvxxybYOTao7//f+t25/p2+GYUogX4zbJTloKEKak/4eXXgDNrS/UTon 1crCpTiahiSAFNCQjlqLjQE1WIsHUMM9tihoPAvY/9ttBcTBr2uHitWrpTJpHPeZqCyk GWJ5IdEObz0vS8NhkZdLdeqZ7wL5k5ELgGGuBoy7W25D3pMukVx2CKvmVX6Q83r3JrmM HAbaPQktOketQ3Tf0OuJkO9ZuoiTg3ctmnk2hvVfjYrphYXEKk0Pl6f11TCJj6kJVgdR wNHmluNQlLVNXBxImFwMWT4TIzM8VdDDjlQLRqilFsr9SrOpwGKvRcVDH0QgEbph6jRq lgNg== X-Gm-Message-State: AJcUukf+Zpqok+nigEzRh2kV/hiK+sOBqPsT+rAcFnwxjt9HnjcyIC+f uFWkd0Er7qtAdIwGseTPfT34yQ== X-Google-Smtp-Source: ALg8bN5QpnXEfChC2Tx7vpbQfYShJYYexiPijB51L0AJU4szCElkUpsP7eC4pgMILRRYJOScCiP/pg== X-Received: by 2002:a17:902:27e6:: with SMTP id i35mr4154891plg.222.1547560059939; Tue, 15 Jan 2019 05:47:39 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id y71sm5979422pfi.123.2019.01.15.05.47.36 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 15 Jan 2019 05:47:39 -0800 (PST) From: Baolin Wang To: broonie@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com Cc: orsonzhai@gmail.com, zhang.lyra@gmail.com, lanqing.liu@unisoc.com, baolin.wang@linaro.org, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] dt-bindings: spi: Add the DMA properties for the SPI dma mode Date: Tue, 15 Jan 2019 21:46:52 +0800 Message-Id: <7538d5806003b8f67e7e0d35638315974b7c2b50.1547559542.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: In-Reply-To: References: 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 From: Lanqing Liu Add the DMA properties for the SPI dma mode. Signed-off-by: Lanqing Liu Signed-off-by: Baolin Wang --- Documentation/devicetree/bindings/spi/spi-sprd.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/spi/spi-sprd.txt b/Documentation/devicetree/bindings/spi/spi-sprd.txt index bad211a..01ef53f 100644 --- a/Documentation/devicetree/bindings/spi/spi-sprd.txt +++ b/Documentation/devicetree/bindings/spi/spi-sprd.txt @@ -14,6 +14,12 @@ Required properties: address on the SPI bus. Should be set to 1. - #size-cells: Should be set to 0. +Optional properties: +dma-names: Should contain names of the SPI used DMA channel. +dmas: Should contain DMA channels which the SPI used sorted in the + same order as the dma-names property. +sprd,dma-slave-ids: Should contain the DMA number that the SPI hardware required. + Example: spi0: spi@70a00000{ compatible = "sprd,sc9860-spi"; @@ -21,6 +27,9 @@ spi0: spi@70a00000{ interrupts = ; clock-names = "spi", "source","enable"; clocks = <&clk_spi0>, <&ext_26m>, <&clk_ap_apb_gates 5>; + dma-names = "rx_chn", "tx_chn"; + dmas = <&apdma 11>, <&apdma 12>; + sprd,dma-slave-ids = <11 12>; #address-cells = <1>; #size-cells = <0>; };