From patchwork Mon Mar 4 08:58:23 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: 159542 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp3549920jad; Mon, 4 Mar 2019 00:59:27 -0800 (PST) X-Google-Smtp-Source: APXvYqy8vkqy5qt6/rW8sXZTx3gvS3WzI34IfzvEHYX8JAlrbpsqqf2Ey2qZmEtjD9av+bc4ivXM X-Received: by 2002:a63:e050:: with SMTP id n16mr17539222pgj.210.1551689967483; Mon, 04 Mar 2019 00:59:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551689967; cv=none; d=google.com; s=arc-20160816; b=FBHY+eiWWfxkkCVdiGKu7Khtc64SeJ5WTQTvjse3872NFxi9PFFut27kblfWCULuEd PSerBT/7+HoPI98TvXXVwQQv25NEJizZgbyz31wFJbmhMBelaKppcKeVdZEHiQj1BsAh wxvpYiW+It1rfBy/4fD9lBsNBhneR+cR3PjqqGp7fJKDRoMh1/RzWvlP+JLMUtUvjvsH 60vMBMI0435TfRy4q1YQVQaWbrJJwTs9P7leem0NE1+KJVbPoWEhMEPdVU/o91RNkGEN 4xP1Z562FjEYq+Y9M2SLmFGgX8mR7D83CZXAco4/Hmsgg4VnetbnfdV21/1iXMs6zvDx TzFQ== 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=SoDrBkOVmuphE2/VhZKfVicoMfni0jnwyrCgTRIYWJk=; b=Wn4AiHXNKnDVvOsl6B+sOeQcZhS0Y9YPWsWYRau6mUwSdbMt303MA+AtV+cc/7yPHE jJ4ptInfbvFj/VwMmkYR+bIzHKXI8kHZz2zaXDHd7mNEJQXh3tMxbxHfK81UqykQXRXu 12m1CBqdu/XzK1cqrcUMy56upSUSyBKvJ6ZzcNh4s3BK2j916qK0+GA3ZlCHfW9Ang3f V6HA8/qQLhJUE99YoeRdXThpP4REAxt7sGVI90nU1dW8wnMPt/GB5yzyY6b+TmrOgP7T BXrKO0n58wIMteOn2bA0c3pk41xf4C09Uk73g8X4gHx8kmxaQM6tfPPEhd2NRE5QCiEx E76g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vHRn7Wfm; 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 y184si4761330pgd.118.2019.03.04.00.59.27; Mon, 04 Mar 2019 00:59:27 -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=vHRn7Wfm; 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 S1726407AbfCDI70 (ORCPT + 31 others); Mon, 4 Mar 2019 03:59:26 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:35181 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726126AbfCDI7Z (ORCPT ); Mon, 4 Mar 2019 03:59:25 -0500 Received: by mail-pg1-f194.google.com with SMTP id e17so2625233pgd.2 for ; Mon, 04 Mar 2019 00:59:24 -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=SoDrBkOVmuphE2/VhZKfVicoMfni0jnwyrCgTRIYWJk=; b=vHRn7WfmmcjbMKbDgJAxFrMwTtR4pr5yXTZCJDGEL9XU/z/asD02xruTX1KdmXRfs/ YfWASs4bGdQhOsDQbQLS+TdibC9Szq7NhH/0hj6UO3Y3ElLZ2kSzzlr9xZp3dBJmUZcO /jJ+V9Svp7zPLEmy1ORd7TOrbMgG0XBJdVY9EFh3GlflwPqctG1rzZA7xFWQdkvP3JnU o8Avm0LkqhUq2T9Kbr6TnCwXhiUt4LXjKV64sg4domxUb8HG7v85RZGgpD+o4Mu3MWlR bMijj3XHxdcVqDjaT8PZSdJBQ2MIablfaNLtRjcFXQkivv4aGWky7+NT0/ZJmfwjEBKu LKNA== 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=SoDrBkOVmuphE2/VhZKfVicoMfni0jnwyrCgTRIYWJk=; b=Dtetq6AjR47w5yALqbkG5dAPIYWuFddjGtX0kpmOhKWoMYX2NUI1mN+Gixef4sHXil 8/jX3c0v0khwqNYc0GSnRinzO6D6o/YIkn+T2Ea7+/bESo5g5uagy+ZPMNPivUlCtlj4 EHa2CGF/BBs18b5HXRzce6Gr2HPRv+Dz4OZmelKNHe3xHBnONVcHVZVT2yysEeKamRNi 8VrPz/RRUN2BVrq6Z/R4Jcm/YMTplKx72iSPuH+CRH6HaJ9gTS/Omep/Gcq4lNENmHic YcUt92XxZeMlxu7Cfpc+lAmyNkexlmDoq19XiCLvtwOigj7NDcOjhxvtnoxuqedDOx4O q0Og== X-Gm-Message-State: APjAAAXh2c+r+RVKTL7kBKYeg8dcnjoIst+++q7VNdz8I4c1VIxC4TZf sUB/wYgLZ4JE/cJoGgZWHWf6nw== X-Received: by 2002:a17:902:2702:: with SMTP id c2mr19131834plb.239.1551689964194; Mon, 04 Mar 2019 00:59:24 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id k8sm7395523pgg.75.2019.03.04.00.59.20 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 04 Mar 2019 00:59:23 -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 v2 3/4] dt-bindings: serial: sprd: Add dma properties to support DMA mode Date: Mon, 4 Mar 2019 16:58:23 +0800 Message-Id: <5ef1bbcf1d78829f28377a599d81d0adc7d61ef1.1551689518.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..9607dc6 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 "rx" for receive and "tx" for transmit 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>, <&ap_dma 20>; clock-names = "enable", "uart", "source"; clocks = <&clk_ap_apb_gates 9>, <&clk_uart0>, <&ext_26m>; };