From patchwork Tue Feb 19 07:31:14 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: 158687 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3360426jaa; Mon, 18 Feb 2019 23:32:09 -0800 (PST) X-Google-Smtp-Source: AHgI3IZp7Rhmihfjd/8N2f12AZPLEth01sSYJm4QB36X9f+tTsaYrGcFk4pdCln88Pc6Ea8Au9qL X-Received: by 2002:a17:902:bb89:: with SMTP id m9mr29227336pls.320.1550561529038; Mon, 18 Feb 2019 23:32:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550561529; cv=none; d=google.com; s=arc-20160816; b=CW8JjJZYqCe6Gwmq8hLb2IpaPfyCWoFmBwGBs9+TcOVg/6TMVVxR5tZAitBZDlsj/T nJnFgy072L5d1alacBUk0j7ksensK+tqUWL9hW1ULWk2cOWSvji8cbB+RwDJGZ3fJTEW lJks4yxrs/OXpd5oezUWDvFafbT0U9Tj3CHePHvoeUQUYsNvzydqDF759FESWjfoaei0 FNLg3RnXQuv04kvoBIZXGEL4fFPbc8exojBEKM04UJGN8BZWwze+DB2A30HrO40Hpudt xXJZ7qepx/Si/NM3PNVZzCdi+hvYiC/76zv6lOxljopjb8OZ7J8Np5uBs+gtsSIMjb55 qGvg== 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=KgTwt+mvKpgOELot+xmj2f5gFMFsgIKRQfOaJRZIYrA=; b=0sHcxui+4S8olT0uN3gYnO+lGUpjzqQNYjMBEO06CKoEOD+5W0GL6JvMtSbbcKIvl9 mHIwbZolGUyArdfDhljLtqj7j14SSURkvQMfDrSII/i6b6GJXH9NQfDREbQ64bTBvejR XVE5QOy/TCoYirQpRKNWURNUOEXr0Ca41nKwRNXlz/dHku+UHGuNQLYQUa3KOV1e2wwx fSVR9jD6xA31OITyZf8ukycHHIkuveElnsIDywzAvpkFDRaZDpp4E7tV7d6hm3OEgXD1 vvNhf6ufsirqyF62F3bqMqpsBa3stQkTt00y8WpObZYzcqgQ1brKPnZ4vvJ4Bi56HzZn EkZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DVr2VlEc; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g18si8639055pfg.99.2019.02.18.23.32.08; Mon, 18 Feb 2019 23:32:09 -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=@linaro.org header.s=google header.b=DVr2VlEc; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727269AbfBSHcH (ORCPT + 32 others); Tue, 19 Feb 2019 02:32:07 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:34124 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725768AbfBSHcE (ORCPT ); Tue, 19 Feb 2019 02:32:04 -0500 Received: by mail-pl1-f195.google.com with SMTP id d15so2858044plr.1 for ; Mon, 18 Feb 2019 23:32:04 -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=KgTwt+mvKpgOELot+xmj2f5gFMFsgIKRQfOaJRZIYrA=; b=DVr2VlEcqP9TalSPwKET4j+4t+LjROY6ji28p3LRmQWMGQol/DOnIyax8XEx/onC6p Huh06/j19ri9l7fvjszirst/FehKh9KtJvyJg07adQOCl1s8L1DKEK5HlJXtFaORDuBo dYDi5kDTLnkvGgpbgkWe7A100TZTVgS9CT3k6Yv2bmyQDL7NWQepdHQJIiP+DewWY6Kg /J/X8/uzBwegFxN9QPWGNYqV7UJ0NhTPkeBmEHh5rLBw59tqTQYFC6gAOSP3lFA3Evxg zvm5b/w/+y29T8aQv1exlTy/T666CiVuBUoiQZOEytclfFKc4HxQazYop8bRaQDwPmez cKVQ== 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=KgTwt+mvKpgOELot+xmj2f5gFMFsgIKRQfOaJRZIYrA=; b=JrftA6rZDnEC26lOD4nVUqvGUt59pi3MhRZqdZ1Y0vNzsTYjzkKlNCHGxnl0llhEl9 5RlbQThcKxB85g3BkdmjmP+cL424VTcqf9tCuBoIYKA8Qa1TjZTgt2MkLrEtMtj2G3fx n8xGQpsMwRGbMRuIUsJ5jaR82nD/jtLpQmzl+AKKbCRzhB7JRrqKHzCIiXz5suS4qQZq 03n63l0vjlqNU0z+J+H8jBzRLh0UP6AEpxNESwvEr8CrGr819Jz/R0oFqsq9mLbs1ksq iy75CIbE0pVw9YrUxOOn4tJZW5k3MySjcl0xAN9tCAxTTUFKzS1Agr7MTXJUNHS2aPq+ NSUA== X-Gm-Message-State: AHQUAubOuvn3TNy/eEYrnu5LYTKJ+3TcLG120SwgPEK0uH2BBqIGZEmH jTnukMkdbcTF/SlvNrT3bjn2UA== X-Received: by 2002:a17:902:8304:: with SMTP id bd4mr28506732plb.329.1550561524227; Mon, 18 Feb 2019 23:32:04 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id n27sm31556569pfb.8.2019.02.18.23.32.00 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Feb 2019 23:32:03 -0800 (PST) From: Baolin Wang To: gregkh@linuxfoundation.org, jslaby@suse.com, robh+dt@kernel.org, mark.rutland@arm.com, orsonzhai@gmail.com, zhang.lyra@gmail.com Cc: baolin.wang@linaro.org, broonie@kernel.org, lanqing.liu@unisoc.com, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 4/5] dt-bindings: serial: sprd: Add dma properties to support DMA mode Date: Tue, 19 Feb 2019 15:31:14 +0800 Message-Id: <8f0a032f9bcce28bb0d147f9646950f64fc22a74.1550560916.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lanqing Liu This patch adds dmas and dma-names properties for the UART DMA mode. Signed-off-by: Lanqing Liu Signed-off-by: Baolin Wang --- .../devicetree/bindings/serial/sprd-uart.txt | 6 ++++++ 1 file changed, 6 insertions(+) -- 1.7.9.5 diff --git a/Documentation/devicetree/bindings/serial/sprd-uart.txt b/Documentation/devicetree/bindings/serial/sprd-uart.txt index 6eb5863..9ac28f6 100644 --- a/Documentation/devicetree/bindings/serial/sprd-uart.txt +++ b/Documentation/devicetree/bindings/serial/sprd-uart.txt @@ -15,12 +15,18 @@ Required properties: UART clock and source clock are optional properties, but enable clock is required. +Optional properties: +- dma-names: Should contain "tx" for transmit and "rx" for receive channels. +- dmas: A list of dma specifiers, one for each entry in dma-names. + Example: uart0: serial@0 { compatible = "sprd,sc9860-uart", "sprd,sc9836-uart"; reg = <0x0 0x100>; interrupts = ; + dma-names = "rx", "tx"; + dmas = <&ap_dma 19 19>, <&ap_dma 20 20>; clock-names = "enable", "uart", "source"; clocks = <&clk_ap_apb_gates 9>, <&clk_uart0>, <&ext_26m>; };