From patchwork Wed Apr 10 01:21:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 13623449 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 49086C67861 for ; Wed, 10 Apr 2024 01:21:32 +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=bJb8uxymLq70bD 74pd8r7O90xEB+Ix5Dd4JzEpRZE3Qr28qCdbtv2kqQ0JP/Bya2fLyc4QUq8lvwTiiHIkj9cvCN9K5 R9e165lO/MWc9To+aT48IX04yzh1TQ+1YLZhZfRfoDnhbGnntWojI/VJ9wR74DAUmVSAzEcRB2RWz wZh6XNFUqASrPxekX79w0fysERj7mMjHIJ+tNy/wf6smFsI5s2e1sbx5eagBEDvIpYlvx1lWHcKrf Kiqq0JGIV0nikPzzbPm9G92nVt6Td+6z1LWUmsufbM6EI1QYJe95ue9Ei/LOzFRcMKobqEcbB4jKH KR+fADJXoYBlCMJ07fVA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ruMeU-00000004Zgx-2J96; Wed, 10 Apr 2024 01:21:26 +0000 Received: from mail-bn8nam12olkn20801.outbound.protection.outlook.com ([2a01:111:f403:2c18::801] helo=NAM12-BN8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1ruMeP-00000004Zbn-2nNj for linux-riscv@lists.infradead.org; Wed, 10 Apr 2024 01:21:23 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jdFpsjRfdX6X+kgIR9oS+9S2+aOlX0WVInPQ5jWy2ua3NAfkrtK105lTJtOJhiPlJ/4/fSSGOGOVozqrS12A/76xElHel8aY/yNigx9gLa1i+zziT6uey3I2OoISA+xSMqPPyaP+HCTQlO3u+a+aj0ym1HO+y1iScCMFgpnle3qqcjCGlIxKTpxZQP6Uq4U9IwhqFM+YoiLSRpNEPLdPFqAjtw9+4Mgk6OsTD/s8KwckHXDjbnz7sDLQPDP5ZKTE964yeb3f58Lyh+j/ttI8IwQZqdMxKv1lDN2puOIMgOwP57fNH8jxjnParBIlM5fWxCW7KdiG/uYnrHRSmb+ElQ== 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=OjMtsWazq/atJwbqlq9uo8Ij8dY9lPFHoXrbH3z+xGcLOqX1HSaJofPkTrac+afe+PxKfI9oK/fuRzO49FcaOO8+WEYP7EBCA8idqHJ03cuV4bAOjcrRfU40pVWxe8bEGooFhaEclewegxd03XqTJ0nTldCeonRJFL4S3G/WiqtoKexfgrnartKJbizt1Olbt8gCtStLiFTmWLvqUZgBpaajey0ma2Dpa9r8WS0zY8sh5/5yump5yQ+0BXZBUTtxHBaG/nPDJa6lHWK1G4XG9Bt5ZsSAtRhypcDWlswge1C+s7WrproPdhxMo5A4jDm+oeqibGy4I4WyLdfcWn+CaA== 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=pf0mxnSEw5L00M3Tg7KxaxMSpf09Da9RAqnH+mnU1Dw45C/qiHVCLvdBRQeJxVxNx5taq2FE3ZFTmimU4vIRPtvy3Wd9d4AbWBcwJcFHcyruSzPXMeaZVy5kpVmWaTzdqrBuoSu3AkWZqIAUu4HCwGlmRwYpNizauD+JCF3Ia1SfSHW62HJZyiMI8pEvKCy+4I5AGqF502nuglFwrEc/vV3KknBnnAFS9ROtpnc8PjalMOQNf0ky3uSRpo6yGRE/EdZQtxjyhQRjHPUUBLYijT5enI0DtlgIZkuuLN85Ebk5EbV5Xq8P7wSShHE9iKL0I5eQo1+oDQRU5JmNGM2KvA== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by CYYPR20MB6833.namprd20.prod.outlook.com (2603:10b6:930:c6::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Wed, 10 Apr 2024 01:21:16 +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; Wed, 10 Apr 2024 01:21:16 +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 v7 2/3] soc/sophgo: add top sysctrl layout file for CV18XX/SG200X Date: Wed, 10 Apr 2024 09:21:21 +0800 Message-ID: X-Mailer: git-send-email 2.44.0 In-Reply-To: References: X-TMN: [xNXHwO/Bs2d5BGFIEGrJ5SXlvcEJym5Dvev2CUIWpQo=] X-ClientProxiedBy: SG2P153CA0014.APCP153.PROD.OUTLOOK.COM (2603:1096::24) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20240410012124.165438-2-inochiama@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|CYYPR20MB6833:EE_ X-MS-Office365-Filtering-Correlation-Id: 0732feb2-36af-484e-4341-08dc58fc8485 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uYiqOFs+HNlawyTszX00V25Pi1AkfH25SL6UmofmH5hg00nxRj7smwRL05+WemK5y72xpoNRtzXlfKgbw/ldJuh7kNGg4cTCz2RSRV0iUjgTN4X+xnnYm90gcmKN6KWQXAt5BwkI+aFAESzpZBrIW1moxRMqwl4C4ld5nUld+VBZkePI3JAqg3vPXAVpO8X+JyTvu+iq9O5jJJkW/jWjqQlecYBk/s2vbXf+/JFBp8i2Gp/UxpdvDgwDvZuURnRbVwljaP2ENXW4eno2N/V/PJ7N5BkaZTL/7+AV3hfzsQg683zKjggO1XiEiEETiWmhZK7I6TRZ8v0giOXiefzCJu22hL5bsrGaRcgiazSHk8C6HP3LaRHlbGk/30a9DtTalzZeGC75xIKP7jhUSRuFZq2Oo2M62c18lUr7vhmXOJcaaHckGy5dxuIDI95LsuFhZ3GUN+pogov1LvnCvfra3pFfqt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DXQw2jcr7LI5wZ2YTe9/NkgkJOSWT2O/7rrXZbGVc47JM0TmYotBc/S435sK7mcywDBX7H6eDlK3cQodL7o/5iORbmix7lw05NZ5DjBW9Rz25ZhbcaN0Dc6zud82neaMWj6OfYoxL5aWqnxa1Plp0YxIk2d2tANGLMEPu2AneqLDDLAOqU2aPxSpZ2HbxfcYEmNnx9x/6kvYmDRSTpsjmxPI4rBJOAE/WvvXiccDXMfPA2JQc1hLLMi/CEIKsJZrgU1GSOmkKTZO0HLUnPdYBtgm7VUyKb0+3f2M9uIhsZOgKdM9MEyzfioeA4vA86WZh0HWHnB1uAcgxnH/C9r2gTHPtiOC3iHBWHmbKCuEmHdu0ke0+R0DK7xRvgRfbZSyH3ovMQC7khnnpxaAvweCMBgXf94NkwIMF7/q X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0732feb2-36af-484e-4341-08dc58fc8485 X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Apr 2024 01:21:16.1779 (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: CYYPR20MB6833 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240409_182121_766839_AE34E4DE X-CRM114-Status: UNSURE ( 9.09 ) 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