Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2462668imj; Mon, 18 Feb 2019 06:28:00 -0800 (PST) X-Google-Smtp-Source: AHgI3IYpSB0+whpVGfyQsNnQRlrWcZRnuopQaMzY8x48OA2ViPLAYwLc/XUwcEUFZx/0jWwP1ABB X-Received: by 2002:a17:902:8212:: with SMTP id x18mr25662868pln.217.1550500080811; Mon, 18 Feb 2019 06:28:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550500080; cv=none; d=google.com; s=arc-20160816; b=NNXJ8Nzk6bAcezsRBOsx6B84SGAqstr9NJkMhC4vpVM9fDcEuv/+MSH1v9gGgSw3ze JiNwXgCCPSNs9Rl5Rjs2Pank1ngITs/vghaUIXuopbpZ4+MlzJKojLUxtjXoLlntTQ7k h3onQEjGXNezA/BZnR21Ps+k8EwMkjtBrCRP8/PmBeWv35ud0yq4DZMOaSpxoLX2+aeg oIUu8IzJr0kLVevwr4M5IsNkTfRJsWCDMkprUwe0wwnbDKfEpLdIiQKn62CQFCYmax2s rE9d3ZQ1rA10P2xnBSJa+V6gILNdH/7c2rpq7/qm4ppwfkm0U3bq2LzDJMzuiZiTUqt9 Sqpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=gB1TBIYfrwUyaxu0sNcXukTgaSCRwVJCt6T9qZZbxv8=; b=Ehny2ILE5qQSPg7Ig+MnA/0dn3k1cq18EyvsKIAeucoCdIC3fZri50jNEyAnusbBDl LuzJ9I4IW6KHXeUWXGWL1l41nHc4PRwSb0n1yfZ5sCqEzceQU6WNwhCRQ9+Su582HzXT PE7mDMSTg2/zxzobzbJdwZM6i22M7V3ImFCW2lh855n0lqdA2Vc3Wq0fKrqqXDMZsALJ X2dRBSpQLAYgEOdsvP5bo/8vbWqermeS5dP4JmkqfPglsFI15Ce7uyUExHfZX86gKWY3 N7KBGPKS8qXjZZYF08AZIen4j9hQZmrK2UcLRBIELm73FWMgZxvdFhViA7ypoiAJsXVB VOSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zqm3bUCA; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d12si2591571plo.143.2019.02.18.06.27.45; Mon, 18 Feb 2019 06:28:00 -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=@kernel.org header.s=default header.b=zqm3bUCA; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390065AbfBRO1G (ORCPT + 99 others); Mon, 18 Feb 2019 09:27:06 -0500 Received: from mail.kernel.org ([198.145.29.99]:44016 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389275AbfBROCU (ORCPT ); Mon, 18 Feb 2019 09:02:20 -0500 Received: from mail-qk1-f170.google.com (mail-qk1-f170.google.com [209.85.222.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 42EA921904; Mon, 18 Feb 2019 14:02:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550498539; bh=6sbzkspViInVknbHtfHnMOLKmqRq3UyiTAp+IY7mhGU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=zqm3bUCAPlZCKbohJ7n2BF9kKtsqBZe6jTHO04BbAbHy4BqqmZWtBULEtfdBi+YDU bFLLveuJKnX0pwucSNHvTbjLbhwLoPgzxRskBRGncYqE6L5RkVfRJp/zqRnDxMhdNE jT733ek2mmvyw/l+PxAeAgvxquxgPpjGq2C0DbX0= Received: by mail-qk1-f170.google.com with SMTP id f196so9977259qke.10; Mon, 18 Feb 2019 06:02:19 -0800 (PST) X-Gm-Message-State: AHQUAubNKrnFaCiA8llCNXefKTVgv5STlKgydNuit/hhlerWQu/r2PkL WAGxsBUlUDcSmgVoyc+EFoqSh+kjcv3GqkEppA== X-Received: by 2002:a37:94d:: with SMTP id 74mr16881117qkj.79.1550498538397; Mon, 18 Feb 2019 06:02:18 -0800 (PST) MIME-Version: 1.0 References: <11e55b5f9b0d83649a5b81c7e3fdb667cd3ddc5b.1550043082.git.baolin.wang@linaro.org> <2be9d6de92507e5886433fb2cd55117c63b63d72.1550043082.git.baolin.wang@linaro.org> In-Reply-To: <2be9d6de92507e5886433fb2cd55117c63b63d72.1550043082.git.baolin.wang@linaro.org> From: Rob Herring Date: Mon, 18 Feb 2019 08:02:06 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 2/3] dt-bindings: spi: Add the DMA properties for the SPI dma mode To: Baolin Wang Cc: Mark Brown , Mark Rutland , Orson Zhai , Lyra Zhang , lanqing.liu@unisoc.com, linux-spi , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 13, 2019 at 1:37 AM Baolin Wang wrote: > > 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(+) > > 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. These need to define the order and names. > + > 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"; Everyone else uses "rx" and "tx". Do you really need something different? > + dmas = <&apdma 11 11>, <&apdma 12 12>; > #address-cells = <1>; > #size-cells = <0>; > }; > -- > 1.7.9.5 >