Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1517293rdb; Mon, 8 Jan 2024 01:28:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IE72mdY4sTxGBk5bqjAlfrRMHuuwHmFzwvdlPg3LUOIYpNTSxD0zRt50kQKxB2vmpOh8dul X-Received: by 2002:a05:6a20:6a9c:b0:199:884b:acc3 with SMTP id bi28-20020a056a206a9c00b00199884bacc3mr634057pzb.120.1704706130467; Mon, 08 Jan 2024 01:28:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704706130; cv=none; d=google.com; s=arc-20160816; b=l/d9ZJ0THSLHUkMTf2ESxhputemxD06x7x3OzhiJF9aUxj9y5AoKUcGAIuyDrOEQip 50XR1kt6PbyXREIAALcl3BLuHYH/uVNhNwKcbeTgg6Lfqtdy6bAGXAtNxRoCNX2L6VmX 6z3doskvKVZiy3bJuh2PtPLJuh7pkFXSgIk5+nHhOKugGofh0uRvPwKi3YQ6O676mEqE qllwCgtZP0aRZKf4ZqIXiGixg9kDp7bYjI3AAj88155scnQho/mDOZocctdoLOtgE0E0 GCms3W149T11D88fBnouQVN8+xxHbIUcLb95POAYeVkYjWtVVhIl9pBIrHqg0f2P02n8 2jCg== 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=K8+yIEtHZ0QUryEj2uRDfKghYbencYpwk0jvKzor3RY=; fh=Hmcc7jLv6If77xipZ1L3G1KiaKuDTZw9GpM6K/GjgNw=; b=sFcRO0JZSZhuL+MNbRZhTL/dWRwCu2pidNXefWLeI7eNPH6x1T3g79MFMxv1S7nghF VWG0znsT6Y535BP9AVw+FWLl/g0tnGMoLsht/bj0VajlTy/jHyBOYGBozzmeDoB1DGQj FW8LsBtyHO398BLKeCTSGXkQkOIQmR1Vy00VrI+BJDgPJUOCQyR3xcUVqHlWox6+/03t 4uk5p3PRplab1IqiLP0jwLETRcsbuqQkPZg6jgasyZ03LCWIP5YrB/fjhMmaTJ2KzPyp kD4HmxO3b5oiOjgmAms+7Fb2ch6TsI/xMvQXUfWgNWTdeqEAo41L/+isWnnLSS9CbETi Cg9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wx7pend7; spf=pass (google.com: domain of linux-kernel+bounces-19273-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19273-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id cp9-20020a17090afb8900b0028c4b8d56e5si5402168pjb.2.2024.01.08.01.28.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 01:28:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19273-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=@linaro.org header.s=google header.b=wx7pend7; spf=pass (google.com: domain of linux-kernel+bounces-19273-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19273-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 996A1B20ED4 for ; Mon, 8 Jan 2024 09:28:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C65111CAD; Mon, 8 Jan 2024 09:28:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="wx7pend7" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (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 878DF11711 for ; Mon, 8 Jan 2024 09:28:36 +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-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-557535489d0so1733819a12.2 for ; Mon, 08 Jan 2024 01:28:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704706115; x=1705310915; 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=K8+yIEtHZ0QUryEj2uRDfKghYbencYpwk0jvKzor3RY=; b=wx7pend7JWwSISqi45dRWrdGSBYtmnR7KoejbCddDnrGoibeEtm6hbFFyGS1EiXDAl 63otvXfhrTlqSavJRf2rPprQ5k7mLrUYbP62V3+fdzXJj16wRrt9epxzDJkwnr0ewLJN dO1TYrF+AXuRQs2+CJKLxjutngqumQFmZ7XdWtMb2chfi6OooUNgM72QBtQcvPHG4q/U oD3ADdnI9swaqeDO36NynU5Kab/dEL7XqV2h9XckgYcpNAu5iA0gn7tupkgJDpCXA0J0 EV1RnScJTD1W086CQE8q1S1tB0Xhosl/JoQ1gA1ZxMLRKR1i6UhIDQ+b4rR4M0cqflVU kSlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704706115; x=1705310915; 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=K8+yIEtHZ0QUryEj2uRDfKghYbencYpwk0jvKzor3RY=; b=QAFphhF+eAHictqFFbqOl9NwW5cFN9yLwlisIQkaNh/NWrCQaCoFSSCbfjE2eOXHv7 tQI6oTFEj5dtqEt32x/SdrOGGxxYFQELvfCFE3WHCsoO60Jpv6Z5L7y6dcPwhjD++uji AGEjbLMzFJuPrYEWclNT+CoWv2ee4+KxcBW1i3xZVzBoQa9ZYnuxu0OjrJdZGEsm1pzX RnyH1zZc6ZNI9oml/4/HIbnfxxKrq/52MTw78f1CdoqAJTzK7ZGzwJATX44cf8VnbFMm qffDB27d2aLBXAAafGxR4xmjfTQGEPdpnj1XIGdWsIUynyjNDxHoJFj6ae9BP/Tshr9y 55Sg== X-Gm-Message-State: AOJu0YyHKOzfN+5GZxzAjMAIDzuzAHV792ulcY9zHjXkPhW4Ir/jGqoR AIj58quB6pF57DvmA/z3+UnBvxB1KDA9NA== X-Received: by 2002:a17:906:7c3:b0:a28:9620:de08 with SMTP id m3-20020a17090607c300b00a289620de08mr1104625ejc.108.1704706114681; Mon, 08 Jan 2024 01:28:34 -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.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Jan 2024 01:28:34 -0800 (PST) Message-ID: <7ceb8f61-6929-4ca0-83e0-c6534241ca5a@linaro.org> Date: Mon, 8 Jan 2024 10:28:31 +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 1/1] dt-bindings: rtc: sophgo: add RTC support for Sophgo CV1800 series SoC 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> <20240108072253.30183-2-qiujingbao.dlmu@gmail.com> 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/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoV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3jmGxZw4aTc5xoAZBLo0OV+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:10, Jingbao Qiu wrote: > On Mon, Jan 8, 2024 at 4:04 PM Krzysztof Kozlowski > wrote: >> >> On 08/01/2024 08:22, Jingbao Qiu wrote: >>> Add RTC devicetree binding for Sophgo CV1800 SoC. >>> >>> Reviewed-by: Krzysztof Kozlowski >>> Signed-off-by: Jingbao Qiu >>> --- >>> .../bindings/rtc/sophgo,cv1800-rtc.yaml | 56 +++++++++++++++++++ >>> 1 file changed, 56 insertions(+) >>> create mode 100644 Documentation/devicetree/bindings/rtc/sophgo,cv1800-rtc.yaml >>> >>> diff --git a/Documentation/devicetree/bindings/rtc/sophgo,cv1800-rtc.yaml b/Documentation/devicetree/bindings/rtc/sophgo,cv1800-rtc.yaml >>> new file mode 100644 >>> index 000000000000..01a926cb5c81 >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/rtc/sophgo,cv1800-rtc.yaml >>> @@ -0,0 +1,56 @@ >>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >>> +%YAML 1.2 >>> +--- >>> +$id: http://devicetree.org/schemas/rtc/sophgo,cv1800-rtc.yaml# >>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>> + >>> +title: Real Time Clock of the Sophgo CV1800 SoC >>> + >>> +allOf: >>> + - $ref: rtc.yaml# >> >> Why the allOf has moved? > > Hi, > Do you mean allof should be under maintainers? Or other meanings. Yes and the patch which got my review had it correctly placed. > >> >>> + >>> +maintainers: >>> + - Jingbao Qiu >>> + >>> +description: >>> + 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. In addition, the hardware state >>> + machine provides triggering and timing control for chip >>> + power on, off, and reset. >>> + >>> +properties: >>> + compatible: >>> + items: >>> + - const: sophgo,cv1800-rtc >>> + - const: syscon >> >> Why is this syscon? Description does not explain this. > > Because the driver of the submodule POR in RTC only requires register > address and range to work, according to what you said, it is only a compatible > attribute and does not need to be a child node. What child node has anything to do with syscon? Anyway I don't understand that. > > So I wrote the following in the changelog. > > - add syscon attribute to share registers > with POR Where is this syscon attribute? Please point me to specific line in DTS and in the driver. Best regards, Krzysztof