Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp303709lqh; Fri, 31 May 2024 01:36:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUUxmhENN9evir4bZh9u27u4Ytye4oj5MOj+i+XKLY3IH+Rlhyh1qSCL2XRJlXs4hCgoxUEkOS7zimaHCOaOuTtUrmB4Gz4iSlUQxKHtA== X-Google-Smtp-Source: AGHT+IHfn39mR5lnhDUAEfCSrQhb5ZMSWiI8LavB/EES8IOXiZBjbmxszP6r8LCwG4LxRRnpS+0k X-Received: by 2002:a17:90b:144:b0:2bd:83b6:a571 with SMTP id 98e67ed59e1d1-2c1dc58fb4cmr1019782a91.24.1717144570130; Fri, 31 May 2024 01:36:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717144570; cv=pass; d=google.com; s=arc-20160816; b=Y6WGodxzhDMRdOlMmjkhYQ3LQAKjAfvFGgQz4dNyJffqtFMBNeXXM0q/GLBshe35gb dEiLdQCB8uLvYb5dLjXP/BURGLBif66hPJuOuOgbSN4urVuHf+wKqW4rGLpwqia79c0n eDv4ri2vECKEyB6QC+LwfASbE1X3jHLKi0GXMkMKvQZsX/pDBz9M1NdWmdDsgYsMo8HR yEIfD5XhKAKFZ/fDwKGVVHJaN1iJHEoL+slb+7oWnUDoCcob3/oEjJON914RagBA6LGz YDox/lFvSZlnEdLGD/1PezNg5gDbTr9Bav9mVrfAo8WnC3HlNM1rhhuIEv6MKBODFcPw jwzQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=n2juPgxcdbd1hz+pbic7lEAk0l0NWh5iJd6OWt1Xe84=; fh=Ic+1GKvliXeoVv79oWR1Q77mKcCfeR+XVLN4h6JOTYA=; b=XKQ9kvP4BGntDCGuvSvBFX7Hn0LEkYWvnppkAKNQX/appU6NmCBbEdRKH1V2FYpDN9 wm0QJ+CCjOYoG12uMjCVsvJjwB+dY97cdsVwdFrepJ29wkmQ4x2JmjpYe1CyP+JIw2/y MDgNiyLKkBDinf5EUWcNquAY92q+49fPLna9G2EY1TG6LhhFamz+zVx7Y7XnndWN17Jw N902mGLnARxRMx2Bh4Hkb4YCvcNDFNFiND8G6z78N+ANPVywSVUFKAHQUwKJV9pPDYOe Q7YmKk+kzCsLXwjF5U4oxmpMLhsN6ZzGV1DRAFkb12mlKvECurAH0DEmn2tBpCW9E/mG ja+w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=IViwfX54; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-196477-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196477-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c1c283e7b4si1203119a91.129.2024.05.31.01.36.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 01:36:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196477-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=IViwfX54; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-196477-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196477-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2D0C4284ADC for ; Fri, 31 May 2024 08:36:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 31DF4150987; Fri, 31 May 2024 08:35:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="IViwfX54" Received: from mail-oi1-f179.google.com (mail-oi1-f179.google.com [209.85.167.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AE93814F9EE; Fri, 31 May 2024 08:35:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717144553; cv=none; b=pl1kL0OJ9z2uK4Za1srzEdzu9DFb/8sfqAEyRJJdjqkj9n6ITEquNA3AvKTSWkp4SWB3NpsKAemIgavrbSa4cR7tmcxmQlAFyzxVNJ+3NOhD3RCnEhrnH7clEq645n7NaOR0xYFKdEQ+QF1n6t/ZHzR14h/+g27pHvPaWV+uXws= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717144553; c=relaxed/simple; bh=xMKqd7o5RmFHMTyNinBae/NjtHab99yOKmQxPflfAoM=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=p/rkfSrRc8cXqlHDqWLkG+6e0uXf5d7CW/MorDRsqZjUH9l3kDXhCyuz2KBIQBjhRNysNzelLxoMim3w+r7hJGjAoKZjH7hoTxCP09bVS/6uj7FtTmnKOZJ297yW7jWH0J3tmmrluMgxiZ5V1UYW8cacCzQ4Z7v+O4dP7Gb7qFM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=IViwfX54; arc=none smtp.client-ip=209.85.167.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oi1-f179.google.com with SMTP id 5614622812f47-3c9c36db8eeso925564b6e.0; Fri, 31 May 2024 01:35:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717144551; x=1717749351; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=n2juPgxcdbd1hz+pbic7lEAk0l0NWh5iJd6OWt1Xe84=; b=IViwfX54Vfm3BupR3Lt63f7aQtVgBtkl9ycnFnzooSAlDVC62P+Dz/2EACXeUqMyO+ 066fpCEZvgEe/922D9XfKeVZPASpg3xx2xp5etoLLad7XMJHvlvxSm8gyRV6ghqEiPyp tRQO9HfVg+e59d023jhyXfvNAza9D06sVCR4sNXN8uu0LcOm7rzjNgm+Q5ext/ib/931 nV57Aet3MF399vD0h0OKn/2V7SH9BfrKZn0vpKcEAPSmGs7DoYEABetD1Tb06/J72SaP vDol+k6dLdbuyPpGY4eb+EsIDFULzHvlg8FydYL4UghAUiZztPdQPdKrGpDZ/vywoJv7 kbJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717144551; x=1717749351; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=n2juPgxcdbd1hz+pbic7lEAk0l0NWh5iJd6OWt1Xe84=; b=xOirA3ESQluoJTyPDtJy14jy6ZN/F+vDOKJhyn2s8/X5j6FTQXLXxCQS3xInjG3ZfB 6qNl6zbDAph4Cj2bCxrcGMc5ZoJa0WHrcg7YGzyEQbrg8R+oS6c+oaQoThEQFS2rUuAr NiXqblHxJ7lh7DxOZ4xZrPFZjb+dk4hN3ygn97m1ApK6UJ2eDg5SCjsripUne6xmpapc +8Mx3qVnY3YJalzD/+TKfVMY/rAn+asglohmJqRYqd6Eu86EsdjC+qz/u/I6JqGBlWKv gzSkN9zvjBGwmpFdLtqiq+sxtXckWUFAiMSZFJjr2c+d5yYhl7F+MlnBHQ38E106zuey uwmQ== X-Forwarded-Encrypted: i=1; AJvYcCWy6gQz6a1hmPcnZ1ZMbuofoC9rhMW2Z/6VZi8FJjlTJjXxWGuyZw1B4yXzXe/nP6QGsUTv+BIR0Ij67aXxzBAwgsA8uBzE9FkBAZ2S4aj03JAIx6Y0NgZI1Y78ccr3Y/VFR/78FlnBQV7KKpjfJm/KsAeGIkh+iLVcosJoYuHjQM6eqA== X-Gm-Message-State: AOJu0YwVbWCPjB3RirNqjE11YHzbJI6RG+/cJKGFUqSOSiVLeU+GwpHo U08ojWHoqzT8zODfkcl0hogdQM+q5R2oOLaA48mAXI6oWWYNLCHe73EmqnJKYVYG4tiivdyFvVR lqhuSWIgdxH2bmC/Vw7JqKKl4mbI= X-Received: by 2002:a05:6870:9a14:b0:250:7a43:af02 with SMTP id 586e51a60fabf-2508be17114mr1195911fac.11.1717144550575; Fri, 31 May 2024 01:35:50 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240530072113.30410-1-animeshagarwal28@gmail.com> In-Reply-To: From: Animesh Agarwal Date: Fri, 31 May 2024 14:05:39 +0530 Message-ID: Subject: Re: [PATCH] dt-bindings: dma: fsl,imx-dma: Convert to dtschema To: Frank Li Cc: Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , dmaengine@vger.kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, May 30, 2024 at 9:36=E2=80=AFPM Frank Li wrote: > > On Thu, May 30, 2024 at 12:51:07PM +0530, Animesh Agarwal wrote: > > Convert the fsl i.MX DMA controller bindings to DT schema > > nit: need "." after sentence. Sorry for the typo here. > > > > Signed-off-by: Animesh Agarwal > > --- > > .../devicetree/bindings/dma/fsl,imx-dma.yaml | 58 +++++++++++++++++++ > > .../devicetree/bindings/dma/fsl-imx-dma.txt | 50 ---------------- > > 2 files changed, 58 insertions(+), 50 deletions(-) > > create mode 100644 Documentation/devicetree/bindings/dma/fsl,imx-dma.y= aml > > delete mode 100644 Documentation/devicetree/bindings/dma/fsl-imx-dma.t= xt > > > > diff --git a/Documentation/devicetree/bindings/dma/fsl,imx-dma.yaml b/D= ocumentation/devicetree/bindings/dma/fsl,imx-dma.yaml > > new file mode 100644 > > index 000000000000..f36ab5425bdb > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/dma/fsl,imx-dma.yaml > > @@ -0,0 +1,58 @@ > > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/dma/fsl,imx-dma.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Freescale Direct Memory Access (DMA) Controller for i.MX > > + > > +maintainers: > > + - Animesh Agarwal > > + > > +allOf: > > + - $ref: dma-controller.yaml# > > + > > +properties: > > + compatible: > > + enum: > > + - fsl,imx1-dma > > + - fsl,imx21-dma > > + - fsl,imx27-dma > > + > > + reg: > > + maxItems: 1 > > + > > + interrupts: > > + description: | > > + First item should be DMA interrupt, second one is optional and > > + should contain DMA Error interrupt. > > items: > - description: DMA complete interrupt > - description: DMA Error interrupt I'll add this in v2. > > > + minItems: 1 > > + maxItems: 2 > > + > > + "#dma-cells": > > + const: 1 > > + > > + dma-channels: > > + const: 16 > > I think it should be maximum: 16 Agreed! Changing it for v2. > > > + > > + dma-requests: > > + description: | > > + Number of DMA requests supported. > > No "|" need here. Removing this. > > > + > > +required: > > + - compatible > > + - reg > > + - interrupts > > + - "#dma-cells" > > + > > +additionalProperties: false > > + > > +examples: > > + - | > > + dma: dma-controller@10001000 { > > needn't label "dma". Removing this. > > > + compatible =3D "fsl,imx27-dma"; > > + reg =3D <0x10001000 0x1000>; > > + interrupts =3D <32 33>; > > + #dma-cells =3D <1>; > > + dma-channels =3D <16>; > > + }; > > diff --git a/Documentation/devicetree/bindings/dma/fsl-imx-dma.txt b/Do= cumentation/devicetree/bindings/dma/fsl-imx-dma.txt > > deleted file mode 100644 > > index 1c9929d53727..000000000000 > > --- a/Documentation/devicetree/bindings/dma/fsl-imx-dma.txt > > +++ /dev/null > > @@ -1,50 +0,0 @@ > > -* Freescale Direct Memory Access (DMA) Controller for i.MX > > - > > -This document will only describe differences to the generic DMA Contro= ller and > > -DMA request bindings as described in dma/dma.txt . > > - > > -* DMA controller > > - > > -Required properties: > > -- compatible : Should be "fsl,-dma". chip can be imx1, imx21 or = imx27 > > -- reg : Should contain DMA registers location and length > > -- interrupts : First item should be DMA interrupt, second one is optio= nal and > > - should contain DMA Error interrupt > > -- #dma-cells : Has to be 1. imx-dma does not support anything else. > > - > > -Optional properties: > > -- dma-channels : Number of DMA channels supported. Should be 16. > > -- #dma-channels : deprecated > > -- dma-requests : Number of DMA requests supported. > > -- #dma-requests : deprecated > > - > > -Example: > > - > > - dma: dma@10001000 { > > - compatible =3D "fsl,imx27-dma"; > > - reg =3D <0x10001000 0x1000>; > > - interrupts =3D <32 33>; > > - #dma-cells =3D <1>; > > - dma-channels =3D <16>; > > - }; > > - > > - > > -* DMA client > > - > > -Clients have to specify the DMA requests with phandles in a list. > > - > > -Required properties: > > -- dmas: List of one or more DMA request specifiers. One DMA request sp= ecifier > > - consists of a phandle to the DMA controller followed by the intege= r > > - specifying the request line. > > -- dma-names: List of string identifiers for the DMA requests. For the = correct > > - names, have a look at the specific client driver. > > - > > -Example: > > - > > - sdhci1: sdhci@10013000 { > > - ... > > - dmas =3D <&dma 7>; > > - dma-names =3D "rx-tx"; > > - ... > > - }; > > -- > > 2.45.1 > >