From patchwork Fri Apr 12 07:07:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 13627016 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 6C22DC00A94 for ; Fri, 12 Apr 2024 07:07:32 +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=ViEuhhmsjkK2NMoFwMMgPUSSHd64nL6Vx+KrzJRf93U=; b=Jv7SnLFSH2e6QQ dwnbYHWFiLGZoE3u6pljFiuCHAQlSB5+5YxFhgLe4GuYNZz5eXrtQyDuNWAa7JuENEYM4DVupX3VD jOXlmWp3C0oDAkfFKiKS4O2/cx6CoymCDyLncnrprh3ShnO3es02SSYuLwl+T9v/ycNIhZww0ftnw /UEjWysa8YsOMe6YV80rW0IDk6aE6lcQ2S5siBTpDNiofDrtNNMrDpqBp7xc8Q1vH8oROmvAHLcNE 55r08r8Ki9KBQHgrPXb1HV7IwVPAa3ZnSTzP/RmgYcIa3Cp/GsZ1ep3udRkdPS7nEBy4PITNOYOVK 35qnbCoBdW3/4jATATYg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvB0R-0000000Fl1U-07tu; Fri, 12 Apr 2024 07:07:27 +0000 Received: from mail-dm6nam11olkn20801.outbound.protection.outlook.com ([2a01:111:f403:2c15::801] helo=NAM11-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvB0O-0000000Fkzf-0sO5 for linux-riscv@lists.infradead.org; Fri, 12 Apr 2024 07:07:25 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JL0qr9U6AoRxkIH/77ufADP4S3a2Tgh7QF8AHYSZfFxivK+7Tm4H8S9pAJ0Vcb84Hikt1bKHN1BmJq0xUQCt8ZCbxdayuzWAvF8ClbZ2jRG7SvInSTXBCeGOTvy0dGtcvkjhKmY7kbCspb0+4LZrn/3x61+Tk+UBDDe8q+5v7mLhbu8RiVGwBY7eMhxunEmSEnfaLaEfJiJZJYH9WLR8lG4Q3fu2FXEuqpKXruFt7Akr97xxHB+b1J06GTneI0r3EohvBXQpQDywQuxRTHr9+EduQD8xUya43Qt3KXsuYbPFdOHafXdfy2e8cVAcLhz8M3L8rvdfjgVbewwaSts2yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=Wr1EWI58vgY6CWzXaBMfjrS71hlZHq0bO3sBMwFJADg=; b=RBgVI07LoxjgqNMvVF7ijcOtbTB/SNrwxmP7gaHtY9Y3HphwgJgXPan62ZZZAj44eUp1ASA+XwCyaVf0Eg5tr7J/sewdcRi18hCnnoRcf7oaYzU2+z22vA1C4rKLlwtRODsi2IzZ6OfPu9CbcF774VVxmSp9nn+uZB4x3R5iWEW7F30tPMT4iftkXhvaKUYQPb6fHZWOuUJrJzWfePHx0pQhFrjYvN94blCmF8Xv7rWe0rQ8Lzccd4dp5YimFUaGER4Ra2W5edxhbqUeYD08BULdLIR+hKUj/tIVQvVtLgTcfI/DHGQcPJKCqnDuNAVuVMFdvYHcZmmrdAupoVA9Jw== 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=Wr1EWI58vgY6CWzXaBMfjrS71hlZHq0bO3sBMwFJADg=; b=ewF0xcjpBhL5fAqUZhKrthr9LDeq4mjn9ryQllRh/DivJTUn+yAdNjTG3KSfjLaOFCG33sB4FpcObqL80ReYdgjKWjQkVZL2X3jgngXUZP8A/dVGkMADewjqvFEEOLYm72WGgWXMUcYIxI/E5Zvn02U80n6yv+OkUsta0nmCXdNZ/EFR/4wXK4KYFRIthwIZoyqy5SujXfk5npn2eECP79UKHtXTzIkWSf3BIFwMXMLMYbvraazlNZRl1sqRVnwBYB/Df/a3iwQZifZqnYi+0fVg7fdGi21vAjhkkdqqxzb1yR0rzhe+gsYJr2X7L9JXemh0kSlJ5WR/Xuat5IBX4A== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by SA1PR20MB7440.namprd20.prod.outlook.com (2603:10b6:806:3e1::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.56; Fri, 12 Apr 2024 07:07:17 +0000 Received: from IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::182f:841b:6e76:b819]) by IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::182f:841b:6e76:b819%2]) with mapi id 15.20.7409.042; Fri, 12 Apr 2024 07:07:17 +0000 From: Inochi Amaoto To: Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen Wang , Inochi Amaoto , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Jisheng Zhang , Liu Gui , Jingbao Qiu , dlan@gentoo.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Krzysztof Kozlowski Subject: [PATCH v8 1/3] dt-bindings: dmaengine: Add dma multiplexer for CV18XX/SG200X series SoC Date: Fri, 12 Apr 2024 15:07:31 +0800 Message-ID: X-Mailer: git-send-email 2.44.0 In-Reply-To: References: X-TMN: [TczwfkgGVrrMJNwkiu2tX+pCakCrWQNrt/i0Lj4VNMU=] X-ClientProxiedBy: TY1PR01CA0195.jpnprd01.prod.outlook.com (2603:1096:403::25) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20240412070734.62133-1-inochiama@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|SA1PR20MB7440:EE_ X-MS-Office365-Filtering-Correlation-Id: a16eb3d7-d2b6-4023-b937-08dc5abf3018 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ad9qk06okJGfioff4IeIYFt6cB6Z9p8IPVvX91BemJr8ya8bkhfKP2Q/EeuxJ1Ca7JtO1JRBNgge2WIab9hjg4NLWtYwapHa7bsmjFGbtT41znvaJ0SrAILYdUomjWvXYXhG6jtlzpMOa6FDGfNKfcpdCI3wdTwg030IgoK1MUs6Z4v5brkgyFLf/2n8j/PZXOPDN0Ivr5bZDt+QpY+vQp/JTjVIFXOt3STkBAPtejh3xyLvhopTwvVnr16sLmIb9LAKoVxer4HkHXqD8cCnbmy4UL13+Sgw7t5T0OwP20XPSENyOuLZRgNJ2AmHpJCkaDz8dxzb6OK+1zXU5CB+Z3vjiY9eoUWxxrOzAB8EIR3uQrcqdC2D2o5VPzJ4zGNY6FvqG45GDTNNk+NQujQ0CFDY4wzndz5qaNzBWndS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CcR/3B6E29Yzxc8HMoap6mXKpdVbAZvIoqdot2rwOqdkBvXApzC9JuwpOKRE2faLZMQJJc8gJnbzz8ldbImFdGJ4UtjCj+dyCcob+GbvATBCzIxrSqGquIp+DtR0qojZ4Gz21hZZL8t/hNeUhkcXUB81UyPuPNtlX9tpXlDubQSoIUWFYSZ5Pc02ZxIjY3slwjIRGGGCHPFiWF/fIwD5FcU/lXQH1AZ5NMxf8whvW7hQRH13Ompq/ANn29VLsWmRjvMq+VcGHPmmjrzIgwHS7VYHvnRT4ZYpybj1tecac8Om4VCXYHkWvlKaSHV6BjpLwHrVjuEuCSR7Nr66gMixZ/PTsLw0YA7ZdM9LbcgBOSZ4FE2dWumqiVdUIbmzhVYE0YAaJ3R0rG111CeleOwQRQadIqsPtdVrvuuU/WbTAPkZ6vU+AWH9zF55G/239lVx2sT7o4HNKqjhQhJYh5r/ofaJUBcd46b4zNpWhMkq+SNeUx+Fe88B1tsUdVopvAIvOZJq2+PL216IBcyehD6Kr4V6kUKMMubxAmbJKyu5 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a16eb3d7-d2b6-4023-b937-08dc5abf3018 X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Apr 2024 07:07:17.3796 (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: SA1PR20MB7440 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240412_000724_297980_AC054A61 X-CRM114-Status: GOOD ( 11.59 ) 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: Krzysztof Kozlowski --- .../bindings/dma/sophgo,cv1800-dmamux.yaml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/sophgo,cv1800-dmamux.yaml -- 2.44.0 diff --git a/Documentation/devicetree/bindings/dma/sophgo,cv1800-dmamux.yaml b/Documentation/devicetree/bindings/dma/sophgo,cv1800-dmamux.yaml new file mode 100644 index 000000000000..480cb117db9b --- /dev/null +++ b/Documentation/devicetree/bindings/dma/sophgo,cv1800-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,cv1800-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,cv1800-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,cv1800-dmamux"; + reg = <0x154 0x8>, <0x298 0x4>; + #dma-cells = <2>; + dma-masters = <&dmac>; + };