Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6277912imu; Mon, 21 Jan 2019 06:16:07 -0800 (PST) X-Google-Smtp-Source: ALg8bN41o/A+CXdXw5G91JJdE7+MQ9pyWtsyeEfErBYWAXN0/Jo4F1yojLSH5KJIY8c9dZlu28so X-Received: by 2002:a62:2b8b:: with SMTP id r133mr29865682pfr.246.1548080167443; Mon, 21 Jan 2019 06:16:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548080167; cv=none; d=google.com; s=arc-20160816; b=BrcdpQjck/ADzCVxZRg6f09mZAUcz2VPPb4zVf7Y1hQ0Yz7bh+o2pMIPGmIuYaGjVy RyFWdE5svNvFgCvzvM2x+FW9bC5z+KLNFKwKOXoJ5Id+ag4REJFVkb4zpDl4iBtwWDEP ipBss4MPp8hBoUVlivFwb4cN7Y+YCUC/yfO3d71PT+UPh5ZG2YRWHBRgmbUVuJJLYhS0 FX5BDO+fHbK8pVmgBrxO4kSK2ECEGTMhuM8s1WcqbgGQMeQy7y7yQ6iFSElSGygS6kOG GfGiqeGOx33ww/0ee0VxodLQ1VJ6QAGioPN+xVfsrOhCT8DmQeB6G37uWE4USkzLJ0QK 7DcA== 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=VadbKrLz7L9lvGif1wOWyn9hwWcvsAXXgAw1wNYugxs=; b=xQZ/7Iar89UCrnHXb5DbpzOKXvP2N3SDVim3kAf6FGMvWejxe52famMd+bWTJYHqdS VXqEpV6CXrhMyzzNfBGVozEf1pAjeaUy6RD29zxMfn70cPSDOxV5S4j5FWkZG0xp9CGz aTnCaJqesav1Txlr76t9KaXfWjMo1Gwmjv3ceCP0c+9ujLmXPGs8wKPw7g8ncb8X/QtR o8eGj6kIWdIfTWlI0lb/o7jFcA/ryMnnaUIKSr0EIbj4PPrNaEqZQPynNdvwo/H1SKbk wahFWMnpftcm8wECxQ7zHsVfnrS0xoIc6Qyl/zuIc9G8vmfuQonPEvdR5vv2ebsSAM4G oQtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fwttrSLA; 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 s123si12877071pfb.274.2019.01.21.06.15.52; Mon, 21 Jan 2019 06:16:07 -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=fwttrSLA; 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 S1731548AbfAUONX (ORCPT + 99 others); Mon, 21 Jan 2019 09:13:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:36732 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731212AbfAUNxJ (ORCPT ); Mon, 21 Jan 2019 08:53:09 -0500 Received: from mail-qk1-f182.google.com (mail-qk1-f182.google.com [209.85.222.182]) (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 3E9122089F; Mon, 21 Jan 2019 13:53:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548078789; bh=2jCVUvZBfffaFn5qDL+A4UhoS97Tq71uV01sR7ApKtk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=fwttrSLA5ncqXTrvGhqQSBS3/f+HSmviRwL1EC/ngeDLVh9ufapyEnraIHeFgOm5r bMlWCzuPDsFfA+iyX/L9U0c1wyuThC5E0ygjlHBJNwCBV68f7s6FPzusfUJhCcggA5 1uL34h67SzbiHinIQRriSxU+JjCW066K+9CgufJY= Received: by mail-qk1-f182.google.com with SMTP id y16so12263975qki.7; Mon, 21 Jan 2019 05:53:09 -0800 (PST) X-Gm-Message-State: AJcUukfaWtGImSB0q9F6XJvu4sdgH2TUK3Y4XPzZ+NSjJqfTvODSlZho 0eO1VtsAcjJhYnt/h3T5ABwPdta8sEwKObTipQ== X-Received: by 2002:a37:5686:: with SMTP id k128mr23266558qkb.29.1548078788409; Mon, 21 Jan 2019 05:53:08 -0800 (PST) MIME-Version: 1.0 References: <7538d5806003b8f67e7e0d35638315974b7c2b50.1547559542.git.baolin.wang@linaro.org> In-Reply-To: <7538d5806003b8f67e7e0d35638315974b7c2b50.1547559542.git.baolin.wang@linaro.org> From: Rob Herring Date: Mon, 21 Jan 2019 07:52:57 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 3/4] 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 Tue, Jan 15, 2019 at 7:47 AM Baolin Wang wrote: > > From: Lanqing Liu The email address should be updated with unisoc.com. > 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>; When would this be different values from what's in 'dmas'? > #address-cells = <1>; > #size-cells = <0>; > }; > -- > 1.7.9.5 >