From patchwork Mon Jul 29 04:36:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 13744343 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02olkn2044.outbound.protection.outlook.com [40.92.44.44]) (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 85F1682871; Mon, 29 Jul 2024 04:37:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.92.44.44 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722227845; cv=fail; b=q7hpYYdhkZk13oifTC9fefps3okRC0dFwFkVftXTKJCUQwgae18aD9BpchshtXuYy8lD3dnng4oHWIQ4XpOYYAudw4psfrhEZjCSMcDc8k4VoWOq9ii48fU3qS5lWd385UuMbTK6q9HKPxOYbdpbVGhAjBqOt3lpYe48l46P9Vc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722227845; c=relaxed/simple; bh=8JgoSjCMgT+4YWgPAd3BpnSD8PgiKGpOWzslfEu2zi4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=jhlrGCV4MuYAFmdrpvec6uV7CAJBlMLQA8r4uLp1E6jD4XtQuXprnghsa2eqVikIgXJrdVjO8OGuqs7l3M4dVpQKgJRTNT+jGbEuHDLUnF6DfyaOvxWJEALcbQFcckdPzyqgi0E5wVcq7q3SyHi1jBRGPzk+FXPeC3Ii13IdJ5M= 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=Cz6kOL1k; arc=fail smtp.client-ip=40.92.44.44 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="Cz6kOL1k" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ReFOjxyDCrZpjPFR0XXMg0E+GNeBO9QY8nSrgdYeroQOK7WsfReCdob8f3qNx4P3Afp1C2HVnfGdEfIhN2hr8oqhivhYkPNG+0Vu7qsnX7apiRtRz692hSISsnT1wviTUGNd5u6O3AEozxxQXHGm8kr8509YdXriEDkwtMDX/HYutaG0R8ZPDRC7/ZBjvghxUFDUoxp6B+ng5ngpWZNoVqmf3lRofG0WNIdMg5KYkm06CV2i07vZ3Ah65DvZYxyU7xiSLxoFisrWQ/uGztzhpBu0SyXgWCmQcHQj2mqkzII0VxKiFiNAe7zzaj4Vm1LwmtUgj8BU485MvwVKqRGZ7g== 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=kS0KlR6sMzZ54c2Mbq9eCPI0GiPAwbDVfnXhdu/XLI8=; b=A5Lqqz1vfUaniiiHFBApbClhntoErSXR1xi6ZmA5Or3IYxYrJNY/dpREVQFNgAYQbigTxBzp+hPJy/jswHoBoCBz+OUdLkXbkFOHtUOAjUt2n9kPzmB8khUy10BkY9d0hk0VAArX/Dl6+iaf/KBOmdgi3TxFNgirY6w+5B9BtEhwUjyN1FvpFNew9HvUHEGud1/4FVYk7DxRENmqCaFtd/feX0kitJD6aFAwi4Y5tNt5HMZlsUMnZ/Geq8qoriYwOzffU6WIS/qlan7dv6vI24MO0ixDECyYhB3N4uaMv5tCrZd3FEWA9LsIivFjqL1u8xCGk2vtGSIm/CSP77e1jg== 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=kS0KlR6sMzZ54c2Mbq9eCPI0GiPAwbDVfnXhdu/XLI8=; b=Cz6kOL1k/1XDH2PpIq7XZzIGXDKqZ3H5j0/7ofYzKXY7tOh2dchUDtmxcwF782FoCZ85Vb6R5IftgYu7U6InuMyvBgO20swqkPW/mF99khzKcO6Dp5r3FpYuu2QcC7G1vahA+YaTNoVcCfFNUMZZmC8Cv0i17knOZZh+EFjiSz9KjC+JbRQKOeuyR+tXTlpb2j4J9qZAqSf4t/eBBhdoSu3G3Poy8K3F1OnUrONcAH6cdAd0eDGrAD+TJ7+WdzyxLvmZQWeKPF2XbcrBO9/o4iHECjSAqtuV1bUIqc51qtp3RGR/fFTvdWKXYsHFjg9koiNeelJ7gAOIHsXWNHSi8Q== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by SA1PR20MB4516.namprd20.prod.outlook.com (2603:10b6:806:23d::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.29; Mon, 29 Jul 2024 04:37:21 +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.7807.026; Mon, 29 Jul 2024 04:37:21 +0000 From: Inochi Amaoto To: Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen Wang , Inochi Amaoto , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Liu Gui , dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH v8 RESEND 2/3] soc/sophgo: add top sysctrl layout file for CV18XX/SG200X Date: Mon, 29 Jul 2024 12:36:52 +0800 Message-ID: X-Mailer: git-send-email 2.45.2 In-Reply-To: References: X-TMN: [SCg594rCqFiUdthjqEsQzSxrPO0NXXC2O9iOrWRJ4DI=] X-ClientProxiedBy: TYCP286CA0369.JPNP286.PROD.OUTLOOK.COM (2603:1096:405:79::13) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20240729043653.899480-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_|SA1PR20MB4516:EE_ X-MS-Office365-Filtering-Correlation-Id: 392636cf-7f55-4af9-099b-08dcaf88228a X-Microsoft-Antispam: BCL:0;ARA:14566002|8060799006|5072599006|19110799003|461199028|440099028|3412199025|1710799026; X-Microsoft-Antispam-Message-Info: ijHi0uciQpYg1OrTTTc1BKaW5U6gO9gkWzoAi1XZOcn7ku2KhSxMSQRZDAUfg9ycoMf2JXWBnE6GjQeu5Px1pBX3OO36x2BhpLH5BJCPiS7IFh53BOJ/3B++DJGT4BVeABYx0tM76kUlo2iwYUGKbLo/6dqik1EuOzb5202pz7Us1AOU/e5mYOJjd0nwzXVK9TOzfgiEPZIZxDRCTCfIrrTT9sA4sR/3nU0nIQWqkdyDr+0pSLyeIVnvbngeJWxNRGRvxeBnIlJtaYa7xcGPVqIz+EnDsuCFf77yGq2u2vY0qYLg0VAHJEEAFAvBjVaq+RRZj5DOfARJLKeoo8aTqyEM0E3OgieJrAflaDDQKT0wsilNeZgG3XAKahHhJE0dmfZkvXq0/AWJpf4uObKo4OWm3BYzxrT+A+BO5vQduWV83q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S5ji13KG+2zvNbj05cJMEAkBk1wZJb0pGSzOZmSP3I2weKOj/2JHSzjsdVgKiBtrSOGoiQGPPDcxmKJFLA/Zx1hwt63tP6xAZrLvnc16ohR1uM8FVkdcFuxHAcyTpvPCdss5hf8CJurrA7ujKdeYF6Us/gpUES5tMbQ+bPHYtqQVRVliPjqsKtvyFvkFBZze/vpmRxuvDpZg6uR8Cl1FmlNm+Ihca+rR+mUcOEC3O/0rSDQgGUCfZSWaCF6nlD9t6cZsGr7jvO70H52rVsm5IH34scRIgzPYD+zJ8HL0HbtMmm8FrwTWxJAhYxJkLBWuqG2GjJCBwGaA7PguMQgjOcXXkhlORiShMKMWbtJnhRzjZGR02w9MuHUhkVE+lCGuICwgoYl+4kvdQKose1qssOQzACl3gOOv6e+0TWVTUqV8CGIirTB83XmeLsqB2DIGpKFchvQqYsxcU8zCXM+DwIxzaD3n+GBKODJRBMB2SRM1z8i6n+IQCK9f0LLelplcu3KFRxw2ziXQrnpMDoKuQpKrdQ1c+QdDQq+nrSwz X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 392636cf-7f55-4af9-099b-08dcaf88228a X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jul 2024 04:37:21.0870 (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: SA1PR20MB4516 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 -- 2.44.0 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