From patchwork Sun Aug 11 05:16:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 13759692 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 4A35AC3DA4A for ; Sun, 11 Aug 2024 05:17: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:MIME-Version:References:In-Reply-To: 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: List-Owner; bh=c3y8WGKtvZ8BA8Ch1/7Z3HWmbk8WHbQfzP7vU98BmD0=; b=iXEplftucNtP2y UJdlQPv5S4JUHgId0S/JvgigyxDjJOdxEHrLqENy3/BrbqGj0siDcEMQwZk6NzztgUXg1FkzSu2vr wUi9mRSqHcJ4Lun95mjpC8AvpDkGGPMRJnJjlBMYxRLT5oAlEGcx+7t/ui4uZawXHZ4hH2sC3mlzf opa+sZf5azxRFOdc8XMfSjVqTSBOiw7gFfPSSNsvnwu84upapeRnYSd/iFj1M70GdwID8WA61H1ky i2s4P9bnflW8/X09ofahlB6OSmNsvDLetR+9rOdrtEBJoqgyzikQzXTixSqJ6mQq3X35wVxwE9a3z oN42TmvEdXoHdDh2JQTw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sd0xX-0000000F3ey-1Xcg; Sun, 11 Aug 2024 05:17:39 +0000 Received: from mail-bn8nam11olkn2082c.outbound.protection.outlook.com ([2a01:111:f403:2c14::82c] helo=NAM11-BN8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sd0xT-0000000F3e5-48Lb for linux-riscv@lists.infradead.org; Sun, 11 Aug 2024 05:17:37 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=m2NoGi23Lidf+5R+7V6Vk6eb1f3/5DECjkOQrUXG7jCcRzvQNsJIyKxuTrpINRGhIscoIbfPwDwjN7iKN8Y4ONTAqyh3iOfxgy0FIEkrpoHzFFjl7WibNz4RxVX70D1YKtOOycz7tIiTpyPR+Ce/P5hw+F04KS92L1pYKeBck6Tzc1w1kYWUhE65PxKJKmdHqCkgz8A7KgcsCL3nlLtdNQcyENf2+gblKslm952YIysTqBI/z3kLA8AuiXUBUzXw4xWshz+OKicEg1Jgk/3tq1/mEFQPE+mLz0s40Gko/KPJPHcxE3qEVcYX/ahZtV4DJfu66GBE78RIJilQ65HFxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=TS8PHrgdoaH8qkkE6JQCf4y7wDTNBlScmjhLd20KYKc=; b=Grq2rSJJFC065ebPK4+/Lb7Iivudr7L9bjRHo3eHM99pB5O7zaVqpugGFx++6ebmt1Fxs8uq0f3rrz6RfYSkMrMl2VCAJKlygObsbUCoCNmiBP5B/AaxCjdqTI68r2wDHvqY7fXLmKq6iAZ8OnyKV1ucu6ZDy7xx/ZRLHnUQQaMjIpBiO573vJJeBaZybbdvJDAyshnfcQxY0xmNkLlpqCS2TunIiMzvCEX9YmM8QiLFQkiuxjrQ/RGrWEFn4iWUvuF5qAnBwTFQNBZTSUu/jnMUpyN575oE+8bFF+lyPtsDlcu4MsjVwzQLg/HMWkpg3qF33tLX4byBo+vesS3NjA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TS8PHrgdoaH8qkkE6JQCf4y7wDTNBlScmjhLd20KYKc=; b=SHNMxWmY0SnOBvH5AUNHVWVqnoiHxZ64/UsC0kKe4lvI+id9arVBPvDvuMwCW9mNtqz2R712tTepOgDw+xO2SQkakVTdf0egNP6lHIFHxpXIAx6CwQHxpJZgJQRT9MtEZNKMcMUhkMN2J88KzR/7HgTiiAruUID6dx+r6tVjCufIgPtUfE7hsTwKLb+OYnXddK2+RZDbABmwv1IVbhcIdOd5QN+Tpsw3g6LO0oe98SRy3pXGEzl3wDEj8vm8pfmm+MHzbs6MN41FOi/ae/2wQyeBGo577QxiYzfUAMdqm3uJmayAg1K4IypkGtmckWg7eqEIaiuQeqxbXB0uR90gTA== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by SJ0PR20MB5255.namprd20.prod.outlook.com (2603:10b6:a03:47d::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7849.17; Sun, 11 Aug 2024 05:17:27 +0000 Received: from IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::ab0b:c0d3:1f91:d149]) by IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::ab0b:c0d3:1f91:d149%4]) with mapi id 15.20.7849.018; Sun, 11 Aug 2024 05:17:27 +0000 From: Inochi Amaoto To: Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen Wang , Inochi Amaoto , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH v11 1/3] dt-bindings: dmaengine: Add dma multiplexer for CV18XX/SG200X series SoC Date: Sun, 11 Aug 2024 13:16:37 +0800 Message-ID: X-Mailer: git-send-email 2.46.0 In-Reply-To: References: X-TMN: [zTfM9Wk1nktGtUwsGFJx+4Qc9usL7D1AUCrhOIHswfM=] X-ClientProxiedBy: SG3P274CA0018.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:be::30) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20240811051644.990577-1-inochiama@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|SJ0PR20MB5255:EE_ X-MS-Office365-Filtering-Correlation-Id: 5240b204-e5c3-4ea8-c78a-08dcb9c4e433 X-Microsoft-Antispam: BCL:0;ARA:14566002|461199028|5072599009|15080799003|8060799006|19110799003|3412199025|440099028|4302099013|1602099012|1710799026; X-Microsoft-Antispam-Message-Info: MNj43QuPZggNESshwTUBOGzN1s8lvM6yvkiaK8YYcE0dsUtY0RdI/lrO4gmwy0n+/OLAdmJwbzZP5SXgF51WSLi/wsRrpRnuZvvimbaSHbMNYnn3/avzL+S1TukWCBiAP81Yk0fqiGxWpnXPg37f4y/kag1pVPrzFNONzxBz4Dv2VcBtDXGXGY8hVi5KO+WeVnYOcMSzXiDtYSzG1TvNDvDf+uKql33xkaXIhrA0snPxcsRGAlgoMDMGDb+nvtA0VzDEA+IA1FqWm09pG8z3ByDPaOLAkaO1yVLROCFAUXz7lswgSiDa69IAU0dCKgUYAIA9w4W4ApVf19P3rqfHWpFw00KbyUZGISKYrUX7FXZhFejNFdDSxaUnXwCJ8+e8nBjyRXraXb4qOtCWoSxRa9k+8AnS0QgdAeG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GpyFLDGS3dMIELC2w4N6t7VpJPhOIzL1MvQm3QEBHqL7CCPt58patHz/7xaqmNO/etWdxs2nVrXQNvYEWdFU41xbywyzVnjNDvnbiYLK0R7NnH9OPFALR8wGkSmnC8X8IY930BflTiT80bxJ6V5/xf99ECNOPZFrqKM3AMrtOgD+CoG+T5wK37ZdWBDezdH8oKTkZrpmlZ5PJ1dzawh7JTT9NLFD9kdX13luJD65ud2WWx+TbOcWEtoBD7vLaelN2iXeGECkqkrxn7zGFWrfwAYMhwuGO0xutmHHS22pfY3UCUKScwmAVqfRK6F1g8rMNGfOr2PUsdPBZioIwXjltRFIgDioTxeXWGoI6Dl4dcN8yy38y2efu8SYmYvCtBEJ6lofsbXowYk6xf10EONVckuOXFCpORhEiCntTsBROuhDO4vXJHb79lPXm/Mp52fDe9nyZPxxRDa97p1zvlwZXKb8gz54I/bGjDGsxRfOA5UoUGoiqSuQsAE7uzdC+HJ0Gq3BGASq7Ed6bwctXAhwUmLW0pe5IdAsSD6eehBQpu+2/mqJAnIPTYg90AoglisFTB6/aSm1p2PJ431HqZxagsoXmliFlpSysXAAbJLZwS2p79N27XUgRxGSGLCxhzJtNgRabhTLECW74ZboRugUpyFu5v0Sj7uh2NPRut+SxT9EZhAT7mPJSQA7c9+ssA1 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5240b204-e5c3-4ea8-c78a-08dcb9c4e433 X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Aug 2024 05:17:27.4784 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR20MB5255 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240810_221736_055931_8E80FD2B X-CRM114-Status: GOOD ( 12.25 ) X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org The DMA IP of Sophgo CV18XX/SG200X is based on a DW AXI CORE, with an additional channel remap register located in the top system control area. The DMA channel is exclusive to each core. In addition, the DMA multiplexer is a subdevice of system controller, so this binding only contains necessary properties for the multiplexer itself. Add the dmamux binding for CV18XX/SG200X series SoC. Signed-off-by: Inochi Amaoto Reviewed-by: Conor Dooley --- .../bindings/dma/sophgo,cv1800b-dmamux.yaml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/sophgo,cv1800b-dmamux.yaml diff --git a/Documentation/devicetree/bindings/dma/sophgo,cv1800b-dmamux.yaml b/Documentation/devicetree/bindings/dma/sophgo,cv1800b-dmamux.yaml new file mode 100644 index 000000000000..e444ac2cc9a2 --- /dev/null +++ b/Documentation/devicetree/bindings/dma/sophgo,cv1800b-dmamux.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/dma/sophgo,cv1800b-dmamux.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sophgo CV1800/SG200 Series DMA multiplexer + +maintainers: + - Inochi Amaoto + +description: + The DMA multiplexer of CV1800 is a subdevice of the system + controller. It support mapping 8 channels, but each channel + can be mapped only once. + +allOf: + - $ref: dma-router.yaml# + +properties: + compatible: + const: sophgo,cv1800b-dmamux + + reg: + items: + - description: DMA channal remapping register + - description: DMA channel interrupt mapping register + + '#dma-cells': + const: 2 + description: + The first cells is device id. The second one is the cpu id. + + dma-masters: + maxItems: 1 + +required: + - reg + - '#dma-cells' + - dma-masters + +additionalProperties: false + +examples: + - | + dma-router@154 { + compatible = "sophgo,cv1800b-dmamux"; + reg = <0x154 0x8>, <0x298 0x4>; + #dma-cells = <2>; + dma-masters = <&dmac>; + };