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: "\(Exiting\) Baolin Wang" X-Patchwork-Id: 155671 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp4910706jaa; Tue, 15 Jan 2019 05:47:42 -0800 (PST) X-Google-Smtp-Source: ALg8bN439KV8k+hwW8+5DNphAYclw6u2KClC4vzEndgcr+oiDQLMJzm4vLCSXIgEqhByV6+syl6Z X-Received: by 2002:a63:e80e:: with SMTP id s14mr3995494pgh.30.1547560062063; Tue, 15 Jan 2019 05:47:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547560062; cv=none; d=google.com; s=arc-20160816; b=jmgSEpZsS866jzhP1O2abG5LSo4qd+aYYYgrNQGE9SQPgs/TAPV8fm49IAot4HBkri 4OGKikLDzGRTjlTpKuwVJhObQyShjTCRVYbZ7w6vwVsvr44cBKxKhsk1tl9KtiBorNDE ADXFYCAWC12V/IGv7AGis6MXUu0EyLOlqvuYXcI9TsO+vYjQyydzLmlmZpso3Bzbgxc0 phLDU8gd1pm5fKrATDNDlKvOUWWKTp+O78THuC6O/pTWGxEALzEdUXp1OFW59SxDinkz qnkHuc3SbahwKPjWXIX9miOxM5KE9GwP/Fe+WaQovyYNyXl3QPSRGYBNEqt4uLbanCqw 3t2g== 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=JTLLozDxbF4Yv4FBmImJySbdJyG9ASAeQAdaxrLV+UR44vXtq89KlOR8GLNM4xFjKN bquHgWR9Biw9YeScRw6TTqKKLRvP7eF6VloxWHnLLLzeRoX2tv6C0QH0AE28/FTh4BRX B7cNbWVMdC216Ny2TPuLuljQP0wGiiyr/K8rQjAFlZERoFwcAVd3veJS+RRXilIqQjRN kxcQuZ4PshrlDKSLFljzg8f5tGeVMkoqlsp3FGjVCOlpmL7IsN2m0IsAWTRzdxcCPX+C 957rlJnXvXuggX7pX3JqjTPzzOzaZQG4kvVBwze6fv6XYchW13rk4pjh1WrdyXuVtIGJ /PoQ== 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 devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 q34si3239657pgk.35.2019.01.15.05.47.41; Tue, 15 Jan 2019 05:47:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1729599AbfAONrl (ORCPT + 7 others); 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-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(+) -- 1.7.9.5 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>; };