Received: by 2002:a05:7412:7c14:b0:fa:6e18:a558 with SMTP id ii20csp231154rdb; Mon, 22 Jan 2024 02:12:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IE9MOZWyR73H0g3Ibh9Ah/nnp2tWDxwaDBDR99HpekDsbH3x4nt1oQFcUyYrgdIyXVV1d9Q X-Received: by 2002:a17:903:2291:b0:1d5:dfc6:c32d with SMTP id b17-20020a170903229100b001d5dfc6c32dmr5311351plh.63.1705918364234; Mon, 22 Jan 2024 02:12:44 -0800 (PST) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ix13-20020a170902f80d00b001d731fb8838si3598635plb.336.2024.01.22.02.12.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 02:12:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32710-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=@outlook.com header.s=selector1 header.b=GMUS63JJ; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-32710-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32710-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com 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 A05C12816CA for ; Mon, 22 Jan 2024 10:11:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D00CB3A1AE; Mon, 22 Jan 2024 10:11:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=outlook.com header.i=@outlook.com header.b="GMUS63JJ" Received: from IND01-BMX-obe.outbound.protection.outlook.com (mail-bmxind01olkn2066.outbound.protection.outlook.com [40.92.103.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CB1BB39FE2; Mon, 22 Jan 2024 10:11:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.92.103.66 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705918298; cv=fail; b=IlL9wVIEGvLe3WY+jvm6+QctO9Ns+ImYfghx1744ClPMSYmahUhQVJMrGSP+ql614A4V4wYVgZLLLz/o1fJSJZeuFw4Auzk1YbpkbBybxGZqGCrNpQwO4C7Jln92bXNI8+PtHs81QNd+v1W3FErR+2RTz52Oc93PhCTBfh962T0= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705918298; c=relaxed/simple; bh=VCBaVCzDV6K55DRCttt2S3ZCHo9ve0utSKJh+SyFjNk=; h=Message-ID:Date:Subject:To:References:From:In-Reply-To: Content-Type:MIME-Version; b=fJOJSZm8bWnU91fkKPO2DQ9WhWai5FnTPYIpeYuMANu/r7Jai4A3iacywG0BknkXQ7Eq6NJR1Zh3ZBvpfDIUJ76ayHTRwAb7OKiVv6ZXaj8tN/X4z95qoPl/uaYJS1eZMd9BVFWrgNbnYW0rJtQpZXx5HKX9IiRkIZxgBIPLs8I= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=outlook.com; spf=pass smtp.mailfrom=outlook.com; dkim=pass (2048-bit key) header.d=outlook.com header.i=@outlook.com header.b=GMUS63JJ; arc=fail smtp.client-ip=40.92.103.66 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=outlook.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=outlook.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mSQ8FXApYv5tXkn+mvPY/mM2tcioQXdIXOl7Tdpwr/O7liW4grBw82dTRhKCc/dbG73/DOv56tG8nn0bE5tAN7PiGHIQeO12awHXMSzGWPbVGgGqHCwOe2nwOsunugUnIJXXy21MYjqTwnw33vHq94D34FZ9FteBtXWGH6mPg9Q5Qd5mFWRN1xIwwiBHlUUgonsy8FlSwT9b52Tbgkzh8OYidylrxI9OxYkTLKi9X/OhDb82tau0BQnxG15Jr9vhkgcFFp4GpjVy+uNTgY1dHGOvx2cSTjxRB11WiQonYpqNuc1u7/aX7fZ6AZ08XCVm13LvmAdPGAgKBmUIJSUusw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=iTokLvTji4opG+w33J4WtYo7phhifYrfwZVWc2XLfYQ=; b=UvjcUnFOD6q2mww2f3McOw7af/PXHL0v2QRn8uKojPvu4YGNOwNUpQiEwpU5RvVoHMr1AdCOAWBfSpOy0Lb94JMGtIiIOOdxzg5a9N9VTtKge8DcN/N2GuVRRiS4kHb8ceuf0yrWGlOCpz56hilcdpFRUzn4OgwRLJPvyHgHS6Y9qJra4YLmxwLKxW0N2vf58EanzYCQLaZ+bGqMmCu/+3kPts9L/5Tqt1PTEEaS7T0lVd/psLUq8kC6HSHmGrorbw7VgGYsy5ZqHS43RfVAO4A7VmFu5Nk0z3D+nQ8+SBwWDZecoZPGLCGkCOC95Q/4RdISnv0BdcbrqkU+TRP/HA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iTokLvTji4opG+w33J4WtYo7phhifYrfwZVWc2XLfYQ=; b=GMUS63JJXhSRGZohAjaJWBqw1mUdHyN+n+ZkoZre4OFAqtwRoiQjza+M/WJKUITs8AzG4DpSpMKHLIgQtTSPN7v1qBKXZmVVM79hdR2Qa6YxNYg0f0pl3VPHpnBQqUriZiNDqJwZTqZ3KRCzjKhigacC6M41LIXfQ/f+zOpGzQTjyCoqkiqDFv8/+tLDmDFuHHGqNsEFwy4kyI3nbrcvGmXubvMP9ENyqOvaUvERRFqYOXI3zAbTPC4ZWKX7iw/q5RMu/hjp2ePt0+beoDSpH+K85Tt/QcE1npilQZ06haleQOo+pzR8u6BIQMYrThxEnTe1b7P29nEGMY4JcsEv9g== Received: from MA0P287MB2822.INDP287.PROD.OUTLOOK.COM (2603:1096:a01:138::5) by PN0P287MB2152.INDP287.PROD.OUTLOOK.COM (2603:1096:c01:1b7::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7202.32; Mon, 22 Jan 2024 10:11:28 +0000 Received: from MA0P287MB2822.INDP287.PROD.OUTLOOK.COM ([fe80::6e80:69e1:f2e7:d70d]) by MA0P287MB2822.INDP287.PROD.OUTLOOK.COM ([fe80::6e80:69e1:f2e7:d70d%3]) with mapi id 15.20.7202.031; Mon, 22 Jan 2024 10:11:28 +0000 Message-ID: Date: Mon, 22 Jan 2024 18:11:20 +0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v8 2/5] dt-bindings: soc: sophgo: Add Sophgo system control module To: Krzysztof Kozlowski , 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: Chen Wang In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-TMN: [n3fkDQygIzdUiN28vMEsfXKhKBijUAwV] X-ClientProxiedBy: SG2PR01CA0197.apcprd01.prod.exchangelabs.com (2603:1096:4:189::8) To MA0P287MB2822.INDP287.PROD.OUTLOOK.COM (2603:1096:a01:138::5) X-Microsoft-Original-Message-ID: <06dac627-f144-4ae0-a8df-fbb494aec2d2@outlook.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MA0P287MB2822:EE_|PN0P287MB2152:EE_ X-MS-Office365-Filtering-Correlation-Id: a3195ace-9d73-462d-5c6e-08dc1b327e57 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Toi/Y6h3G7mQdQiMSEBZy8diE/K/CAs5CpGBXepi0GDTG/ZVhsN6tuhT2lStXx+9XE/C1ExnHc7RuSnM+nBZHgH+8Bho4Sd5UnYGXLoyHPyZ5dj1LEUTc9NBGaeGNS7hWNwMocc707O7zncMDr2vWJkB5fO/C1pE9A21OoiIglPg6dqs0HcrEe1O17wtBjTY6UwFBS5L297bkAtT+3iPVidOhzjQj7cRQoQ4KBsMysCkvCJOoi9pNoG/B6xCflCaQbMgIfjO3OC22aWCHJRsccGXp28IphX8Bh+/8dmpOpSzufbSS0Nu6qx9NSkcJHRNZgYzlEFAIFW88jPDZ6SBELhb7xmOiyTkM3os6xdn80XQW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F5TlpWRkpWSmhWYUJhblJTYURJWjcvTlN1NWRi?= =?utf-8?B?SUZBWjdUbnRaZm9TSnNsdmEySy9tT3VBekYzNVhkYi9Fd3BKRGpXSGRHZXNy?= =?utf-8?B?ZzVhUmhTLzVuZjJMcUs3bEkrcHoyUW5KckVlYWZxd2FEVmFWaTZOMWcxMU15?= =?utf-8?Q?VorCjY4D7XFoVn5R0e+HZCNWswde5f07NZ+OWGbOOvHU=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a3195ace-9d73-462d-5c6e-08dc1b327e57 X-MS-Exchange-CrossTenant-AuthSource: MA0P287MB2822.INDP287.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jan 2024 10:11:28.4067 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PN0P287MB2152 On 2024/1/22 16:10, Krzysztof Kozlowski wrote: > On 18/01/2024 06:29, Chen Wang wrote: >> On 2024/1/16 19: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. >> 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 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. Thanks, Chen > > Best regards, > Krzysztof >