From patchwork Fri Mar 15 02:50:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 13593017 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 5C848C54E60 for ; Fri, 15 Mar 2024 02:51:14 +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=hrlfC9uFm11nz+V9fw983aHVE3FKpwFpfCglJUMO/rY=; b=Qri65CsZ0Dmf/B gSk9mJsXSUzUo79VtfXPwb2iUxRKbTnBk9YdmFj3UWaePUoEmxl8zvuhI6kKwWDsiKYuOxfm2YFGu UPfk4rw2i4Y3Eu5MYOUUF3nnOIU6rb54ID6O/h82KEO3Q+XZEMTqLjaOFUmNGveR9oe/sKBY+RQE0 XJH7iqBB7fEjjegYBUY5M1QMJWscJdmMsIlB+FvmHi522pUXxkS05770YverbBrXcK67tTQFP4F8S L09vA72WtpD0TULUJc9/PpSYOtsID20vEC+17kd25GbA6vv7zUQNbSyUY9ZQSkVncVtD+EntZ1JJX cTZNmXJsE88thf8QTErw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rkxf4-0000000GSom-14F1; Fri, 15 Mar 2024 02:51:10 +0000 Received: from mail-mw2nam12olkn20801.outbound.protection.outlook.com ([2a01:111:f403:2805::801] helo=NAM12-MW2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rkxf0-0000000GSly-45A2 for linux-riscv@lists.infradead.org; Fri, 15 Mar 2024 02:51:08 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f1klhx/SSOz2MuY80l3I4YvSyCItrOLMD/X8bnEe1S1SlhosPkZ/Bts7kWdBYa5iKeP2yMTUyU4f4td0n5Y3ckMIsFCWBL1T3mOri3wD48U/aCseIv0Vpj+hEfNkiw96ei+9UJxrIoT0Y1zmpAvuBb2QqoCFdQeaN6o5KbOiss39jLnDuxfkf9BqwgO/wQdDUE0YHOCBHtsrkT+Z0HWU/FiVZ8x12+YKdPacGdTFmJrwCFK8fa1W2c2mj8lhafBO3Gvv3qaMSO5C5qF0Ug0CfwMUHFCpdskWOVLf2WOS1QqEa9jy2LPfTeNAtsFwM2z0o2m0osVE+EJP5jFmWey0Kw== 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=kS0KlR6sMzZ54c2Mbq9eCPI0GiPAwbDVfnXhdu/XLI8=; b=N7ADzfejAjhxuQ+BPbG85DwtdZovxVwaXMAzF3pdy4ikyngIuzUHZsa8aMVUX2boAFOzlWd9Vik6K95J7nkwVqkn/XuP9Nb/FnzWkHirgEp5StbM+rNxyFN40ng7PRJE1G2rDadx3C4ShyEYGf+qCPyuGZGiOYUwNMXEiqC+r68UoVOXPRS0xz0pbk5k4iKbuGUUINW6k5xT+BhxOH6jxOA9J5NdT29Rp9E8ZgLNheWowHb+RPFSKjUINEh3+Y13BV6bOlYP2Rk3/66xxDPEfyIUgItPzjF08Qo9Zk7hUiQG7HSGzmnuAuEZbj5yXxPsNy1FMbDffKOGrYWlUsdRSw== 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=NzSto0ERLwJQdWFeFgFrg+QHPCmAsuCk+ktqPTaHyndD+4V+JHYBzi73Mnxl8BOk5KKi7bqUYIinf6RfzVKGLuuggjsAJDjhmsJiCEpPDrEUngx9Ogo48MOD5HbbL12UFcStDU7Uzbt2BgodN0+BypOlYBk7PuzzaBoUegenfH15Y5J+89uVDQTBQC6CLP/DMw2GLMflQeQRtPkxhXaSULur8FaIIdH4ZYcTYOitBuR89ZJIg4e+Byy7pYjzZO0DbDw1mtBi/Xh8fmWrRdbAnXgY6XwSNh6xVvea42tMGKHn+4zb4Y1y/Dh+RwFEbGdXB3wAf/Me5bYX+VEpXEnzSw== 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:51:03 +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:51:03 +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 3/4] soc/sophgo: add top sysctrl layout file for CV18XX/SG200X Date: Fri, 15 Mar 2024 10:50:34 +0800 Message-ID: X-Mailer: git-send-email 2.44.0 In-Reply-To: References: X-TMN: [tZRzF+14o1BP4nOiHH1IWg2XL7ZldA7VnTkbvSdDJnY=] X-ClientProxiedBy: TYCPR01CA0022.jpnprd01.prod.outlook.com (2603:1096:405::34) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20240315025036.554158-3-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: 9332383c-7bfe-47e1-e999-08dc449ac0f8 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eo5BMaIAwcj30EikZ7mfFvWkzikQaKQa/9yLe4GRvvyFkvd0tpCJAXA3RvZYKBLOEw8x+1jW/6ZGpx24UR92oRd0Lx+aZHTCTIPsMwOkbICf56tNwU+EgrsOzCn9h8IHZF8Y5BFPaRqG8rVsp50i/u522A/Fog6RG6+sdcNHC50xnzN9CaNz2plL484/tVpFjU5KcJtZWRqClSCT2S4g3JC3/m97CgGV7eM0KFHYlhFT7DotIBJg387A+6Jbvv9RaUrXaph7BndkNzFElmvMTUeDx5qW5feJHx7Rq2+zRRVLjYvOZyWs6irCQhiT66QgslkP/v/0QDSCAcO2OAPspTUJxlIPKkqcJVl0n4mrc+SXecSAGFDIS6r5SH9yCyT7eAslPx4fO3p1xHA41xbNxmlgdKVnNVHpRrCY5UFhAgytDBjWO60uZyFJkNMc//cDyc9gEEwaYw/I3WLhvRI2X+cuFvVb5ygt36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00pL2uBRjvuhR6ffZ9GJw7/9+rUCIFgMxqIkfkB1xrlnJlyWjYee4Yur4oCs4geG6LNixTB+uurBP78cpiP9hwY/hUyKET+qurOCez5ejAcuTKIqNCEKWgo7Tb9MKcMGZbiqRWteb6ZDKwW0eAA+4gINqft7OIpiHKcLzaiP0ZvNJ8fGjY+dRbsoibJiM/0s8Iv93tUbMeousLo9dlBEVlq+3aO59/2lzKC1wcXz2aV7nkfutKcYxvFRQoEjtN2JGFoC7fxKtVu8upcTTehnZi9hbKn4edOHkluq6dkedQs3vJAEfI+6CPCxkjG5F508ahThSUDAV1b1q9RVfzBLygLgpnrx20MHG95eKn/7OtvjYmlbye57nDLDOCPClgQ+XQcLNImEpyavOhrejUOk7Sw2SuOp9 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9332383c-7bfe-47e1-e999-08dc449ac0f8 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:51:03.4352 (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_195107_193361_BBAAFCD7 X-CRM114-Status: UNSURE ( 8.92 ) 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 -- 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