Received: by 2002:a05:7412:b112:b0:f9:3106:f1c0 with SMTP id az18csp6950rdb; Sun, 17 Dec 2023 18:07:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IHtjelZbL9aWfBuO4s06mK/bWDBQSZo0YsgxLQpuGpxWiBOSUdSnEMdufG4GDGJeEMLICwE X-Received: by 2002:a05:6a20:d405:b0:18f:97c:5ba8 with SMTP id il5-20020a056a20d40500b0018f097c5ba8mr5752415pzb.118.1702865230960; Sun, 17 Dec 2023 18:07:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702865230; cv=none; d=google.com; s=arc-20160816; b=geaVlcKZGeph2f295TJy/vgZpR09Zg3Qpb2NexfAc5lsDKnOrba7oSFjjMwXSGhwkg 1fRZzEIAcRsQu9o47eQmweyKsDyJ2r3Kx9R9zOiNLw7SBEvAMPP0IXayggJb9rfE9Ldd 4Jz8uUYx+XEsc7dUJ29Zv4OB6h3xVKkZJI/V/WajgeujevrkKoEtbfls3mY48ksQHg7B DC7xfDX0PemZ1QwTscRPBo9g5txUEXRq21oP9lFk2Ds3iNuHECMJICf0+VSJbfQMy6Hg MyIKR/1sdeeiui5Srdxl5H2sGtGOUmBbibZfdzzEaXA5tcXZ3bn25AFu9n0tqu8zg0+M ICbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=CKnYT6PKG7isJEwfwt4q7aWVApkXd222Gzbu36ZvTuA=; fh=BBXZKh1PNodzEbbY7rK5ib//f5OJVjBi56wzE6hLM2w=; b=CMTs+2opZAOIM9XpSHRo/lbHwQFtUy7XwUv2OWhnE/Z9u/iqWrn2Q2X3HgtynnNKGa bfMFnnNPr/ubYK6Kq3OC5yG2ZoofxVRu7gMU8eYYS0WrmNW9g2TmSghGEe/s48Dnw2xX vx3Q9eoJlhwTakiP+9F4L+UmVpu+DT9T3oooiBbcLzhT3eKvrpl6a3XIZlGdChAK1AI+ 54WWyyNALI4dyEPyo7arMSRqoEQKItp14wGQNoG8BdgPfXeKq0EAd3e1lXZQu2bJ5Dmi CIlFrtx4iFv2Ey8auThrIsPehuTtTuoKBAdo6htUB51TYOH1u/d6f5JC2OIrebSLk8bZ BCgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JRxQAAtw; spf=pass (google.com: domain of linux-kernel+bounces-2919-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2919-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id h12-20020a170902748c00b001d350276683si935852pll.251.2023.12.17.18.07.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Dec 2023 18:07:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2919-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=@gmail.com header.s=20230601 header.b=JRxQAAtw; spf=pass (google.com: domain of linux-kernel+bounces-2919-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2919-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 58CAEB218D0 for ; Mon, 18 Dec 2023 02:07:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0773A23D2; Mon, 18 Dec 2023 02:06:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JRxQAAtw" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-oo1-f46.google.com (mail-oo1-f46.google.com [209.85.161.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6597D5228; Mon, 18 Dec 2023 02:06:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oo1-f46.google.com with SMTP id 006d021491bc7-58d18c224c7so1656384eaf.2; Sun, 17 Dec 2023 18:06:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702865213; x=1703470013; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=CKnYT6PKG7isJEwfwt4q7aWVApkXd222Gzbu36ZvTuA=; b=JRxQAAtwgYm2eXqme6LNtsat9qKl7TFvuEkwM3LrckM1HHFaax72tcSNWJW8PSY4H4 yO4/4UnDCjzoPA3Jz8j4+B9ZRQtSjGHHCKCRPG+eCl9vAWzrBbt3NgpfJgF9kA0uhTxQ ZJAftAjqkfn6KvuHhgdPDs7/INxo7I5dO31Z+Qyl6lsEDEaBLfdR/1bD6Wnmozrb0/We sWCSS81kv3kRS6uoSl/9CAoFhBUZtsctcbG7xyZjGHWjXjj5HkY/ZKOcKcRXZ0cwWl/Q GnBe1caeuv0IxsLp+vWdhwSWBvVrogOAd4p0ExQ4Q2v11pS7ZeaTNeXgmtEmBsMkzVWP Xfng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702865213; x=1703470013; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CKnYT6PKG7isJEwfwt4q7aWVApkXd222Gzbu36ZvTuA=; b=ZAUjiU6I9cqB0bCJw2klEKhosh1Z8sSBVBauYTYKJOS7fgq3dXG7HV01CF3ba9z9BK lPm5Qm5FhAgiODR15D4Uz2D24umiKr8MZABHmhN9NSoZwjn2fNdpKUOEOFhNgW/xjbCm oYtHop8dDxgnsF6GiMxdczuXka73iPwUEN0XWyHa26HAEfVTuglAk5h8AK8vnr4WzOJB dgNFrnh5gWgmux1EhROn/UUnLibebpPeMmWXiRgh3EkZH464aa6Skx/xaVEi6THhVKEY 5kbNydC2eH+8vGMVY2k/dtaEWoafycx+A7YnofSeZACIosaMJfMwMkFXBA59yICydob0 6Veg== X-Gm-Message-State: AOJu0YzdtjDVzneEQVZekRVXXw+kWs2e5LM5RnFZeYD8dAOa/7PbJ85T xzkcIYJ3JdqFbvuMk8fwF0aa3N/TXwmsIl01Sa0= X-Received: by 2002:a4a:b048:0:b0:591:54bc:438d with SMTP id g8-20020a4ab048000000b0059154bc438dmr4693538oon.8.1702865213089; Sun, 17 Dec 2023 18:06:53 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231217110952.78784-1-qiujingbao.dlmu@gmail.com> <20231217110952.78784-2-qiujingbao.dlmu@gmail.com> <20231217-wrist-flakily-db9974d8b515@spud> <20231217-swept-uncorrupt-92ac058dba4b@spud> In-Reply-To: <20231217-swept-uncorrupt-92ac058dba4b@spud> From: jingbao qiu Date: Mon, 18 Dec 2023 10:06:42 +0800 Message-ID: Subject: Re: [PATCH v2 1/3] dt-bindings: rtc: sophgo: add RTC support for Sophgo CV1800 series SoC To: Conor Dooley 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Dec 18, 2023 at 4:47=E2=80=AFAM Conor Dooley wro= te: > > 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 = wrote: > > > > > > 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 locate= d > > > next to one another? > > > Are they separate on one of the other devices in this family? > > > > > > Thanks, > > > Conor. > > > > > > > I think there are two reasons, the first one is to distinguish > > different logical , > > REG_ CTRL (base on 0x5025000) controls clock calibration, sleep,and oth= er > > 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 di= vides > > 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. Thanks, I will fix it. Best regards, Jingbao Qiu