Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4990258imu; Tue, 15 Jan 2019 09:15:16 -0800 (PST) X-Google-Smtp-Source: ALg8bN6/OnQvFUa9LZZ2j13qLDvXwrUDibcbICKTJZVHiof3Z0mqYsq1M5EoQkWouPByVIx/ByII X-Received: by 2002:a62:5b83:: with SMTP id p125mr5117331pfb.116.1547572516817; Tue, 15 Jan 2019 09:15:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547572516; cv=none; d=google.com; s=arc-20160816; b=QqpNU6dOoaaCw2Hn+rTzkridwKdFWr687ZhW8bEfjX8sX2DiZ5aTNuFRKe0dT33wEv LePsCDQUbY5kcbEzwQ6wfVEJMW7dra1VcY81n/8w/UqfZq7ZdRiyQcXAmRlXmJBs+RUz X5GU9UiHQIpygEv0LksDuaTHmvOEF8lV+FzvfxFQRA4SjTaqpDIEwuRJxsdKh00zsWS7 JReQdiiTtc4vh3eOR5Nir5Y6yw9LMm9fLllXhodwpdqhFt9e4Q7Ayxmt77HK0QdM2PKS qMPUtkrH4PoXbX2eTyfi5Cv4qaWLZsMMTG0NC+8LS2L/u1p9QEfP2/XGhp7geKcCeUKw y/bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=ll6G7H6g2hrlSHKMGdHliIHSg/LmHRKVCWDufi604es=; b=ddVx2wVWY7nolydax+W/kNUsccNk8bFa0EKlRtv3jmbGks8hf+K7GZWUahhf4D2ilY ndvqb1SxQaAmVQKmOQcfszukdQBEGbQuAjlei7VLfnW1V8SNWQnvzMCVHhLImt86uq5J MO8FSuEw8vqpYTtiea3ynkgue+vGMKa3EJBFGW4N/I42pvPWvGmKdK+5r0gMHbIsyvMX LcB1XKnuxZc0mg43bLxcFmCFuqbKC+JcU5+I3z2qGvT4ZkiaOkg701mEzSsVX549CapF kQdUyRdcnJy8r5u/u+GII956fFWUqPlKOjwMHnFfhwZX1fz8zVLtYqBmDzYnlTDY1o2/ ZQEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="afhPf+/A"; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z6si3524274pln.66.2019.01.15.09.14.57; Tue, 15 Jan 2019 09:15:16 -0800 (PST) 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=@linaro.org header.s=google header.b="afhPf+/A"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730019AbfAONrm (ORCPT + 99 others); Tue, 15 Jan 2019 08:47:42 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:34892 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729598AbfAONrk (ORCPT ); Tue, 15 Jan 2019 08:47:40 -0500 Received: by mail-pl1-f195.google.com with SMTP id p8so1330895plo.2 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=RtI/yW9+HkkOfpLmmjWNMnkwRf6uJYCK+1I1brZcF/Q6o5ID3DpujAh91O1NQZAf7Z UdlyR6cU2C271l7PodAVeFmAW8hdlqFUkpXJdLjrOylmAO6hRYw98alfRv3JEY3yKcP5 SE5ObgayTLHaFN4wRiESqy5G4V1WQysNVzxsYEF5br4o3Q8hUTxrR5wkN3IT+AHRqufH a33uNw1mWdRUFbnyH0B9CbN8yv6h5jwEOVTwNrozic03iA5lJbCPUrFzlnRAHcs/XB/S Y9/1IpCREnQWunUt50yAlmQljroVtE0Mbm5QTbpmrD9lUZAN8kpxQA6QadLe0F/yCiXw F7Xg== X-Gm-Message-State: AJcUukfKy/aHJgeUVGEVeqlu6tm+DXp8WF05ZswtFoHoo+p1b8OhCPMF gK1UEXEDGfgWw/L5wkcTXJ+DSw== 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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>; }; -- 1.7.9.5