From patchwork Fri Apr 12 07:07:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 13627017 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 889E2C4345F for ; Fri, 12 Apr 2024 07:07:33 +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=rmOefK5ERXYvgG +f9Ac4Xjazv0/ud8xJPKUCKRaPgmDPp/sAqs6a/lkuK2kTKIGThlYWEL6yhgUvhnKcYfP9Se/2/D4 lAatgGTCcruhDt8EW+bSRrkJDmWeBWA51q1oj9FGWOzkwwiRlZY6LDbg7nl6j86MhBYQLQo4XZQ7c YC4ZnQ4XTaAkQgXqPr0AyRETKIgMcLZ2SZzYeG9N3Jjbr6mXErws98pOffX+B9TWHiEmc7XxMNQe8 UgbsocLmEXAuxaUbDcQtatErJsoPB2IpJKBsxXVLWQhT4MwXn9lfS67TrJiHYEiBMwYFA5EnXdWGS PTekyMF/Vn7R+riDbMvA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvB0U-0000000Fl3h-1oHN; Fri, 12 Apr 2024 07:07:30 +0000 Received: from mail-dm6nam11olkn20801.outbound.protection.outlook.com ([2a01:111:f403:2c15::801] helo=NAM11-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvB0Q-0000000Fkzf-0LSZ for linux-riscv@lists.infradead.org; Fri, 12 Apr 2024 07:07:27 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Iv3I87dgPNyNnT7kNaMYJwKFhiUgSFD6FpP2X6wx9WNl2pbfFhxyqFH+iRoGVC/ar+9E1wfZwX9kw5AIGuQhE1hI+HEtaZ0raiInwcWZ2f0Krzamtj4pv88NlnvA+k2KhppK+KwEJgTEZLTTcveKxz4kHeofpEQtCGtv4UAbz6HzAPc3eYQw5Je/bq+4TD00wojvAKZBsfiLk++haWHN7xebYrMui3F4R0L0bqSfv0kqCUTe5+xjOLzUFESE9+cklTu9vWkRC9qOZi24vXcVpn1+UjBPIPu1RvAgXMRBBqrKfXb00hyGJvkuM+Q30Qfp05w19sHUj56wxSiPuCTYMA== 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=dGiGSdeLiySUti1JmHLYyJ3cBfC6B5mHNWuryIx6cVUB8R4I7zaX5CKWqTz40d++IKNrBJvyxYLmJg2O15W2KgXtr4wG7lY6iwjMgA/NiVtj8KZb8yy+MhTFAChgxlZvlZa28sNydEiNqceXuEueWJulY8GfoLu/YFab/ZimZIHCayv79+TB1JG9xYVkJixKjr9/pSxZ/0QPVjd3yqKpGxlo1V5f7kvaiGxeZAXiuX/XfGD1+wXTqKVkfqvRIHUlCWRB4yk0cf89UJXu7UH0+CPa8kzA/63OCybhr3ecCx4O7/yb9Y0VkQfCCPj2+P0aPzG17lXzKm/xCm/doxfWjw== 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=Yo7DIa/A8CmGtP7Dcyh/JV9ku1nKZIB0v6RWo4jmbnFydUivskUuTWMntuYulFQJHb8GEXW5hf4RNG4oNeMDhX/0xB/+4sBN875JRGQvoJCNXKtC+GpsSqCWuZJSAcc4/y4J3Mio49yaTtIykvs/CxyR6Yz7x3TRh3k0oI4956S7vqgutqJuDPMubNzslMol9oJIxp/7AnWgnUhvElYWK/sobo8ZzLXLQzLArMCH22nrDrBNaLuMN/BknVRVv1iUdmdVT9VMWKmgm8CUTUQBD0BeknU4n4CYJ3G6pI5O3t1Ne8pAIIxeStzKzVgddHQ1VPH5+wgMi0U5yrM37IPxbg== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by SA1PR20MB7440.namprd20.prod.outlook.com (2603:10b6:806:3e1::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.56; Fri, 12 Apr 2024 07:07:23 +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.042; Fri, 12 Apr 2024 07:07:23 +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 v8 2/3] soc/sophgo: add top sysctrl layout file for CV18XX/SG200X Date: Fri, 12 Apr 2024 15:07:32 +0800 Message-ID: X-Mailer: git-send-email 2.44.0 In-Reply-To: References: X-TMN: [cEy7nyF9q4T5AI1+J2yR/KTY4rlD8pS7CsqHK/an6GU=] X-ClientProxiedBy: SG2P153CA0026.APCP153.PROD.OUTLOOK.COM (2603:1096:4:c7::13) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20240412070734.62133-2-inochiama@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|SA1PR20MB7440:EE_ X-MS-Office365-Filtering-Correlation-Id: cdcf65bf-e0e5-42a5-e4a1-08dc5abf3377 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zlUfvH2iISSGcrVdomd/BbgINQFZbbraRWDAOeRWZUeCvmg/o3+1DzUTXmzuiXzOi+MAELfNLr1M1Kvd0kNeUhqwWd8pO1OLZo4FXM1jXGPgXgkl58LnU/WfJheTl8JYFMg2hu+LF3TGgf9e1DvNJWO4ADfHrzhDYM3CD+GS3VxTT7eHlnn+6FxE9qDhxNPQIVRQfCppSwon7B9cGKbuRomXhbyHInsoVLu5HoIMcoVp2RBrnQw28BPRJnRnF+oBeJ3cZJOo9xLme65rO/pDwzuWFkbneREdtZjuiHloM5H+YBj3MI6vlwXS2kMySuX21W5sHcKqVToqSAxUGEzUhEnqSGJv2kFEcX5HRzoZ9rGeP57DJR+FDj+3M/NfuSjhvEK3EDO7zcQ13A+nNYQ2lZGV/0Pyp+E1ZrjHVwcOGL2M214/ACpcg4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/m34uteynI8O/f3DWOcasUb6V4RkGf0AGdzioT0Yx67RooTwzAMwSXqpT7ZxWB6XuDO32YFCEjbmGt1jDafslshR1oKlFDaKEswXwV5l97l8X8d+wVdxSgHBHskLaBAYecF+i8FKpsd07hlIt5S+aYSmYuENZJdj2Ha/L7msHNIevv5j4wQW1Fei/Zt6pzl2TYiG7H9uIHqMZMKmq9yjTeM933UWLYYdFS74yYWOD2kK/HbP1QhsGbdFN8IHitF3WWyisEY+F+DWSUppjvBa4fY7ojOEqxv0V1/6FKQXTPkHV8tLNAToBBE3N8Fy0BC7NJUeStS0iAb15yhoh2vk6jTCNj2dXBUDf4AsNdh4AM5eIJsKOdChKBAiX4cdw4tRNNwG3iQmRxrr/0FI/675DzCLVOBnfVVa1SkCFrc5QjKJkzlyDVbMrxhEiJdHjJCojr+OWPSosdgoXarMr9jeTWfPBF+AXJYX6hjRu X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: cdcf65bf-e0e5-42a5-e4a1-08dc5abf3377 X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Apr 2024 07:07:22.9961 (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: SA1PR20MB7440 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240412_000726_183853_35AEE572 X-CRM114-Status: UNSURE ( 8.84 ) 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