From mboxrd@z Thu Jan 1 00:00:00 1970 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 1F129C4829E for ; Thu, 15 Feb 2024 10:55:42 +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:CC:To:Message-ID:MIME-Version:Subject: Date: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=ZVGdgVnPv71qu/CG7APmnJeIbh3jly3KqlkxrMmyM3U=; b=3Sl1wMAP9LR60c vRE+rF5786yV5dKPfE7eWR5J8Tz1E4u6NM0orEJrQo+vO2OdgDswg+Pj2OcKxOmWdVrM0PmeXpMg8 4MT9eMQ1MmzsCz3dRzaZT3TD7r34whatHchIpjw8sDJcBDbuBFFMuUu7gmuPSwSP4K5j4nADbeUAv HAGxhfZgNhohhzQdRVhI9TIxr+prZFiG53k//+T8kXAM8epnpvMl3cgV9uT2Sz7oSEHszB8C3S4Tj qieGee0RrI3w3JWZOggJ2n2OV3gFuWwgvGpdBAlSSZQrOwzFNcNvRxgStuX9bdMQYcdmfehGmBfx7 NqjAQ4jKGIScnNIQN3Hg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1raZOq-0000000Ftrm-1Mzx; Thu, 15 Feb 2024 10:55:28 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1raZOo-0000000Ftqv-19jk for linux-arm-kernel@lists.infradead.org; Thu, 15 Feb 2024 10:55:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1707994526; x=1739530526; h=from:date:subject:mime-version:content-transfer-encoding: message-id:to:cc; bh=ix55/jnZ4SkMNe1ZtfE07LjBU7sY6tl3iGBli1lEAcg=; b=lKSPI4tGtGzAP12zEpkXcm3wAGrDxtUgTkAguGMrY6Y6asPD3rJXnAZZ FwwzCL2gIpC9iOvSPhGpSmRTpl39pNyIPlkG/IANimBi66vml2bz5VeTf soy6YzaJqlG9DIoRaALQ2cnuR3h6T/Lqb1YcrNOS2i9ZshWlDLBfZfGD7 kT+nWFGgU2wm061Qpq4Yij26NL7BUVD7bsGaXHqdemsMPnbTOnOm7LOHt OqscDVkk5iWEkRHgybb+ZRJD8hbSQu2Zzt8Iedp0cdMa4J+LHTZxN3eim rlyv32i2KJF8B5YQMKfM33ED3lMCfK+RmjuFmB6BqgLrd0FqVMzRGTyrx A==; X-CSE-ConnectionGUID: v+sFuF0CRgGdCT0U0xN+Lg== X-CSE-MsgGUID: t8z6n7eVQo2rYQB00hVd2A== X-IronPort-AV: E=Sophos;i="6.06,161,1705388400"; d="scan'208";a="16283972" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 15 Feb 2024 03:55:26 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 15 Feb 2024 03:55:24 -0700 Received: from che-lt-i66125lx.microchip.com (10.10.85.11) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Thu, 15 Feb 2024 03:55:20 -0700 From: Durai Manickam KR Date: Thu, 15 Feb 2024 16:25:15 +0530 Subject: [PATCH] dt-bindings: dma: convert atmel-xdma.txt to YAML MIME-Version: 1.0 Message-ID: <20240215-xdma-v1-1-1139960cf096@microchip.com> X-B4-Tracking: v=1; b=H4sIAJLtzWUC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDI0NT3YqU3ERdY7NUi6SUpDQLQxNDJaDSgqLUtMwKsDHRsbW1AI7hoNV WAAAA To: Vinod Koul , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , Nicolas Ferre , "Alexandre Belloni" , Claudiu Beznea CC: , , , , "Durai Manickam KR" X-Mailer: b4 0.12.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240215_025526_364050_090109C4 X-CRM114-Status: GOOD ( 14.72 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Added a description, required properties and appropriate compatibles for all the SoCs that are supported by microchip for the XDMAC. Signed-off-by: Durai Manickam KR --- .../devicetree/bindings/dma/atmel-xdma.txt | 54 --------------- .../bindings/dma/microchip,at91-xdma.yaml | 77 ++++++++++++++++++++++ 2 files changed, 77 insertions(+), 54 deletions(-) diff --git a/Documentation/devicetree/bindings/dma/atmel-xdma.txt b/Documentation/devicetree/bindings/dma/atmel-xdma.txt deleted file mode 100644 index 76d649b3a25d..000000000000 --- a/Documentation/devicetree/bindings/dma/atmel-xdma.txt +++ /dev/null @@ -1,54 +0,0 @@ -* Atmel Extensible Direct Memory Access Controller (XDMAC) - -* XDMA Controller -Required properties: -- compatible: Should be "atmel,sama5d4-dma", "microchip,sam9x60-dma" or - "microchip,sama7g5-dma" or - "microchip,sam9x7-dma", "atmel,sama5d4-dma". -- reg: Should contain DMA registers location and length. -- interrupts: Should contain DMA interrupt. -- #dma-cells: Must be <1>, used to represent the number of integer cells in -the dmas property of client devices. - - The 1st cell specifies the channel configuration register: - - bit 13: SIF, source interface identifier, used to get the memory - interface identifier, - - bit 14: DIF, destination interface identifier, used to get the peripheral - interface identifier, - - bit 30-24: PERID, peripheral identifier. - -Example: - -dma1: dma-controller@f0004000 { - compatible = "atmel,sama5d4-dma"; - reg = <0xf0004000 0x200>; - interrupts = <50 4 0>; - #dma-cells = <1>; -}; - - -* DMA clients -DMA clients connected to the Atmel XDMA controller must use the format -described in the dma.txt file, using a one-cell specifier for each channel. -The two cells in order are: -1. A phandle pointing to the DMA controller. -2. Channel configuration register. Configurable fields are: - - bit 13: SIF, source interface identifier, used to get the memory - interface identifier, - - bit 14: DIF, destination interface identifier, used to get the peripheral - interface identifier, - - bit 30-24: PERID, peripheral identifier. - -Example: - -i2c2: i2c@f8024000 { - compatible = "atmel,at91sam9x5-i2c"; - reg = <0xf8024000 0x4000>; - interrupts = <34 4 6>; - dmas = <&dma1 - (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) - | AT91_XDMAC_DT_PERID(6))>, - <&dma1 - (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) - | AT91_XDMAC_DT_PERID(7))>; - dma-names = "tx", "rx"; -}; diff --git a/Documentation/devicetree/bindings/dma/microchip,at91-xdma.yaml b/Documentation/devicetree/bindings/dma/microchip,at91-xdma.yaml new file mode 100644 index 000000000000..0bd79c7b5e6f --- /dev/null +++ b/Documentation/devicetree/bindings/dma/microchip,at91-xdma.yaml @@ -0,0 +1,77 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/dma/microchip,at91-xdma.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Atmel Extensible Direct Memory Access Controller (XDMAC) + +maintainers: + - Durai Manickam KR + +description: | + The Atmel Extensible Direct Memory Access Controller (XDMAC) performs peripheral + data transfer and memory move operations over one or two bus ports through the + unidirectional communication channel. Each channel is fully programmable and + provides both peripheral or memory-to-memory transfers. + +properties: + compatible: + oneOf: + - enum: + - atmel,sama5d4-dma + - microchip,sama7g5-dma + - microchip,sam9x7-dma + - items: + - const: atmel,sama5d4-dma + - const: microchip,sam9x60-dma + reg: + description: Should contain DMA registers location and length. + maxItems: 1 + + interrupts: + description: Should contain the DMA interrupts associated to the DMA channels. + maxItems: 1 + + "#dma-cells": + description: | + Must be <1>, used to represent the number of integer cells in the dmas + property of client device. + -The 1st cell specifies the channel configuration register: + -bit 13: SIF, source interface identifier, used to get the memory + interface identifier, + -bit 14: DIF, destination interface identifier, used to get the peripheral + interface identifier, + -bit 30-24: PERID, peripheral identifier. + const: 1 + + clocks: + description: Should contain a clock specifier for each entry in clock-names. + maxItems: 1 + + clock-names: + description: Should contain the clock of the DMA controller. + const: dma_clk + +required: + - compatible + - reg + - interrupts + - "#dma-cells" + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + dma0: dma-controller@f0004000 { + compatible = "atmel,sama5d4-dma"; + reg = <0xffffec00 0x200>; + interrupts = <50 4 0>; + #dma-cells = <1>; + clocks = <&pmc 2 20>; + clock-names = "dma_clk"; + }; + +... --- base-commit: 8d3dea210042f54b952b481838c1e7dfc4ec751d change-id: 20240215-xdma-36e8bdbf8141 Best regards, -- Durai Manickam KR _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel