From patchwork Sun Aug 11 05:16:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 13759689 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04olkn2075.outbound.protection.outlook.com [40.92.45.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 466821BC58; Sun, 11 Aug 2024 05:17:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.92.45.75 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723353457; cv=fail; b=QI5JWUbRvr1F3hA2tgSZG2kzzdaIHlWPfdMgCFeDcpkYHOwkfH9Z4vkfKHS539xSYtfAFxcoA4ILttXnf87zaJzsZQem6ZvgIQY6o98E49R5/H/C5XB+EriLGivicqq0jdgtgwkRrkYvVANVThHzHrB0uyV5MeGYoBwzdEkxdHY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723353457; c=relaxed/simple; bh=PZS5cigwSxB5fhIh52/T4cSyL5plU4LFypOxWBus7h0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=qtu1/blhGcG9scs/MDAOzW5XdIGhE7LFjLRaKluRVvM410NCD3kKapK2RdgLi23+bwER3h/AW8OdbWR9nHM/PI1Gtc4cy9VCMRIyGkAyG9tuXCG3p9oHHb7/2qCmNcvxsGwUUXg/5ixiIrM/U+XMI3jK90apy3H6c/zjgMFKHqY= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=outlook.com; spf=pass smtp.mailfrom=outlook.com; dkim=pass (2048-bit key) header.d=outlook.com header.i=@outlook.com header.b=rKvkhV0a; arc=fail smtp.client-ip=40.92.45.75 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=outlook.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=outlook.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=outlook.com header.i=@outlook.com header.b="rKvkhV0a" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ETySH65oQC1UbLxCeLg5r2aBVk4ZPfZH9Ctm5GKl1yDstmEbtHI82pF2nlarqGy9L34URtjF7OEZYquOIkXPktbnio3tQgP2LmWz5KZDyxc1sRhDLmn37rtbdEbxNIIx8//bMja9hXtx45hFwNdY1YVKEvKVDKtop8O/cMDCeTVZOxIwEl0uTVeFDvV4D2jgig44LF9ouSlbBJTkexceCDAmUrTkodfYtqmmprZKtZPb6703G7VbR7R+aZoIOlbjPKSAFoVh06NpIMz4wlILkPMAWGnqFlxY6kHR3BjVYDhqxL53d/MzMUZVlLG2prAIwjq3tTBdSb88eE+cX/RBdw== 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=q42R6Yie3E7BmyG8GpuZUguYVGxhKDqYpBQm9dw7i0W4VkSiD+OuNJRowiFWHANplBh7z8dPSDeG058GN+5JDmKaoCVMmkLBB075NdK6QRRb3uXuxHDUmld9Vs0aWt5SmOV9F8m4t39SasOs0jS1duEOFZKydvRdaeVDPjaatMMPWAd9c0sHTeUFC114Lse6d4+6QEQOWqwzdVreOEeZDnH5+W3sVucLL48O1X9ltahNtqWAFIZAy48Gnx7VqdT2/82JYQ26qkdG4HPVwfu4NrvHowBvllG/2auJ5WHI6qxQHBYSbjvUDuklXc+lF056EbhKA/6PKnwfARwtc3HxcA== 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=rKvkhV0aZ9IjFRXQF4GYfpE6Ode5bszGA7fNc1/Tc63gGWL0geuaiGBPpOTvaYWbhaERep5HRD1QdRaNHOxabdTOeYNbPE/vCOCR5VD5TNGceJ9Vy3Nmr6njV/p5pJS2Wlac9ucg7sLPWGrpqTSWQxDmd00onM/Y+OWPE2zHwjofTtba49C4LMUQzFS42lCurln22jlEjBddb7Pt9A+/smskgenY5ZVuDlrHY74O3Wi2jytcAWvY/zLSa8nLi7K/rfndzHHLUmjQw+3L2dkGv4ZpsfdY7vmzfFe7Wmjk+s2pKO/r9CBAQC7rx9KGiJceYsV9VcRTFLTOQKRA6V6eRA== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by SJ0PR20MB5255.namprd20.prod.outlook.com (2603:10b6:a03:47d::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7849.17; Sun, 11 Aug 2024 05:17:33 +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.018; Sun, 11 Aug 2024 05:17:33 +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 Subject: [PATCH v11 2/3] soc/sophgo: add top sysctrl layout file for CV18XX/SG200X Date: Sun, 11 Aug 2024 13:16:38 +0800 Message-ID: X-Mailer: git-send-email 2.46.0 In-Reply-To: References: X-TMN: [2uICKqQkWee1iWMaWIOa0v1yIiLV9F3yHRuQ9V+HEtY=] X-ClientProxiedBy: SI2PR02CA0039.apcprd02.prod.outlook.com (2603:1096:4:196::9) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20240811051644.990577-2-inochiama@outlook.com> Precedence: bulk X-Mailing-List: dmaengine@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|SJ0PR20MB5255:EE_ X-MS-Office365-Filtering-Correlation-Id: 3424c54c-c8a2-433d-2d7b-08dcb9c4e75f X-Microsoft-Antispam: BCL:0;ARA:14566002|461199028|5072599009|15080799003|8060799006|19110799003|3412199025|440099028|1710799026; X-Microsoft-Antispam-Message-Info: tj1tzBt0EBMXLkrQpTfDyiere5uVMN9P05QrcgOk/odhzG69foYTaqLXdEd/SY3SI5kl9rvIAEWPYw3MMuJOzs3t7rYkj6FwNJrqyo5GlvFjF3Tu8oXtAxPZlYslnPdIfi9gGIXM6REHlzmySLNXciZMVulbXI1eUQ5/K3g5ztyaqOKslj7ZVjyfZthc6ouiAdD4EVocD6uAYFoHFU72Frbf+GpfEVeaAthR0ipCKljOSgpDW0Fiz4F5us8zHdJIy+nRPCWXPhKyLQmdj4tp8RlxXwStFKunAQ79Ya755rRtZXZXcDMlG7piPu/cRsEPt4/CXi91o55++os9jk9dSLHoy7/QfQXfKzcbTCTgIcz4a/7ejVKdzsCPVSU6Hyg1mCAO3CTHF24T4w4A11VLepoXym6e0YrkYvUlPWH5kk/AG/qXhZt3dFH2c1fQ588uwNhKHx+dF8VUYSzz0MuKVay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3cUz90Arc+ZI+GnUrNHD8xDkWAr2chwByFpc56+IYnO74QE8esvWnBIH0eh6EWCzBFjYJ9louk6mEiTQ1dhKQwCmpr9fV5BJNS4nrfYkciuSIamnVlOjsHZ+BcEkbs4aAnET5uAyez1la0+gpT8maJcWM5r3VslXbNDEbCViJidcCzfJkt068t0JknE8Glc1/anmDePe/fYgsZcAdbPhx7ItjkFJzJuCvoGalyPrF0j7TaaLGB8eN2af86pH0yAlv8MSiVY+gY+lKwv1IRuXcuSxsnllaUXG3PmaY3+LKJ4b2UMKUqvyuYU/PW8O/5CLIBeGG8VMMaqF4CM1ANM8EIKieTUX3mxmms0kQ7Mb6gFfMlaM9LSeCk2T7N9e3YuBBPilC21Co3spIrMQXbVm1WBgpQWopb1VFic8Xzs7soj905qDwY9xwQQ+gO0KgsIbfvX4lSpSyvztaIARA5ZojglwTRVrKOCwzFp8UbhD57kIvh47uG0EJa/lV7ua+UwimhdVjIuctwH8DpzX1MK+iEMQ3+pktLuY6vn X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3424c54c-c8a2-433d-2d7b-08dcb9c4e75f X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Aug 2024 05:17:32.9922 (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: SJ0PR20MB5255 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