Received: by 2002:a05:7412:361b:b0:f9:2edb:3e4d with SMTP id ie27csp29751rdb; Sun, 17 Dec 2023 12:47:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IGMSXV5wvsAjQIusPQkRNJmM+BkxI5+u6IQG8kQ4+XfQ7VQlMv0XIW+lkPL0bh8Zzlvu7Jn X-Received: by 2002:a05:620a:1278:b0:77e:fe19:63d6 with SMTP id b24-20020a05620a127800b0077efe1963d6mr17985520qkl.69.1702846030284; Sun, 17 Dec 2023 12:47:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702846030; cv=none; d=google.com; s=arc-20160816; b=JxvnxLIoFkJvBcEl3+P9AQCtkhX3q4pnUgrbjbf1HJ5mWxrpj0qrkcv9e2Xg2+Xyjj CgX6NemxZCqTPUZhPvkOxacVW+E4XXvULPV8rjZzCkphvbBxwz2nitGc4fxCXpJgLURL brMHe29a4ihRTCe+q8E7Ll8unrE47DO1Fn2Av+7zu1Abzz0v2W0NI5VNjCdkrQicXxXa h9O1w+hhhECrgp1qy+u5wW4T2Zamxtilsk089yBceEyMsDCkTMGZlAZ5y9BZeOA9LE0j lqrdxNGXou82z3jcnYbwnSQjLBCvdwOxN6UyDrE0+L3TPoLXxCIutLWPhI0nheJFgTGm pERA== ARC-Message-Signature: i=1; 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=9poTvDqhuzrQz/K0+AJGVzrlETp5uHPcnLOtV6RW0PE=; fh=P6hxVttZOsB5xKUMXu9lGjASLD9SFW09O7U9BCfJrF0=; b=FoYot+ipYiVlVxjcJrX0cvRIEN6W8f2SifPkWVlAXU3E8fHTSogxHBV6DMPwR+pkTA 84CmxxyMzs8GQcokn/WZHBF11Nu3UPLTGmRG01aFV2K1epocJ3eoImZG0njQkCqFoKSC qqgtmTVC3v9DqtoVuf2+8ijKu8wwnKPvAmp/oB5Uux2O/5N/4sB3asiMhiMcEr8OWgea NK9PvjXZYfBUfBYJe1A9YIMeauZBad66cnoH2BDmgCkECl/6fzOsQ6FOEjvgQ8GkWPah NyAxFXSLFVmb1dILMJocJsiFjWvh3CpYV3nxs5mELPG5+48nAf6GR5HF2JB1JKay+hAD BR5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=U9tTIX1S; spf=pass (google.com: domain of linux-kernel+bounces-2801-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2801-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id w8-20020a05620a424800b00767e30f501asi8841875qko.402.2023.12.17.12.47.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Dec 2023 12:47:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2801-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=U9tTIX1S; spf=pass (google.com: domain of linux-kernel+bounces-2801-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2801-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0C5F51C2125A for ; Sun, 17 Dec 2023 20:47:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0D05F481CA; Sun, 17 Dec 2023 20:47:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="U9tTIX1S" X-Original-To: linux-kernel@vger.kernel.org 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 342A4481B9; Sun, 17 Dec 2023 20:46:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A2B55C433C7; Sun, 17 Dec 2023 20:46:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702846019; bh=QpN+XwZLK0DlQcc572CwgNkacAX6mTe+aD5d84FlZzE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=U9tTIX1SpB3+Fg3vJqWeVjipaX+Aaimo5Tgibsu4LNULeKvzOI/Sqr0wuJUPSDIju X8QBePWbnmnuTAKevNw7/lxSWwbWueYZ1dh7DCyx57EEno4jlgKvdWC6KIDpzZP2ae UUdAdj5Zn3VgMlbIHwVaA61AzT72vbS9UGEfAkpy+5FCyq/TWKPHZnqc9X42ZMWLQ8 SRoA0LMr+oCfZxtQ+A24AtLju6mO/eFC6/kn9cTH2KuQLRunIsu97/CTchgxks7i5t GawizzV6oE5bI1LIjq0AOVSMIOJ4elfQGYMAmznSN/5AKpjL8ks2y7JkBXb5NmYWt/ PgcyFFRxpkHgg== Date: Sun, 17 Dec 2023 20:46:54 +0000 From: Conor Dooley To: jingbao qiu Cc: a.zummo@towertech.it, alexandre.belloni@bootlin.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, chao.wei@sophgo.com, unicorn_wang@outlook.com, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dlan@gentoo.org Subject: Re: [PATCH v2 1/3] dt-bindings: rtc: sophgo: add RTC support for Sophgo CV1800 series SoC Message-ID: <20231217-swept-uncorrupt-92ac058dba4b@spud> References: <20231217110952.78784-1-qiujingbao.dlmu@gmail.com> <20231217110952.78784-2-qiujingbao.dlmu@gmail.com> <20231217-wrist-flakily-db9974d8b515@spud> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="XvhKEa/n8Srf2qdm" Content-Disposition: inline In-Reply-To: --XvhKEa/n8Srf2qdm Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Dec 17, 2023 at 09:16:39PM +0800, jingbao qiu wrote: > On Sun, Dec 17, 2023 at 8:26=E2=80=AFPM Conor Dooley w= rote: > > > > On Sun, Dec 17, 2023 at 07:09:50PM +0800, Jingbao Qiu wrote: > > > > > + reg: > > > + items: > > > + - description: data register > > > + - description: control register > > > > > + rtc@5025000{ > > > + compatible =3D "sophgo,cv1800-rtc"; > > > + reg =3D <0x5025000 0x1000>, <0x5026000 0x1000>; > > > > Why are these two regions rather than just one, given they are located > > next to one another? > > Are they separate on one of the other devices in this family? > > > > Thanks, > > Conor. > > >=20 > I think there are two reasons, the first one is to distinguish > different logical , > REG_ CTRL (base on 0x5025000) controls clock calibration, sleep,and other > functions, RTC_ CORE (base on 0x5026000) has basic RTC functionality, > The second is the maximum address used by RTC_CTRL (base on 0x5025000) > is 0x0ac,which is much smaller than 0x1000. Therefore, the datasheet divi= des > it into two parts for introduction, and I also divide it into two > parts based on this > introduction.So do you suggest that I merge them together=EF=BC=9F If all of the cv1800 series devices have them sequentially, I would just make them one region. --XvhKEa/n8Srf2qdm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZX9eOgAKCRB4tDGHoIJi 0nBGAP9CpE18F0tCZ5ZZL8oD+sR4o03Wo2uUJVeIkukXO3/g3AD7BTzHdLoIzYY2 2ujSTOnAoRjAoYWuVbGf616T8GdjNw4= =wA1g -----END PGP SIGNATURE----- --XvhKEa/n8Srf2qdm--