From patchwork Fri May 31 09:04:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Animesh Agarwal X-Patchwork-Id: 13681367 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 45A3DC25B75 for ; Fri, 31 May 2024 09:05:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=0zEJz21B3a/CvMADcfyMii4EcsouZx56yuvNZPYIY3I=; b=3JtXMnsBsC1X/h SMO/zYzz+H0OqwhahNa2T4cQMweZH1rOyKipvYpva+F11YMaZVPyUb9eW4vkPifc05rTu5bVxQv4x 0VL65famM8+jgP5Sso5kHIZGno9PjJE5n/qGyIR1++rQ6Jpmuu2HtsqTBcJl3cirAmTDZHfynARMf FXx/zm/RDkOsSN+vlLogIO92x3FYMgJyt/DSp7Ef6qpIbUQF98U4d43acZhwkrIAuO+qx9dYjhGIm XEUsSiw/WuNUA7g6qQ6YxgwHqPw+GqdGejqjxPKw5zprKEjjWeqlakbA1VfnW/TASn4rxCSht0wby dxfoQV2k/+u3Z6w3BrUg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCyCP-00000009jMM-1e2Z; Fri, 31 May 2024 09:05:21 +0000 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCyCL-00000009jLB-0Zj9 for linux-arm-kernel@lists.infradead.org; Fri, 31 May 2024 09:05:19 +0000 Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-1f61f775738so11524715ad.2 for ; Fri, 31 May 2024 02:05:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717146315; x=1717751115; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=cIqlWuPqBxRMmc3AFgZJ/wVDP6Hh20wzHjGm/ayLPpw=; b=Gssodi6FPbOD0sKl1YH3EBve5jnlxvtAhI3QeZ6qxRgRpiPhKZsKTU8d62ITNHGVHQ b2TT5xPZFiY+xcbvdrkMNeq2xpMBLRG+cs8MOER58hpc/I651IByXXJ0d9GpMUkZORJJ 9WcpKjhyks70FpHANIsJrq+hd7A5TkqwfNeDC7ypKDYsqaz0TXyaMDgU8u8YBf5Z4nu/ HtwrghgcpwbdWlyJXpLX7La2BHL7r3iRJUcegiH2XD044UTB1t2phUpS9NPdSsw63xAW /K2dDYI4mlocHIfnpCQ6dwSilwyXKnL8hlNctWmCHWHvmoXXmigvaJlugKPdJBrKGmLe oOJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717146315; x=1717751115; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cIqlWuPqBxRMmc3AFgZJ/wVDP6Hh20wzHjGm/ayLPpw=; b=HOWlpXlCoL7coygZj1LGYoDQGZPk2zDib4/NSpIHC592OEE1UnVywlzYpxFSHHQANk J/vfIYELvU4O6xzCVegerpK1247q2keJENYMuXAsCK/2DZNV0sCVWvCQtOIdU0/B0G60 V/Cs0cZsq1VK8Ymp7xD6OFivdusXFC2leGVhbhLLwn4B/YLr14b3yaq2L2JiiZimb/4s imnaZByZgdvjpu9BTqfhhAkWkmGgah1+OwLRc9mYkBtzW1DizqwggLYu+CydL51kfTLI cP+2qwtDdLyeQfz7BNLGOLErzkbWy5bTO7BQlBlB10M0qooSWNkDu2v01ZkH72OkcvvD PLHA== X-Forwarded-Encrypted: i=1; AJvYcCUmm/xk0OND1q3QqGGhmzjYE1LVIvswO2+/8pEp4Qa6LkRaHDvQhxoIBudCff4f5UdH+ra1E7Dkv9ZwjIDGmanf9Bng4m/oOMe+KMX6Nnk5wtsSp8s= X-Gm-Message-State: AOJu0YwreDA500rfR/BBHpuQQXgz8hLK8SmapDeDNyJGnqXUmsuiQvbS yQHUcTIUcc/IVwglekq7+nlWdWByrD9IVOpdZdx7BCuofO6lnwLQ X-Google-Smtp-Source: AGHT+IEcCbIUb7FLaS1kv0Gl0B/d0JLuJYOBmQuhl+Pn9+ipuPL8cfMSAbBqrvyB9DDLlJppJJN4Lg== X-Received: by 2002:a17:902:e88f:b0:1f2:fe12:b79e with SMTP id d9443c01a7336-1f637012f93mr15319515ad.17.1717146315068; Fri, 31 May 2024 02:05:15 -0700 (PDT) Received: from fedora.pi.hole ([2405:201:6013:c0b2:b3f7:7c95:a370:4345]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f6323ec184sm11572445ad.209.2024.05.31.02.05.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 02:05:14 -0700 (PDT) From: Animesh Agarwal To: Cc: animeshagarwal28@gmail.com, 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 Subject: [PATCH v2] dt-bindings: dma: fsl,imx-dma: Convert to dtschema Date: Fri, 31 May 2024 14:34:51 +0530 Message-ID: <20240531090458.99744-1-animeshagarwal28@gmail.com> X-Mailer: git-send-email 2.45.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240531_020517_211912_06202839 X-CRM114-Status: GOOD ( 18.85 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Convert the fsl i.MX DMA controller bindings to DT schema. Signed-off-by: Animesh Agarwal --- .../devicetree/bindings/dma/fsl,imx-dma.yaml | 56 +++++++++++++++++++ .../devicetree/bindings/dma/fsl-imx-dma.txt | 50 ----------------- 2 files changed, 56 insertions(+), 50 deletions(-) create mode 100644 Documentation/devicetree/bindings/dma/fsl,imx-dma.yaml delete mode 100644 Documentation/devicetree/bindings/dma/fsl-imx-dma.txt diff --git a/Documentation/devicetree/bindings/dma/fsl,imx-dma.yaml b/Documentation/devicetree/bindings/dma/fsl,imx-dma.yaml new file mode 100644 index 000000000000..13ac6d6ad49f --- /dev/null +++ b/Documentation/devicetree/bindings/dma/fsl,imx-dma.yaml @@ -0,0 +1,56 @@ +# 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: + items: + - description: DMA complete interrupt + - description: DMA Error interrupt + minItems: 1 + + "#dma-cells": + const: 1 + + dma-channels: + maximum: 16 + + dma-requests: + description: Number of DMA requests supported. + +required: + - compatible + - reg + - interrupts + - "#dma-cells" + +additionalProperties: false + +examples: + - | + dma-controller@10001000 { + compatible = "fsl,imx27-dma"; + reg = <0x10001000 0x1000>; + interrupts = <32 33>; + #dma-cells = <1>; + dma-channels = <16>; + }; diff --git a/Documentation/devicetree/bindings/dma/fsl-imx-dma.txt b/Documentation/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 Controller 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 optional 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 = "fsl,imx27-dma"; - reg = <0x10001000 0x1000>; - interrupts = <32 33>; - #dma-cells = <1>; - dma-channels = <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 specifier - consists of a phandle to the DMA controller followed by the integer - 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 = <&dma 7>; - dma-names = "rx-tx"; - ... - };