Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1361164pxb; Fri, 6 Nov 2020 07:45:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJz1FdSuw0XGMypYdedtqvkUZyjbLp6WOSAYcuas5KgpdOxK2CYUEPYpzkONmASkJ9F4BKTP X-Received: by 2002:a17:906:a444:: with SMTP id cb4mr2767319ejb.416.1604677543995; Fri, 06 Nov 2020 07:45:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604677543; cv=none; d=google.com; s=arc-20160816; b=nrtCE/CWqjlHLgYdbpCi/TyccCWgV/5S0HmrEnMDX8E10/GaaLSxy0irGguVud4lWe 7WCnyFLFqlOgPkypjo7ikotBcOFLfJji6G6dNYOxXCKGhWDv4YfNBsRuUgNKHCfK8hwB n/4+sJa65wz6OyhhDZAvgZHSBy+G6eC68ebufvMlrnUDg2gPq3fWPbkYCmfSOruAPDxj KyBqwy20pp4GYUpycS1VPKQUa7+JoCuUOAQqSzRtsXayWaen5L9yV+VMMK3F6rkLPjXS J/ZZwBupW6VPw+Ff6xxfmubXTYw66cexlKAFrx39F3ZYbiwi8WGtudwqRBt4EsWrFk3n /hGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from; bh=BmeAHSwzcrNscdXhWYMxiUBkGx2hykWAtx/Wo4UKk7o=; b=YIByV/mToZ7+fN003YfGbj36Iosxpn/lSGCh8xg4RGnIU90Q7uMdbqP7guNnBHKVVF YE89VRYVLnDgnVqfovucfW7v4+hJl2u4nvbjONIsPE06m4niD5VwAwIGf9F0Md/b2mRn RK9RN2s1mAguS/udhLW8/UyA39QTy71rolZz/eiQBLkUHbq86Tex2QYZViFFBG21l7t+ TZBsCeNmzthXkifgCGEYxtQ6RoaXRoWbJtjU07XeSIHi4iLup/maex7GxGKeFqH02hgQ QVeLxoVQpOwJBkhXe5RWL06VuuTLtI9K2yLoc+tSfvZUlsSdsBGf7/wpLcVVapz+XtSs 1Z9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=m98qe2tb; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s17si1267264edr.437.2020.11.06.07.45.21; Fri, 06 Nov 2020 07:45:43 -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; dkim=pass header.i=@nvidia.com header.s=n1 header.b=m98qe2tb; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727682AbgKFPnu (ORCPT + 99 others); Fri, 6 Nov 2020 10:43:50 -0500 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:3031 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727623AbgKFPnt (ORCPT ); Fri, 6 Nov 2020 10:43:49 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Fri, 06 Nov 2020 07:43:46 -0800 Received: from HQMAIL105.nvidia.com (172.20.187.12) by HQMAIL109.nvidia.com (172.20.187.15) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 6 Nov 2020 15:43:48 +0000 Received: from audio.nvidia.com (10.124.1.5) by mail.nvidia.com (172.20.187.12) with Microsoft SMTP Server id 15.0.1473.3 via Frontend Transport; Fri, 6 Nov 2020 15:43:45 +0000 From: Sameer Pujar To: , CC: , , , , , , , , , Sameer Pujar Subject: [PATCH v2 2/4] dt-bindings: dma: Convert ADMA doc to json-schema Date: Fri, 6 Nov 2020 21:13:31 +0530 Message-ID: <1604677413-20411-3-git-send-email-spujar@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1604677413-20411-1-git-send-email-spujar@nvidia.com> References: <1604677413-20411-1-git-send-email-spujar@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1604677426; bh=BmeAHSwzcrNscdXhWYMxiUBkGx2hykWAtx/Wo4UKk7o=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:In-Reply-To: References:MIME-Version:Content-Type; b=m98qe2tbqXWkcvcaV3woK987Jw5SoDGx4aRsaxC+R4RLNuqYHRky2U9tl+bTHhX1C m6jDmvlhVjl9ZVFfMEUQTMXtq++2gjBqCUEgBlt0a5WyJ+f75GmG5Z8uJzsjEsbosL EbSyjDSnlEbZORPEYuhd9evySKcSpXpGeFOPYdHxHQymeYce5OgW7oKovHfam3FyO6 jSR69T5vSi3hBSUJj2B0hs0pbtBXSvk7/e+x+FOg6n5uEgNhcEqoELYSnu7lWH5Kf4 EZoW4+jMspA4h1NhtYe3TfEz3/bhsAbBomaqLxvyZJk2BG8zBazY3IoRfNsHr3H/ma kKmVeSe6Asm9w== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Move ADMA documentation to YAML format. Signed-off-by: Sameer Pujar --- .../bindings/dma/nvidia,tegra210-adma.txt | 56 ------------ .../bindings/dma/nvidia,tegra210-adma.yaml | 99 ++++++++++++++++++++++ 2 files changed, 99 insertions(+), 56 deletions(-) delete mode 100644 Documentation/devicetree/bindings/dma/nvidia,tegra210-adma.txt create mode 100644 Documentation/devicetree/bindings/dma/nvidia,tegra210-adma.yaml diff --git a/Documentation/devicetree/bindings/dma/nvidia,tegra210-adma.txt b/Documentation/devicetree/bindings/dma/nvidia,tegra210-adma.txt deleted file mode 100644 index 245d306..0000000 --- a/Documentation/devicetree/bindings/dma/nvidia,tegra210-adma.txt +++ /dev/null @@ -1,56 +0,0 @@ -* NVIDIA Tegra Audio DMA (ADMA) controller - -The Tegra Audio DMA controller that is used for transferring data -between system memory and the Audio Processing Engine (APE). - -Required properties: -- compatible: Should contain one of the following: - - "nvidia,tegra210-adma": for Tegra210 - - "nvidia,tegra186-adma": for Tegra186 and Tegra194 -- reg: Should contain DMA registers location and length. This should be - a single entry that includes all of the per-channel registers in one - contiguous bank. -- interrupts: Should contain all of the per-channel DMA interrupts in - ascending order with respect to the DMA channel index. -- clocks: Must contain one entry for the ADMA module clock - (TEGRA210_CLK_D_AUDIO). -- clock-names: Must contain the name "d_audio" for the corresponding - 'clocks' entry. -- #dma-cells : Must be 1. The first cell denotes the receive/transmit - request number and should be between 1 and the maximum number of - requests supported. This value corresponds to the RX/TX_REQUEST_SELECT - fields in the ADMA_CHn_CTRL register. - - -Example: - -adma: dma@702e2000 { - compatible = "nvidia,tegra210-adma"; - reg = <0x0 0x702e2000 0x0 0x2000>; - interrupt-parent = <&tegra_agic>; - interrupts = , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - , - ; - clocks = <&tegra_car TEGRA210_CLK_D_AUDIO>; - clock-names = "d_audio"; - #dma-cells = <1>; -}; diff --git a/Documentation/devicetree/bindings/dma/nvidia,tegra210-adma.yaml b/Documentation/devicetree/bindings/dma/nvidia,tegra210-adma.yaml new file mode 100644 index 0000000..5c2e2f1 --- /dev/null +++ b/Documentation/devicetree/bindings/dma/nvidia,tegra210-adma.yaml @@ -0,0 +1,99 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/dma/nvidia,tegra210-adma.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NVIDIA Tegra Audio DMA (ADMA) controller + +description: | + The Tegra Audio DMA controller is used for transferring data + between system memory and the Audio Processing Engine (APE). + +maintainers: + - Jon Hunter + +allOf: + - $ref: "dma-controller.yaml#" + +properties: + compatible: + oneOf: + - enum: + - nvidia,tegra210-adma + - nvidia,tegra186-adma + - items: + - const: nvidia,tegra194-adma + - const: nvidia,tegra186-adma + + reg: + maxItems: 1 + + interrupts: + description: | + Should contain all of the per-channel DMA interrupts in + ascending order with respect to the DMA channel index. + minItems: 1 + maxItems: 32 + + clocks: + description: Must contain one entry for the ADMA module clock + maxItems: 1 + + clock-names: + const: d_audio + + "#dma-cells": + description: | + The first cell denotes the receive/transmit request number and + should be between 1 and the maximum number of requests supported. + This value corresponds to the RX/TX_REQUEST_SELECT fields in the + ADMA_CHn_CTRL register. + const: 1 + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + #include + #include + + dma-controller@702e2000 { + compatible = "nvidia,tegra210-adma"; + reg = <0x702e2000 0x2000>; + interrupt-parent = <&tegra_agic>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + clocks = <&tegra_car TEGRA210_CLK_D_AUDIO>; + clock-names = "d_audio"; + #dma-cells = <1>; + }; + +... -- 2.7.4