From patchwork Mon Mar 20 08:11:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ChiaWei Wang X-Patchwork-Id: 72033 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1084948wrt; Mon, 20 Mar 2023 01:17:03 -0700 (PDT) X-Google-Smtp-Source: AK7set9AaW4l8dapqsp4H4VGYNT22TUl2raeJINv6mllLtdZnBaThPkL6SQb5TrzoVm3rfUxMFcX X-Received: by 2002:a05:6a20:8c10:b0:d9:b0b5:fdaf with SMTP id j16-20020a056a208c1000b000d9b0b5fdafmr1969018pzh.48.1679300222674; Mon, 20 Mar 2023 01:17:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679300222; cv=none; d=google.com; s=arc-20160816; b=n9vhVouT7RViNa5mitEhga/dHvzoN4q0+192YBQPsZEOwV7mqidNJ3P5XDk6i2j/cn ERvhvMqbcrRAN5Pg1N9m9kFq+0PeKHaaD9Tjqwdl2WugjzH3t/fRfqieTKkBUKQQXt12 zZoXQTZdvxS65xsyyfElu7VkA+ww2gu64JRIw+RmV4ExKv4Oxew05TRYxfyvFtbjhpCj 3tjNwW1/OpimXSm2u2wp4mJ9fM1x2Qjoll1SEB12Ecg87kpC8KrcoXVyJH1qui4B6mjG PM6znhLAP5wsqY7HKgGUh9snIUWUuhhm+Hf6VIVr6lI5dj3ZMo6r/HggL9VLh95zW0sa w9Xw== 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 :references:in-reply-to:message-id:date:subject:to:from; bh=qCdWXtwiSMzIcVKQjzm9axRVwYNh2U7u3TzsqOf1Ag4=; b=kIWoZGIfESKQ5ReyAFibHpxT8sXW+snucYYNb7OdhFv5/gPdqZ94KGFZCOdW+f11ZF DCVzps8Q4NcUP801Mrx/XWJG3LufYtP04XtXR367tir5RzRq1fMZi//x0bb+z7HzKKPB V0LiMHcbPcSU8by1o3RUsq7bjERdZqbNQ9/dpVyh0Ia5O+L8WfvC+d/CBfSBZujeK+T6 rKZw7O4nNm1B+4l5J4EASfrzNdDL8NpadCWFALKkmwlq5/mfrjdjaMltCK/QHVSa3I4V HTVsDruOP9Ky/bYXwW6HW2IpPWwCkC6ub+w81Uli6knREMa4cnHtyskS3NCCoMYbngAi zfeQ== 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 d8-20020a056a0024c800b005a91f5ed6b2si10936419pfv.147.2023.03.20.01.16.50; Mon, 20 Mar 2023 01:17:02 -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 S230344AbjCTINc (ORCPT + 99 others); Mon, 20 Mar 2023 04:13:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230173AbjCTINY (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 8E04B18B1F; Mon, 20 Mar 2023 01:13:13 -0700 (PDT) Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 32K7v6wg088828; Mon, 20 Mar 2023 15:57:06 +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 2/5] dt-bindings: dmaengine: Add AST2600 UDMA bindings Date: Mon, 20 Mar 2023 16:11:30 +0800 Message-ID: <20230320081133.23655-3-chiawei_wang@aspeedtech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230320081133.23655-1-chiawei_wang@aspeedtech.com> References: <20230320081133.23655-1-chiawei_wang@aspeedtech.com> 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 32K7v6wg088828 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?1760873910298653563?= X-GMAIL-MSGID: =?utf-8?q?1760873910298653563?= Add the dmaengine bindings for the UART DMA engine of Aspeed AST2600 SoC. Signed-off-by: Chia-Wei Wang Reviewed-by: Rob Herring --- .../bindings/dma/aspeed,ast2600-udma.yaml | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/aspeed,ast2600-udma.yaml diff --git a/Documentation/devicetree/bindings/dma/aspeed,ast2600-udma.yaml b/Documentation/devicetree/bindings/dma/aspeed,ast2600-udma.yaml new file mode 100644 index 000000000000..4c0a5edf2168 --- /dev/null +++ b/Documentation/devicetree/bindings/dma/aspeed,ast2600-udma.yaml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/dma/aspeed,ast2600-udma.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Aspeed AST2600 UART DMA controller + +maintainers: + - Chia-Wei Wang + +description: + The Aspeed AST2600 UDMA controller provides direct memory access capabilities + for the NS16550A-compatible UART devices inside AST2600 SoCs. UDMA supports 28 + DMA channels and each UART device has its dedicated pair of TX and RX channels. + +allOf: + - $ref: dma-controller.yaml# + +properties: + compatible: + const: aspeed,ast2600-udma + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + "#dma-cells": + const: 1 + + dma-channels: + maximum: 28 + +required: + - compatible + - reg + - interrupts + - "#dma-cells" + - dma-channels + +additionalProperties: false + +examples: + - | + #include + dma-controller@1e79e000 { + compatible = "aspeed,ast2600-udma"; + reg = <0x1e79e000 0x1000>; + interrupts = ; + dma-channels = <28>; + #dma-cells = <1>; + }; + +...