Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp303329rdb; Mon, 22 Jan 2024 04:57:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IH7SRSWbECpwhbnn9zJ2NhyKzqttj4Ldsmo+ZGnMN4WF26K5l9xF9nMOGaAcUdliGKX5Kf9 X-Received: by 2002:a17:907:c911:b0:a2e:ce58:1971 with SMTP id ui17-20020a170907c91100b00a2ece581971mr1107851ejc.217.1705928261423; Mon, 22 Jan 2024 04:57:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705928261; cv=pass; d=google.com; s=arc-20160816; b=EevJdnYM9UvIzuINste67m2DNiPUiQRtqHS3JEgWpw+7gJU9rVDXP95kYYwUBiWUNc r+7jr4ng3pkaj9s/TY6xy48FQnLYy/0nLVj4/etgsVW5i77QYjLhUFEbI8CH5Wty8vbN vsCBrVcri10mmBx5HITVoJXZ0kBsAiSBj2TWJwiIT2ExRW6fPjYkFBBJvodPkT4LLloh 3JYhjwfJoYmJPqd45LrRqQV5oJyiJoiaJGPnE1mMatSgkTJmB9lS0PxpqeMSDAl+UIry GnikHiE4FvseCNj5uXVSHo/EvlKdBEn/Y4PhrfX2gJ7IU2Q+dHdNs6ILPs34xcfi9sbx y4Gw== ARC-Message-Signature: i=2; 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=ihKeGnpC90MvY5sKmPc9CdNDaRZxILAyOx5j+zn8IjQ=; fh=rGSg19jQQ7YAGk1hdJ9Uu09akFimk01UAl5Z/6SQ3MU=; b=Li6aS4o9ZPsYAHWisNoMxUOr4GFEcIxKzVAtCX4oTK14BCuPQlN/16+v9bDieYCGxD ejSJaF4qEWzwix8gdhH6hk9tzy+7WadAfcpkDGUtpOgDj37KSfw4hyonmFAoJBJrdjFQ AUcNRWiSz1/IpGgX2P9cgXGkufUuy8QmZzw1lqT8p5Bqo+JQ3hQn4j1IL+rFuHSR2bGs cgNQs6UQMKEbXzaoijCkh15gCNPtvTRmOnxD2Vu57syeBnsYD3ISrRMwwgsFoKNp/Vv/ ileZyZJcL+84qu+I6VCH01H68U11osW3a7cORmG/vkWCHJImTVwTbw5Tp1cJQ/YexRmD kzkg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=miNlrR4q; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-33055-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33055-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id o1-20020a17090608c100b00a2f1fce97c2si4340866eje.264.2024.01.22.04.57.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 04:57:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-33055-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=miNlrR4q; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-33055-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-33055-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 EE95C1F27A9F for ; Mon, 22 Jan 2024 12:57:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 21DFA3C488; Mon, 22 Jan 2024 12:56:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="miNlrR4q" Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.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 8FE701E4A9 for ; Mon, 22 Jan 2024 12:56:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705928218; cv=none; b=J3353EdKd69uaAwB0PI/bGy/Q7qRWZ14p9w2FAuazbdpuA2JkBcisH/zY19gRpMCKQHcd4SE6dkSlGFypThWsh8k81lnrMlsTJANUIi/38yjQxPbsEkL00uAX6uboOi5ZCZThMSs29mKnRD+/hXMkR6JCqh2gUVoKI9uToCOcNE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705928218; c=relaxed/simple; bh=BlS0demiSe1JnEnaX+WGuznDALy44iWE0Vz39zYNSps=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=c6cWMzWspA1weYbWNRphUimClkbU7ff9eY4l9P4CRz4/1osHeuFUr+ruMHEnTu7pDnpd5WlCWHcJ/r/b80qlG5SZU4wS7OJMTurwDR3ow8mp4EI1NywJzqs5/ZaDjkNHq0zwO6lubmiV+CrDvXYQqd4CjVgAiivTOMGE+xMvFfo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=miNlrR4q; arc=none smtp.client-ip=209.85.128.54 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-f54.google.com with SMTP id 5b1f17b1804b1-40e9d288f45so37431405e9.2 for ; Mon, 22 Jan 2024 04:56:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705928215; x=1706533015; 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=ihKeGnpC90MvY5sKmPc9CdNDaRZxILAyOx5j+zn8IjQ=; b=miNlrR4q1hGokJr1OzaLsOiABblBee6PCT8lrTN+XrVrEgr1CjDhkRBZktivuzXucE ZxTIb3Dx700i0Mx6C8ESxfIB7yAbYel2JR9JZ6TozgV8MGR9K4xXQhy92TciMYqAymhA 79igvr6t3ZzkKrTOpB+F0wv/eusnc4uLhTifzhahHu1UQnKviXl5u5pxL2V50ipKGloH Ke4qZmjdtc2PHzJtzzLSV4u+NG+cNYccB0WuvoeWxk/qEIC1iBTk36zByeaYoKqCzZqM 5ozPkC5ri5HJ2eGaALbTiLT0oOdUHbxZbnPSJ5De4MQmj4YvHzYy2hSIe+TJHL81oles h+VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705928215; x=1706533015; 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=ihKeGnpC90MvY5sKmPc9CdNDaRZxILAyOx5j+zn8IjQ=; b=KJROTSoN6Dnt9I4UC9oEbtpMbv6PeycT/i+2KilGuRKOti8t9eajlF+GUbP0HXj1jj 98NP76AkvYjmcNVqXSVpY5GWyTnuH8wapubGrGJBzt9rRcrp3ST60xDOxVHygQgQp5Ok 0NF5/5/o/2ryaPMXSemGist8OaoeXgiZ2r03Jqk8tat9WwZNTyftgujty+267QFAUgjH o/0TlOmJBx2/7yujf2h3khIzil/rHcOPbjWcRUkFOOAgTrKZ/K0Zbwm9sskcWRIw4vEX KQsLLYDu0szKjA4fSXP8VJ+GOyDA0fUozyzMC7ajCxs2T1Nv/3U043s1kkfK+lS7IKdM pPGw== X-Gm-Message-State: AOJu0Yxg5VlsKeyKmAm/nXQx3hUv7gsXa1Z0jnulmOl245dQzFEfKZPz hGF3jYfU83FM7BrI3oDOV+beEHN/BlciFmdDL3ZtbauX8dZN/Yg+D+QVLG3BEII= X-Received: by 2002:a05:600c:4fc5:b0:40e:9d77:ae00 with SMTP id o5-20020a05600c4fc500b0040e9d77ae00mr1679900wmq.254.1705928214891; Mon, 22 Jan 2024 04:56:54 -0800 (PST) Received: from [192.168.1.20] ([178.197.215.66]) by smtp.gmail.com with ESMTPSA id bg42-20020a05600c3caa00b0040e3733a32bsm42573762wmb.41.2024.01.22.04.56.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 Jan 2024 04:56:54 -0800 (PST) Message-ID: <7d87c455-7af5-4339-9088-6015d5847e88@linaro.org> Date: Mon, 22 Jan 2024 13:56:51 +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 , 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> 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 TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcnp5c3p0b2Yg S296bG93c2tpIDxrcnp5c3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06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 22/01/2024 11:11, Chen Wang wrote: >>>>>> +    $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. >>> hi, Krzysztof, >>> >>> After some double check, I find we will have more devices in >>> system-control. For example, in the SYS_CTRL area, there is also a >>> section of registers used to control the "General Purpose Interrupt". >>> The pcie controller of sg2042 will use this interrupt controller which >>> is defined in SYS_CTRL, we will add it in later work. >>> >> I expect then all devices to be documented. > > hi, Krzysztof. > > First, I'm very sorry for having double-checked with you for this system > controller and child node issue, but this time I'm sure there should be > no more child nodes except the clock and interrupt controllers, though > there are some other registers in SYS_CTRL section, but we will not use > them till now. > > One question, when you say "to be documented", do you mean I need write > binding/yaml files for other child node? But they exceed the scope of > this patchset (this patchset is for clock support only). That's why I That's not true. The scope of this patch is to add DT binding description for your device. If you choose any other scope, I don't agree and I am not going to provide positive review. > suggest just add clock-controller in this patchset and to add the > interrupt controller in another patchset for pcie support. This > mechanism should be suitable for our expansion. How then are you going to solve the requirement: "DO attempt to make bindings complete even"? https://elixir.bootlin.com/linux/v6.1-rc1/source/Documentation/devicetree/bindings/writing-bindings.rst#L17 Best regards, Krzysztof