From patchwork Sat Aug 10 08:38: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: 13759459 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 D62F5C3DA4A for ; Sat, 10 Aug 2024 08:39:55 +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=nPJsdqN2rjPdnhep7a666R2OCsC/aJUOTunwXI3u1RQ=; b=x8VuHqVyyzDPsJ Jj/fMDDJS9pAFSqUWUniHO7XNKX8qiKq6M5W3/E6uJ2hlmIare2kdbA8EN9jC9SvjDputkK2yk+YE 7hczojhig1zmApc/fpRavEeV35Itk8Ab6NlzWCH8e42HnwgP2ToEVJpfki1oYyhT7Qx/cT8phiIgQ a9lxj3SbBtzCasiMwmaG1k0B4vVIApo/ITeNNdqHDu1uuXWkIR4iuTyoyQHiTAlCDnTM+iDa3gnmD jgBVIj6+KMVygNY6onMCERiruPn9o+e7lQF84fvD9yXn66jkbOGjfMm2wA/0drf6XeKU4x4uXNUWt pOcOfyW4IAQC9I4zCUeg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1schdg-0000000Ddzk-3quF; Sat, 10 Aug 2024 08:39:52 +0000 Received: from mail-dm6nam11olkn20800.outbound.protection.outlook.com ([2a01:111:f403:2c15::800] helo=NAM11-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1schdc-0000000Ddu4-3yam for linux-riscv@lists.infradead.org; Sat, 10 Aug 2024 08:39:51 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=tE54Ci8AwFz5Fl/ws6ijU0buoI9t8gGoNY7VYLZXmOV6fr1USzG/chFqIWc11Id+8I79aSguwjTWaX2F5lrX3/11o61L7YGp1sLxG2kRm9oQUfQ66vlNwEdpHL6CgX/IRYwId7JBX8fGzz3CO/pHcLxh4wN8BzVZs4ugKNB34R7ZIWHggSQZHOhsyCi3eK3jz7cB/QYDMZgdJHR3qxvNdHvUK4QvK9LAsISy8GEMn9OyZa8/x3/hWmMZXtrlk7rMByElxv/gx5kgzIJW8szqZbNOTnxNP50Kdcs9CfMInwmnN3dFrCzOUaj80wpC/N+7/ulk9zL24KSqQRXJ1hdnpg== 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=V8BiqYB/pmIIGwtoQCg80Q4LlvGH2VU5I5bg6jVgwmY=; b=tRsYlQ66qYZLnIDQMNHBIX3XSgMlo9tKmgHLKQz4wkl8zaakdcYohcZMHzIpgM6SpMlG36Qzs9DGbekndu1i0twI7ND/XsLfTRUMFaNSiC+JLqj3W4llt5ibSFkGs9zbq84lOE2iyS23pkPGhpmzfKqMkte4npbWRWDYEtpwmg+VtqgSL604tN1YU3HD1LfS7ORXnLZB7SqpRWsaXOd18IhX8af7uIM7A3WmZWfYQqeblUym67t6mES1ZNOPKKxRKHZjZodz73VuQ4P7NhDpsywyIxgqqxp2VkGPMz/1EvAgGemjy5lRa3fJWArZOi9yqU1oyR4M+4LKTeRDo6mnDA== 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=V8BiqYB/pmIIGwtoQCg80Q4LlvGH2VU5I5bg6jVgwmY=; b=lmkcFgg+abbs4ruRiEIcI3lta6NFS/bhPPJKvDV/LgPz35sgDAeYafDIAiby6R8GUmn93aTZ9+PHD1RHeo5MexIOBXAU6+VG2J5Yi72SSHbbOS19ivdOpbubF4VQ40l7juPCqmy6vO3gGG5jVuhLL0QMQIAAIBVAr9s7R+yP6kKKWFeMmM14V4zyHYPK3ngdBu+IsjL7PaIFLmvdoLEAQhKygGL9Zr6iUsgf2NZS+FuP0E1KJBHHpwpJeRbr2t+05ejAbwG5fBWJADzXavkKeghqM9O3A1fBU7d1NvzkCrS9ZoEg0psZQeT7sN6qw1bpem+Ez5CrOGITpWbd9WEDsA== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by PH7PR20MB6115.namprd20.prod.outlook.com (2603:10b6:510:2bb::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.23; Sat, 10 Aug 2024 08:39:46 +0000 Received: from IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::ab0b:c0d3:1f91:d149]) by IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::ab0b:c0d3:1f91:d149%4]) with mapi id 15.20.7849.015; Sat, 10 Aug 2024 08:39:46 +0000 From: Inochi Amaoto To: Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen Wang , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Inochi Amaoto , dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH v10 2/3] soc/sophgo: add top sysctrl layout file for CV18XX/SG200X Date: Sat, 10 Aug 2024 16:38:54 +0800 Message-ID: X-Mailer: git-send-email 2.46.0 In-Reply-To: References: X-TMN: [vTzII9Ryr2xku6pJZ3FW+BXnw8dEftRN6aTt7PB2u9g=] X-ClientProxiedBy: SG2PR06CA0250.apcprd06.prod.outlook.com (2603:1096:4:ac::34) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20240810083857.487764-2-inochiama@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|PH7PR20MB6115:EE_ X-MS-Office365-Filtering-Correlation-Id: 428e69d7-48de-45cb-4ca1-08dcb917fd0f X-Microsoft-Antispam: BCL:0;ARA:14566002|5072599009|461199028|19110799003|8060799006|15080799003|440099028|3412199025|1710799026; X-Microsoft-Antispam-Message-Info: LfMVBW9spFz83ei3/yGCd9AWswWHDbK1IfX/kAK7lltUtxaX66+pfIoaU81bfFdnWqnPyEpwySAxjhPROjVdUij+nRNgKCCBpZq6uHzZ9SEmlTzcl062s4Mteg8nk8f1TYNtL23P109DZ9HaYNwAIx+yDrkAZdoGVOrfQML48eGnMfrv/9Ip6nhZNd0mbzZsrqtPIW06sGqaOmtdZVUubgdz9facx+AJPaci3o38tUGh3MbSZY4U6vEXCLinhFtr0ywYHY2HmJbwz3WgNqDSInhbHKdqGMltaLtaaGQOeFeNGP9r2n8vb0PYWDy2ZknT0fy7oA1K0zwXfbrIciFgt5htitoQu0X2F5G2fyW8lsuu+/nor7AuBQE1deR2VOm5uASzv7nUxSNHbFd7rhoOZpdWT9t2stvTq1gSXtLPrjvuvSxURA8TpJenes6dqiR4gJXEREAsm82Y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esC+cY7zBhPT1sxbnqAKK+kxhPP/TUBK6344SZuKY03TlY52JVyBRA1zMy2LwLQb2BRTDxvYU62sps8sEded3PrMdVb7AI8LnWkZhHbyHzJkzIL3b2ylKmy5GAG0Ay/J4GBlRW89HzNG3E6Cl+vJbu1uAHkfpDqCIyEosv5hgnYzJMuwfA1TWmm872R0wCXIYxXBAjuGEdo0F8u5fHcC0bfpsQ0kdqGYYD6ZOXj0V+VlNOuIL/+2v7RlA654GwDGXzZLOoSBFryFQOZtc9Ozh0HpN5IjzSJTvyeYDMlimgAnEDJK8LElZXH8dkuvbUuL/FyCwCjLGAE3AwjUWW0KFEpJCXeJWTyTogmmoNzoxUP1Pas5eySgx8twXIxYrv06VYfQ0RetKZi6YDNDccB62uPCCPyk3LEd+8glh6dR4I/Qc3P76zA0I1mVf+Sh2pAFMPb+rATDuZYI/nviTyeD+QkMN1622XEOzi4CqTdkhPvj+j6+3Sx5vHXPVm+wTSeDww5YJnCmtf7FjZRkVF0tX X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 428e69d7-48de-45cb-4ca1-08dcb917fd0f X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Aug 2024 08:39:46.2019 (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: PH7PR20MB6115 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240810_013949_035908_7EAC05CC X-CRM114-Status: UNSURE ( 9.04 ) 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 The "top" system controller of CV18XX/SG200X exposes control register access for various devices. Add soc header file to describe it. Signed-off-by: Inochi Amaoto --- include/soc/sophgo/cv1800-sysctl.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 include/soc/sophgo/cv1800-sysctl.h diff --git a/include/soc/sophgo/cv1800-sysctl.h b/include/soc/sophgo/cv1800-sysctl.h new file mode 100644 index 000000000000..b9396d33e240 --- /dev/null +++ b/include/soc/sophgo/cv1800-sysctl.h @@ -0,0 +1,30 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright (C) 2023 Inochi Amaoto + */ + +#ifndef CV1800_SYSCTL_H +#define CV1800_SYSCTL_H + +/* + * SOPHGO CV1800/SG2000 SoC top system controller registers offsets. + */ + +#define CV1800_CONF_INFO 0x004 +#define CV1800_SYS_CTRL_REG 0x008 +#define CV1800_USB_PHY_CTRL_REG 0x048 +#define CV1800_SDMA_DMA_CHANNEL_REMAP0 0x154 +#define CV1800_SDMA_DMA_CHANNEL_REMAP1 0x158 +#define CV1800_TOP_TIMER_CLK_SEL 0x1a0 +#define CV1800_TOP_WDT_CTRL 0x1a8 +#define CV1800_DDR_AXI_URGENT_OW 0x1b8 +#define CV1800_DDR_AXI_URGENT 0x1bc +#define CV1800_DDR_AXI_QOS_0 0x1d8 +#define CV1800_DDR_AXI_QOS_1 0x1dc +#define CV1800_SD_PWRSW_CTRL 0x1f4 +#define CV1800_SD_PWRSW_TIME 0x1f8 +#define CV1800_DDR_AXI_QOS_OW 0x23c +#define CV1800_SD_CTRL_OPT 0x294 +#define CV1800_SDMA_DMA_INT_MUX 0x298 + +#endif // CV1800_SYSCTL_H