From patchwork Wed Feb 13 07:36:10 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: 158196 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp4752333jaa; Tue, 12 Feb 2019 23:37:32 -0800 (PST) X-Google-Smtp-Source: AHgI3IYPl+3xGsqKAz3Q5bT0ZoAeTqwpczBxY+RLH5GN2rgddlaE9tITDZ1rqblo2Zh/U+SH4ITA X-Received: by 2002:a17:902:8204:: with SMTP id x4mr8293078pln.59.1550043452306; Tue, 12 Feb 2019 23:37:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550043452; cv=none; d=google.com; s=arc-20160816; b=K1emeZOfQn3DAnsWPkQKpTN1YvyAoQMQrjM6cXSYtmIRt3eg38Ojoxg0kG2Ja7vtQT 9QqB9JbH4Q8OGUDYhWY4aPxbwSyt17JsIcNClHGwH5rlA+skjpVUSQPZtDJJ3Ooyy/dI BsxYEcvxFJ+7aVs7CY7zzQNfuBQZ1y1r1P1ROX3z+hKVWS/2yAGYo2aZtSox6PivRRpT ejTOKYgvFRFLgCUDZAj/pfcwhJj1Xr66n0xA30PkV8tkXxyHapn6Z1FNY5UJtMg+qDNx HimK45b6I9heiu81RC1xRI5uxgDZ2l3uF1k+fu5fFYZ8a9j7105oXiFjqR3KTXTJM605 Wqkg== 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=IuEgx9iAHvTk1jDMUjBUTSMxKsXFBOFl5qP8s21qcdQ=; b=snM3+9DZ+MOfrWppE8u7R2zu3Jqqe6whzSghFttkK5sPmkbjw6Ki+TjYehCy1DyCGB Vj/R/Q/py0SPWRniS2vWlAbILttkQR5bavPblCuZ4ElXb2fBwjBKilYQkTMHRXxBh4S7 Ah2LfQRP62c9qenoqsa2S1pO0FyJSsXO5v1AwgBFS0BPic6iPIIQA+8Dz5YrbMMYVonf Ljz2IGFhYo8rReYehUnAqXyDHLRYoo5hzxNtbi5m0TZglOSJk+qy9ajjQev314CDgBJg fdikrGHSmivLO4Qilyj02I+bU+WARUVqDLw2hFM+7oz6VQK/XrebdfLk9Zl2jEhTHje+ cYAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GibGtyYY; 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 e11si3229143pfn.124.2019.02.12.23.37.31; Tue, 12 Feb 2019 23:37:32 -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=GibGtyYY; 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 S2389132AbfBMHhb (ORCPT + 31 others); Wed, 13 Feb 2019 02:37:31 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:41519 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732703AbfBMHh3 (ORCPT ); Wed, 13 Feb 2019 02:37:29 -0500 Received: by mail-pg1-f193.google.com with SMTP id m1so754562pgq.8 for ; Tue, 12 Feb 2019 23:37:29 -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=IuEgx9iAHvTk1jDMUjBUTSMxKsXFBOFl5qP8s21qcdQ=; b=GibGtyYYnadfSrBALKN4QjZ4yKIUveoDbLl1BXiBMDObJ/35M4XJgslpfEPm+EPI/K wwcmpDOMoz7cc0AMDXRmhpJFpgU9EoHuKIKFRyep+6VTGkmlDO1XjyCEK+XQT3avcYrL jFrPUgx/GQb3XWrPrumSI+6/sWvyyQe31JrvLTLqNTjvjQ3IywJjE8LMpFvtOa+WGTd7 +tybEn6yQQfBZTz/T7dBZR97lAGAL2ovbBlYM4D6cV7oQvpO9r0hubv9GtltDsxiS0B2 ORfxjcxcDOZAFxqtsWRGSaWfQJe400tTo6SUWrGGLAuj3/GHvc6sJydJpevej7eVaWmS ZyNA== 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=IuEgx9iAHvTk1jDMUjBUTSMxKsXFBOFl5qP8s21qcdQ=; b=neCu90Wd+1SjnRMabZLCK9SfpwGDcSJHW8ZrojxH0SScuIWc2EzipASdecPSLoDNp6 SDAl+o0/vOQevH+j1lruUhqtpsQlJ8Yi/l0E31/Tt1R4qwtbtZWnYhpj0QS45l8YAqU0 ocrVOeLqm+I6ndQ8B1grlnmFOM+zpdHPtHhOiT88pJsX55tbOvtGjQWBKcbjSSm3yZ3B MsA1vR1g/HDDs+hv+HMUuK09G8wdcuUB9cwPPgo+aEZGAOk4HBM2SXSLPOwF9AOXax5C ObXuJbeDhAsNE4Gkg9OvjqU2y9fWeOFoEc5eMmjGJTyyPeE0FvIkbU3CVlQQIBJQC2vQ AX0A== X-Gm-Message-State: AHQUAuZR4sxFbNgWx3TW5zxG8rChRysr9Rjda5+2RESucdq1WCgPtCLZ MwRD/vTWKOhT73CL4UIt5JrVpQ== X-Received: by 2002:a63:da14:: with SMTP id c20mr7390174pgh.233.1550043448750; Tue, 12 Feb 2019 23:37:28 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id m67sm27060706pfm.73.2019.02.12.23.37.24 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 Feb 2019 23:37:28 -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 v2 2/3] dt-bindings: spi: Add the DMA properties for the SPI dma mode Date: Wed, 13 Feb 2019 15:36:10 +0800 Message-Id: <2be9d6de92507e5886433fb2cd55117c63b63d72.1550043082.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <11e55b5f9b0d83649a5b81c7e3fdb667cd3ddc5b.1550043082.git.baolin.wang@linaro.org> References: <11e55b5f9b0d83649a5b81c7e3fdb667cd3ddc5b.1550043082.git.baolin.wang@linaro.org> In-Reply-To: <11e55b5f9b0d83649a5b81c7e3fdb667cd3ddc5b.1550043082.git.baolin.wang@linaro.org> References: <11e55b5f9b0d83649a5b81c7e3fdb667cd3ddc5b.1550043082.git.baolin.wang@linaro.org> 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 --- Changes from v1: - Remove sprd,dma-slave-ids property. --- Documentation/devicetree/bindings/spi/spi-sprd.txt | 7 +++++++ 1 file changed, 7 insertions(+) -- 1.7.9.5 diff --git a/Documentation/devicetree/bindings/spi/spi-sprd.txt b/Documentation/devicetree/bindings/spi/spi-sprd.txt index bad211a..3c7eacc 100644 --- a/Documentation/devicetree/bindings/spi/spi-sprd.txt +++ b/Documentation/devicetree/bindings/spi/spi-sprd.txt @@ -14,6 +14,11 @@ 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 and DMA slave ids which the SPI used + sorted in the same order as the dma-names property. + Example: spi0: spi@70a00000{ compatible = "sprd,sc9860-spi"; @@ -21,6 +26,8 @@ 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 11>, <&apdma 12 12>; #address-cells = <1>; #size-cells = <0>; };