From patchwork Mon Mar 20 08:11:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ChiaWei Wang X-Patchwork-Id: 13181505 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7A4E6C6FD1D for ; Mon, 20 Mar 2023 15:48:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=qWBDyKeODBQBmfJrxXsOMBVN42P34c5cBN57mXgb/B0=; b=J59ChKxnIC1j0k l3LLk00dVgb34Pz6nY3Rqgiyy+TK0Bm4mIXlFpYSkPXN8/RZ6q6n18zLCSgm8oytexnCd8Ou61IU3 zYbQka6CMAMM+CDYDMUgUeGn4vc4Bn4JQsEltehuJ+tlWwwGlmfylB1u42nk6+xNJJvr1adVG1WUE KWl8AWFvt9IqhPagmzFSAu5HhA3b3iZTXW+rZ5sIVcjnSusiPA6D55Rx05g9VoUucaX2PEin3QuL1 ufwBMsB2Pj2htCAGwSYhLztXaz2l31qihxOehqN61Je/wANTNNnLmTySzy+eyXZKISf5Jws71lJO0 InF5zgZaL+REMEspBEWg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1peHjv-009cpD-0y; Mon, 20 Mar 2023 15:48:03 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1peHjb-009chx-10 for linux-arm-kernel@bombadil.infradead.org; Mon, 20 Mar 2023 15:47:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:Content-Transfer-Encoding :MIME-Version:Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-ID: Content-Description:In-Reply-To:References; bh=vQpEvCmRDk3jYIAygyfM+fVORMEpxCJaUbs+XIkCjvc=; b=qbfmD+fa0EfWwCW/fxxJcI8ZL0 jkKTb3KXovp78P1/YXGwJRMKqhIcBIQSqW1U7LFI139POhPMwIxS+eh5feKl0AfU8AJB7zMEW6e9n dRvTKfN+Ik6Zu6pq487LPP6M/sLExpcRur+ezRKQw53f1sjl7cDW2MGeUYv87SjH/dSyFkhMMuSh7 ttZWSFPxqwH1QGG4xmzZp8IvhiuQpGzEQrYmnd/QhXkcQrr6lPF8K4TiBB5REh41bFMoo5zTeVQL2 35T3xi0qr5A5SN5/aZzFemYAiQo3EduIDxzkLj7knFeov1gWmLsFN0Fn7tk04JgiiHlhBsMcxAGP4 PyRHISxw==; Received: from twspam01.aspeedtech.com ([211.20.114.71]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1peAdC-003rLF-31 for linux-arm-kernel@lists.infradead.org; Mon, 20 Mar 2023 08:12:42 +0000 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 32K7v5EP088826; Mon, 20 Mar 2023 15:57:05 +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; Mon, 20 Mar 2023 16:11:38 +0800 From: Chia-Wei Wang To: , , , , , , , , , , , , , , , , Subject: [PATCH v3 0/5] arm: aspeed: Add UART DMA support Date: Mon, 20 Mar 2023 16:11:28 +0800 Message-ID: <20230320081133.23655-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 32K7v5EP088826 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230320_081239_695318_A6B0FEE2 X-CRM114-Status: GOOD ( 12.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patch serias adds the 8250 driver with DMA support for AST26xx UART devices v3 change: - add error check against dma_to_phys - revise UDMA binding - remove UDMA binding header - remove redundant header inclusions of UDMA driver - fix incorrect UDMA channel number (14->28) - place UDMA kconfig in alphabetical order - collect Acked-by tags 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 | 534 ++++++++++++++++++ drivers/tty/serial/8250/8250_aspeed.c | 224 ++++++++ drivers/tty/serial/8250/Kconfig | 8 + drivers/tty/serial/8250/Makefile | 1 + 9 files changed, 843 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