Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1831922rdb; Mon, 8 Jan 2024 11:36:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IGkuozeglnivkc/p/v7AVYDeESQoIuDu8OeZvVNMU77qcuCzzUuL0rrlCsV2tb2i+Evx7Fe X-Received: by 2002:a05:6e02:1a4f:b0:360:6e4e:e849 with SMTP id u15-20020a056e021a4f00b003606e4ee849mr5258695ilv.37.1704742610185; Mon, 08 Jan 2024 11:36:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704742610; cv=none; d=google.com; s=arc-20160816; b=HYxLhfmGl5XLxD3jTVoQbG5pV0a0QOp65KWW2a8vOaId0KUfi1SWWPkKNV62z7vvWM snOXL958pO9DuKmpRLj7tYYV0cgj/3aN2+jL2UVK20UL76iIzr6L2pk4c3QbSuXwIgd6 KgjstnebNkGM3qylbcwDPjwzjVRJVLbfF63gLcGBu1ojvo/LuU3DThtggl/c7Cvl9YPR C1IexYymD6kHo5Oud9CA6OvWxAILUX9jedtL5IXqKr6tHK2RytldKR8hYLK3zGslWiGa QXlT5EYM9wjjgIGj4/Iv2qbdza5L54/FRp43ja3lmU6hrGnJ5uVDbgyMJPiCAgWBTj2d LNfw== 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:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=ooq6Y/Bu2G6JvyfUEidd2TCbjg/tonoTWRKQtOf1ea4=; fh=rGSg19jQQ7YAGk1hdJ9Uu09akFimk01UAl5Z/6SQ3MU=; b=kaSnDtF/LQp7AxsT9sfoh+399u+Zjq3zAlVTL0QvEfKqA/Ld/mpP6mZLYM9Jw/KkJD ED4ptjYLzKAym8TWvZ157jC3ed5Hc+4ZrChM2mTHeeSf6TW3+waEcpGfZhMIEQb+KWwa SNke7Xju6igmXK7zlPXkUlJgM1Frz7JR6drpsIGZfA6c56CqFIXdxZZkoeEuLIJSJJP4 KgSqnWihMAcxHD75IecsLtKFRohiBgukijbz/ivOqZv9ymYKBphStte1E2+8ZTV0ARFW Y80NpoLz5gyyca74nUc4DgjvFomNB44+kYQAVF+BluKN9q1l3cHG9onB7tTEV3KbIGvN 1Wmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bu6gTd+5; spf=pass (google.com: domain of linux-kernel+bounces-20047-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20047-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. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id g4-20020a635644000000b005cdf8afb67dsi271457pgm.110.2024.01.08.11.36.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 11:36:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20047-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bu6gTd+5; spf=pass (google.com: domain of linux-kernel+bounces-20047-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20047-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 318ECB2101C for ; Mon, 8 Jan 2024 19:36:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4597053815; Mon, 8 Jan 2024 19:36:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="bu6gTd+5" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (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 C4D0053814 for ; Mon, 8 Jan 2024 19:36:37 +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-wm1-f45.google.com with SMTP id 5b1f17b1804b1-40d88fff7faso23662415e9.3 for ; Mon, 08 Jan 2024 11:36:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704742596; x=1705347396; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ooq6Y/Bu2G6JvyfUEidd2TCbjg/tonoTWRKQtOf1ea4=; b=bu6gTd+57Zt92vtZYfzgE98F8zr16r86kZuzSA2YK4C29YVArXgEFDrBrK/7uEzqq7 bkGH/6/Z+jo8tASdoY3Nx83/Gm6brV6vu8O0s/zCKq9Vyk+E434BgNqYSe5UA7cyldXm FxQQ0awe9M3R1S2k9nZAwjXFHERDTH4PdqYuyJ3v2y65QeMJwBBnA3dBkV27bZ2gubY9 dzzxvQAUZhFtKTWzr9kB26R+SvacnAclXtK/VC/zNUIu7hkjXdKHcfEdv9jbPsXxqXxf hk8hh4hVi+RFk1Vy61ymLEl4LlI/okX9DpyJdkhu1tEkeNpqma/qRdlj1WZOmswkwtZs tN1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704742596; x=1705347396; h=content-transfer-encoding:in-reply-to:autocrypt:from:references: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=ooq6Y/Bu2G6JvyfUEidd2TCbjg/tonoTWRKQtOf1ea4=; b=BUJ1nU+plZ0k60ZW/g/IuPZpoedOnElFW67hLJZdzU4Yg9nUBesnJaWHyVJ91QcVez EAeZio+25BNFArLhY3Y3YhRKdPnW1OZl2DQ0ocZyXjM9XuUmbRR22VFmLDX8gOngM8aj jzfBgnmwVk8+e2R8D35wnJmZV465yf4yV0vvu1YtYLimUi7jYvjKTVS3GOiCsaPAp3lD ybeBCmOvIs/D1oyR45P//C3eM7miNEtPKcEX09V3YlU4NuQJPCxjQw6k5pF/QX4Dj5dl 3H4uIXl2lu2thAXW2YjoCH0Q9jtbkKXppJxmaxuaTHmlx5Me4MoEiVtGLiJw9NshtOMC DvGg== X-Gm-Message-State: AOJu0YzPixwcL6e97Zg4wWYBDLxL8Bxjdjv9js0gE16Ef2Zy2muPJDjR SkiPk4m9/r3QuHB9dwomW2PFI4O3zKfQig== X-Received: by 2002:a7b:c44f:0:b0:40e:4755:a52f with SMTP id l15-20020a7bc44f000000b0040e4755a52fmr483812wmi.230.1704742595995; Mon, 08 Jan 2024 11:36:35 -0800 (PST) Received: from [192.168.1.20] ([178.197.223.112]) by smtp.gmail.com with ESMTPSA id q14-20020a17090622ce00b00a2ace215a78sm184056eja.114.2024.01.08.11.36.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Jan 2024 11:36:35 -0800 (PST) Message-ID: <1e1ef0a0-6639-4a4d-9b4e-50bcee3fb3c5@linaro.org> Date: Mon, 8 Jan 2024 20:36:33 +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 v7 1/4] dt-bindings: soc: sophgo: Add Sophgo system control module Content-Language: en-US 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: 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/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cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 08/01/2024 08:20, Chen Wang wrote: > > On 2024/1/8 15:03, Krzysztof Kozlowski wrote: >> On 08/01/2024 07:48, Chen Wang wrote: >>> From: Chen Wang >>> >>> Add documentation to describe Sophgo System Controller for SG2042. >>> >>> Signed-off-by: Chen Wang >>> Reviewed-by: Krzysztof Kozlowski >>> --- >>> .../soc/sophgo/sophgo,sg2042-sysctrl.yaml | 34 +++++++++++++++++++ >>> 1 file changed, 34 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..1ec1eaa55598 >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/soc/sophgo/sophgo,sg2042-sysctrl.yaml >>> @@ -0,0 +1,34 @@ >>> +# 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 controller >>> + >>> +maintainers: >>> + - Chen Wang >>> + >>> +description: >>> + The Sophgo SG2042 SoC system controller provides register information such >>> + as offset, mask and shift that can be used by other modules, such as clocks. >> "offset, mask and shift" is not a register information stored in >> syscons. Are you really sure, that your system controller hardware >> stores offsets of some other registers? >> >> Show as some example of such offsets, masks and shifts provided by this >> hardware. > > The system control module is defined here: > https://github.com/sophgo/sophgo-doc/blob/main/SG2042/TRM/source/system-control.rst. > It contains some registers related to pll and gates. I do not see there registers providing shifts and offsets... just values. > > Some other clocks registars are defined in > https://github.com/sophgo/sophgo-doc/blob/main/SG2042/TRM/source/clock.rst. > > memory-map is defined in > https://github.com/sophgo/sophgo-doc/blob/main/SG2042/TRM/source/mmap.rst Please fix the wording because it does not make sense. System controller does not provide register information. Your datasheet provides register information. Best regards, Krzysztof