Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2235488rdb; Fri, 8 Dec 2023 02:11:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IGB2Hu2GaxP/MkZ4/bDp40VgRWlm/xWBHw5Sj8W7b/zV2dyGjkxwlHi+vIfkmImPTuTSV9c X-Received: by 2002:a05:6a00:4285:b0:6cb:ccea:e2fd with SMTP id bx5-20020a056a00428500b006cbcceae2fdmr4243730pfb.5.1702030307291; Fri, 08 Dec 2023 02:11:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1702030307; cv=pass; d=google.com; s=arc-20160816; b=VqEo/b0wH+qthqFxzH8NSwEsy+SrslpXLFtURaVFcSP/bmqemA79wzF9u1YKMJrM8z Tg7ScwkghqBPjRTI3QfOnY6BjklIEfw/3IxzxH82I4rtN3biva3Qvz7m2QYYH/6c67zg McVmulqVMiYAZQOBY/mTXltUrmLERi9/tSBukRqsvZo39IvjERBTcO5QLrRkMo6L6ExR C12umHugq5YfmIWhR0i1zCrCCf70UQmhOG0voLZURCAFfkdwS4ulcfN/bVdtIEoiZbHD qz6SoG/0l5xaD6vasdInqGhTpTeqWm0hIYfGHUykSErJxdBtEpdIi0s+nosAOTGcUWfC 4v6Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:to:subject:user-agent:date:message-id :dkim-signature; bh=TgYg+otZzPIgXrw6iExNueZiSlU9FQY3CH64r9iMO34=; fh=8YObQZT9r5Z7lEnBZPdjxfoVPihk1dTP3sm7xraLyjY=; b=k/iv8WuDcMQCg3W2Mk5QJYQqa3Oepu0fldFA49fWq0/OHrA/AOqy0OP4bZnbojCJ9+ ofUYOtN6CRVbSBfA+5Ro/cVTs9jTtxTUB1ha5L9f40RUskTFBYH4EXNCIZiqemHtr98v 8pA+NS/uVkeAy9CwHdTkbtz5FT/T0w4CT2WS7fNv1/7nvoPwMRV4HPRMJCHV/k/t49yK 8XS1j7zBsn1fhjA6GyAJB7lFI6UpYHPVjL+Sd8nJ8Ge5oFFopc9XDMVzvY9ELeaRcdXm 36dMjWhnvk5MtRq84U2/LzcwUxegn6pa9PHsqnElPOZNEZ3QeNa0FUQ2V8VxyI0Q1Bgn jA5A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=sZwQExpg; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id 12-20020a63164c000000b005c661efab79si1278460pgw.112.2023.12.08.02.11.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 02:11:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=sZwQExpg; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id B191F823579C; Fri, 8 Dec 2023 02:11:43 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573562AbjLHKLZ (ORCPT + 99 others); Fri, 8 Dec 2023 05:11:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1573555AbjLHKLX (ORCPT ); Fri, 8 Dec 2023 05:11:23 -0500 Received: from IND01-MAX-obe.outbound.protection.outlook.com (mail-maxind01olkn2014.outbound.protection.outlook.com [40.92.102.14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 998C411D; Fri, 8 Dec 2023 02:11:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Jl7Brl2xiKpaUCmM/OEKg35eJ+OUn/B+JL71COYnukxlCEeU9Dz//jwP4ma9VtAIQcth+QInLPtRkzMHAo9vIufDFfgM5lsWydHo1AUHh/F877Binkna9caG9ewg+PBvSXKC84jA22VTw0B3E7OgrYezgHa8kSWSREcZQ3atu5WXgVAt5+qVuuOsn8pvfDrmGvsjtLD3gh3QORexxPya0q4yeDH/z57WWzHxVctOE5TViUNaPFVU+amAKkoDy2DLJZchvrqGLPKDpSZrSSk0Mt2QznN8Qzr5J1N5DPKDiD7X3qmKfjRfp1q5YNw4jz7lsyxT5SN/NlNpIdyPR4rtbw== 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=TgYg+otZzPIgXrw6iExNueZiSlU9FQY3CH64r9iMO34=; b=KX/1Ra9Fy50vE03j2x/7QlXegQGNI/mqYttGy8kACNAaNuEblpE58K/mia5dF88r0Xwref4GizcjWoTy/2jlOJqwAIfhZjnW7yvgIXdhjZ/2CJh+Mfc92rR5S93iHD2xLz+UfWcFRKPCFEgtHwrfjUg5I2iD1hNnepXIUWH1OaRtK+/RotuuI3y9+BBYUabb4lYflSQPp7SfDgiyozGGXEEbT50K6ClFbO+oCY+h9jQmdCF7CGzqtyS9D1Ib4fHuDptKLPgn2AiXOoNrHjXpJus3xbUtt58kkJnaPbZEwmB2yyTNfEfDTV4MAOAGS5o1Gh7rRro3viROQ6QQ4/jkyg== 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=TgYg+otZzPIgXrw6iExNueZiSlU9FQY3CH64r9iMO34=; b=sZwQExpgqyqx9EPvL/A5SFXwre5nayHW3a30vOpW64KvZx03lkA3mcpD5RTqYFGBeNyBSSOlGqThYOCBYEa8LSoAuCZ0RSXckwHnbLEuaajUQYsIaSA2QxtKy07EeY/3NrrCrXnLxn10gE5t/CQdKlAdFbUb4rlNFBEhfz+2ligMsWYA4Fp7i3MHpARaNosMszT7ZZ8DFu3RAr4HTlAPzgEzKTtg+movminyf0NIXAMxGc4x/4ippCHN7C1EjnTLBihIfYeS3WtEFIOMRjwwleHgRskqzt0HIsCA0x2wYB6HRNf2afxpI7lRwRZLqEu5eHsDHgqBqzxTNznIsWPp7Q== Received: from MA0P287MB0332.INDP287.PROD.OUTLOOK.COM (2603:1096:a01:ab::5) by PN3P287MB1587.INDP287.PROD.OUTLOOK.COM (2603:1096:c01:19a::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.28; Fri, 8 Dec 2023 10:11:20 +0000 Received: from MA0P287MB0332.INDP287.PROD.OUTLOOK.COM ([fe80::b1a7:eee7:e903:9ef3]) by MA0P287MB0332.INDP287.PROD.OUTLOOK.COM ([fe80::b1a7:eee7:e903:9ef3%7]) with mapi id 15.20.7068.028; Fri, 8 Dec 2023 10:11:20 +0000 Message-ID: Date: Fri, 8 Dec 2023 18:11:10 +0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 0/4] riscv: sophgo: add clock support for sg2042 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 References: From: Chen Wang In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-TMN: [e0xQ6LXQxsZe/4PvfhdyNCI4KLKMcBaN] X-ClientProxiedBy: TYCP286CA0355.JPNP286.PROD.OUTLOOK.COM (2603:1096:405:7c::12) To MA0P287MB0332.INDP287.PROD.OUTLOOK.COM (2603:1096:a01:ab::5) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MA0P287MB0332:EE_|PN3P287MB1587:EE_ X-MS-Office365-Filtering-Correlation-Id: 69e88254-1f9d-4ea7-9703-08dbf7d60502 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vdC33G2A5m3pCv+IPz6SNbf8veGbxAwz4hi4RuhYboDMpX0MxgDrp1DhxXwBkB/mYk/ymgojbzYyrwc189La6MsFaWpd2DUacCZwGcmFlhktetpmUxmLtEE2/ochuqIzLVsVEY7jI20eQ3eztkbHEri8TQOBsNGHXqbkwMh1+z+BxCiAlnPT+x5TQXgkFI+dqmBECpmBy4I18kiARXWrlXvEwLMn6JZQGu2s/C7Ys7Vzoi2nm5Y0w+xzVk3dQe+rPLQlxAz+QcffRqalBrbjpfUCEflPr1BrinJS7ULz7YrDislR6J7mqp7Q4FlmbEtNHcpFQJ1vPM7RctS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mZmcXZ3UUE4d2ovZjFUMUdEMFlLeFdGUThKVEZ5K0Nqb3dKMWp2QTllVTAx?= =?utf-8?B?MmttNHJRRUpDSU1qWXZyU3BMOG8vQjJxYUo5N3ZmS0lQZzVXSnp6c2J3S1dk?= =?utf-8?B?NzZRMmtZOWEvKzZySnZYRkhEUkJWamN1YWZHSUFnSzdEbFVHREM5VDRNbXBB?= =?utf-8?Q?soGicSflE0LpLDMn/avjwCHFagEJc3t4kvg4HxEAIrtg=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 69e88254-1f9d-4ea7-9703-08dbf7d60502 X-MS-Exchange-CrossTenant-AuthSource: MA0P287MB0332.INDP287.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Dec 2023 10:11:19.9549 (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: PN3P287MB1587 X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 08 Dec 2023 02:11:43 -0800 (PST) On 2023/12/8 9:13, Chen Wang wrote: > From: Chen Wang > > This series adds clock controller support for sophgo sg2042. > > Thanks, > Chen > > --- Hi,Conor, Can you please have a review of this patch? And I'm not sure if you are ok to pick up this patch so it can be merged into the next v6.8? Thanks, Chen > Changes in v6: > The patch series is based on v6.7-rc1. You can simply review or test the > patches at the link [7]. > - fixed some warnings/errors reported by kernel test robot . > > Changes in v5: > The patch series is based on v6.7-rc1. You can simply review or test the > patches at the link [6]. > - dt-bindings: improved yaml, such as: > - add vendor prefix for system-ctrl property for clock generator. > - Add explanation for system-ctrl property. > - move sophgo,sg2042-clkgen.yaml to directly under clock folder. > - fixed bugs for driver Makefile/Kconfig > - continue cleaning-up debug print for driver code. > > Changes in v4: > The patch series is based on v6.7-rc1. You can simply review or test the > patches at the link [5]. > - dt-bindings: fixed a dt_binding_check error. > > Changes in v3: > The patch series is based on v6.7-rc1. You can simply review or test the > patches at the link [3]. > - DTS: don't use syscon but define sg2042 specific system control node. More > background info can read [4]. > - Updating minor issues in dt-bindings as per input from reviews. > > Changes in v2: > The patch series is based on v6.7-rc1. You can simply review or test the > patches at the link [2]. > - Squashed the patch adding clock definitions with the patch adding the > binding for the clock controller. > - Updating dt-binding for syscon, remove oneOf for property compatible; > define clock controller as child of syscon. > - DTS changes: merge sg2042-clock.dtsi into sg2042.dtsi; move clock-frequency > property of osc to board devicethree due to the oscillator is outside the > SoC. > - Fixed some bugs in driver code during testing, including removing warnings > for rv32_defconfig. > - Updated MAINTAINERS info. > > Changes in v1: > The patch series is based on v6.7-rc1. You can simply review or test the > patches at the link [1]. > > Link: https://github.com/unicornx/linux-riscv/commits/upstream-sg2042-clock-v1 [1] > Link: https://github.com/unicornx/linux-riscv/commits/upstream-sg2042-clock-v2 [2] > Link: https://github.com/unicornx/linux-riscv/commits/upstream-sg2042-clock-v3 [3] > Link: https://lore.kernel.org/linux-riscv/MA0P287MB03329AE180378E1A2E034374FE82A@MA0P287MB0332.INDP287.PROD.OUTLOOK.COM/ [4] > Link: https://github.com/unicornx/linux-riscv/commits/upstream-sg2042-clock-v4 [5] > Link: https://github.com/unicornx/linux-riscv/commits/upstream-sg2042-clock-v5 [6] > Link: https://github.com/unicornx/linux-riscv/commits/upstream-sg2042-clock-v6 [7] > > --- > > Chen Wang (4): > dt-bindings: soc: sophgo: Add Sophgo system control module > dt-bindings: clock: sophgo: support SG2042 > clk: sophgo: Add SG2042 clock generator driver > riscv: dts: add clock generator for Sophgo SG2042 SoC > > .../bindings/clock/sophgo,sg2042-clkgen.yaml | 53 + > .../soc/sophgo/sophgo,sg2042-sysctrl.yaml | 34 + > MAINTAINERS | 7 + > .../boot/dts/sophgo/sg2042-milkv-pioneer.dts | 4 + > arch/riscv/boot/dts/sophgo/sg2042.dtsi | 79 + > drivers/clk/Kconfig | 1 + > drivers/clk/Makefile | 1 + > drivers/clk/sophgo/Kconfig | 8 + > drivers/clk/sophgo/Makefile | 2 + > drivers/clk/sophgo/clk-sophgo-sg2042.c | 1356 +++++++++++++++++ > drivers/clk/sophgo/clk-sophgo-sg2042.h | 226 +++ > .../dt-bindings/clock/sophgo,sg2042-clkgen.h | 169 ++ > 12 files changed, 1940 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/sophgo,sg2042-clkgen.yaml > create mode 100644 Documentation/devicetree/bindings/soc/sophgo/sophgo,sg2042-sysctrl.yaml > create mode 100644 drivers/clk/sophgo/Kconfig > create mode 100644 drivers/clk/sophgo/Makefile > create mode 100644 drivers/clk/sophgo/clk-sophgo-sg2042.c > create mode 100644 drivers/clk/sophgo/clk-sophgo-sg2042.h > create mode 100644 include/dt-bindings/clock/sophgo,sg2042-clkgen.h > > > base-commit: b85ea95d086471afb4ad062012a4d73cd328fa86