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: Baolin Wang X-Patchwork-Id: 1025186 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="afhPf+/A"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 43fBVQ2Jwgz9sDL for ; Wed, 16 Jan 2019 00:47:42 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729599AbfAONrl (ORCPT ); Tue, 15 Jan 2019 08:47:41 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:46901 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729596AbfAONrk (ORCPT ); Tue, 15 Jan 2019 08:47:40 -0500 Received: by mail-pl1-f196.google.com with SMTP id t13so1302551ply.13 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=JNyqSxeJtu0ngpmjXWzamXuB+aFBEqS//fiGhhBozEpKRaLPalRqp7qLuoPAeQegwo cJ4uVrC41C6OdqixltdEGoXDu+VqB8Jdp3KYzK1pHDrChL7hy3aH6uDiXwxbckd4mF/y yobZ5oN7HbixrXDsfSdp9+K7GpuDj+YhP+IJy1ZX3I982mhRt67q4RtgCMhWgazsktiV zCOO2+ErEe5Ky3/u4ExOIfUqfJ9tlNQo6I8v5pkvBi4pWxGi7d7d9oTj7BO3nHGpp3ci I/W2jlP8GGtoI1DQH+7ge/UBr2yDE2E7AkFigy5YEIr02AkXt2Xdd+Fodp9xyNucw6JA y3fQ== X-Gm-Message-State: AJcUukd7cwAjP4hHfQZvKfCx+2xIAo+BiR2QwcGm5vqHmvoLjYiHbzTc Sz+l7kY5gXEXPlgIhpPApvdOUw== 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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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>; };