Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1507920rdb; Mon, 8 Jan 2024 01:02:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IEgOdlZuvpAFhEKRJWm3HkFAKKgkUYThTqS5hO4xNtTogq7SPb2mvPzXWR29yPZNEvkebXE X-Received: by 2002:a17:903:110f:b0:1d4:2650:9366 with SMTP id n15-20020a170903110f00b001d426509366mr8489317plh.42.1704704568215; Mon, 08 Jan 2024 01:02:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704704568; cv=none; d=google.com; s=arc-20160816; b=Yu4oFzjf16sL3zYX53cU43o5jMhW5FeG3JAkqCsFtHvhwdfltaJXSKLgQUxcQtWDqV d1ellv8wP8kaci4Jtyo8udMUa+RAYO3yKUctA4y+EWrQ0d7Gczm7RE2CpnopReK80mhP Y4BDBrX4Sdhl2rK/A8uxVXDKffDSwV6TYHOwaazBIsmAAL4XtcJJ7EAkJwS0auKX8GZ5 K02Pi94Y/ksmVEfdPtu7vPNcMqT6aJCGfY+Xan8wPFHU1Yaqtw9ZE6PuLN8H88KOyDBo ybY+09m26/aCZuJbO4Xi86HYB+tdoA6OTEEONDXqSr3NwJMy8+Ep4Z7NIQ0xFB0SmrUe 37xw== 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=x03s0Nq9cwAwPbt6pv42AapG0mpdoAOSeTQvOKXgJlg=; fh=/gP+FOs9x3Nyth4wbOqYmURrGrdg8xfldv+6mxlxU6Q=; b=Jkl8RRZfFiJbMpt6ctELGDheAmOu5DjBpmgi2A5l7dIG3jnNpfAbQNaWxlHMG6vSZb Cehnn0qTS2Pwe0ZEPW63uURUYxs/Ym74SrLWfT2+jFSmBYUR9wwiqbGVtS6jFGwT3bXt u8Lzd7dwUUBDvIFg8YBx9jLnVJn+FZJkKv6ziDXb83JvxZ2UVJeUzPKiZx+jik/IweW4 7RtTsvQiYFtN96F+bkNIjbbI6xTai7tDiZGsi7WXHrnfn/K6X0B/Xa5IaQj2C3WiQe3W u7V9O3gm3FHCLoBADSoMT2ZTa3vs6wVnLI8XqWSt4S4nvgbuCcC2PQaKZ1zXdgExhVom hvfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="HGF1z/cP"; spf=pass (google.com: domain of linux-kernel+bounces-19229-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19229-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 q21-20020a656255000000b005cd8723fab0si5668599pgv.557.2024.01.08.01.02.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 01:02:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19229-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="HGF1z/cP"; spf=pass (google.com: domain of linux-kernel+bounces-19229-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19229-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 8A141B22422 for ; Mon, 8 Jan 2024 09:01:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 787E1D510; Mon, 8 Jan 2024 09:01:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HGF1z/cP" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-oa1-f51.google.com (mail-oa1-f51.google.com [209.85.160.51]) (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 5D036E570; Mon, 8 Jan 2024 09:00:59 +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-oa1-f51.google.com with SMTP id 586e51a60fabf-203fbbff863so811423fac.0; Mon, 08 Jan 2024 01:00:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704704458; x=1705309258; 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=x03s0Nq9cwAwPbt6pv42AapG0mpdoAOSeTQvOKXgJlg=; b=HGF1z/cPjET/JdnQhnRvpiPAvotUvFKV/QoQFpI6dugqCctyUVYFYzQo48DOKyyZfP 9b+BQZmoudgwL/e+FbWegmGm4NqsfqURALynd1hliKJ6GV2kC5H3n/3Olsdv71riIYgp 7tMI+k9aW7G4Hyv+V2hnwl5dsCcKEXrCrhPoAPyppAopxiSHmHCDrAb5VPEdGesjJClH T3gkoRV37yN7Kwf342CWJW6lfDkkw41MdQcfHBuw2VTJonnm94uw/T6daTG9On0TrNqj 8cisBsusfgTcRLNjtzOBmhJ+knhP5DzqPP83O3kD3UyUi3Qc6JpGlg+8pBJn8edT+uxN 7jkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704704458; x=1705309258; 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=x03s0Nq9cwAwPbt6pv42AapG0mpdoAOSeTQvOKXgJlg=; b=m2LxI9k+HtQHO5h9ME/qEEP60iDPvKWmoLGIzASdt62fes+imP6fbkRP2Df1VCpR/b oVH6C953G/NOV5CMOf222UawEjg6JigyCqKLeBfjY6S2TizXffCTvmv0nxuApK0e1GWP qVtWynqU+CjmY6Mr9bzrJYFruN79435uw6ojGFMmGCKzvHjFl9YdL0z1y8kklxR0cF8Z hdQboBpqixATUmpYcb8HjkHRwWhkJJ0lwMapIZZ5Udisj3A2LG2OjLPPkMEVLo+X9wRk MxmkU+XR/bVtDbfKEuUjqTHg7O6MdtJ/4Td6k3MjFRKWw33GqgHOWVDGdIMocqOZMvQU Z3dg== X-Gm-Message-State: AOJu0YyHYqAmm+0abz36JoxWEd6tQKzUaveZLeEhmS41GcKpC6vGBi9y 3dS+2Gz4RYHUIGFTaAhDFxXuuVLSFJ3SKRT5kqI= X-Received: by 2002:a05:6870:9c8a:b0:203:b571:ab63 with SMTP id pq10-20020a0568709c8a00b00203b571ab63mr2431614oab.47.1704704457984; Mon, 08 Jan 2024 01:00:57 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240108072253.30183-1-qiujingbao.dlmu@gmail.com> <93695e92-233d-460c-a6bd-882b30f1dea8@linaro.org> In-Reply-To: <93695e92-233d-460c-a6bd-882b30f1dea8@linaro.org> From: Jingbao Qiu Date: Mon, 8 Jan 2024 17:00:47 +0800 Message-ID: Subject: Re: [PATCH v5 0/1] dt-bindings: riscv: sophgo: add RTC for CV1800 To: Krzysztof Kozlowski Cc: a.zummo@towertech.it, alexandre.belloni@bootlin.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jan 8, 2024 at 4:02=E2=80=AFPM Krzysztof Kozlowski wrote: > > On 08/01/2024 08:22, Jingbao Qiu wrote: > > Real Time Clock (RTC) is an independently powered module > > within the chip, which includes a 32KHz oscillator and > > a Power On Reset/POR submodule. It can be used for time > > display and timed alarm generation. > > > > Power On Reset/POR submodule only using register resources > > so it should be empty. The 32KHz oscillator only provides > > pulses for RTC in hardware. > > > > > > Changes since v4: > > - remove POR dt-bindings because it empty > > - remove MFD dt-bindings because SoC does > > not have MFDs > > - add syscon attribute to share registers > > with POR > > > > v4: https://lore.kernel.org/all/20231229090643.116575-1-qiujingbao.dlmu= @gmail.com/ > > > > Changes since v3: > > - temporarily not submitting RTC driver code > > waiting for communication with IC designer > > Hm, why? > > We do not need bindings if nothing matches to them. If this binding is > for other upstream open-source project, please provide references. > > See also: > https://elixir.bootlin.com/linux/v6.7-rc8/source/Documentation/devicetree= /bindings/submitting-patches.rst#L61 > Hi! There is a function in the RTC driver code used to calibrate the clock, which is define in the datasheet. However, Alexandre Belloni raised concerns that clock calibration should be done using GPS or similar methods, rather than using other clock sources. I think what he said makes sense. So it is necessary to communicate with IC designers. link: https://lore.kernel.org/all/202312271350242a208426@mail.local/ Best regards, Jingbao Qiu