From patchwork Tue Mar 14 02:18:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ChiaWei Wang X-Patchwork-Id: 663266 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 06749C61DA4 for ; Tue, 14 Mar 2023 02:18:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230012AbjCNCSj (ORCPT ); Mon, 13 Mar 2023 22:18:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229707AbjCNCSa (ORCPT ); Mon, 13 Mar 2023 22:18:30 -0400 Received: from twspam01.aspeedtech.com (twspam01.aspeedtech.com [211.20.114.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 642124345F for ; Mon, 13 Mar 2023 19:18:24 -0700 (PDT) Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 32E249if072544; Tue, 14 Mar 2023 10:04:09 +0800 (GMT-8) (envelope-from chiawei_wang@aspeedtech.com) Received: from Chiawei-PC03.aspeed.com (192.168.2.66) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 14 Mar 2023 10:18:19 +0800 From: Chia-Wei Wang To: , , , , , , , , , , , , , , , Subject: [PATCH v2 0/5] arm: aspeed: Add UART DMA support Date: Tue, 14 Mar 2023 10:18:12 +0800 Message-ID: <20230314021817.30446-1-chiawei_wang@aspeedtech.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [192.168.2.66] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 32E249if072544 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org This patch serias adds the 8250 driver with DMA support for AST26xx UART devices v2 change: - re-write UDMA driver based on the DMAEngine framework - re-write 8250_aspeed driver with DMA support based on the 8250_dma implementation - remove virtual UART part as there is already a 8250_aspeed_vuart driver Chia-Wei Wang (5): dt-bindings: serial: 8250: Add aspeed,ast2600-uart dt-bindings: dmaengine: Add AST2600 UDMA bindings dmaengine: aspeed: Add AST2600 UART DMA driver serial: 8250: Add AST2600 UART driver ARM: dts: aspeed-g6: Add UDMA node .../bindings/dma/aspeed,ast2600-udma.yaml | 56 ++ .../devicetree/bindings/serial/8250.yaml | 1 + arch/arm/boot/dts/aspeed-g6.dtsi | 9 + drivers/dma/Kconfig | 9 + drivers/dma/Makefile | 1 + drivers/dma/ast2600-udma.c | 528 ++++++++++++++++++ drivers/tty/serial/8250/8250_aspeed.c | 224 ++++++++ drivers/tty/serial/8250/Kconfig | 8 + drivers/tty/serial/8250/Makefile | 1 + include/dt-bindings/dma/ast2600-udma.h | 40 ++ 10 files changed, 877 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/aspeed,ast2600-udma.yaml create mode 100644 drivers/dma/ast2600-udma.c create mode 100644 drivers/tty/serial/8250/8250_aspeed.c create mode 100644 include/dt-bindings/dma/ast2600-udma.h Acked-by: Rob Herring