From patchwork Mon Jul 29 04:36:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 13744353 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 4555DC3DA61 for ; Mon, 29 Jul 2024 04:38:05 +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=4S9pQfYLwmDfSn 0DkEm/fAxUIlImt3eHkr6fMkMlIXwNEXq6yHW6JjiGk3R3TlTgumAB2IIvSoBYSp9fw3d6zfuO+GP W6uD6G61fAqjgLyE6ZpAgADG0nb51cDB2th8eKRn7s3iHtwHTfODrFsJG+uwY9cNW7iw7ZXs+2VWX TGikkDlWrp0ef5B0tUiWhU1232z3wW/JpSSOp7aiEPQrGLyfVwLRFKITWl14SHeLeHYdj14fWr1c4 NP94A/Ng5UOlWLXGR4FbxMKVW03Vtf1dlpZ4UmF+QBnrTz9EoZErdG+qh4nq2nHc7oS2Y6GWUgijr 0ZPNg/UTAIPggh4xo3Lg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYI93-00000009yGy-3zoQ; Mon, 29 Jul 2024 04:38:01 +0000 Received: from mail-sn1nam02acsn2080b.outbound.protection.outlook.com ([2a01:111:f400:7ea9::80b] helo=NAM02-SN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYI8Z-00000009y3e-1Nlg for linux-riscv@lists.infradead.org; Mon, 29 Jul 2024 04:37:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=QQOukr7Oof8Tkgf9dFx68qyEE/vFKxoevkfXUIKYMAhpa6Y9wl0Q8h6tySWFj2/1fR/iCDVBSKB1KOCm94QuHuL8cW9briESA99dhwjMeNBbbEGJJh2H7H4X2k/Spq36KSpB9vq/F1DBCE9LyTM/UJK8Lrr5HhYbamdHtsUJTScdxdz50zhXmImThNJ/XoEaVywCYAnr5jY5hfORjCftRQad54CqAbgy+GWHIUXwYZwldJ74Vudh9Og4FFoAGwQkM8KhOysa0h/Sg4GHnyDs/0YRnnKpFwsTXklb2VmW8CgvU9oPCe5tpBLCSR9P4LXIRAXhQpszp+wCQxaL8uQjJw== 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=Wr1EWI58vgY6CWzXaBMfjrS71hlZHq0bO3sBMwFJADg=; b=fNIQ7WhZsxIE92E2e+pAOnEY1VB0V5c3Mvpa4bFLmma3cOrgAGMaMh7M3ZGD+dwzasdlEKDoudsB5ZZNBJ3jr6c5TqaVdZ3vANqaFBUYEhKJyD4TfzWYSyBhfXycZy2/+CIY4Jjesvz+XSDMOh5T/6CisxTULueeCuSTYQRy+pGm94pCa0J1XTZATJlQwmMtj30Gu+mEK5GIegeFGGV6gdXk6noowblAbQkBQsSWEPlp5b9cTEm7/d1D+m1nnO1ZZxGHfWSG/+0Rx8UNt6BmUpyNVzZo24kKyxkFx2exrWYTS4WVBdUbfHNo9Oy/rwCjhtlfM6aWS6GfPsbGBSCUwQ== 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=uWAviDDk+Ynb5wvd4phfem/HbYF193D++cXQy/UHgGxfwYW073tgE65OH8Eii6SJehBM0qRMJp5gIhBzS5bG0GAKZGnEYqVT/BHIaS2iDVxuMqQ8I9p4MM9PW+/jmUdTFFhWUTg8ingLtSUfVDVBHv8MVEVFD6XJaorRD3PLEH8urC7F0ouSm6p0EKr7q4hiSt/4bCoFu7P3M46LxZNaPVNiLxSQ+VSKehTbQ6TNY+sE2fsDdVQ3JQs+8N/i3KJGvyCgXSKMINqbKb0Hj3gTJUXY2jHSNMKMRwO8MZ9pu5XoeXjpJiOlDCNU1xdIw/SLtva/WofP9CSUYQhFv9aQOQ== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by SA1PR20MB4516.namprd20.prod.outlook.com (2603:10b6:806:23d::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.29; Mon, 29 Jul 2024 04:37:17 +0000 Received: from IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::ab0b:c0d3:1f91:d149]) by IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::ab0b:c0d3:1f91:d149%5]) with mapi id 15.20.7807.026; Mon, 29 Jul 2024 04:37:16 +0000 From: Inochi Amaoto To: Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen Wang , Inochi Amaoto , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Liu Gui , dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Krzysztof Kozlowski Subject: [PATCH v8 RESEND 1/3] dt-bindings: dmaengine: Add dma multiplexer for CV18XX/SG200X series SoC Date: Mon, 29 Jul 2024 12:36:51 +0800 Message-ID: X-Mailer: git-send-email 2.45.2 In-Reply-To: References: X-TMN: [OxSrfHYK5Hgq2n3dm+S83MyCfc7Okiuz84L41aUuVCM=] X-ClientProxiedBy: TYCP286CA0361.JPNP286.PROD.OUTLOOK.COM (2603:1096:405:79::17) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20240729043653.899480-1-inochiama@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|SA1PR20MB4516:EE_ X-MS-Office365-Filtering-Correlation-Id: d7d7d55c-7d28-4177-84aa-08dcaf881fcf X-Microsoft-Antispam: BCL:0;ARA:14566002|8060799006|5072599006|19110799003|461199028|1602099012|440099028|3412199025|4302099013|1710799026; X-Microsoft-Antispam-Message-Info: vF3pM2UZ5y6BlHZFwT45bfsSI3ljTUB3ae9r8xHRpmza4irNB5wyDKxBASDOPas3S2PWgdLbzhOqM24SVY9KWXw9if6w3qkPr225dvdzfG475fZdOW1LCNjz+pjb3fm5Id2OnsFDhejkF6kodxBUC3JpvSTiy16RwfB0cyQ7sCvrkHfCi/4Mmi+zjgepfAV9ekzqUuqHfHopXnZZMSVdWPjvBAmu1X770c7ZJEmz5LT0EKA1TjvEmVtZHrwx0DGIeS/yqlKh+bGXOpniF5Y8qYqcHs9/FdHNfaMnS0HAEeG36bZHVGdzH0cRnP0fhmYt3Dl2wYKEvivNmdCem/TJZPHObu9mNwRQGAAPPZjlzlAzE0mEVHXVh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C6o5ygcaQ6msuWzmnvSc2SSI7VofBeX0tdEXlTMH00UGRvAeD8jwvF04yIsSElGcMCWaLjvWgqhrYQzfOw88i5SqKv7120ClmeAJWLsgLOQuj2Bw2Mo+XNVzvLRW8CjnkmLH0xH+ietJcglZ/9El3Xpb9Qe15QXuuKFOvUl9bePlnXl9pcizziYNPYaxvC9ekHWBfCRUvusSjmne61PUnnT1969Yk9ctALeq9ioBeFKyPKbHSkHk16RGhVjPSfsZToNloIEmWdyvSU5V4ubz2/j9aPkf0ruLD9mu0xArTjt8jH+Lhm7yeL43MVSFMYfPinsvhmSEllBns3yGJtDVwlqKqH/V5Frh3bXyZdViIfEy7ESky9+q7oFM7acD3Vn6/ZRDYaMChCd3Nw0nYDhro5e1UubTylzbAi9PwyoUSqcpLP6t9n6c8ZB+ITCjSBiDKsVfSUQhznqNLNm/5MzWl90hg2jB0o2JZPJ4t/WAS3IzTWCUQ+uq1iYCii5nBpIIKqU8eggREGRZLRsudSadMGXFZLeixd0VigkTfwyxiMRbi3PjyEXs3/uVUxR0lS+Q3F3FJbuTDzg6N5BljTe21duGIV36wHjp9qNk72+G842NgswZlYsuMYF6x3wA5Vcby39DeznSrawHQMlwKBudq+Nz8u8QyeexUdmXS4RRUvmZodGdip7/aoxPHktwhV3iDBM+zBh1CGxysPYcGqD X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d7d7d55c-7d28-4177-84aa-08dcaf881fcf X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jul 2024 04:37:16.5257 (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: SA1PR20MB4516 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240728_213731_383864_42EFB687 X-CRM114-Status: GOOD ( 11.67 ) 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 Reviewed-by: Rob Herring (Arm) --- .../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>; + };