Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp197572rdd; Tue, 9 Jan 2024 00:52:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IHIbwkFh0AJw/GxW2iG8eCYdg9zMgldj1Bi7155DjszxPvnTAlUlCj3eVDfSXziX/sy4OhE X-Received: by 2002:a05:620a:29c9:b0:783:2104:c311 with SMTP id s9-20020a05620a29c900b007832104c311mr3315088qkp.31.1704790352825; Tue, 09 Jan 2024 00:52:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1704790352; cv=pass; d=google.com; s=arc-20160816; b=XhFQL/uAk3c0b7gYsOMq0HhTbfD624K5OaIA8ZHzEq7bgp9NWlvGZ7M5yaUUErENKH bLviCgwgI3BF2ymYGOsurfZ9RXYF6dcPN7pmCKt+aMk9AmbdBxLoB9jrB7coFk0e+lIi BTYAlXXR2c2JAUJq1VM96mYkFxeb6Ev1ik6O8g73sMKNEYHeZE+NLHAeZo63d4+bWcV2 N1VcSdl3L6128l/t1nUGwc4Lygxftri6YmwDTAgXyz6MjPyB8Yiyh0kV2X4nhTIqPZjb K7/AnEK4Batx7/npl6G/g4mAZY/JdQpGYXCujQGkjSbZdWQZIsN3LXpNSJPMzeLQRzvE ZRJQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:in-reply-to:from:references:to:subject :user-agent:date:message-id:dkim-signature; bh=30UmF/SNZGaBDpLXOd9bkZ8kYK9TcPvasrHM8HXBBQo=; fh=5EmbzvBHOVe5+uiYBp8VfLQy4eIAXU454xRG7FiMbOM=; b=Qf6zxGtKA9znw6TBCLDmhLWwmKfWcEaZpUzQyCiJKdg4CpvSLn2VwqnNo7r02HDyfe rJ0b9hX2fpywKo8srQSLMjbmrdJWdT7oqs1d3PnLn212eI4X2JsBSGNTCTTDpncuTQq0 e8dugANRQf3hV8sciGIm36oQ54663mdq3zUpQuMKAXRYVNIwowrIiqbAUiitGxitIn62 P6zkPqc2CBTrk5FumXV/P0hgrWBLWOZhDAKRL0TqsPbg2JsdPGaDexAezzYuXBIjLeQF PbB9TMv220uF08WGNCkBvYtat4LByp5A1YsljLTC7/Zhl81z6DKHdVQybClWKoiWz6KI BGRw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=Y5j1A16K; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-20615-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20615-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ou22-20020a05620a621600b00781e293c517si1473281qkn.471.2024.01.09.00.52.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 00:52:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20615-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=Y5j1A16K; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-20615-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20615-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 82CE61C2383B for ; Tue, 9 Jan 2024 08:52:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8D7092575B; Tue, 9 Jan 2024 08:52:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=outlook.com header.i=@outlook.com header.b="Y5j1A16K" Received: from IND01-MAX-obe.outbound.protection.outlook.com (mail-maxind01olkn2061.outbound.protection.outlook.com [40.92.102.61]) (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 9FCDF6FD2; Tue, 9 Jan 2024 08:52:23 +0000 (UTC) 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=fmYKV9/fRJN6w44RfB9D9vEOOklWYNFsmB179UfiaJlw21G/hUfqN6vGNJ3oX10Qah3+wW4ajIU7fO/hDD/4c23ICG778GM0Zv/UkrDPTwUArUvFYYdj0aewzxtAu7ZOUtpKeaB4cNFxWplPximuzwL8l8T7pCW/5wViS2YtQ8nJ2UjSq9nosEc4CNYnHKU7I9Xqqwlg5LGL/dw3vWZlGCBeWy++eG3KgJhbDhaRP0u3z9DMgsWW7jua0kOLmVgortSxqmOHRPMpoPyYh9WWmiWBt+l968Xx4Jd4xICdJAv8EAut/6dTdwck4RH563HGk+oJylqPRFKJ6HNUYhWP9w== 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=30UmF/SNZGaBDpLXOd9bkZ8kYK9TcPvasrHM8HXBBQo=; b=HE9JVerKjg2pTPN13WmSvVjioqLhwl05EIqQdh5ZaXm0Rq+hGG1PRat+4nQ6p3T51gRo9rX6JcmgILjNiZi+mZa/y5pa/X/JT+X0zz7uezphgyY0EhaqzuNTGTDOYTnECsk1NAhlLK9TN+BCIgcYpON/M3ekR1i+TWeFj88AsYHAmd6SmiFDM0zNQQPz2PM/vpLHO1NxJuOObFr2PHE7KiQMQWYCWdby0GnX1yfkv4ImtE/KMYwNGw84ofAnM0PhFGjBIYPSSxJT0pLsm4UzuRKYb2Gg67j9hMMOHekV+ZQPKPnQ82ekpp6SVOPrKdFxW86jVAg4Gta6riBSNiMivA== 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=30UmF/SNZGaBDpLXOd9bkZ8kYK9TcPvasrHM8HXBBQo=; b=Y5j1A16KOPgOw9+8n6y5EgLrKnwYzLr9V8X56qMHMn5EwD0HUqzjcWguYqCIlHT6lYMW4fRUnQja1seWk8iF5kZijKsqCrgKsmBMVIHIT14e2EELmph0ZOHfHoRdUVYhSNzBTp5r5OVRwkiixK62Que66VKBT38MT+69cGF1ZVKVr+bqI0OyxEqmtibEKeXH9ji+LrJ7E+FSyNAET8jF0K1xgsfiS0zRMP5VUHkZ5dfPTT3Qw7tYlPGKlWD/y9HnWIWaoyvV4c/dPADWDzUYGMJWOy4Xoc7ui70szwMdl53aMrctrUDDbXJ9SJBxkVj91oNEeIyJHE8usp9cWXMjaw== Received: from MA0P287MB2822.INDP287.PROD.OUTLOOK.COM (2603:1096:a01:138::5) by PN3P287MB2314.INDP287.PROD.OUTLOOK.COM (2603:1096:c01:19d::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.23; Tue, 9 Jan 2024 08:52:14 +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.7159.020; Tue, 9 Jan 2024 08:52:14 +0000 Message-ID: Date: Tue, 9 Jan 2024 16:52:09 +0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 1/4] 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: <1e1ef0a0-6639-4a4d-9b4e-50bcee3fb3c5@linaro.org> From: Chen Wang In-Reply-To: <1e1ef0a0-6639-4a4d-9b4e-50bcee3fb3c5@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TMN: [/DJxhCjmcHnVVDSQWtYOv9JmWLyOEP5/] X-ClientProxiedBy: SI2PR01CA0047.apcprd01.prod.exchangelabs.com (2603:1096:4:193::10) To MA0P287MB2822.INDP287.PROD.OUTLOOK.COM (2603:1096:a01:138::5) X-Microsoft-Original-Message-ID: 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_|PN3P287MB2314:EE_ X-MS-Office365-Filtering-Correlation-Id: 6f3a94eb-19b2-4bba-a7c0-08dc10f04696 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 96nXshlr0ryDvksM5f0mUwCNlgyCF29fTOPUYMmo1yuV2tQItMUBqmdi3nsqMD04+iw2dW8C29uJ3JMVuJZGwnumHBht9DIG1W1grDPmzRjDjkTd8SNZosMGI/0tQt0x67Z+M67ALDvEr7aUWQHs/Dbvjiyo8udQQPNMfYBkKSjlpqXdzzjMTJgtddBh2noghmQmOUGyB8xgmyDnhX5BUh4BYPwiM7PW2GgvqNh61bSHJp5DSnZji3OgnZUcCbJOjHUogW4uxu+xz2B++m6fC4xREHXbMiOHWrf3ErIG/qPby7Y1v5OXo3iaXieOs80rdE4/HtrF+Qn6Fc6080BGNjvO6C8TF8R2HJPAdy3p1h6zSPBtXeWVpY2P7WVljDkDS4VpeXohbYC1ZWjv68UG7o7+stnyRHPUqEhFw0Kie1POqjxJI4HDcwgNdHIE/Thhqo16+gtD/P0ZxcVMyJ77wN7O9QLi3HV7wQoApKCmv6zgKKhqaHv40PLhsdS6iyumeddvO4dRQacXegF2GERyVQPYjYn5x1rie1g5JzbZZmtMut6eItd2VOcTFrawpUQZRQLUY53UraopYguNnWTdcoDHqKIf5p8sDjE6eoy5m4k5L0mvxJlVUb4HvcYJDqKnABMOA9j9zpnsBF8NiDcoNg== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?a0NPVDE5RUxEMkFkOHNpMDJJZnMxWHZ3VGxEYi9zTG96YUo3Uy8yU1NaUVZF?= =?utf-8?B?STJ1RFBZQ3NqbTFJc2ZwQlRGc1l1SnRoV3JKblVLcmozNGl5d3lYMDdsR1M3?= =?utf-8?B?MDVtK1Z2dmpOSjRtNEh1TG50b1pJMGVQaUpDOVdQYllYcFptYlFIanh4QWpl?= =?utf-8?B?SDZtUVo0L0lYeTJvUTQ0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?akhPY004ZzFwUVF2MHpZTUVURVcwYm8wcGNjRDhRQlppR2U3Z0NHTjd6WmIz?= =?utf-8?B?cGY5anE0OVE5cTBpQWxndlV1OGdhRWNzcWpLcVc2UjhyU1RyK3BiaGI4c3NX?= =?utf-8?B?TmdDL09yNzcwbHZPS0s5SHljZGo5UllzbzJ6RGh0Yk1HUmZTVUlDelJuUktV?= =?utf-8?B?N0JaRjhZYldwKzZBTUQ1ZTM4aWhSYUsrVC9FNVFxVEJXT2g5QmY1NVVJYVNp?= =?utf-8?B?QTNPZ0ZocFJRVERsV2dPMWJGU2ZLVjI3bjdxakN0dE1OdkJ0SnByaW9FUVZY?= =?utf-8?B?Z2hyMkZNbFFJRnpiYi8wMEFqYXVKa0ZQZ2psYzgvbWFtN1kvS2xPWG1ySy95?= =?utf-8?B?TEZ4UjRzeGdURmYzdEhvYjg2T1RJZjRNNDJtUlVEMU5qbUVpV1MrMm96c0JK?= =?utf-8?B?amxVeGR0NkQ3SUx4ZGxUUm0zdUJsKzhvaUpnZkhQcHVwMDV5UWpRTFBMMTZ5?= =?utf-8?B?SnBIS3pFRzVRalh6cW8rSG9HRlV0YlZqaVdCcHZLMGZvUVJpelhOZE8ySk9x?= =?utf-8?Q?PvvZH1XWzPpeIKDCwCYwgoyaKiKfUF29cx2Z/h6jEcNA=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6f3a94eb-19b2-4bba-a7c0-08dc10f04696 X-MS-Exchange-CrossTenant-AuthSource: MA0P287MB2822.INDP287.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jan 2024 08:52:14.5609 (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: PN3P287MB2314 On 2024/1/9 3:36, Krzysztof Kozlowski wrote: > 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. Could it be that what I said "that can be used by other modules, such as clocks." may cause misunderstanding. I plan to change it to "The Sophgo SG2042 SoC system controller provides register information such as offset, mask and shift to configure related modules such as clock." Is this better? > > Best regards, > Krzysztof >