From nobody Tue Feb 10 03:45:36 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 903C930AAC9; Tue, 27 Jan 2026 03:27:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769484479; cv=none; b=CV4cM4W+RNS2pU3iGhPVYxZyASbA1+rTViw1Uml4JTkTqkmLxplgT2eYJv4vjPkmVUluKleedUA2UH11pUtaj7g0Rpw8ckxN0htbGtHoUuG3qrnTgto4Bet2KAEUKBM7s54aGkVXyT/xO52QQTw4U9Enc+GJw5Er0JIJXBueGYQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769484479; c=relaxed/simple; bh=f8HEaw0QD6eF59BNE/tiQtVcFqDiD/wpvJebxI1NjQY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=MXE6sVhki1OVvp35O+7Uxu4Axi4bS3iglxu7mfeVkL2J7VAxo4GjM1ghjF0C/ozUETwjLOnjDoEGIDE3ctk9r15+Jv+p6BNlVJtLEVDQvsScVlUWlO0svkeOT1C54M3DUKqdwt+H2Omktj5YrOiGKZFg87M6yWtIqylAngwwyz0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=AJIQPTVf; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="AJIQPTVf" Received: by smtp.kernel.org (Postfix) with ESMTPS id 3F454C19425; Tue, 27 Jan 2026 03:27:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1769484479; bh=f8HEaw0QD6eF59BNE/tiQtVcFqDiD/wpvJebxI1NjQY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=AJIQPTVfAgprZIJGXw6g+IjR9vQYkByNHCPNhhkaZKkQtnPL9ySdMBjD+6aKXGGlf wYCeaeKHElhGEr7JN+tRYTui8zVTynwk9TFMYLhv1Hw4tOvDRqPKxivk5C7LSi9hH5 YevlHKhjDTgnwokkfru8ikx8HoXcroRwkfHV7MHHCFaRzu1PC4Bk50NkAx9MpOIFf1 Z2USENgCEZi9kXGWNff49NCzjZStdoE4luLmZBbiTOSdm4yso9UYGJSgaGWTcys6zb qxyFHPwjP55sQ0kvDeS5ulK31tbNq+R8qf8XX3Vwl+y/7aVzaH/Xycs3z9uGKqtmMy BG0JbTBTrP/Og== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 303E2D2592C; Tue, 27 Jan 2026 03:27:59 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Tue, 27 Jan 2026 03:27:52 +0000 Subject: [PATCH v2 1/3] dt-bindings: dma: Add Amlogic A9 SoC DMA Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260127-amlogic-dma-v2-1-4525d327d74d@amlogic.com> References: <20260127-amlogic-dma-v2-0-4525d327d74d@amlogic.com> In-Reply-To: <20260127-amlogic-dma-v2-0-4525d327d74d@amlogic.com> To: Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kees Cook , "Gustavo A. R. Silva" Cc: linux-amlogic@lists.infradead.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, Xianwei Zhao X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1769484476; l=2278; i=xianwei.zhao@amlogic.com; s=20251216; h=from:subject:message-id; bh=7HPvfvN45jNFSgm9177qR0z8f3j4ANyflLMHJjhl31g=; b=teIZPkCKsbKnjSPqMwDOU+m1E+yRZTodwq9Lu03mxvVdfe9KO/vnXUOSYamvg+SVVLniCAXo6 X4dLvB/F9/pAw79x/8zoid5Sza37C+lQ5ytft549cxR0HgQ9SMcbU2z X-Developer-Key: i=xianwei.zhao@amlogic.com; a=ed25519; pk=dWwxtWCxC6FHRurOmxEtr34SuBYU+WJowV/ZmRJ7H+k= X-Endpoint-Received: by B4 Relay for xianwei.zhao@amlogic.com/20251216 with auth_id=578 X-Original-From: Xianwei Zhao Reply-To: xianwei.zhao@amlogic.com From: Xianwei Zhao Add documentation describing the Amlogic A9 SoC DMA. Signed-off-by: Xianwei Zhao --- .../devicetree/bindings/dma/amlogic,a9-dma.yaml | 70 ++++++++++++++++++= ++++ 1 file changed, 70 insertions(+) diff --git a/Documentation/devicetree/bindings/dma/amlogic,a9-dma.yaml b/Do= cumentation/devicetree/bindings/dma/amlogic,a9-dma.yaml new file mode 100644 index 000000000000..7d044152fd76 --- /dev/null +++ b/Documentation/devicetree/bindings/dma/amlogic,a9-dma.yaml @@ -0,0 +1,70 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/dma/amlogic,a9-dma.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Amlogic general DMA controller + +description: | + This is a general-purpose peripheral DMA controller. It currently suppor= ts + major peripherals including I2C, I3C, PIO, and CAN-BUS. Transmit and rec= eive + for the same peripheral use two separate channels, controlled by differe= nt + register sets. I2C and I3C transfer data in 1-byte units, while PIO and + CAN-BUS transfer data in 4-byte units. From the controller=E2=80=99s per= spective, + there is no significant difference. + +maintainers: + - Xianwei Zhao + +properties: + compatible: + const: amlogic,a9-dma + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + const: sys + + '#dma-cells': + const: 2 + + dma-channels: + $ref: /schemas/types.yaml#/definitions/uint32 + maximum: 64 + +required: + - compatible + - reg + - interrupts + - clocks + - '#dma-cells' + - dma-channels + +allOf: + - $ref: dma-controller.yaml# + +unevaluatedProperties: false + +examples: + - | + #include + apb { + #address-cells =3D <2>; + #size-cells =3D <2>; + dma-controller@fe400000{ + compatible =3D "amlogic,a9-dma"; + reg =3D <0x0 0xfe400000 0x0 0x4000>; + interrupts =3D ; + clocks =3D <&clkc 45>; + #dma-cells =3D <2>; + dma-channels =3D <28>; + }; + }; --=20 2.52.0