Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1517390rdb; Mon, 8 Jan 2024 01:29:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IE34yZqtqW8D7h+zA0sP6Z/dNghVcUXb79L9E0rXhpMk2+ZL7m29TKLVl5l+hE+G5AYOqp5 X-Received: by 2002:ac8:5f87:0:b0:429:9315:bac1 with SMTP id j7-20020ac85f87000000b004299315bac1mr2454809qta.137.1704706145420; Mon, 08 Jan 2024 01:29:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704706145; cv=none; d=google.com; s=arc-20160816; b=JzFEKVfp32AlON5UCGhr9DbpMBiy+KHI//MkhDE490IZCKOXcc/+4e2nk4xO9NEFEV 1LZrVawFfYrKCjiSd1MsA+Ut82lyicVjCV1Tvzt9zLvYFTLA2uzbXoJ5U9OVJe8JXlm7 Wy7fbPtc6az4F63WtTxXa6pC3ElZvV3vZen4DqIeQZLAQER5Br4yA3NFj0MPU12zhouy 9OMcyWOJyK7XK97pQuhaNt9vIto7eid6pvsPqd0+dZX1IRVndUFlblP87Bph0kcpPNoo 7xdAbnWBCcWGBR2imNi10i57QfD1RdR6z3m7s2V0en22KlwrSQkFxkelVc1ii6iis5// 9OSA== 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=sCxoHVc7VrLS7iLBgNF0OKw6HEkkczHSNLMUxP93tw8=; fh=Hmcc7jLv6If77xipZ1L3G1KiaKuDTZw9GpM6K/GjgNw=; b=jyoorYdnHKwFKlVgr5KT1jbv+vswdNL8B026gI2kh8V90JAAEbh4ezgqm/TneQQo8a SJvXtIoE5thPgg2gQ2XvU033ycZFZotjpspnhwnfqp9xnjmrg2uqZ1WDAJB4Sp1PhZas WoF/7vd/4ypV3NhG4fr5w3Y7edAgFqHp0zvZW5O5DL2najJcfhRwMQ6IBbJDSSPYfX+s mor0jixCveSd1d71xkeaBzeT0Y3K+ujtFCQYVQ4FmJJ6LER4JIWLoGHF6h1t27YJcZ0s shGrrLO0lH9SU1/j5rC4RvVsW6WwW4On1FeHZUaTH4dddgVuO1xS8RLPZpXF4V9/vp4J swVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RVSRE+mY; spf=pass (google.com: domain of linux-kernel+bounces-19274-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19274-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 q8-20020a05622a030800b00427924dbc94si7382777qtw.656.2024.01.08.01.29.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 01:29:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19274-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=@linaro.org header.s=google header.b=RVSRE+mY; spf=pass (google.com: domain of linux-kernel+bounces-19274-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19274-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 1571C1C21D56 for ; Mon, 8 Jan 2024 09:29:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DC56C11CAD; Mon, 8 Jan 2024 09:28:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="RVSRE+mY" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (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 8580411711 for ; Mon, 8 Jan 2024 09:28:56 +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-f53.google.com with SMTP id a640c23a62f3a-a2ac304e526so42672666b.0 for ; Mon, 08 Jan 2024 01:28:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704706135; x=1705310935; 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=sCxoHVc7VrLS7iLBgNF0OKw6HEkkczHSNLMUxP93tw8=; b=RVSRE+mYp4ukNrxK7jlgK/+0nycCm8hwvbCGJbKRDAmK252mFo1LP0pg+j+QrvMhE4 79kv/RjNgsqVU45t2IaO1B/EwOHvTQ27GVxSeVqD1EVoliQV7SwI9FQdZMa+W1SpDJKJ f30WcBCdGWgck5qthwdvydHK+O8slDxnwO+toeadJk2FDEsve+afMXiA9tbvuOXlwcc5 9JWpUaeknnDqUhcETdtaKukgWUz5KxIC6c8EnzvcEbRVGhtgnzuShERYPUVftMU1h3Lj QIBqUnEFab0Q1Pqt4bp0NMy548CHqhJEu9WO77VHQPzQ9G90V9w8Q0h3QA0dLGCdZX2f u7+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704706135; x=1705310935; 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=sCxoHVc7VrLS7iLBgNF0OKw6HEkkczHSNLMUxP93tw8=; b=DCtu+4Xw6QH1GnhrvFEbtuOiVqqkHP3DaH9g6SZQH8zCL5r/ZVknV9MOIHwBuCw+oq 3X86Xt28AaQMxiUSyom5RYPfpAgYAC5f8JTOO5xUUCYbkSI/HwT2GFi6jb6auIa1x6fT hsbaUDScKiwqQrcgNhBoUpqpmpEIGvZlSbGAgM1BXT70XNZr6YxGMD4urW5k2R8qu3Iv tLJfB3Zsm8jpzm2Hg7nAuYICy/0/w9cHs76YZCJnaRK4VDRksuNw8XznAG5WfFcuCdjZ 6RmgeMUU3bchTSVuywu17/t4VNUOhdsPitR/UDoyKv4AjNFRkvdRgOuJxm6xx4eYmiMa Dc5w== X-Gm-Message-State: AOJu0YxfPr7UXdim+i+ULZxd5zPFW5kNd5191SVHhy0zvdtC5PoJ1+Ns Vi1ahOb5a3EvUiwtocSryeBSWXQifc/tRQ== X-Received: by 2002:a17:907:9449:b0:a28:ddb2:1fb5 with SMTP id dl9-20020a170907944900b00a28ddb21fb5mr1859548ejc.35.1704706134662; Mon, 08 Jan 2024 01:28:54 -0800 (PST) Received: from [192.168.1.20] ([178.197.223.112]) by smtp.gmail.com with ESMTPSA id q22-20020a170906771600b00a26ac1363c8sm3776671ejm.94.2024.01.08.01.28.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Jan 2024 01:28:54 -0800 (PST) Message-ID: Date: Mon, 8 Jan 2024 10:28:53 +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 v5 0/1] dt-bindings: riscv: sophgo: add RTC for CV1800 Content-Language: en-US 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, 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 References: <20240108072253.30183-1-qiujingbao.dlmu@gmail.com> <93695e92-233d-460c-a6bd-882b30f1dea8@linaro.org> <7af6c688-3d3e-4cd5-bbd6-4ca323d7edde@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++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlB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MZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 08/01/2024 10:11, Jingbao Qiu wrote: > On Mon, Jan 8, 2024 at 5:06 PM Krzysztof Kozlowski > wrote: >> >> On 08/01/2024 10:00, Jingbao Qiu wrote: >>> On Mon, Jan 8, 2024 at 4:02 PM 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/ >> >> Sure, this I get, but why sending bindings alone? There is no user of them. >> > > Thank you for your patient reply. > May I ask if this user refers to driver code or DTS? Anything. Any user. Best regards, Krzysztof