Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp374530pxb; Thu, 19 Nov 2020 03:40:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJzzh8jVG53nLAr224+ou68rujaA9MVUF1XkCo6jTGDLkPecy1dtKHv0VrM4mJ09HWqQ9nyu X-Received: by 2002:a05:6402:2373:: with SMTP id a19mr1707807eda.212.1605785999999; Thu, 19 Nov 2020 03:39:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605785999; cv=none; d=google.com; s=arc-20160816; b=VdHNtnkhFzJoRL0iTUjaXiVRhwwYNM3pAZiBEmV5qWD3Ha5SLwjaaPNKppZUrzRcF9 Y+/eQdJ0EZ0uMe3r68TDFfb/P6vAAkvLSznB+IxayBoelN9FqibcBEfH7XvIEc4g3g08 v06n6b3+vYCOC4aVfQz8dw3j/3IyEAXaS/uXZ0mii9xki9pjjG54BlwHOH6siergjUB7 od9yz2rmTRBI4m1vHlQGJPilrIIKmrL0ARaN2wg+4tqXeKfb+Rbh1ZxtJOzWoXivlogE VYkiA9JOV7wwut02yezWcDAAWBg2LLsBBU8vjznerRZ8c8rjMoOBJlTduIoHP5OiTDYe yQvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:to:from; bh=KyNDjO9KuKdKyKkk0+yIEFM4TwNx1+2hZ2+5t8Tfc1E=; b=rYUS6ZBlkILzAGgHovvvLEZAHzFvzYMBYqF+luOZ2VEqOe4IrdyzV1qgQfOcdoO/uK vRRkEzzGjleFN4SAJQps79dKSncpedgBPASQ6EHvm1BkJROZZ19KoL0qghREIZm0I0bU VIMZdebjl9MvP+3vSRIP/JoHSQ4et73Mkb8DlI8UH4W0Hr567Aqcyz/6lNlic1OqWTI8 g2ICXKgGjR3T8caUZHICiN4VTkVpjQXFVGN3s0kbMzAT16IHS4GGwtt/4gFOQnykssFt 6KyTue4mPqMTmfYvFXTTtPq4QwusNxkYyN6zNlz72eoRpn39N4R4QO51wkE73UjSrrV/ ei4w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f21si17591176edc.514.2020.11.19.03.39.37; Thu, 19 Nov 2020 03:39:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727006AbgKSLhL (ORCPT + 99 others); Thu, 19 Nov 2020 06:37:11 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:7559 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726790AbgKSLhK (ORCPT ); Thu, 19 Nov 2020 06:37:10 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CcHhM0MqHzhbLB; Thu, 19 Nov 2020 19:36:51 +0800 (CST) Received: from huawei.com (10.151.151.249) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Thu, 19 Nov 2020 19:36:59 +0800 From: Dongjiu Geng To: , , , , , , , , , , Subject: [PATCH v5 3/4] dt: bindings: dma: Add DT bindings for HiSilicon Hiedma Controller Date: Thu, 19 Nov 2020 20:01:28 +0000 Message-ID: <20201119200129.28532-4-gengdongjiu@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201119200129.28532-1-gengdongjiu@huawei.com> References: <20201119200129.28532-1-gengdongjiu@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.151.151.249] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Hiedma Controller v310 Provides eight DMA channels, each channel can be configured for one-way transfer. The data can be transferred in 8-bit, 16-bit, 32-bit, or 64-bit mode. This documentation describes DT bindings of this controller. Signed-off-by: Dongjiu Geng --- .../bindings/dma/hisilicon,hiedmacv310.yaml | 103 ++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/hisilicon,hiedmacv310.yaml diff --git a/Documentation/devicetree/bindings/dma/hisilicon,hiedmacv310.yaml b/Documentation/devicetree/bindings/dma/hisilicon,hiedmacv310.yaml new file mode 100644 index 000000000000..fe5c5af4d3e1 --- /dev/null +++ b/Documentation/devicetree/bindings/dma/hisilicon,hiedmacv310.yaml @@ -0,0 +1,103 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/dma/hisilicon,hiedmacv310.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: HiSilicon Hiedma Controller v310 Device Tree Bindings + +description: | + These bindings describe the DMA engine included in the HiSilicon Hiedma + Controller v310 Device. + +maintainers: + - Dongjiu Geng + +allOf: + - $ref: "dma-controller.yaml#" + +properties: + "#dma-cells": + const: 2 + + "#clock-cells": + const: 2 + + compatible: + const: hisilicon,hiedmacv310 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + misc_regmap: + description: phandle pointing to the misc controller provider node. + + misc_ctrl_base: + maxItems: 1 + + clocks: + items: + - description: apb clock + - description: axi clock + + clock-names: + items: + - const: apb_pclk + - const: axi_aclk + + resets: + description: phandle pointing to the dma reset controller provider node. + + reset-names: + items: + - const: dma-reset + + dma-requests: + maximum: 32 + + dma-channels: + maximum: 8 + + +required: + - "#dma-cells" + - "#clock-cells" + - compatible + - misc_regmap + - misc_ctrl_base + - reg + - interrupts + - clocks + - clock-names + - resets + - reset-names + - dma-requests + - dma-channels + +additionalProperties: false + +examples: + - | + #include + #include + + dma: dma-controller@10040000 { + compatible = "hisilicon,hiedmacv310"; + reg = <0x10040000 0x1000>; + misc_regmap = <&misc_ctrl>; + misc_ctrl_base = <0x144>; + interrupts = <0 82 4>; + clocks = <&clock HI3559AV100_EDMAC1_CLK>, <&clock HI3559AV100_EDMAC1_AXICLK>; + clock-names = "apb_pclk", "axi_aclk"; + #clock-cells = <2>; + resets = <&clock 0x16c 7>; + reset-names = "dma-reset"; + dma-requests = <32>; + dma-channels = <8>; + #dma-cells = <2>; + }; + +... -- 2.17.1