Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3547689pxb; Mon, 16 Nov 2020 18:43:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJwlQ4gNXApB6km3wJoUsBxUNx0iv6Y6hrQZ1ENwVhhm9yMwf/GYE4yn7pAAXmuGP9MODvMM X-Received: by 2002:aa7:c617:: with SMTP id h23mr18209381edq.154.1605581006078; Mon, 16 Nov 2020 18:43:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605581006; cv=none; d=google.com; s=arc-20160816; b=cbXXWv/B6semGMw+TRbdjrkKU7/6dAiXzGEwyxCTq71ft//OPckFVukz/M/WFvH9c2 gVcyybYJsN2p3YUuz6cWNgKWyXoGSnCIDpkiFx7YbL9tP/oKMTlYYPLHDjjd7RCSzIX3 Wr0b+s9Bbyaxc51YyWE9nFiFSiGoyPNhsw78bIHiiL9IH/vS5y6Enk7G644KR5iPiSCy 76KPDNCe+3NK0eVjJ642PdyKyWdN0+h+V+EQUvSp3AxZ3oF7qw+FaoFTI9m3OWrSoav3 8dVg9U1RSw8fzqmB/Wb42uv3Fj4zVqzmI+OfNwKQXBJUJ+3y97ygsqRb3IG4IVdA/Jfn 4nDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:ironport-sdr:ironport-sdr; bh=foGjLhK/Z3nbVXC4p0jhIoB+MtZZ97YpXbzXLyTOPiM=; b=kfFL5fvDX6BjAVcupfWUiKqqtqtUDWN2ypTGFFofEN/osk2xHg7SV/a4IhrFhPQyef LlRs3l/4YCKtwo9oUBDmhZLUHnXge5ItsBWvjupBEqDEqh3F3sP1z78+1xTi5uOcRb/t Qa7FfYdzXcmoqU5hLHOYN9TqFZ9CAIKQeYW1Sa01hLBgOS/zPKiMMXCtrxN9ftrvN9qA 1ZWQkW9KibWs2BUkT4oCOXUjmjf1Lincv1U2WV2Ng/1mWIJBY3BREy1fuXumRqyvYc/+ ekQBZqxKjvEzlmdP1WedDsvkT8oWZ2JviHHZaDskiurG7vfN7ds7dJf3z2GPMOQy6Law Vb1g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p1si12329560ejz.55.2020.11.16.18.43.03; Mon, 16 Nov 2020 18:43:26 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726983AbgKQCin (ORCPT + 99 others); Mon, 16 Nov 2020 21:38:43 -0500 Received: from mga04.intel.com ([192.55.52.120]:52551 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726789AbgKQCim (ORCPT ); Mon, 16 Nov 2020 21:38:42 -0500 IronPort-SDR: feOsUOkfeHOkEWZInJikVDAs/veNAH6Yr1Dl3q36bTpZwJwUt0w7ky8rtUNQQxxqgdayj5QcxO bB248vHbKYaA== X-IronPort-AV: E=McAfee;i="6000,8403,9807"; a="168274039" X-IronPort-AV: E=Sophos;i="5.77,484,1596524400"; d="scan'208";a="168274039" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Nov 2020 18:38:42 -0800 IronPort-SDR: pPSwdX/YLVLVjcUup1FAlQBvB03MnmDtBYOyZSXpWNiUMYbKVZ/C/NGI0eIqQHvsEy2c9uK75A fo/1iGC2HUxA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,484,1596524400"; d="scan'208";a="358706020" Received: from jsia-hp-z620-workstation.png.intel.com ([10.221.118.135]) by fmsmga004.fm.intel.com with ESMTP; 16 Nov 2020 18:38:40 -0800 From: Sia Jee Heng To: vkoul@kernel.org, Eugeniy.Paltsev@synopsys.com, robh+dt@kernel.org Cc: andriy.shevchenko@linux.intel.com, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v4 01/15] dt-bindings: dma: Add YAML schemas for dw-axi-dmac Date: Tue, 17 Nov 2020 10:22:01 +0800 Message-Id: <20201117022215.2461-2-jee.heng.sia@intel.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20201117022215.2461-1-jee.heng.sia@intel.com> References: <20201117022215.2461-1-jee.heng.sia@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org YAML schemas Device Tree (DT) binding is the new format for DT to replace the old format. Introduce YAML schemas DT binding for dw-axi-dmac and remove the old version. Signed-off-by: Sia Jee Heng --- .../bindings/dma/snps,dw-axi-dmac.txt | 39 ------ .../bindings/dma/snps,dw-axi-dmac.yaml | 126 ++++++++++++++++++ 2 files changed, 126 insertions(+), 39 deletions(-) delete mode 100644 Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.txt create mode 100644 Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml diff --git a/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.txt b/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.txt deleted file mode 100644 index dbe160400adc..000000000000 --- a/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.txt +++ /dev/null @@ -1,39 +0,0 @@ -Synopsys DesignWare AXI DMA Controller - -Required properties: -- compatible: "snps,axi-dma-1.01a" -- reg: Address range of the DMAC registers. This should include - all of the per-channel registers. -- interrupt: Should contain the DMAC interrupt number. -- dma-channels: Number of channels supported by hardware. -- snps,dma-masters: Number of AXI masters supported by the hardware. -- snps,data-width: Maximum AXI data width supported by hardware. - (0 - 8bits, 1 - 16bits, 2 - 32bits, ..., 6 - 512bits) -- snps,priority: Priority of channel. Array size is equal to the number of - dma-channels. Priority value must be programmed within [0:dma-channels-1] - range. (0 - minimum priority) -- snps,block-size: Maximum block size supported by the controller channel. - Array size is equal to the number of dma-channels. - -Optional properties: -- snps,axi-max-burst-len: Restrict master AXI burst length by value specified - in this property. If this property is missing the maximum AXI burst length - supported by DMAC is used. [1:256] - -Example: - -dmac: dma-controller@80000 { - compatible = "snps,axi-dma-1.01a"; - reg = <0x80000 0x400>; - clocks = <&core_clk>, <&cfgr_clk>; - clock-names = "core-clk", "cfgr-clk"; - interrupt-parent = <&intc>; - interrupts = <27>; - - dma-channels = <4>; - snps,dma-masters = <2>; - snps,data-width = <3>; - snps,block-size = <4096 4096 4096 4096>; - snps,priority = <0 1 2 3>; - snps,axi-max-burst-len = <16>; -}; diff --git a/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml b/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml new file mode 100644 index 000000000000..6c2e8e612af5 --- /dev/null +++ b/Documentation/devicetree/bindings/dma/snps,dw-axi-dmac.yaml @@ -0,0 +1,126 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/dma/snps,dw-axi-dmac.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Synopsys DesignWare AXI DMA Controller + +maintainers: + - Eugeniy Paltsev + #include + /* example with snps,dw-axi-dmac */ + dmac: dma-controller@80000 { + compatible = "snps,axi-dma-1.01a"; + reg = <0x80000 0x400>; + clocks = <&core_clk>, <&cfgr_clk>; + clock-names = "core-clk", "cfgr-clk"; + interrupt-parent = <&intc>; + interrupts = <27>; + #dma-cells = <1>; + dma-channels = <4>; + snps,dma-masters = <2>; + snps,data-width = <3>; + snps,block-size = <4096 4096 4096 4096>; + snps,priority = <0 1 2 3>; + snps,axi-max-burst-len = <16>; + }; -- 2.18.0