Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp348676rdb; Tue, 16 Jan 2024 02:06:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IFhTR+bYgYqsqm4uYdejwW2uJQrpxcvO71Oqx1tH/TEPxUlEaHGonCYyOtm+ko6M7v9YQcq X-Received: by 2002:a17:903:1104:b0:1d0:cda5:d05f with SMTP id n4-20020a170903110400b001d0cda5d05fmr4508912plh.83.1705399576175; Tue, 16 Jan 2024 02:06:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705399576; cv=none; d=google.com; s=arc-20160816; b=giWEBMh1BKWqVJfrgQJKR+QyKm9w3/J/DqZ6BFPZxvL38NieqKF2mLAy2SGA64xp/e tlykHTRwE9gVXAxwJcK436CwrFlvv9g/bNHVUJLI9bkYoLuVh/IuT0siqWxK6BKlAG3o ToUBqnDdmxPqac9VjWa0bZBUM669OtlUj2/ZXS+nIpS1NO3iIvy7p/o+uX7l7PqRRVa6 bWiGl8Fn5Z5oJmu4+EOdz16DbOj8HA4txSwbm5QPEdCvzkriUxevOaJGVtA8yCB89b94 krwEfLdHXrcQ6f5KUgutc0eT+eGcnlz8z7oQwhIzCQuImzGEaGG+vjQbUGgUvgjy9e6i J6cQ== 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=OZTIIP3sJf0VlBiBgQq2oPnZChL1jOKPVa8eOrSDmuM=; fh=+0SQFEhSgKo0N7kfA+6Fqx4INrv3QJPVu6+KudaiXcA=; b=L7AMFfddl+8a05z006Fydf6A7NjUdwWyrLfxszkvInNPuiduVrfyWeEniMXqVtIkyR Qvey9bw7ud44Du1J1lydwpCAazS3FEMZdK2kBE4gPGuu62NDxlwTEDmsPJlt2q2x7bR+ 40I8fzAwwGRFpIf69Rhf1/4Gasg97y3D7qyGk1+uQj+bf7Al+krHWelWBEF5UERZfsfl XHzFeO2UGeybnBYPfkkVw6Juz3Xx5dk50BDomlXLUZNyeYkCMwfHREhAh32Sdm6rpg9l 63St08v/bwBDhThNUMh6NiatjlbJuWvEPA5DXYgPk5VjrdGXmgFC3nA4wbIVZjcmrKrp +Y+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VACNRWP3; spf=pass (google.com: domain of linux-kernel+bounces-27234-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27234-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id le12-20020a170902fb0c00b001d5ece169ccsi548761plb.171.2024.01.16.02.06.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 02:06:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-27234-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VACNRWP3; spf=pass (google.com: domain of linux-kernel+bounces-27234-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27234-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id CBA93284A1E for ; Tue, 16 Jan 2024 10:06:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8DB1E134C7; Tue, 16 Jan 2024 10:06:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="VACNRWP3" Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (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 05D8F13AC2 for ; Tue, 16 Jan 2024 10:06:06 +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-f46.google.com with SMTP id 4fb4d7f45d1cf-554fe147ddeso10835298a12.3 for ; Tue, 16 Jan 2024 02:06:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705399565; x=1706004365; 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=OZTIIP3sJf0VlBiBgQq2oPnZChL1jOKPVa8eOrSDmuM=; b=VACNRWP3k9Dh3+P4YFrqJfXPwkGzBqOmGMmM3KYsCw09qVTxnxUVQNh1P3Hr29DKxm rACIQX3rm1GMeMYxyk4gZiHtKSgq7UlptbZRe0wRDCtlXGPfoCM38OGa1cN9c+uEZAdn qxtJBR72YU0n0KYaQPtGN/LAVo/OGQzJJrt8Pxqrgi4C+inzkXBvMOVZWgsfZFJLJzNt A6oMgHaS7CB5o7wgLbBvDsJNTFwQnWXFc6ZB7LZlaa5rOf34ooGpKOKHnbbQsfUaa3XC e+ndjdy7Nk13dOTzuWWQlveaVTRN1mOvz5aid+0yZw0LLFc9P9+/yhp6dirNNN4TqadH 1+Xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705399565; x=1706004365; 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=OZTIIP3sJf0VlBiBgQq2oPnZChL1jOKPVa8eOrSDmuM=; b=M3G0v46Xi7fFJYlsnH/a7B6DIrQXWv4hgxWHeQa7tU93RgOP9RnWyqs0PL7h6mKfAy vvR7q6fOkPcCi6CSo3VOH6Uu7yolCoL2fklm4Ya5oq4oN9aiO7o2ozYdITmSPPNuTGhr IBUsLQF++jq/GMLuxmPojQ6hk/Q3TU8AMBgIO4JfXIJ6ODyEbsajsdhz4FKDlPwUmdR8 XcM5C1tM/BoYiWk7qCa1jmzchF+oHCdftBtILfKLYjDJRo5giewke/SKBo6h5yh3+GE6 7Jp5+Hg0WhR8gx4QWTIKRfolsMLyDRMfAjVFl7k/xFH9/YIHlMTsOgHyvn9/SOy/G1q8 8Vzw== X-Gm-Message-State: AOJu0YwkdO4n+0ge7aUwESm8UJPRDVv1Szztq1XO8UzZGs+4/TE6gESo PY2tuUG1J10VUDK9H0uZaVrPyYD027d42A== X-Received: by 2002:a17:906:e2c3:b0:a2d:4e55:1d4f with SMTP id gr3-20020a170906e2c300b00a2d4e551d4fmr1063543ejb.153.1705399565214; Tue, 16 Jan 2024 02:06:05 -0800 (PST) Received: from [192.168.1.20] ([178.197.215.66]) by smtp.gmail.com with ESMTPSA id g17-20020a170906c19100b00a2b1a20e662sm6234716ejz.34.2024.01.16.02.06.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 16 Jan 2024 02:06:04 -0800 (PST) Message-ID: Date: Tue, 16 Jan 2024 11:06:02 +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 Content-Language: en-US To: 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 Cc: Chen Wang References: <598b1026fdf9989bc48e5e10d1034b37947d3b80.1705388518.git.unicorn_wang@outlook.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/B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+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <598b1026fdf9989bc48e5e10d1034b37947d3b80.1705388518.git.unicorn_wang@outlook.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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? > + > +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. > + compatible = "sophgo,sg2042-sysctrl"; > + reg = <0x30010000 0x1000>; > + Best regards, Krzysztof