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: 10809279 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6093B6C2 for ; Wed, 13 Feb 2019 07:37:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4ED442C855 for ; Wed, 13 Feb 2019 07:37:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 433A02C85D; Wed, 13 Feb 2019 07:37:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CDF762C855 for ; Wed, 13 Feb 2019 07:37:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732873AbfBMHhk (ORCPT ); Wed, 13 Feb 2019 02:37:40 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:33437 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388814AbfBMHha (ORCPT ); Wed, 13 Feb 2019 02:37:30 -0500 Received: by mail-pf1-f193.google.com with SMTP id c123so782639pfb.0 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=bMhvv4AJWS8UxYAJv/P/wd39PKDX3/OqEbzMF68edrzidSfTelw7EH+BpNqViZIwbp Du2X7ttxYJFSgJLK+kG3NvGjnU68PB5NRcP/Ms19c8k5C+xJkQsV7KPLWcQ8d3etUAzj pSv7qxE4bWxf1Cch/KoFwCUFYYP3oiFzSHY4fFpWnesaXRGH+VM9bPBFUbQwi/huhlek e/F2LJ562UOMw04N9ZWw2AdpsK3j8+n/CUGJ2kmTJ0Zhz8ilrPEK8AaK1FPEGq6XpeYi os3zjIBSHd8taP5Vy3pvQjlcAqNjR8gpYkGjgQrzWV+Umzux1ju1cp80uf++zHZjjNpZ 2Xjg== X-Gm-Message-State: AHQUAuZzsx0q7w/OouCFdL8m7o6FUkgtqEFqcfvzHLbWWBDQqXY1aZV/ y5RbpfLaLOaBLUFxN7DMlmhFpJ24OwcfHA== X-Google-Smtp-Source: AHgI3IZ65QqQUIyrR8QGpQPFUGxRmshOBJVc62SkwrOkI5xV7vu4+NBBmZeGKdwlHGHdediqmyxtZg== 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-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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. + 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>; };