Received: by 2002:a05:7412:a986:b0:f9:90c9:de9f with SMTP id o6csp34852rdh; Wed, 20 Dec 2023 13:36:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IG9ht8VT4+fazlIUs8htLKD8fsE6//X66bjYm4pqOJYWYluJdtkhPgLogEaS7SQqhOywwxx X-Received: by 2002:a05:620a:1251:b0:77f:be1:7fe7 with SMTP id a17-20020a05620a125100b0077f0be17fe7mr4361378qkl.45.1703108201625; Wed, 20 Dec 2023 13:36:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703108201; cv=none; d=google.com; s=arc-20160816; b=cbvR1sN4NysJQb0CVnhWp6KSwP43EfeVqax478iZcmQpP1jH3wCBQNGzhrvJyyCErH fVcArcu65fatnvgi+A1RyGYq9A0QXPsiBMDNxm2ZYtG82A/HTFTZYetdlcoAJM20gzkn 66YDhfMF5/pgAh6rHrB7kLiOLhTyIw97YxxRKm6Aqr5ZWW5/GRzwXLeKU10jP27I87UZ kbBao8T95cIw7KSl54SUX9Wnm++XSVvaD4tLyLhAnv9xOGnl2zrpiDKhW2FhWMhDyp7Z qEAD9xExP51l1HrVVsGzTRaKg4eyB6ARnLxuJVYdSmprc3ZieioWaoetvHJ0N0PWikkB Z+1A== 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=xSFwNsfoM3Beli4aebDu7uE5v8ulMKro3Ea5DnUmNRk=; fh=hhtI6oF+0lty6broEyeFzEoSAu6XGQxcptDAAwTWz68=; b=R4MVGSBhzNCDaKP0pGod5NpIhp2pMfi/W9EyAHar7y9tZtiErZv4tyaiBdX7PVhGnU KrIlAAgDRKwkN/yMt9BjHk5Kc0282e24SeFH5hmvZBolotu4dTj1DZN6bZu7OSZ6UVyu JyoeuBZVJ7hfNyoWYvaNba928jCGN1rEq7xi8XsfSrS8QccCGXBUUN9JMiRQFro5B/yO XM/mk8HDoZ5oYxphuffpOtlqepD1fZwgb+4rX9xU1Tm7ohmWo75TgD+Q+RD40rtJMMqo KsO9ysroXDRtULpOvl1SgCIyez5uoLonF3yusiQ3rMREmj0UJaoRUJG5U6rXM4Gl9hzq bWXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FPnDMo7p; spf=pass (google.com: domain of linux-kernel+bounces-7454-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7454-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 m19-20020ae9e713000000b0078112e06dc4si591061qka.590.2023.12.20.13.36.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 13:36:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7454-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=FPnDMo7p; spf=pass (google.com: domain of linux-kernel+bounces-7454-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7454-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 18AB51C21BD0 for ; Wed, 20 Dec 2023 21:36:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A4E3648CFE; Wed, 20 Dec 2023 21:36:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FPnDMo7p" 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 CCDC6495C1; Wed, 20 Dec 2023 21:36:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D32AAC433C8; Wed, 20 Dec 2023 21:36:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703108192; bh=8fD+g/UALuuFVC/2IctyRtQM4JlqRN9pptw2dt8R384=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FPnDMo7pNAr/kSeAnISx6iuXuIfsSnkY1fKBKFrT3QgIbqPjQugd/OPucZIcKIpkR VgyhBRqne7a7T2qdpp79bzBdY7TdF+ZnOXIILHpvaHQEqwWRRamFOKNEc9GqZ2GM0G 6k9rmb+DazFqGagtmG/7WXvigSPZfmi46GjfgghdlY3TMHQ+F1VqfMyDXTkSSs3WWY r4eLEgwSuVmi0g9kr0MEkRv3hSPPkqnxB7FaqDQ/BSoxSUJUoyZHwqYE9jlHRMZopE 7NPikncxVjQCVqnkhU/wRWfnHZPYRcKSusq37pLNTsJK5Yk1JkYGa460DVfaGpDxxd UxyFN4JL30JQw== Received: (nullmailer pid 1179044 invoked by uid 1000); Wed, 20 Dec 2023 21:36:29 -0000 Date: Wed, 20 Dec 2023 15:36:29 -0600 From: Rob Herring To: Inochi Amaoto Cc: Conor Dooley , jingbao qiu , a.zummo@towertech.it, alexandre.belloni@bootlin.com, 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: <20231220213629.GA1177070-robh@kernel.org> References: <20231217-swept-uncorrupt-92ac058dba4b@spud> 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 Mon, Dec 18, 2023 at 11:41:52AM +0800, Inochi Amaoto wrote: > >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. > > > > I agree with using one region. The ctrl and core region are highly > releated. > > Moreover, I suggest using syscon to describe this region, the reboot > device is also in this region. Then the description of the device is incomplete. Please describe the whole block/device. Rob