Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp406261rdb; Tue, 16 Jan 2024 04:15:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IHol0n/yZL4jIR4m0VO/34ZtsZiY+tV/Q/UAax8xFzl7SutH9jyWI6JnudMuqe8fZd9g/RB X-Received: by 2002:a7b:c4ca:0:b0:40e:6a1a:8a00 with SMTP id g10-20020a7bc4ca000000b0040e6a1a8a00mr2969773wmk.78.1705407342702; Tue, 16 Jan 2024 04:15:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705407342; cv=none; d=google.com; s=arc-20160816; b=csq4AR8ky910npMz4blrWJXpaNRM72kRLNl9I4HCZvpauMhULHnQhXmpFxb0W/JILw 0ol2py3/Ugy2rRd3cdL/6aaIkjWaLXGtmsp2KKmdyap8clzi+RHmsbuSqOIFzDUQdNu9 ueXZfnzsVo8sIyaD7S6tggfHrLH7Rc/LTYBjZ+9l56JBAMI18Azp+uVjvtv3PkYntZT0 UFsng4pNkRdo3x3PQ+x7TApiDmFptv41A3k9+e5ShGl4+JLdDRiGzUriREX9qsV6q2pm xQj85IikUTAOwP1RZBtx0P82e67R5d8zWvDN0qOTyS107PB4wZJak5G+XXHoNapy8Rkt tMoA== 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 :content-language:references:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=/kk/O+CBQq1j1li3fi1pfcRqWXCdCx2SuioSuSfFP1w=; fh=rGSg19jQQ7YAGk1hdJ9Uu09akFimk01UAl5Z/6SQ3MU=; b=QA5/Abrmpg7lbS1F9C9TBIQ0CrNB2kRo2eDBW6KIaFGXWsglUh613qBZLeFbbI2Aov ifZ7MCeTllqiVph4lsQXEWxtfNYYaBRtnXql/+hbtBuPBkJdAv7fSAcIcurnZ4M8HkqE MFDzIhMb1wqPcNdEArhjKsuuxb13Fh5SHAsvPGNJocVSl1kINaNSpqb/CBvid6QSnxpC remGFaBKpvt+8L6ythVIWh28G9jn1/4D79F/j74+sfLUVIJMkA96yJn4M6g/JzfjE6+A w99wAenvzO1TNPNhYkobyK+4pXyaOgazL7G66Ey/WbrpWGL+tTjsxPzMcoG+DehrCxIX UyoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WtgTVIhA; spf=pass (google.com: domain of linux-kernel+bounces-27368-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27368-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id u6-20020a50eac6000000b00558f1ebd014si3180269edp.627.2024.01.16.04.15.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 04:15:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-27368-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WtgTVIhA; spf=pass (google.com: domain of linux-kernel+bounces-27368-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27368-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 40EAC1F23EBF for ; Tue, 16 Jan 2024 12:15:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7E18B1B97F; Tue, 16 Jan 2024 12:15:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="WtgTVIhA" Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) (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 DB0121B81B for ; Tue, 16 Jan 2024 12:15:30 +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-f49.google.com with SMTP id 4fb4d7f45d1cf-55790581457so11210248a12.3 for ; Tue, 16 Jan 2024 04:15:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705407329; x=1706012129; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=/kk/O+CBQq1j1li3fi1pfcRqWXCdCx2SuioSuSfFP1w=; b=WtgTVIhACCEs5mx+Ws04Fc03pyV4aqMKnkNBNz6973jwJAwW6xjZ5KG+OWteNJkftW RCUE689CkQ8C6nQ78q+tzRvO9xMp5XOnZEwLyLeMqdlQDKhX6hfVu+fWS+zsAvwjcmsx p82JWtATHO51ecFOnhykc9qHsGiOb5XDyaZAhmdZJng2dW4w6+c4AmRZAY6EbwAhklPf 9ceqm9Hox1VN5BmRCQRj+Mdo/EdW2DAxyj3OeY9zTZfKehhlBoMCbuaycCY67EtAb4VI oRF3k1zNTEV0y1aW2hyBMnmQFLnI2fr3EmdYiLa1/1/CRAq78opoPDXo23aInKBw3sMh OfXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705407329; x=1706012129; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/kk/O+CBQq1j1li3fi1pfcRqWXCdCx2SuioSuSfFP1w=; b=v/8B6fxLvPd7yAoYptjW+B8DsJY5vx7BEnT9tLVyA+knt0j1EDvKgftHfJU04FlCMu da8FqR3US3A2agONoDzi10d3VWaohfugluvR2cRqQt1ec5rV0e1BErR156GZga5Z+7vx LxhPqusE+iI0vFE+aBH7m5DCQzdEZrEaKcimdr9V2lvYBNnvqsBSrmIE5UnCSBkLvFeA 9AqE4pvjcqhXwTw8Du/JI2w7AvkL5o0Q1J/bG4auSIIMFIfE3XDB++EPjfAOGE/dgrU0 FmKxaEcBgWvFNFClLoKlrVA8oJYKud2dSuKaLRvcxgPymuw72Z8HthHvZIsI+1vlRoGs Wc2A== X-Gm-Message-State: AOJu0YxVvikfVQPeOtvDXuRxk5YoyaLLEH12gHqbXgFbPeCSx0FXfk7w MtUAFCSmI1iq9fUsPVDwi/VpOK2lbb3kzA== X-Received: by 2002:aa7:d4cb:0:b0:54c:e28c:2086 with SMTP id t11-20020aa7d4cb000000b0054ce28c2086mr3923869edr.38.1705407329028; Tue, 16 Jan 2024 04:15:29 -0800 (PST) Received: from [192.168.1.20] ([178.197.215.66]) by smtp.gmail.com with ESMTPSA id s24-20020aa7cb18000000b00558e38d4c6asm5046806edt.93.2024.01.16.04.15.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 16 Jan 2024 04:15:28 -0800 (PST) Message-ID: <52c0b805-bcbb-47e5-bbac-e527e9dc57a6@linaro.org> Date: Tue, 16 Jan 2024 13:15:26 +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 v8 2/5] dt-bindings: soc: sophgo: Add Sophgo system control module To: Chen Wang , Chen Wang , aou@eecs.berkeley.edu, chao.wei@sophgo.com, conor@kernel.org, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, palmer@dabbelt.com, paul.walmsley@sifive.com, richardcochran@gmail.com, robh+dt@kernel.org, sboyd@kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, haijiao.liu@sophgo.com, xiaoguang.xing@sophgo.com, guoren@kernel.org, jszhang@kernel.org, inochiama@outlook.com, samuel.holland@sifive.com References: <598b1026fdf9989bc48e5e10d1034b37947d3b80.1705388518.git.unicorn_wang@outlook.com> Content-Language: en-US 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/BIfXXf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wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 16/01/2024 12:37, Chen Wang wrote: > > On 2024/1/16 18:06, Krzysztof Kozlowski wrote: >> On 16/01/2024 08:21, Chen Wang wrote: >>> From: Chen Wang >>> >>> Add documentation to describe Sophgo System Control for SG2042. >>> >>> Signed-off-by: Chen Wang >>> --- >>> .../soc/sophgo/sophgo,sg2042-sysctrl.yaml | 46 +++++++++++++++++++ >>> 1 file changed, 46 insertions(+) >>> create mode 100644 Documentation/devicetree/bindings/soc/sophgo/sophgo,sg2042-sysctrl.yaml >>> >>> diff --git a/Documentation/devicetree/bindings/soc/sophgo/sophgo,sg2042-sysctrl.yaml b/Documentation/devicetree/bindings/soc/sophgo/sophgo,sg2042-sysctrl.yaml >>> new file mode 100644 >>> index 000000000000..7b50bb56b4cf >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/soc/sophgo/sophgo,sg2042-sysctrl.yaml >>> @@ -0,0 +1,46 @@ >>> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) >>> +%YAML 1.2 >>> +--- >>> +$id: http://devicetree.org/schemas/soc/sophgo/sophgo,sg2042-sysctrl.yaml# >>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>> + >>> +title: Sophgo SG2042 SoC system control >>> + >>> +maintainers: >>> + - Chen Wang >>> + >>> +description: >>> + The Sophgo system control is a registers block (SYS_CTRL), providing multiple >>> + low level platform functions like chip configuration, clock control, etc. >>> + >>> +properties: >>> + compatible: >>> + const: sophgo,sg2042-sysctrl >>> + >>> + reg: >>> + maxItems: 1 >>> + >>> + clock-controller: >>> + # Child node >> Drop the comment, it is obvious. It cannot be anything else. >> >>> + $ref: /schemas/clock/sophgo,sg2042-sysclk.yaml# >>> + type: object >> Why isn't this merged here? You do not need the child node really... >> unless the clock inputs are specific to that clock controller and you >> will have here more devices? But where are they in such case? > I don't see more devices will be included later. It should be ok to > merge them into one. >>> + >>> +required: >>> + - compatible >>> + - reg >>> + - clock-controller >>> + >>> +additionalProperties: false >>> + >>> +examples: >>> + - | >>> + system-control@30010000 { >> Why did you change the name? Please provide detailed changelog with >> explanation of such changes. > > I changed the name due to I find the > TRM(https://github.com/sophgo/sophgo-doc/blob/main/SG2042/TRM/source/system-control.rst) > call it "system control",  so I changed it in v8. > > Which one do you prefer? I'm not sure if there are any requirements for > this? Node names should be generic and follow common guidelines, not match your TRM. Please use the same name all other devices use for the same class. Best regards, Krzysztof