Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp714962pxb; Thu, 5 Nov 2020 11:01:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJzBoBxRoBItNRD954awToXdXNjmUJOnWownB71G9cfescCMmSjWBFZIjzA9EwK9FVaBo66I X-Received: by 2002:a17:906:57ca:: with SMTP id u10mr3200180ejr.389.1604602866725; Thu, 05 Nov 2020 11:01:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604602866; cv=none; d=google.com; s=arc-20160816; b=FoHfU8soEyhLWQCg5vly/nqs003sxAEsEMHOx7e+nibqAeBvo4d0/vKT+anTI15j1s RdTUmjUhgB+iEVdfhMYomRLenzhcmBKbEAQc2qi5uSqlPeW7jMwo2DV+D2LKlsVwehkK vBb/dOBF2aZxsTo76Mc9CzSOHCLylyzD+vF1qFRfbxtbMTevZuPGWYKxd1m5VKbZe5Ra trm+0hhCZ0QWwcibtzNMvndQto//or090mGxxcHHwj17OqYIMcRwume9uaUEE1yK+kLw orMiFM1XkAs15D2Gg584JDqm82f6IFdJnxBETZaIufUJyjf8KTlaNmXBBGkZjc8qeRFs bn4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=15Y1K9usUkG9wBYnByVHYm2MLoK4h6XMHFtLXY+mdjs=; b=CxxrkkTSB/FQz3V3LRNhQ9h+nDwqJsgL6+/ja/2FHfASv+ib0nmks2ecbhMkvFOAOK 25XpMmNdgMzr3s2SWn7BvF8TkKfRa81F/+NDykIqc94qpm4bO8Yg19eA0saWcQviLv1D eAV+2TQKq+m2duYtRtWpMI4/4GvzNaEGYjkYOvP12bcUdnwhAE3u+arp3V0K+yc5KjOO Xwa5hH0uCuZqIg6bPbC9Rbyer1rUli1e5uBe5aQYfbFT6v+wN0GnUGaNOumVjMVQl45V IwUs3u3Lf9nlQ47Ha3zbEIer05QwgxRUSmQBEALVtNU7nQWEfICjcU1WBbCcTgKLRTcz EK+g== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m25si1810354edp.176.2020.11.05.11.00.41; Thu, 05 Nov 2020 11:01:06 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731901AbgKES44 (ORCPT + 99 others); Thu, 5 Nov 2020 13:56:56 -0500 Received: from mail-oo1-f65.google.com ([209.85.161.65]:33142 "EHLO mail-oo1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727017AbgKES44 (ORCPT ); Thu, 5 Nov 2020 13:56:56 -0500 Received: by mail-oo1-f65.google.com with SMTP id u5so691925oot.0; Thu, 05 Nov 2020 10:56:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=15Y1K9usUkG9wBYnByVHYm2MLoK4h6XMHFtLXY+mdjs=; b=rURCeC+sWDtHrJnFmLVi0Y7ku+A8UYeNto8FZ1PgI33VwjXCnvGIDFiRR1YGKCjMvw w5I+r0+EQmJrKadO2Eeue+qfhzOGPHavX5ITo9PTLNHSDdNUWICXVt0cxNx6dTeweYqn AOxVFHAfD00sX1wUnY6MLoxKvddIV3z+C2b7CWGMw/Xqz5vvnIB3Y1rTYKPg9DazFU9q nsHlzUwbjVnEZMWw9dUONprgTuv6woxwVnIqFldf+eO9K3bKMdvbIdXTrHFhonnUgxEI YlnlL1/wTrkmwXEr5a+Dn9ngozZe1nK7GmvBvwd1H7zPm2FEOE80QExFKnyT3EKKXcqG vTSw== X-Gm-Message-State: AOAM533B4hK+X6a3xezWyz8q80WG6/mvFIKlWAOVXkJs47rt/ekV9sgb zfOcNvZ82S16mcCWw9PgBg== X-Received: by 2002:a4a:6251:: with SMTP id y17mr2455201oog.17.1604602614670; Thu, 05 Nov 2020 10:56:54 -0800 (PST) Received: from xps15 (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id i12sm537841oon.26.2020.11.05.10.56.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Nov 2020 10:56:53 -0800 (PST) Received: (nullmailer pid 1631441 invoked by uid 1000); Thu, 05 Nov 2020 18:56:52 -0000 Date: Thu, 5 Nov 2020 12:56:52 -0600 From: Rob Herring To: Sameer Pujar Cc: devicetree@vger.kernel.org, thierry.reding@gmail.com, jonathanh@nvidia.com, vkoul@kernel.org, tglx@linutronix.de, jason@lakedaemon.net, maz@kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org Subject: Re: [PATCH 2/4] dt-bindings: dma: Convert ADMA doc to json-schema Message-ID: <20201105185652.GB1622537@bogus> References: <1604571846-14037-1-git-send-email-spujar@nvidia.com> <1604571846-14037-3-git-send-email-spujar@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1604571846-14037-3-git-send-email-spujar@nvidia.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 05, 2020 at 03:54:04PM +0530, Sameer Pujar wrote: > 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. You need to define how many (minItems/maxItems). > + > + clocks: > + description: Must contain one entry for the ADMA module clock How many? > + > + 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. > + Drop the blank line. > + 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 >