Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1261567pxb; Fri, 13 Nov 2020 08:12:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJwUPkhrDvZ9K9dFz6nZu94VGb/SJDsUAvS6IcQZUyIKnq8z3KSxH5MWJTBrdHTi1ed9uT4v X-Received: by 2002:aa7:cdd9:: with SMTP id h25mr3259624edw.294.1605283920213; Fri, 13 Nov 2020 08:12:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605283920; cv=none; d=google.com; s=arc-20160816; b=XjtKvzuzpEEsaJuwhxx8EemcdDtl04+Rok3iN0wbPP5P23UlL0o+3LwZgpW1nT6mge S5/A/dFfjTh4KyE7j4z7ou2NTdIgm2uMvUBQ1OLhwaQh+Gcdo7/TYHbNB3p/lY4ijREo SSR5sGpI6ti0Ca+VI/8aGuQaTWFq+Ko0Zl7Hu4UWP/PaC/q4vMJfFVWRJxfCnNtkQsTt Dibp+xtiGHF/eb48/CsU/JxL9DOSNVpu7KIsTT1RNeGq0sZVK/cWmlwii6wLpWUIJGbE ctepOweSMjBtEnkeoIG+0YMuE9RdGH8cDAjxOmrdkHdFumY1OaB5ULcmmg6A2ekfLre1 Idkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:to:from; bh=DHDFLVOq7kenwOupsxoLiw1FDj/xP+jA888RrorJ+vU=; b=Tca0Ew6w3/pipYgu4LhuwnMWOioltZYN529n/taOu5HfSE5dmsVS87chFwXrM0B1ga U3mmOJR2rzC8DY7I0nyTpb7kHhLDaudUJT4QDmph07Soq9VhhPlC9xhbzKtWSxgGoOyL /Wuk4ZXjl40NeeL8bOADAR5Su6yuzLPW0mvGRV2sLYCi24KgzfgRKLK6QJg0taswTvHZ aoUoaE414cGB2IYSnoZ00a/eoGoWoJSmJ+UP2+GrQcY8E8li27yywlP08vDKGhe7kd4L NJzo7UaYD62VOZvIjOPaid0qa6afiaiV522fnOSRF5L8HHYnBQC5W3O/ggHkNGckapRO 80mA== 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 p23si7712818edw.241.2020.11.13.08.11.33; Fri, 13 Nov 2020 08:12:00 -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 S1726789AbgKMQJl (ORCPT + 99 others); Fri, 13 Nov 2020 11:09:41 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:7238 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726336AbgKMQJl (ORCPT ); Fri, 13 Nov 2020 11:09:41 -0500 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CXk1b1Mtfzkk74; Sat, 14 Nov 2020 00:09:23 +0800 (CST) Received: from huawei.com (10.151.151.249) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Sat, 14 Nov 2020 00:09:34 +0800 From: Dongjiu Geng To: , , , , , , Subject: [PATCH 1/2] dt: bindings: dma: Add DT bindings for HiSilicon Hiedma Controller Date: Sat, 14 Nov 2020 00:34:08 +0000 Message-ID: <20201114003409.36406-1-gengdongjiu@huawei.com> X-Mailer: git-send-email 2.17.1 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 | 80 +++++++++++++++++++ 1 file changed, 80 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..c04603316b40 --- /dev/null +++ b/Documentation/devicetree/bindings/dma/hisilicon,hiedmacv310.yaml @@ -0,0 +1,80 @@ +# SPDX-License-Identifier: GPL-2.0-only +%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_n + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: apb clock + - description: axi clock + + clock-names: + items: + - const: apb_pclk + - const: axi_aclk + +required: + - "#dma-cells" + - "#clock-cells" + - compatible + - reg + - interrupts + - clocks + - clock-names + - resets + - reset-names + - dma-requests + - dma-channels + - devid + +additionalProperties: false + +examples: + - | + #include + #include + + dma: dma-controller@10040000 { + compatible = "hisilicon,hiedmacv310_n"; + 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>; + devid = <1>; + #dma-cells = <2>; + }; + +... -- 2.17.1