From patchwork Fri Mar 15 02:49:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 13593014 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 64064C54E5D for ; Fri, 15 Mar 2024 02:50:18 +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: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:In-Reply-To:References: List-Owner; bh=1gdNt+GyvHjZB0uqzy58UmviTN/xr7QpCjZSR4HSm50=; b=aySy6mOj2A/OMo wOdhvp/G4GzUUT79FTef7YhVm02EYtcLamW86XREjMEEPb+yb2ptMZkQQiLUI4/1T1HHneTh3nDbO 71A8kWE8O8lP8t3lSkDt17ZkHMv7ZlF9KkCY9+cimwMzHCb6+Q5Kkbyqmwz7JZJ3OlfSrd6eWGKJc a2s8PGYxP3wz3xJO8ka7berdTj2lkXUcETyG3OogyU9wnaRIsKM3AN8lf8f72fKOs2d3PEBrYTgKI uZ56eIb1rxbFVBt7jr84t12dkgXxol/8jheYhw+9XJrIBcNGPYeJyPQ5IOd4quOrZuQ+DAAk/5X81 Oh0gmuw9xYiJvSaW/a3g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rkxe4-0000000GScX-2LpN; Fri, 15 Mar 2024 02:50:08 +0000 Received: from mail-mw2nam12olkn20800.outbound.protection.outlook.com ([2a01:111:f403:2805::800] helo=NAM12-MW2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rkxe1-0000000GSae-14SN for linux-riscv@lists.infradead.org; Fri, 15 Mar 2024 02:50:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aRU+2tIuSaLzg0BTyYHIzDiTSELPBMsbS3uJQSGHl9ejlR6W5XDzPTNv3vY8vR6srX6covw+EpIQdUe+4ILt0cCQgh+Z5DAlZ8839E82FvERevlzw+zP1/teoUG7BTHv/2dPxAO0mPC1xuJDbuIScK2pPITGyPNklhwKNWDZcV3kOiR7s3qQBnBXUscblyIMoMpUqDH0dbiXRI125MYQKi3VFopFF7ctB5xenS1ng7ls1r4KgDFM6t44faOxIRwgpkNwn+HVq32HqTTtBKcxiKEBTFHIyjpJv4+WBlEGSW9QhrCdfOW/vloG9OlAfI0bZYjegQiKGGPkf8e52aXIZQ== 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=++HTRglb8IQZ4xqZes0LCL+1/McAGNYpNXaCnt7+Z1A=; b=ZU7El86EPAoB0Ntn+jzoUcxTQjJvi4HXsdkyx8ea1z/dFIwqsB1pBABM1mNovfuYdWRslVnZyBduV0KckWPtUlv42UMcRcCwb5/Sc9w23pueKz5WGqGhQPskHKEVA3CP7UF3PaXYYmOZZWGjiYRYw5Z2C17gm52xooM1fAsWUfUi8W0nj3BOYf11Vu/78f0EnX0WWXtTtS6OkLVlVid07MF7Z3+iMvyXhNnvAH5C7B8Cn1nETPKhuxw5wo8cqGpQjuiKpPmBzPIX9E/4N/3M79dXfZ67W1yKhsgyjqLV0UeWibFOqehgCY6Asdgi/gS4HeOAk9LdcxUC/rJTI9ceSA== 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=++HTRglb8IQZ4xqZes0LCL+1/McAGNYpNXaCnt7+Z1A=; b=RsOq1h3A7Aq4IvPi0Kh0Mtiw4U/v9leMcgRJcVa2gS7sboiwN976BvQzI3B69ni8NUE3gUEuxjnTZHrFj0XwnOH7h9ejo3KUXdiM0mq2KelGI2WxfKxKf9btU6sJXn3gl6R+tLxEH/8CuigC8LqYDG7i0ec3geBP2Rhq+hvmCJ3ENhuvMFpwfxX87uzZPsNLPRrjic4ETfPt1K+wLstoqsYv0ANdE+CRbTlkGnVtm4DQji8uzkwAfTqOr29IIMVbxS+o954sr0sq4CreFvb/fVgsR5N19yXHhCW02oEAAKVHW5ix6555a+xME64Pkf70YZNhZN2oJZ8PUPapp/+PYg== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by DS7PR20MB6264.namprd20.prod.outlook.com (2603:10b6:8:ee::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.20; Fri, 15 Mar 2024 02:49:52 +0000 Received: from IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::8615:efe2:7c8e:2041]) by IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::8615:efe2:7c8e:2041%3]) with mapi id 15.20.7386.021; Fri, 15 Mar 2024 02:49:52 +0000 From: Inochi Amaoto To: Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Inochi Amaoto Cc: Chen Wang , 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 v3 0/4] riscv: sophgo: add dmamux support for Sophgo CV1800/SG2000 SoCs Date: Fri, 15 Mar 2024 10:49:18 +0800 Message-ID: X-Mailer: git-send-email 2.44.0 X-TMN: [RMTaEUju1Hd/8fZly8umHH9+L0ArM0byaDcpbBNYi4c=] X-ClientProxiedBy: TYCP286CA0186.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:382::14) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20240315024919.515354-1-inochiama@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|DS7PR20MB6264:EE_ X-MS-Office365-Filtering-Correlation-Id: 6009b91b-2f06-4f6e-763a-08dc449a96b1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1p3BB7+yLoIzjclHsEdezOXCQAnm5EO+v8V4kWR7ojj5Op8bhxeV/kjbFrTJDsx7oBkYQtS1/7BdBlYq0F6dOQo0zvOu5ypBuSSOYjcY/PrFI0UCTcnIl7CO8pA4850q32rQzW6SxH7pQaKz/w9thzhSjm0R42N/lsrZE/GJnVrT4xjY2jSYGgCDhDk9lwKyhRrw680Yp5ontKP+i6xTPPcOVC9u/oIzxrbsWgdNfNLGRuYcpXoElF1etXc5AFCKgD30OS1tmGsE5utK9G9KK/6Jbn9cXEwz1W5zkeDzbbzmZJGS1gPnNaBtx6B5VB1TnhNe/aMts2ykXmszyLbyoJNaoU1/byQtcqnDq3oWVlQsZGWAw0QJ9sZXKccvYl3Gpy5jsq2RVVW11mlxHZDp25UMU3gLVN/hKoAgFXbRwQRLy0aTeEFrWAeF9rNRVHvwhQRz05ePPzFIlDNwDd4jdR1KJ1ZWTH2LYuLdYCOo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9VB6/y8y/ivna5OX6iHEa1aBq43jKVCLzm53DyNAYayPpIPZu04MfKMrQZIMXdxXvXJikZLaZFN0NMaRAcfTrzeU1eOZzlFVWQ+nHYoxA+HSdZsVQygoncJjqhHtKyS8J8X1LqE698L8L/boDt1KK1vtfp6qaAMXAzxYncKLcCFsMFPaNeDZMYiAHowRh19XqNPD1uHEbK815GqfpU7284D+y/Gw6ZXEyCiHMVcoDDUJuAWb58Sa0IBTEzHj4L70kLPDi4tbKXvE5QIbaSWx5c743ur4Bof8gNMwWYXJycMKOv9vHxMKwtS3gXLVuF1nxHCOIIQDQ87z05SWhtJKSa5GMKNNCZcwGrXFNRVuxcU+Ka6Si5id2BVXlSa5k/Z3pU5Rz6csi5ZvR9kwyU5y3x5+cYqm8zw7oESD4P8XMTaayy1Ry13lDY23LYdCH590wNVr+7ZtGdvFV+DLOYYC/V6P/lAVVEQ X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6009b91b-2f06-4f6e-763a-08dc449a96b1 X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Mar 2024 02:49:52.5657 (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: DS7PR20MB6264 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240314_195005_335483_B8255924 X-CRM114-Status: UNSURE ( 8.82 ) X-CRM114-Notice: Please train this message. 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 Add dma multiplexer support for the Sophgo CV1800/SG2000 SoCs. The patch include the following patch: http://lore.kernel.org/linux-riscv/PH7PR20MB4962F822A64CB127911978AABB4E2@PH7PR20MB4962.namprd20.prod.outlook.com/ Changed from v2: 1. add reg property of dmamux node in the binding of patch 2 Changed from v1: 1. fix wrong title of patch 2. Inochi Amaoto (4): dt-bindings: dmaengine: Add dmamux for CV18XX/SG200X series SoC dt-bindings: soc: sophgo: Add top misc controller of CV18XX/SG200X series SoC soc/sophgo: add top sysctrl layout file for CV18XX/SG200X dmaengine: add driver for Sophgo CV18XX/SG200X dmamux .../bindings/dma/sophgo,cv1800-dmamux.yaml | 44 ++++ .../soc/sophgo/sophgo,cv1800-top-syscon.yaml | 49 ++++ drivers/dma/Kconfig | 9 + drivers/dma/Makefile | 1 + drivers/dma/cv1800-dmamux.c | 232 ++++++++++++++++++ include/dt-bindings/dma/cv1800-dma.h | 55 +++++ include/soc/sophgo/cv1800-sysctl.h | 30 +++ 7 files changed, 420 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/sophgo,cv1800-dmamux.yaml create mode 100644 Documentation/devicetree/bindings/soc/sophgo/sophgo,cv1800-top-syscon.yaml create mode 100644 drivers/dma/cv1800-dmamux.c create mode 100644 include/dt-bindings/dma/cv1800-dma.h create mode 100644 include/soc/sophgo/cv1800-sysctl.h --- 2.44.0