From patchwork Tue Aug 27 06:49:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 13778987 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 2A46CC52D6F for ; Tue, 27 Aug 2024 06:51:00 +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=Rcr+Tbm25meImJ XXFMmlgngHyYNtyZeB/7+ZB61qH5Joum+wJ/lioCA0X+pxvU5QAGOpLcZ1Jag34uXEFOlSF9SlRjS 35IkdUKrrL5LN3Dfurc1pFwr+kIwPd3VTgfaSFnJpTgxLJ9czJR9z+nlfB7vzxHy9EtxshdshWvwl IxP5RSfqv6n3/6sA2VSrOFPYFtAxs8QGYS3fwS1AV1996HbgkJyTnEogkBL5xRhQQUFXUReEBeKM6 Fop/xmgTKQL9OAWHsJr3lnNssPfBntYqIuRnSOi0INo4o2aQCeammWhSS3qTT7rTUZXbHjPiLD/Hq p1D2hFYE5Furw+QnL8cA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1siq2b-0000000A5rd-1srx; Tue, 27 Aug 2024 06:50:57 +0000 Received: from mail-dm6nam12olkn2081a.outbound.protection.outlook.com ([2a01:111:f403:2c17::81a] helo=NAM12-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1siq2X-0000000A5mx-0kJf for linux-riscv@lists.infradead.org; Tue, 27 Aug 2024 06:50:54 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=xNzpyHIboeTYkE1v3UfZWZhofGrmAdOwmBIKYuZ3/nfrOefvEnFu8EnK6qW2wtlLjnlOZ0lSIpFK3xl2eTQsQ03xQCKEhXr6CJglO3PddLwdY1zEwvWq8ipjrrti274pTzERnw2DChSNE9Ndn9JhGxNxLIhzAghtMZRlw47RdtjFhy8KzZ6e/zw+POq1ZNc5xIG7251v5JITuIp5Y6xiPBeM6atCECmzLv05bJKtOnnPoHTLRLh4p+sWulvTzIJPlKH5fqJSRP1EdBd66jGJvnGZwCyQA137aKP9BhnHJBp3f2kNRXnSyEwYmJ7jaSfIP6jMttjKGVN2z563CIBmSA== 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=eSyGw6TkiOoOadCkh3Z3yjzv+o/yXcadNtEQNYBcT2vkriuajqMeqjlE5IPunkW/hEjHakvBRWVMvB8dfC0959b9DiSw+eSrGmQ+kDQecHwoQDRgRvbbxX+LZLJeksGTwnZgN5rstxIm3WpPRfUa3YYBmzSD6/7gax8WT2RZyTvLmxa+dIPA0A6Sd659+aqBefrEutz/ysb2z6HKMZruQwXtYWNWhYgRB+QpAeAyrLkEp3PciuAG0YRjdMerDHdVIU+2qO3wiPb9EefqvrkPYFW6z0RUMuI3pR2ycID7rKj7urC5Dt2MM/U1E6Lk4r8OWb2+KaHO9M2CNM7nK11Pag== 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=m6IizeQiFg99WGGd1B+FZrAzwTn1KdjhuBlf960eQB3FyfcjLNd22ko5PlykntabaneuJ8j7iW4gED6oI7+fMHaUyf1iJ0JSzaWhf889P1ZRZj3+LRaBjcfeq6H86K12dPs/rXCXIVYaiaZIxapA1ybZDZcsfvw9H7+f1/W9AUQ64gewYRHzJvE/xzCjM4CpHv/kzyzdc6FJjJbT8VvwabZsjmcMAfbAiscA3bnwV3GTRN0/dknNUV0lePwNMfarXufj+ExUlpY2odlBTtehF/JySHGY9KO58hujxr5bYqfXiYR9yUe4PTowMxc/QeF+TM/oSnWVvG2/jBiRwtlk3g== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by DM3PR20MB6939.namprd20.prod.outlook.com (2603:10b6:0:42::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.25; Tue, 27 Aug 2024 06:50:51 +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.7897.021; Tue, 27 Aug 2024 06:50:49 +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 v12 2/3] soc/sophgo: add top sysctrl layout file for CV18XX/SG200X Date: Tue, 27 Aug 2024 14:49:42 +0800 Message-ID: X-Mailer: git-send-email 2.46.0 In-Reply-To: References: X-TMN: [wIfSYb+ThmSKJJNOoTEPRYYwzSxIihBFDd9afcB5b94=] X-ClientProxiedBy: TYCP301CA0076.JPNP301.PROD.OUTLOOK.COM (2603:1096:405:7b::10) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20240827064944.740024-2-inochiama@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|DM3PR20MB6939:EE_ X-MS-Office365-Filtering-Correlation-Id: 219deba5-6367-4799-d48f-08dcc6649602 X-Microsoft-Antispam: BCL:0;ARA:14566002|15080799006|5072599009|19110799003|8060799006|461199028|3412199025|440099028|1710799026; X-Microsoft-Antispam-Message-Info: KRYKtmo8UWbmf/McumOA4ptllQsipcITj6ZjcBSeofCAFGyjFBs28aIg1GA/JA3kJRmkbNwHL9WSdxCTCDhf/9tW5b6DSzLp7MRwM3fSeL6Y+Jfn1qnr/Vr/1iImrCUCD/iQ67oV2W5Moyf0FmkG3EAz1IPvvHTFxD8/VAA93QiquMLPMLeAXkRg1C1aZfAwqisEdm6UKIc1R2db5tctvScHniQGQCDH7nnPq/LHv/nmaGdeRPh+jp160Hmv9kzhZC5aFznnsz1PNz+ZskOQ87fYShWyV/pgFVaNg34zWiTLogmaWQXG8S/bvrfcGBNCJmu8xRJmuZ44i2gROwnogn116vSUB7PsZNXGcm1XEaq//hTulaqpPxIlQBjbzFtPXzLe0g5o0jspQq59uCFvbbPU21omp7WyXcgPnqqHk+I0WfappFC8odBbXozVdP0vjhIIWoeb3Of7/eK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Li9DhlELNon71VYWTW5BJO3+yyw28yCLxxwKlKHHxbX5g0ISU8AV1DafWyTW0MafcKmTkHH0B8LSDhe8BH7mbe4HMlRdT7G/8vaf4lCe0KWlLsCVg3fUBjC8Jhq7Ik9Pbj1BrqyTJeEcVwY9+H9bLHwG6A12iZrN7vLe10JGl3YVduvtb0cL+bKP7cQFAPfsw27WIu6lMkyPRxf3G5N14+rwlHEPf47l1iS7LlVRpyXAQWmxswB67jlBZ7uCBBzMOFjSGoNYI4Kg8pVgp5DRpcege6QNKn4he9T9+4kHn3FXemJwuuJjh0tJrDPDxky9w13Ol0wpPC8Z2x3D7DgFctJygh0xjzIJ7fs14H44nTH5pWj67bQOOX+LbiH1I/7fcatdBv7lb6Tl7sczFeO5RDyDWn1xBy4mRQq6qXXKKszOl66RFJiMaabpaaCaajP3qRhyf5M/N5CgiQKUk/ZwoHAz+g1+vHCyycQwXEslwZ5gp48HV6gWR4lgjBJrUHkFSmYJC63ZMxwXWkU92oUHIMREzI8V0A1DXm X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 219deba5-6367-4799-d48f-08dcc6649602 X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2024 06:50:49.7328 (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: DM3PR20MB6939 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240826_235053_241876_C874AB4D X-CRM114-Status: UNSURE ( 9.24 ) 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