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: 6878 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1088011wrt; Mon, 20 Mar 2023 01:26:05 -0700 (PDT) X-Google-Smtp-Source: AK7set9rb8IoiEutam//h7LLEsjU4YOecS01+Bse+XlQLl/mp+a930VkbhVZ8db+MK9TqsMCEd5g X-Received: by 2002:a17:90a:191e:b0:23d:3fbe:2f7 with SMTP id 30-20020a17090a191e00b0023d3fbe02f7mr18184168pjg.20.1679300765454; Mon, 20 Mar 2023 01:26:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679300765; cv=none; d=google.com; s=arc-20160816; b=To+dl+/YwArfErjVjvbg0HsuKv9hh2oFlNJWKVD2n6Jh5rmQjT3Rj2LJAsQs7qb5cx p6sTHsqGcnJqfF+yRS/mnwnUgefypIDXAvdD35ruY7HXl0sn6T7jtn2Y68OULFdPsAIX 8Cal2p66En75Taevf3Zf3lYSdMDAgg2Bh/KNMQ6dN6vcWhK9UTJ/+6uE9UuTUCnWdBBC PJq6ouAM89Q79881o3o/ScoCBp1FZ57cUxkYoQoi+L3L97H7SQa7+FTvYxpskXr20C21 8gLTrHN8JGSlutx6/K+/ddRB/XiOHndXJwNp/ohHykvUqqtwPseDgWp0Vg3GmpUq9MnJ xR5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from; bh=vQpEvCmRDk3jYIAygyfM+fVORMEpxCJaUbs+XIkCjvc=; b=p+OhZAJ0Tb7okLo76OQLamxIZW/2rBV8l2eyNZHJl4ljvUSGJXYNr+/wkWI4RpIN4l oS/41ERSjsvmiTNdxl7hpOY1t87zT5vkW0uESw4vLVDNAM+8LEhWfyHOFU5qg3scBhqy mDvIuBpjLEEzzo2ul5tg1jvQeZsq1reb+v1xNQuQeqLhGCHCwu1XzO+3vyN+w1SqUBw+ zEr6K46Rs1jNTiu0XUduw/wvgaf2vdVOmca70quF1uWA3s/GbrKiwgLFoa6CSkqyT43Y 74DlzHf2YJjbh6UP1RfnB6fezBvbVXiAF8LIunhVUSNIg4Fa9htLvwQL6GmHQNQSVuQ4 dA0A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mh6-20020a17090b4ac600b0023fd2862be5si153060pjb.65.2023.03.20.01.25.50; Mon, 20 Mar 2023 01:26:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230330AbjCTIN0 (ORCPT + 99 others); Mon, 20 Mar 2023 04:13:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230263AbjCTINY (ORCPT ); Mon, 20 Mar 2023 04:13:24 -0400 Received: from twspam01.aspeedtech.com (twspam01.aspeedtech.com [211.20.114.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C5B62108; Mon, 20 Mar 2023 01:13:12 -0700 (PDT) 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-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760874479362176434?= X-GMAIL-MSGID: =?utf-8?q?1760874479362176434?= 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