From patchwork Sat Sep 29 07:46:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 10620651 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 8CC85A6A for ; Sat, 29 Sep 2018 07:46:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 68DFE2ACB1 for ; Sat, 29 Sep 2018 07:46:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5C2E92ACDA; Sat, 29 Sep 2018 07:46:57 +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 EC2062ACB1 for ; Sat, 29 Sep 2018 07:46:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727584AbeI2OOV (ORCPT ); Sat, 29 Sep 2018 10:14:21 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:43684 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727551AbeI2OOV (ORCPT ); Sat, 29 Sep 2018 10:14:21 -0400 Received: by mail-pg1-f194.google.com with SMTP id q19-v6so6012800pgn.10 for ; Sat, 29 Sep 2018 00:46:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=Le0+fZzaKqGj1u7hIshlfZ0jn3TTHXdHW4NsWzkL+MA=; b=jmNW7ZNXWOG80EV1F3cCgzgpKQcBbzNqPC6V6B1xZ7OpOku320rkg2Y3dX/ELomNH3 X9tZ4fzgmQs8pXSnP/3YWzmP8cB1E7LUx2IvdnozCNPjTy5TLGumil6IDKteM7IA+862 x3M8bt4lGU/3honV0NHwWBYmfoX0zTuXq4JDE= 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; bh=Le0+fZzaKqGj1u7hIshlfZ0jn3TTHXdHW4NsWzkL+MA=; b=RRmqo8ExkXwO2jUfrK0VfcrZj1247OToX9gL5YAnCUcgLgKOPdrhzUHMKFIUdS8txz XOrc15AGlFYcui0MbVUGUvrh1VVRUZRpi4WyOhTY2wUgNun25vsKrdKiaL6nYepfs3SL qXGGpEw/p0nQv99tgisN/LIqcdJnwOU0HE8nnYsJ4RChfgQw4vyHblfwCsu0TWwGfCPX dU/PX/6ry5b3SrX61rPtQLNKH+TFRfzO5O7NvjICr3KXrCj7Fys3UHameZyf8+aPzKCr RHe3wHp04GQiQnU+jpHsv2CTA1XchIRaYrIPh/Ttm0X7az6tjtaJUkXIQMKrbT/B8j0f 6DCw== X-Gm-Message-State: ABuFfoh5dlJ5ern7UvQ64Y9wR3T0ntQEgsJH8fZ+bSrdEHzhFbJyRm4g QWcpwPz87DkF3jPPZzWGxWZq X-Google-Smtp-Source: ACcGV61lhxiCXuv43QkJe5H4PaNljdh9W6KIHsHRH4x7NQAAKaQ5M70rJluBDmy1skaKxp7QiP4FEA== X-Received: by 2002:a62:4e09:: with SMTP id c9-v6mr2017490pfb.105.1538207215781; Sat, 29 Sep 2018 00:46:55 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:717:b0f2:f0af:8cc:da39:e2c3]) by smtp.gmail.com with ESMTPSA id m21-v6sm9926570pgd.6.2018.09.29.00.46.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Sep 2018 00:46:55 -0700 (PDT) From: Manivannan Sadhasivam To: vkoul@kernel.org, dan.j.williams@intel.com, afaerber@suse.de, robh+dt@kernel.org, gregkh@linuxfoundation.org, jslaby@suse.com Cc: linux-serial@vger.kernel.org, dmaengine@vger.kernel.org, liuwei@actions-semi.com, 96boards@ucrobotics.com, devicetree@vger.kernel.org, daniel.thompson@linaro.org, amit.kucheria@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, hzhang@ucrobotics.com, bdong@ucrobotics.com, manivannanece23@gmail.com, thomas.liau@actions-semi.com, jeff.chen@actions-semi.com, pn@denx.de, edgar.righi@lsitec.org.br, Manivannan Sadhasivam Subject: [PATCH v2 0/3] Add slave DMA support for Actions Semi S900 SoC Date: Sat, 29 Sep 2018 13:16:34 +0530 Message-Id: <20180929074637.9766-1-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patchset adds slave DMA support for Actions Semi S900 SoC of the Owl family. As a consumer, enable TX DMA support for UART peripheral in S900. The UART driver still supports interrupt mode if there is no DMA property specified in DT. The dts patch depends on the previous DMA patches which is not yet merged. Thanks, Mani Changes in v2: * Modified the comment for bus width as per Vinod's suggestion Manivannan Sadhasivam (3): arm64: dts: actions: s900: Enable Tx DMA for UART5 dmaengine: Add Slave and Cyclic mode support for Actions Semi Owl S900 SoC tty: serial: Add Tx DMA support for UART in Actions Semi Owl SoCs arch/arm64/boot/dts/actions/s900.dtsi | 2 + drivers/dma/owl-dma.c | 279 +++++++++++++++++++++++++- drivers/tty/serial/owl-uart.c | 172 +++++++++++++++- 3 files changed, 445 insertions(+), 8 deletions(-)