Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp376549pxb; Thu, 5 Nov 2020 02:26:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJybKDmvuqGfQ5VUxzC4VrlMgVAYe6FVVtLrxZBYTRf3lvMXqp/fjXCQ48zVVI95nidxyz0Q X-Received: by 2002:a50:e789:: with SMTP id b9mr1775389edn.272.1604572014769; Thu, 05 Nov 2020 02:26:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604572014; cv=none; d=google.com; s=arc-20160816; b=pVad2sxvvwERdLkTF4R09Gv5jchSBoW2TuiINOpb6zhKR/sji3yp+EBRMvYFgEpJRQ aF4i4hckRnIhm/2Zkf1P3NpkIaU++pn9JH0xjvYiJ1ZrsXQke+HTkSSqxCLtm0FOaweF RqZwgTfhHeWH+TxM38uqh6SsJdTxhfXHiq7IM7K/+z4v7kDY5IOj6Uu92uE6GUSPTygl XXY+nWd4yMrPfC+pUmQ2B4rAqJ2JDiSWyT4/tZ+WBoNWeuZuoz9rS/pEjomGLCGzUvuS ci5sUnAl3kfIXA/KhvNgRHiJXCDBsLQn4+pRGe0UKvLjZkUxhtAnz/9b4nLy0+XdeZ8V mGtw== 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=ZiE19ShmgN2M88iHqu8BwmdG3lh2LxfHHpvrRd1ZTf0=; b=RbQGqX9urQxdkFYoUn0zNDF5OTigsgo6oM96ruYM4p1G6oBFRsQZZ0YdElJPomcodQ Sr/neCvCiO++aK9LNGwysQJx3B66aeX3oOY8UdGAtjqFHAf5xOzBHGMdPFYSIKHRk/u3 Y/pIlPBVnRBDNCTT5sI8n/kop3D9URYkWZ1pvaAUE01IFap3vzspvluc+XSlby+A/pGR 3KJqeGW1p02ygkWbBDByXYciKxeBU5T6QJuOQ0EzqCKOtbG10pBV9p8OaxcWZWK9vId2 ay7IVieoMIsKY0O3ZBknr+TjMpVBQbi5oHRvdisn/+zBc7sBoijeK3mcP59ojwxX0SE6 8xrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=C8j4A4mk; 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 z6si754064eje.302.2020.11.05.02.26.31; Thu, 05 Nov 2020 02:26:54 -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=C8j4A4mk; 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 S1729949AbgKEKY6 (ORCPT + 99 others); Thu, 5 Nov 2020 05:24:58 -0500 Received: from hqnvemgate26.nvidia.com ([216.228.121.65]:6865 "EHLO hqnvemgate26.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729887AbgKEKYy (ORCPT ); Thu, 5 Nov 2020 05:24:54 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Thu, 05 Nov 2020 02:24:57 -0800 Received: from HQMAIL101.nvidia.com (172.20.187.10) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 5 Nov 2020 10:24:53 +0000 Received: from audio.nvidia.com (10.124.1.5) by mail.nvidia.com (172.20.187.10) with Microsoft SMTP Server id 15.0.1473.3 via Frontend Transport; Thu, 5 Nov 2020 10:24:50 +0000 From: Sameer Pujar To: , CC: , , , , , , , , , Sameer Pujar Subject: [PATCH 2/4] dt-bindings: dma: Convert ADMA doc to json-schema Date: Thu, 5 Nov 2020 15:54:04 +0530 Message-ID: <1604571846-14037-3-git-send-email-spujar@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1604571846-14037-1-git-send-email-spujar@nvidia.com> References: <1604571846-14037-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=1604571897; bh=ZiE19ShmgN2M88iHqu8BwmdG3lh2LxfHHpvrRd1ZTf0=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:In-Reply-To: References:MIME-Version:Content-Type; b=C8j4A4mkuZePquw+wMSAN6W66eUQ/pp5DZwMiW8zHaQu+b8FMC9fLJfyWN+hbRXX7 rCfFZipm+O0R0fIHONVAVSYWg1b8lnsHVGo1i9OfG5HIX4Fyl04nXbDZNa3IZ0IBed 1NLV2mYJeoqNZDOdOEMboFwpBYPeEuQZWvO/2lihu62uz1wvM0RP0J1i1xVRSNlTjQ AvV97Kj7V1zzjMUMWQPeBxZFgSs8XYrua5iPgVsUmHPsxIkEPOY/0IUxmUjfUG9Eso bfO2AsJGM2ZrEHP6wTHaPMLWMjvshSFVXx/tz8Gl9Z6jiuxkdwHnwnNSNZDgimbQ/e A/+aGNIteiQLw== 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 | 95 ++++++++++++++++++++++ 2 files changed, 95 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..b4e657d --- /dev/null +++ b/Documentation/devicetree/bindings/dma/nvidia,tegra210-adma.yaml @@ -0,0 +1,95 @@ +# 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. + + clocks: + description: Must contain one entry for the ADMA module clock + + 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 + +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