From patchwork Fri Mar 29 02:04: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: 13609964 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 8D510CD1288 for ; Fri, 29 Mar 2024 02:04:49 +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=DmlPO3K90g5xQw2oyK9NZPk0B1HkI+YstBbEiRvAqnE=; b=AurLDB8924XM9P ZcG/w0hNr9ISb+qtXtH4xiZevyhOgzKUdTcBboDIR8KD7QUe78K/Lmo6DogTyGCPxZ5tEyWt3GgJp DnPxYrDvvGb+gAZAIMxtUhEi3GlDbKW1QBhuN57pMZ75kLDG/8dFon8w0LoCKHrx1Im/7v5t2Hq5/ HMxkiW/wGaKggE2Mywmqmav+Xm8nuUXk8f2tQ8y2rcFS1gJuyP64X+lAq5aUrcgT11R2zC1w6uCZK QIQzUKk2cC7CzmvY6/g82x8cJYu/5Iul+rlEz6dDtpOkAgzIChn5UT8PwmcEHcRRzopJHqsIA4jan 35ULWiHzzx4OVoqgZUpQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rq1bp-0000000GTtu-3lSy; Fri, 29 Mar 2024 02:04:45 +0000 Received: from mail-dm6nam10olkn20822.outbound.protection.outlook.com ([2a01:111:f400:7e88::822] helo=NAM10-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rq1bn-0000000GTrZ-0MaS for linux-riscv@lists.infradead.org; Fri, 29 Mar 2024 02:04:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SCF2usli8VzvT2yd0/PW4WC6PCWZEhewP1MgX5jdSV2KmzqKexLMsZOcQv9WrAPxtKAvr7So/mo/+/ZEY4rkpJwLRV0oQUDdpQgkL46LkptBoHC5bpZ0r4Bww2hO3asqSlUTgx/OWFDP/Vh1pUyHazlCn+a7XyCE6mKn18u/c7P/zx2q9hacPHTWT1zKduJLKRmtZybO/CkwRyXL6gYAfu0t9TvvJHKrT/MROVlyPVHhXcKlIO7e6dEYfWSOWIpXjf/Jg6BJ8v+0BjGErF9uQZGv/2K1sJMjDrclCIHzZ/3c0CUb5mM2Ll8jvNiwoak79tj3PSLEFZ/awl1Ta5P2Qw== 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=XbEJgQUkYMUt5cQ9Zrn6SRRLJDKEAVSER1S38u4iw0E=; b=cON0QC/qSnC7qiQzVyzD3AE+VIY3t3ydQouRlgvuBWqrTMwDmQ5AnNeuNdG6LZyBMEB5eySj5QHAA2C6pvWacMahR5heSj+ekIfanNgNUKaKQ67O8hXSJsBO4IDFORxLtIeThnvMSRA79KcFP9Hz07YDEhCgfcAbfyklmToWPFqkcX+hynHlweNp7LFT8Y6mzcrjydIgezTyFIMAXo8wRehrHG3Yr+vKIN0Zn6EIqjtkrF3A0H5S59vOX1BKX/KWLGf+QOJPAlUxyaV+0a7Jd4NyJ07SC2AJaZKouvuJpiwelSilYJrgv5882m+nBRHGi198LETNdICL9f7RDSM0Yw== 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=XbEJgQUkYMUt5cQ9Zrn6SRRLJDKEAVSER1S38u4iw0E=; b=Kbj2xD+YM3Uiu5DnBotY11afZSsIB8AIf8FnCzGTNbdrFaVOt5oHxugXTcwUa9Cb2+RLnrfSBs1XlI4pMDAnrCXvHcBfrySmX2x97Df2EzkovEwltD061Z75S0X8WWDYA8Kw27oZEscOJWZzUnFH+zpZIPdukZzdbledYHQg/jO4uu61ei0ZMw43/QcP/+0UiafBL8B4klWTvgCFN0Rsp0AQ7RMPrdDHJmxsTYeza/WJJ2tUa3buu2KN2woEIWORJpD9nl8V/6lkBaWUJtw2sXXAnpZGVL+uiGfEek0gVc0Fn3K70iu5pLATlFtA/t3qsgAGJtCUNGo1iLvR/raBng== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by SA1PR20MB5151.namprd20.prod.outlook.com (2603:10b6:806:256::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.39; Fri, 29 Mar 2024 02:04:34 +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.039; Fri, 29 Mar 2024 02:04:34 +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 Subject: [PATCH v6 1/3] dt-bindings: dmaengine: Add dma multiplexer for CV18XX/SG200X series SoC Date: Fri, 29 Mar 2024 10:04:37 +0800 Message-ID: X-Mailer: git-send-email 2.44.0 In-Reply-To: References: X-TMN: [ooin3k6VJ7coTSQbNqFJF/i9M6jHWYbaOztpjJjWsgo=] X-ClientProxiedBy: SI2PR02CA0012.apcprd02.prod.outlook.com (2603:1096:4:194::7) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20240329020442.373744-1-inochiama@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|SA1PR20MB5151:EE_ X-MS-Office365-Filtering-Correlation-Id: 997d6efb-69bd-428e-12bb-08dc4f949427 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: siY0LAwyBgQ3cxY9zKy8W9Xo1EJjXC1nL+G+xG2lgEzzKpwaNNZ6m18eZrlhcVmy3F+i0qaKQWGS1vFonVdA9gCRFsW/uyvCX03GuGDgsQ7h9E9riGQyiiBKT16sgpcdpmSLXmQMrNjszp8SG3ljITfrRUxi4x6Jenb9REtTw4y7V80/6oZYj9AF1t7K4/3yrqUdHm/dG/ep2xFF9HYW0OwdtczSBqtP6Ak5LrRISVY9g/oWxQkBh2V/4nfqWYp4HZlKCx4R4aQYD1xmJ2o3+wno02OuYyXbXcC+wV64iEvpOJC0otVQxaK1YrO5Z9GKCs60nW5+28r65whV2iMY6xg/86StQwxQ1TOSm5C8pufO27Suu4QPjsM0uPTeWNT/V7L6WTyRRoB4XO8FUXJ10yUMwE9OZ3YhQdosNsPG8Ta9x7Dg2K1QcfJD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WN+u7EJvQD0PSfunD+NfgCy6cBWHKir3aj4XUvT+sSFpPWRMHbjrl3BoHUx8oVuiMcbfqP1giAUYw7HcWt/JgrdH7kd86r2tOChpdsVoqkXSBHP7gGpLIxO2YJUZv17UxOU2WOj1Mgs19K87Gk3iNv6DZHlnpPdVbEzvPJOHWiY+oATHWv3Caa3GpiLJiIC3gJq8ICs0H/ozZqnHXStayWAJsBRZ7IXPOhLFXNsH/GtRfhQtBQMZWFs6j/LrKUGh5+IkrqNS7kWDz1Pn54TOAf/VKClyDjswVNisqrxZCGPazGm6N0C6zBSomkuTVkH+cwBkCKX/VsYrc8XpVdLU7la/CtKZBnw3OCqu/70/2UbvzRTlAYpvaex/rFdZpTPIiloXXvhASmpJGJuXzv+tqsz9D/6JilwMKlQZf3uzUn6XJDcBFx4zc3tobgo+gHAuslrQNmPL7a76TDXABQj/UrtDbqUsSyJHfYPDcdFU6ya0wv2Ba9bH8xA25RdoiSKSPZEUQObddxyTrzFZrh/OGmjzhNtPad1Wb7INck7EM9uDuZ X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 997d6efb-69bd-428e-12bb-08dc4f949427 X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Mar 2024 02:04:34.0594 (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: SA1PR20MB5151 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240328_190443_223990_4BDE414E X-CRM114-Status: GOOD ( 12.26 ) 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>; + };