Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp792948lqe; Sun, 7 Apr 2024 04:23:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXtTXpRoBCCetzZWasYo2hcQQ26n0TEFTFXVZcpT/rpsSW9eXMXSHyLmcAQYRTtRmCVRkSY+/H3vS/HcDBaTAONwgwN/9J6Ql3c1eDUUA== X-Google-Smtp-Source: AGHT+IEIRAwvNLFtnbO9HeTEsVw/j51NkW1pWoxRGlBc0jpG0JN/ftWrScBIJS1iVkeqrBXqTetm X-Received: by 2002:a05:6358:98f:b0:183:9a25:852a with SMTP id t15-20020a056358098f00b001839a25852amr6101166rwi.7.1712489008930; Sun, 07 Apr 2024 04:23:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712489008; cv=pass; d=google.com; s=arc-20160816; b=u2di9kzM9AHgBIyQbysqUdo4Ls2jcm6hPPWw0Tcl/PDmdnNhac9IyXOSp0Y8fDr2iO TbwkvOAv/ava9SMj0bpDkRNPozZYuSzf1Y1dv/sVhkYMs+sn1Lcc5UqianumjF3XSZfb RcQxdbuc3Uv28HLkEH2WJXz/6HWBG/OjjL9Ro27iLL7n7wV8YrAfIiXO9Qjta1nezgvC FAd2sXQZAA5pEnQgckwRFMdjpyIZXyNhWOnVmnh18oRfDM9vgd4P1KNLXZvK9/5LTBDC jtIZxe1sp19r5/8uk8TOv6UUInJlRhqguXouvwoPTKjXSNhCWGHA2FVxuAok9GDhd5Ql jsww== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=1dPTP5ssVsVjbYJN6CG+Gk6cd8xppCIHtaU0p/4dVog=; fh=3UvExeYzcGE8c2vGY+D7cljzZWbDGOAB31DHM3z4m5U=; b=OB2tofKSGmO0TMT9r69nuf4gmDyS90Cmc0qSnFI+Sz2Y+WC1VEkasXet/ndGmxJcfu gME0Dv4+mSVyEVRDEd0YPwPbulg5/KT4sV/E8AWMh9dLJbQUq4IoHeqyEqpIWENio4QX gwQFAQngqHNU+aaus5AfI7wa0rZgU9GPwk4bfDqTsZH8BfG8EvSg1kSYLBqrDlBnEdjX /yN6uih8GbsEnjqkwd/6+GCGpq1tv8aLrfbOGheij7XYxQhJs2+82ph8bV3eDEtCWE9O qutVlX5hgfEXTUULbIepDk7pyPgvJ5DKw3HylmW9kN+4FHuKxxHArXWX2NK8GprdIEoJ aCfQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="GL/LcCAM"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-134354-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134354-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id m8-20020a17090a668800b002a386aa42cfsi4335415pjj.26.2024.04.07.04.23.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Apr 2024 04:23:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-134354-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="GL/LcCAM"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-134354-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134354-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 547EDB21678 for ; Sun, 7 Apr 2024 11:23:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9681021101; Sun, 7 Apr 2024 11:23:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="GL/LcCAM" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B509522EE5; Sun, 7 Apr 2024 11:23:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712488994; cv=none; b=PX6yI0v9srZUrI7C4W16tSqUo0vPkresHN8I+aJHSP1TPJrUnZwPJFK95Zr7DHl65WXI23Qa9rl3C395/tp8aE7jC2+/O9jzI3vvxiZM8vtCZ9B4JEF7KD5TvUIMNus4v3b93Kzj5ahmhSZ8ZFVt0k7f28fbeClA441iMS145Dc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712488994; c=relaxed/simple; bh=5suR5ejrCA9fwoRJgZKID0FTG3hpL42flJ7EeEBlYuI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HT0dK09TFA1pXgLuP1QyqjJ9+L0/1iou7Kq/BZbp7wnh9fmDULQbWYqOmMQw5pcWBcP7pC3fXEDY05lYiCFGGU/ht95f8cH4aWTcrM2Y7PnYHeMqHof7TmdgT/mdu+Wi5TekWn/40XAkk0jR9q/roDa/6gPYgz2gWW86ZsCTFe0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=GL/LcCAM; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A2CEAC43390; Sun, 7 Apr 2024 11:23:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712488994; bh=5suR5ejrCA9fwoRJgZKID0FTG3hpL42flJ7EeEBlYuI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GL/LcCAMHHwG1RjtRD1qwdMfbicOlrbROY0L21dD4sFAxjAQIvA3VK1O2gzwZ+wj0 Nr45B8vc0nqcQk7+dzlaq3tH+e+CbLZRg8NsxvJec3FhtD9U30WhoaJSB2MxZwQnBZ AyZfPmYQv++1o2fksPW93jOdCjg2EXBbWwfWwRJx/vgMdsm1AVgyMWZnz2Hsktf9PX sFmyhXCbht5iJLccVlEHICpgIgPGxPWWWZzwPwDD1H3GoCjrK/27ZUF4HMUMjZ71I1 GMh7cySb4Lpi1JBXCun8kedcXSVAjqpNNZ9ro/3q3BsjFtj5KFDOAvGf2QN632m7vb P0Pe0F1hrC/Rg== Date: Sun, 7 Apr 2024 16:53:10 +0530 From: Vinod Koul To: Inochi Amaoto Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen Wang , Paul Walmsley , Palmer Dabbelt , Albert Ou , 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: Re: [PATCH v6 2/3] soc/sophgo: add top sysctrl layout file for CV18XX/SG200X Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On 29-03-24, 10:04, Inochi Amaoto wrote: > 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 Why are these register defines in soc, all the dma registers should belong to dma driver and other IPs, why do you need a common header?? -- ~Vinod