Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp434007pxu; Fri, 11 Dec 2020 06:00:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJwYvuq/533SlQknMoB5QcMW81zP/sWsXCX2hFs+MaWko2Q8ClJb+eXLxQh4lp7RGuOR/Fze X-Received: by 2002:a05:6402:1d18:: with SMTP id dg24mr11732525edb.221.1607695208381; Fri, 11 Dec 2020 06:00:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607695208; cv=none; d=google.com; s=arc-20160816; b=fCc8Xz3c3OgVtbKOz1uRBA+bEArpVqfDa3UN1ILZ1pAwAMhliDOEh033JQiooiqCqw 5q/inbfYL5ez1HcTzL8aQ6Y97ytNLGpCAsDU/7SgIV+Vyyq8UqO7y2seli2cLow/bYLP GJUcpv9a1fmnpw9QqgFZeJWVGkbobX2j4Mcb6FBH6jyJ6O3cVgD4TN9NCEfzACfci0II tksrdm2Sbm5VDIcULsvbI7+OKVSvXilhyhE1ivd7UnP0oLWmgEc1lec1IY+EvAm7zCK0 zRoVBOtVZo8Y52jpsi9cBkgUQztiKtnI1Pqa3OYJJfdCsk9+u2kkocq1A1eT2bYYrhPD e1gw== 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=YMCFs/PbBD3PuddJHvaS5jjWIUC3SfuXXwVmM805M9E=; b=D+HGaMpT+Db31xb/9fLLoa7Dr26pheD59PxBrMjppsKMubPCWjLVwACeVXSz8qfjZW Lrz1I+VVtrxq48CJ1FDtrSjhOT4XNHhEMPlvmDFP71r5MJXAs9ezJcHUrbEWNEKB/qYE c+fT2+PwyQYSNxZ0RrxALP/UGegyU90IJHVjuhLQcY8h8RH0Y9HSXYErag/l8DZAaNQv J6F326EBC27Bgf2UL4IUtn1u98pOp4tbEMezgV9oro0Meek2Ajr4bLW9hm41dYMDMeJf aj0Q4d+INEol1FFA/IxNaSkXrTDFVLlsDD2BGM8w9NLjg9+WxMWY+IkKJa9n+kLH1158 05HA== 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 t17si4543029ejj.562.2020.12.11.05.59.45; Fri, 11 Dec 2020 06:00:08 -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 S2405145AbgLKLyo (ORCPT + 99 others); Fri, 11 Dec 2020 06:54:44 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:9428 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391797AbgLKLyh (ORCPT ); Fri, 11 Dec 2020 06:54:37 -0500 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4Csq1L0Xl8zhqV6; Fri, 11 Dec 2020 19:53:26 +0800 (CST) Received: from huawei.com (10.151.151.249) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Fri, 11 Dec 2020 19:53:44 +0800 From: Dongjiu Geng To: , , , , , , , , , , Subject: [PATCH v6 3/4] dt: bindings: dma: Add DT bindings for HiSilicon Hiedma Controller Date: Sat, 12 Dec 2020 13:05:57 +0000 Message-ID: <20201212130558.49086-4-gengdongjiu@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201212130558.49086-1-gengdongjiu@huawei.com> References: <20201212130558.49086-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 | 94 +++++++++++++++++++ 1 file changed, 94 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..f57703fbbe7b --- /dev/null +++ b/Documentation/devicetree/bindings/dma/hisilicon,hiedmacv310.yaml @@ -0,0 +1,94 @@ +# 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 + + compatible: + const: hisilicon,hiedmacv310 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + hisi,misc-control: + $ref: /schemas/types.yaml#definitions/phandle-array + description: phandle pointing to the misc controller provider node and base register. + + 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" + - compatible + - hisi,misc-control + - 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>; + hisi,misc-control = <&misc_ctrl 0x144>; + interrupts = <0 82 4>; + clocks = <&clock HI3559AV100_EDMAC1_CLK>, <&clock HI3559AV100_EDMAC1_AXICLK>; + clock-names = "apb_pclk", "axi_aclk"; + resets = <&clock 0x16c 7>; + reset-names = "dma-reset"; + dma-requests = <32>; + dma-channels = <8>; + #dma-cells = <2>; + }; + +... -- 2.17.1