From patchwork Fri Mar 29 02:04: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: 13609965 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 C3D33CD128A for ; Fri, 29 Mar 2024 02:04:51 +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=A4QzuGdE5JVtu+ 5VsqHzns31dVydRiWGBimIis5AyKNbSRhMKkvX/tIAJugbvVTjRn/8/oax9gHNbg7a8GgouACWN/a xlmogGwSuYsHGf78bNqmrJa2qlIGzYNn3PywYpb6jBymHIXzWg5Vr94/WS2AwT8Wjri9nub8ndIwv AMV5btmXCpN91k5HCSQ22YjkgmIkz7Os/zT0EbeVgXlNthF7fG6V/ib/iXdDShX8Shd/dvYHnKT6N Z7FpRgCEltWXL76w2o/243mbTq7D8WrPAf0LpsCXNjJjuCN5Zjjhgphtl4wEBOcWC/MdxgSTo7GqB R7hBuV6tl7Ka1ngExokw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rq1bs-0000000GTvI-3Z6k; Fri, 29 Mar 2024 02:04:48 +0000 Received: from mail-dm6nam10olkn20822.outbound.protection.outlook.com ([2a01:111:f400:7e88::822] helo=NAM10-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rq1bo-0000000GTrZ-3L7Q for linux-riscv@lists.infradead.org; Fri, 29 Mar 2024 02:04:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YfV0l6rSXLlkEXpNb8Kw5D0FRziqfi5NtY8pe1Gs3HxSxJgvuwc1D4Q+DzUkSIs3pesBAN3daD+hnZjRqJJuOICu7b+l1nMstCGSKa/0WiQ/zVjMQC/APikVd+OAfhXrLgxlPb6ZA2QE+l7Oci6Nexizm4+lh7iPwVUOCB/Iuq5bWLOSR/LLNglnJZYVBCETpmuPZymVvA3Xkkw7cGbTOpQgOzXrpJ77lwj1X3lKXh9yJk057Cjip4rqKrFc4QwNCuUygCPXrkBFoz4/Tg9Bgm62TjzUQyyVV9V4Ps9Bt4wVC9ikL98fY2ZGLo5w6uLjUzPA/5lkrBrt6nSczh6wyQ== 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=KQBuxl8jlDNWc5yVL17mHCpg4xaGp3sjiVtHqkDx+T3mbiGs1x256EkPIcXgjrcygJvnieeCwn4heZNI8UOwFe/gm4pOx1IndeBrDm6v7KUuTxOM/FaXL5ORBz5/PiFmgFmEPDJgr9KbwKzr8wyDVl+8KADGeoJg0fi6qoSVi/AD84YF2BLNWltJMb+2Q+dXk/wUH0Z1RdwpbtOXzWG4fCz0wmDiMDO6NX3CUZCk7dzKFXJVkWggKr1Sc3UMVi2+0ikkep/DmQzjwcCOBntJdJ+2yk4OqJVSEmLHyx+w+uMJemCfyiGM2G9LkPe9kpOPrJPmlxZ6oD7IcZ3fGE1Iog== 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=YfhRXhGjKlJz5hbC+upkEYfp8BhKEydeJCA0TSI02Gc/CvZ/oBA6xmTE9+QZfAZK01JjkCJ0oZcsnPEddsAohf9wcKZBB1y7qhKqpjEtzSIbSVuP9qi2gkqGTcqgVr29UL1d5lOtNEuPhfrj8+wIpwlz1/j81Wnd2kSeYPuJ5exs6pByloIHhnEs8SOPY2hXKeQcdT5KY7zQjoOltegT9kA371vkT+hLujOkABxxE1Skkc9Bdv3ftXPRxnAHwBKdGO+4/x/z+C2YDe5U7QdZR5AvAtKhCjqwd9O9BQEOvwAgqsEuicpfVY/he9nTDFpP80OxrqpjstEifhrX1ohBBg== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by SA1PR20MB5151.namprd20.prod.outlook.com (2603:10b6:806:256::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.39; Fri, 29 Mar 2024 02:04:39 +0000 Received: from IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::182f:841b:6e76:b819]) by IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::182f:841b:6e76:b819%2]) with mapi id 15.20.7409.039; Fri, 29 Mar 2024 02:04:39 +0000 From: Inochi Amaoto To: Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen Wang , Inochi Amaoto , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: 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 v6 2/3] soc/sophgo: add top sysctrl layout file for CV18XX/SG200X Date: Fri, 29 Mar 2024 10:04:38 +0800 Message-ID: X-Mailer: git-send-email 2.44.0 In-Reply-To: References: X-TMN: [HAFTpqMxC6TWYTLTdMcj2imac7st8l6uSaeb7RhGIXY=] X-ClientProxiedBy: SGXP274CA0013.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::25) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20240329020442.373744-2-inochiama@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|SA1PR20MB5151:EE_ X-MS-Office365-Filtering-Correlation-Id: ac6c8368-a0bd-4231-c874-08dc4f949761 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: B6TZEXAupqvEPYciboh1sR+uib5K6idJxIZMNq0n0q0c99hJ1XiKkiVuNSZHyDdKivVp/CybmEfpzMkhE5/S4PfVXUBV+XFxg7lWLjNtbAIL5k74NQbe0l9zc1HuWCjcjfPz3STaMiQF5HyafLMGQbJM5q3y4SHCJN5UnqNHJ2BITOysjI5HNx8WtL5pQ7MF2cnuGdI++QG4HTkDEGrbA63Rc7+lPnRMPt1jDleOiEngEl/3byp/pd/2xdxd2xFk624CcMN1T4btd1mLLgf1Mm4ZYf77xag+HAM/MyMEyZuqDZYUWHCxTwGyYqDkbq5AnQGVkYvbc4IjRwdioMNcld5p7SHpGf9OorL/4x7WneMfHrgxGIg4N3lKC763D2s3txpdDS+BXiChff9m9tZ16W9XacT9sldTy4i5xoh1PLPBvmLeRuS83aMH2BgC62oQ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HlcOjtdjtRO+XPOjzTFMwgtlP/qVWzgHBuzkS2MV8Hfhh60sbqbx41q6IMUtrRJu0Q0tkb5BzEbPfA54tuaQqvPWFFLQrn9g+WpcTHAil9albh+ofwDSv5zQCNvASOa75iOktsClb085Uqu42w1au5Fuk/8h771IOhG7et2UbxjXAK/hbigbxNbtr/SunK38RCmA4mrJz227W/jWirHW5uca4AfQpXT7sYwrLsGta9938Jx+kY2BxUsQSB0E7smb1hxixitU/s+h2hPyfMsKQFoPMv1FfaN6exhb5AYsI3uCV9qW4AYgzmPkPYAFAbHbZs3a9J/QxP+w/shgcXVGEhp6n1uT/w7e4QKFb1Xtxh/wuU+XD3sQ/VxdjQqp/x+p6Hk1qC438SFYZWToLoLjWOMwkW50YrDp6BW8T/7rb6nnnagd1cmykX27waBQ1HaIk+xhNd X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ac6c8368-a0bd-4231-c874-08dc4f949761 X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Mar 2024 02:04:39.7542 (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: SA1PR20MB5151 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240328_190444_910107_8DDF37B8 X-CRM114-Status: UNSURE ( 9.22 ) 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