Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp539223rdb; Tue, 16 Jan 2024 08:04:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IFDxiAt9VV7NW3Xm/HFL+yP4+BhUkjnnNLuiVnE1DDakQu/8xZqVkyQCh978ZdNeFohNBKM X-Received: by 2002:a17:90b:1085:b0:28e:8c11:e042 with SMTP id gj5-20020a17090b108500b0028e8c11e042mr350753pjb.56.1705421054549; Tue, 16 Jan 2024 08:04:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705421054; cv=none; d=google.com; s=arc-20160816; b=FAUlu0qOG13GhWFT7Kxz+ujxosf85d0LpkOCZp7bj1RXK8sFWNqM+KQI05w56uHSWk ewPlmgDqfVEMtKMP18zFkk3kCApCDz0n7ifRJPBWyPEjJ10kriAJGGIWhleZu5NHn0dO SasMnbXHisLCtGQCij71KOPTiM6g3ajha7RXR0mgzdbSr+K98DcRrpzMinFPCoIk/9na p+5DD2sMNj8g0V1t6nLveG3pTVcmEtVDKcIUtX3X8m4J3vfP1cXIW+gz0NiWke6qNcLY p19qvbVrraI0cCugpHdx27tUB3SwXD2eU9hlNrQ9p4cRi7MvPDmhvEZ+S4Fw1BdeoCVT Z7yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=Ms3IkmuBi0fdx4V4qLhojJ05lCZcwcatoEQrFchE7Qs=; fh=IswBVEE0PxQfCldKXNDlkYDPJRXrFNWOQ9ilG90A3h4=; b=NrfFLPlaj+N2FyjHxVf5w4S7n0Mo7YmCXlIchiAVvmDfnq9O1GCZuUuFWTK6yMxTCP nZncjh7F/Yj3FchfcSRWDRBz2OBdee09AMlWP3jSDFqu/Tj72dbGm8u5BBq1yrRoSRES DKnWtEKAuqCRwBb5ZWEoZlhVwIlzWAKFUNWCiHIHA47fwpqJT8ZYsv/jTQAn05WS3NGS vnmXiNx7hf+T+A6YnLe8ZWe+swsva+UyV5jzEa8C5wPnki5LWZ3JgMskKZG7ta40Apxt MXtSOSLhTpohBmBBpzL598dbqeyysJLaN3H0pWGVE4REr7cYZUorh22Oyv5qtnkctO8G 4UhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=MT+Qx51u; spf=pass (google.com: domain of linux-kernel+bounces-27557-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27557-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id t2-20020a17090aba8200b0028e8760ac5bsi713036pjr.44.2024.01.16.08.04.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 08:04:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-27557-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=MT+Qx51u; spf=pass (google.com: domain of linux-kernel+bounces-27557-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27557-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.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 84710B22E60 for ; Tue, 16 Jan 2024 16:04:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C7D61CD02; Tue, 16 Jan 2024 16:03:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="MT+Qx51u" Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (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 DE9471CD05 for ; Tue, 16 Jan 2024 16:03:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a2c67be31edso612655866b.0 for ; Tue, 16 Jan 2024 08:03:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705420989; x=1706025789; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=6aXd3Lf2Nq+ETEJoEKdNpd1BvF73kz93m50Vn51D54U=; b=MT+Qx51uR2y6bOFxDN9W98Wi8IhlgGrTf7VTB0v4K+Yug9MRN6f3CUFJeaZCgi6uP3 rCVPf8x2sQPppYDHzK76iuzR+Ex2fwFoRehUhufI8bQTug31XKrIbNHdizha6HeFpFS4 LJ9PflG1MwyblX8RXBbdool/9ElVH5kzc30KkDGn/mNwjUbXhcHgxY4QA+YHidSwOnnQ Dpy6pdswNRiHOKXWkvt78Io+v+EvXZEYsr3AQXqZHtiuqEPLvi2QFhWC7D+O2/nmnZ9v zOD9Uet2XAQpwVK5VQABUFH0/ljh7lSoIeh9UZgD9xX5w7yC6gp3S4SjzQkNL8CO+z5f 7gyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705420989; x=1706025789; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6aXd3Lf2Nq+ETEJoEKdNpd1BvF73kz93m50Vn51D54U=; b=JDaxQl/nB4VYjR3oKRTKh49qYrrZPqCWqOAFhlL4JqQ1WjZkTVJw8ZP2SmGiSXCWB7 xgaYmk1m0/HntrYFc6/59YVB+nzzcv0pehXSoBaRktTFEAAefa6dtgMp95IsDPNMcoRv DY3657J1xJjxkjOUMdmVc7vTxlW8A3wGIjgBabTSvDJkmWI2FydbqNSYuS4LVOU/PbJe sQAmj5w4yA459VzyCNdth9eRAoQm4USvDW0QH3P2c72lEbu7+dhbXpx5v/u5ZFPww+y5 982r5JpnrBlsh7N5O3X8RhMDuHef0kYfGVvk7D0yL8LY5dVFuX3gIGWXJ0xDbo8deo81 nGzw== X-Gm-Message-State: AOJu0YxjFTFxRAQiG2PPnSBhPJuaEFWwUWfVOUmBkg361krpCAVqqE0z iUzUqBfI4700z8fukh2FLgZXrbwAbbLTuw== X-Received: by 2002:a17:907:86a0:b0:a2c:4a3d:731d with SMTP id qa32-20020a17090786a000b00a2c4a3d731dmr2282009ejc.257.1705420989120; Tue, 16 Jan 2024 08:03:09 -0800 (PST) Received: from [192.168.1.20] ([178.197.215.66]) by smtp.gmail.com with ESMTPSA id d14-20020a170906c20e00b00a298e2f6b3csm6610282ejz.213.2024.01.16.08.03.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 16 Jan 2024 08:03:08 -0800 (PST) Message-ID: Date: Tue, 16 Jan 2024 17:03:06 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 3/3] riscv: dts: sophgo: add rtc dt node for CV1800 Content-Language: en-US To: Jingbao Qiu Cc: 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, linux-riscv@lists.infradead.org, dlan@gentoo.org, inochiama@outlook.com References: <20240115160600.5444-1-qiujingbao.dlmu@gmail.com> <20240115160600.5444-4-qiujingbao.dlmu@gmail.com> <007e8c14-13eb-4917-b9da-8d47d6c965c7@linaro.org> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2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JQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 16/01/2024 16:51, Jingbao Qiu wrote: >>> CV1800 is a RISCV based SOC that includes an RTC module. The RTC >>> module has an OSC oscillator >> >> >> I am not going to read pages of description. Please write concise replies. > > Thanks, What I mean is that this hardware includes two functions, RTC > and POR. How should I describe their relationship? Your POR does not need to take any resources, so no need to describe any relationship. .. >>> Your suggestion is, firstly, the por submodule does not have any >>> resources, so it should be deleted. >> >> So where did you delete it? I still see it in this patch. > > Should I completely delete him? How can a por driver obtain device information? Delete completely. Device information? What is this? We already agreed you don't have any resources for POR. ... >> Device is only one thing, not two. >> >>> reg = <0x5025000 0x2000>; >>> interrupts = <17 IRQ_TYPE_LEVEL_HIGH>; >>> clocks = <&osc>; >>> }; >>> However, in reality, the POR submodule does not use IRQ and CLK. >>> Please do not hesitate to teach. Thanks. >> >> I expect one device node. How many drivers you have does not matter: you >> can instantiate 100 Linux devices in 100 Linux device drivers. > > I understand what you mean. A device node corresponds to multiple drivers. > Should I completely delete the POR device tree node and add it when > submitting the POR driver? ? I wrote it in previous messages and twice in this thread. Completely delete. You do not add it back! Because if you ever intended to add it back, it should be added since beginning. I don't understand what submitting later would solve. > If that's the case, how can I explain that the rtc device tree node > uses the syscon tag? > How can I describe a POR device in DTS? POR is a submodule of RTC, and > it also has corresponding drivers. I said, there is no need for POR in DTS, because you have nothing there. Why do you insist on putting it on DTS? > It's just that his resources are only shared with RTC's Reg. What resources? Reg? That's not a separate resource. To summarize: Drop POR from DTS and never bring it back, unless you come with some different arguments, which you did not say already. Best regards, Krzysztof