From patchwork Mon Sep 2 00:37:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 13786636 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 8A4D9CA101E for ; Mon, 2 Sep 2024 00:39:09 +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=i6Wn1HnqtnyrN4vHFF5mDB3gHz6LyT7HXJ6eMi/Vj04=; b=BBS7tQTfaj2H9k feIVztTXI23NfNd9cmK1ynWDmaA6etTnj1wRaX7GYMfgbGJIsqOKKVRSSQsDADjx1UOe3hW3OEuOf b9r3gUpz7kvlEXUxCcNVVkqrH97ZHHF0Jeg4nOiGGlc4ajaKPuzRj02SaYjn9CkuRcRaQhPdH5d3/ YPImZggSakqN0TclTwokHTj1GDlMWUzMMcP+yO0WaxdDvONizuyoaacj1IiBWYA9dK4Zw/j/UDzmW CXf+AvcvFGu2Z56nWVDAXLRDZYTf/hm902P+nTEPOGQfhxwWVSyfb+UoZiab3vSG1JPbXEiCuZs3I bfzXvA+TUGVn9Y66fKLg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1skv60-0000000CagO-43CV; Mon, 02 Sep 2024 00:39:04 +0000 Received: from mail-dm3nam02olkn20817.outbound.protection.outlook.com ([2a01:111:f403:2c05::817] helo=NAM02-DM3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1skv5y-0000000Cafl-22rX for linux-riscv@lists.infradead.org; Mon, 02 Sep 2024 00:39:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ErMd1/vSsG3mPnjN7CUZFxG/UZa4K0x20fZ6Fkzx4fmvBmJxUiXpLVPWCRLDb9OPAti9C9eDgPHjdGW7yVw+q3aweaNss3k9t99KJlIPktLfOfu9SvXUgEi8CV1U5a+ssT7JbU3psoQHdQlS5S4NkiE0ii7C4n7JpF1kf+AMSGwDzdiVQOxxSF6EwjbtkMTY8/MN7oR3DdfG0MPJeLDCP4LkEyiJKFTsWTcqosa4OUp9dtGVABg0GkC4r0vAGIpV243M0Zx0z3pdXxloTRekTto/O+A2sSPPpPid8KDdYFRUTd9qTDWr9eEJtO5ojjQnWkebMXKySWijnAGWMc65fg== 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=odGUw6TQxCZH1ppD8faEmD9SkHZWFu7bl0uSM+oAuE8=; b=E+MJE+Pn9RftspO/DggoHUiFt4+9+nBAxZkd1x67vzUY36Qp0WgniY0Dmj6cu+IUGcBgQfabdagKn7zmMLM0GboFfXVedJ9h7U2fHjEx4sfLGGp/nhZ8xzwBupNZypi1DMV3q3YQwwhRlxYbgDD6tEdBBDXkhIeqd+NnlIIK8p17pIY1ZYk0C0R/me+Uw5PtDR1BUpmW2OxGhOGbip8MeHSoK2ez0uC9CSTMavkMS+MRWmfSGUUc2WvWoqpDvBM/aYWof1uFOt3ffcoxZvbWv40ZXpnINNhKXmTHrPy1p0KayaNFWDr+k5iffsegU+aCUZtq16skrZaL70qdJmQ4vg== 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=odGUw6TQxCZH1ppD8faEmD9SkHZWFu7bl0uSM+oAuE8=; b=E8SEmroHbp1hb1Fy6zTJ1f6UdKQMmw3qarg45Qi/ltcC6RTGIyN2EkY6xuArcAD3/fDv5ePURAoegGS1YhG1OMcQlPHNYFRBf5Z7zJzG8ONWJmQ62Ge9R/XTAtVtHH87W/Cb5NFdfo6D4zrfizzHpAA7b0EBcStA552eyZfALfM8fC6Jdi9oyx4ju+IJcitX6hLHpoA2BDFDmA1IEDisAhTHEnax7LJIhsGmI1uw9MoF6cdl0JDcGWqstXVlATn4drn+RsCIc+4KvZXN4j3250N7QzmUGQdVWN/N7TJjtV7OOfa6ad0mnCx2RMn+FUp2r21aT9ISSzsR2lypwZu1Ew== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by DM4PR20MB6766.namprd20.prod.outlook.com (2603:10b6:8:be::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.23; Mon, 2 Sep 2024 00:38:59 +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.7918.020; Mon, 2 Sep 2024 00:38:59 +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, Conor Dooley Subject: [PATCH v13 1/2] dt-bindings: dmaengine: Add dma multiplexer for CV18XX/SG200X series SoC Date: Mon, 2 Sep 2024 08:37:54 +0800 Message-ID: X-Mailer: git-send-email 2.46.0 In-Reply-To: References: X-TMN: [tnQhI6DDVnCJlENtHPB0kulZ7xpxQIWJWp7q5hHUy9c=] X-ClientProxiedBy: TYCPR01CA0198.jpnprd01.prod.outlook.com (2603:1096:405:7a::19) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20240902003756.217629-1-inochiama@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|DM4PR20MB6766:EE_ X-MS-Office365-Filtering-Correlation-Id: 63546099-3aca-4ba6-fb42-08dccae7a275 X-Microsoft-Antispam: BCL:0;ARA:14566002|19110799003|5072599009|8060799006|15080799006|461199028|1602099012|3412199025|4302099013|440099028|1710799026; X-Microsoft-Antispam-Message-Info: ADtLaeyGaeT3h5Sie0bAqqW5xfCOpOZXB7iCEaKuHCE8sPhG31DYM3RdwamXC8BbTYxW9c56hCaQeLtzD+L2EnOqWhonNcIoWTTkLhnZ1DcFxhwef/NxLqpWfvaEcOYbhNGJ5RDhFM1lhUSCfECWjAB2BhRHRPkmIXld+KW4n80Qxd5H6TJw+ZJ0A6xlGWf8pyz/keeVLFEKVT6rFvAt8ZVaqGYEbq96mpXpUV4es/BjLuhFpMJGWTjtB1PoVN/ocAEe/fDgWEjHeNHMGykUyDQcR0lvoAXamsb7Q6HRXqJpcmohUQ7xUn9iOh3YVnD/aDiu4kNlbiPHpBl5FeuzaQa8bs0ig7SGVsJHKvxNL11pMOLWY6z8uQeFdS360Gd4kQ9Y43KHWRCIpQUVE7mw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8BTFCGPEWnM8MRTtK+KTRltSmIq0OLPlYJi1KcvI5ASNgBw1HDgbLVatoF3P0+VkNchfnxKVjyb5gdK3ZJW75vBRwV6NvPsaAe6NZZgLKZNlt2Amp9HZ46Jxv8/gu30PldZI9tj3gM4U0CkR7ngViwMzS/WWefnahePtMfgO121WxD9NKUk0jrwMsRjIWcZcFN2PYK28uqWgR+tJBWD39EpGpwqJU1syctYEVfNpB5OfvmnLJVFfHqV7+jPlqKgWtc08KYBGfDQkgZzNyE8G/xWL8T6UKOUrjQREbMNraRR0TbuTcXISprH9QfJhKbIcwcGPASjsmUdssnrTI4r3Lo5MX9Cq3YZr7jf06QjjZI9G7gR9PFLtOI93RXicPGuKj26/T0fIGbGZRubL3VlCKIjDXqEgo4LNS1jnPeG12UHwr5RGNN259yUQm9Fl6grj069vYaajbm5cUBx10V35Sw6JD43CmN2iv5XzPQRLjQslPYPn7la7dMa/Dx+MX4pCLktgX43+yzK/wFxtVEttFUoxNqMP+rPBxCtISuOO1rz8l783vQDD9nwe1NWz+NH13WNb1TZ8KnZG+nc1qkCnjj4AmM8U6LLesXhlepBaWndt1hqbLGPk79Q1bJ4x39Ux/E+8TasiEp/iqscKLPVQcd/IApI+NQMz7zkMsJROREaxoB6rPOCSdv+xfMTk/HHJV0GG3bM/hqPmV8jrvW8kmFSN8f X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 63546099-3aca-4ba6-fb42-08dccae7a275 X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Sep 2024 00:38:59.3130 (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: DM4PR20MB6766 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240901_173902_552560_896FAD39 X-CRM114-Status: GOOD ( 12.05 ) 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>; + };