From nobody Thu Oct 2 09:22:05 2025 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 9FC1B2D8774; Thu, 18 Sep 2025 18:49:58 +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=1758221398; cv=none; b=DnMS9lxiX5HQlnCoXe+vZQL+K4vy2tWU/SO9V6PrUpevSfNMuPM/SrdoOeaMbmgDGh4iatn4Ot2apOO5RZUAjJf9dWzB05MXOF/n8V5ve2dwzzunUSd/CdwPlfKyXBhWrQ9BcMohFJKdiFYGrHYMee/N//fUhdyCYEGWBi3CPr8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758221398; c=relaxed/simple; bh=Htg5Xkrs9v7XuZNYgTVERiSjoemIaBO0jN/nY/LLRAU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Nj4ajWTsIOdCyTSzz5rvCitZZaF+mieQzT8W7vlncmqzSRRacS2zNcSlNpFN+hUWmqLPkj6R4mZFEcwoiS288a1J8imQWXKlroM85YQx4q/JTdNCAFgvEnYZxzV0+MdYosRbeW/Bqpvl2TOexZmzrqUd7E4disTMN26OXsNcg+w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kSeEVrWa; 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="kSeEVrWa" Received: by smtp.kernel.org (Postfix) with ESMTPS id 0EE02C4CEF1; Thu, 18 Sep 2025 18:49:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1758221398; bh=Htg5Xkrs9v7XuZNYgTVERiSjoemIaBO0jN/nY/LLRAU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=kSeEVrWav2PG5BgRSfOW1+KN7xeUTx2UR9FezgyY5IT12g/PUtMp2vUOvtErW5Hqz L4lvjDfIh822AGzZF8Rc2+bR7WtWU5MBxHmv5rB+YNEP/IKaalXx4JuIMSxnMrs/z6 MIjIc22S0O87HdVQThIwIAucZnr+aIDqboY09i5RZOwt2llByAFZiaFdVfQ1xxAGKA u13ap5mUeHsygRDzLGDJAun08wJnZBlmCtScaJyTZnhWpHIgNvQKMiyPAiYZTShAuh oghbtZY3/4l4751hxq9OUirOKjeRtV9IpiF8V65IvFuEG3YWwrsZmcXquKxP6mcVUV /RpETgjRTJXPg== 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 F2FE7CA1013; Thu, 18 Sep 2025 18:49:57 +0000 (UTC) From: Dang Huynh via B4 Relay Date: Fri, 19 Sep 2025 01:48:43 +0700 Subject: [PATCH 03/10] dt-bindings: dma: Add RDA IFC 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: <20250919-rda8810pl-mmc-v1-3-d4f08a05ba4d@mainlining.org> References: <20250919-rda8810pl-mmc-v1-0-d4f08a05ba4d@mainlining.org> In-Reply-To: <20250919-rda8810pl-mmc-v1-0-d4f08a05ba4d@mainlining.org> To: Manivannan Sadhasivam , Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd , Vinod Koul , Ulf Hansson , Philipp Zabel , Kees Cook , "Gustavo A. R. Silva" Cc: linux-arm-kernel@lists.infradead.org, linux-unisoc@lists.infradead.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, dmaengine@vger.kernel.org, linux-mmc@vger.kernel.org, linux-hardening@vger.kernel.org, Dang Huynh X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1758221395; l=2618; i=dang.huynh@mainlining.org; s=20250917; h=from:subject:message-id; bh=fdIibseK6J9eF4DEbb0by9y6/svLXlDdAKxdYmnzlAc=; b=QviwbPBtxpdoWdT5r4lpY8XknciVPiPjmERLRTaOaBzvDTRddjvGsVcO6iHE8kT4emUpiQt4E 1MLJW+wwCTHAOBt+3nucNpqiToQ4PDL0uwMLtxtR+eUzpkVGgG8tCe2 X-Developer-Key: i=dang.huynh@mainlining.org; a=ed25519; pk=RyzH4CL4YU/ItXYUurA51EVBidfx4lIy8/E4EKRJCUk= X-Endpoint-Received: by B4 Relay for dang.huynh@mainlining.org/20250917 with auth_id=526 X-Original-From: Dang Huynh Reply-To: dang.huynh@mainlining.org From: Dang Huynh The Intelligent Flow Controller (IFC) is a scatter/gather DMA controller. Signed-off-by: Dang Huynh --- Documentation/devicetree/bindings/dma/rda,ifc.yaml | 45 ++++++++++++++++++= ++++ include/dt-bindings/dma/rda-ifc.h | 28 ++++++++++++++ 2 files changed, 73 insertions(+) diff --git a/Documentation/devicetree/bindings/dma/rda,ifc.yaml b/Documenta= tion/devicetree/bindings/dma/rda,ifc.yaml new file mode 100644 index 0000000000000000000000000000000000000000..323e1e87cee09cfc7b64bf44bef= 61e4d1e91afa5 --- /dev/null +++ b/Documentation/devicetree/bindings/dma/rda,ifc.yaml @@ -0,0 +1,45 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/dma/rda,ifc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: RDA Intelligent Flow Controller (IFC) + +maintainers: + - Dang Huynh + +description: | + RDA IFC is a DMA controller, it only supports scatter/gather lists. + +allOf: + - $ref: dma-controller.yaml# + +properties: + compatible: + items: + - enum: + - rda,8810pl-ifc + - const: rda,ifc + + reg: + maxItems: 1 + + "#dma-cells": + const: 1 + description: + The cell corresponding to DMA request ID + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + dma-controller@f0000 { + compatible =3D "rda,8810pl-ifc", "rda,ifc"; + reg =3D <0xf0000 0x1000>; + #dma-cells =3D <1>; + }; diff --git a/include/dt-bindings/dma/rda-ifc.h b/include/dt-bindings/dma/rd= a-ifc.h new file mode 100644 index 0000000000000000000000000000000000000000..af4bae0542aa71690351e2406d0= 945a61eff72c1 --- /dev/null +++ b/include/dt-bindings/dma/rda-ifc.h @@ -0,0 +1,28 @@ +/* SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause */ + +#ifndef __DT_BINDINGS_DMA_RDA_IFC_H__ +#define __DT_BINDINGS_DMA_RDA_IFC_H__ + +#define IFC_UART1_TX 0 +#define IFC_UART1_RX 1 +#define IFC_UART2_TX 2 +#define IFC_UART2_RX 3 +#define IFC_SPI1_TX 4 +#define IFC_SPI1_RX 5 +#define IFC_SPI2_TX 6 +#define IFC_SPI2_RX 7 +#define IFC_SPI3_TX 8 +#define IFC_SPI3_RX 9 +#define IFC_SDMMC1_TX 10 +#define IFC_SDMMC1_RX 11 +#define IFC_SDMMC2_TX 12 +#define IFC_SDMMC2_RX 13 +#define IFC_SDMMC3_TX 14 +#define IFC_SDMMC3_RX 15 +#define IFC_NFSC_TX 16 +#define IFC_NFSC_RX 17 +#define IFC_UART3_TX 18 +#define IFC_UART3_RX 19 +#define IFC_NO_REQUEST 20 + +#endif /* __DT_BINDINGS_DMA_RDA_IFC_H__ */ --=20 2.51.0