Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp77223rdb; Mon, 4 Dec 2023 21:36:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IFu+NJ2evnc0lA+4ixQK46OInUxmv+TnvSM340hRuKOaoOElp4jh9ZmtOpNSBb0yBx5PHkQ X-Received: by 2002:a05:6a00:2911:b0:6ce:2e2b:17e3 with SMTP id cg17-20020a056a00291100b006ce2e2b17e3mr816330pfb.7.1701754571249; Mon, 04 Dec 2023 21:36:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701754571; cv=pass; d=google.com; s=arc-20160816; b=U1TrUHtcbuuCMfaWBwQ4SgJ3hsqi8y9QhpAEkVzGEX6OVk7kJ5xvtjQXBhX3Kg95DS bL7358ZHKv4n3b3FafxgkLOjGqoWW5BZnOU4ZaXGBCN+PTaE+TA+ePboGw1KRjeBx+3D pR+IdvB3agnOLCqTuz+cCkSFfE+ZeUBp/QHdLKpQ3lAlddR+kkdOeI/hv5FKmhR1BGdI GLrxDwoLczyxM5O6msr3tQwDIn8eSwij+Nsbg3LANlLQKiXRUHaKHQginhMxp+qpBLKo 3/ewAEvQoOZzaMFZuHMhkSz2mWQkZJxcVI70FVOkXYdIwvDc3pny2obuIAhLCAwo0vdt INqQ== 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:cc:to:subject:user-agent:date :message-id:dkim-signature; bh=9LyD8TxeK9QC4uvDhMRO4bEj18VIqFR+zp5cNEbI+Q8=; fh=yIDLhetTP6hHdGyKolK1oGfCgmTun/F/ARnxjtlS8fM=; b=yOOUrN0W8iVLTJx2zUi0rIXDO0D62zHc5rMC2VfR6E8qi0qitiWIuSF2lZHpoeIfc+ /a8ooybnXEnv6jJHRVPthoiDMW3IfmYtksUqOz4bfUQJOpi9apM1ElQujeopD01H7vb6 b2S6Ie2cHxpTTXZh+K2irh1hJvhtvW0Bc19jwaejhVDQ9umhYsTVkCRBtAAYllI+Qx2z EIfZCxg1QiJ3RSAS9HaLzpgGNZq+79lKDPn6jwLq7O1Qbt+ABd6FOCbPziS2sQcTWdC2 1QYn9aipEuuqt/Tk2T/2PJ7yXU4PL0F0oPMMIIuGw8u9TeSgVY6jPqw9x7oOfchzX9wg DUig== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=Tz8jVGk9; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id bj6-20020a056a02018600b0057884435a71si9610661pgb.396.2023.12.04.21.36.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 21:36:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=Tz8jVGk9; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id EAC0F804392D; Mon, 4 Dec 2023 21:36:09 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230074AbjLEFgA (ORCPT + 99 others); Tue, 5 Dec 2023 00:36:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229611AbjLEFf5 (ORCPT ); Tue, 5 Dec 2023 00:35:57 -0500 Received: from IND01-BMX-obe.outbound.protection.outlook.com (mail-bmxind01olkn2060.outbound.protection.outlook.com [40.92.103.60]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDD11109; Mon, 4 Dec 2023 21:36:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Qn2+G48cjt2Wa9O3TmkfWCiBDTtwSMtGqv76WfKA6PSHbFbqqqvJyi23J47EPxkEkGfEpOP0EwGrEFpG30nhL++VQ+DzRPbLwpp1QNgF98MJf9SXjPgDETxDNuWjITd5GVeXXZpF27TRfDUtcLXvI6/Pr2ebQ/221ClUgQOS/bzmrxppHVt7WCY4vELDY6q+bonB8iMZGiBmVa9y3Tz5OScRsb1FmtIvymS01DhQVtXh4WDK0tkQKHBkK0LvLCmzaod1LTPdfmrF4kJmZ1qb3xjknCc2DTBNfxKfUWtIfnlbeDQ6KfSW/8ccJRRz+fPgzGdK04aZ1ysjBL3FDCP2ZA== 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=9LyD8TxeK9QC4uvDhMRO4bEj18VIqFR+zp5cNEbI+Q8=; b=Sgk4FcGQ3k+Dd5N8eOpQ2TLf+tXt4rI86S18VSnETZaurEdLnD6TPMScl2cU6DMp5hQbkHU5IMO0ksPTvnIvOsps9qfpToOhH50/Ssi/xOjZlTrz6voijLR/sLOCGS45Qyz4chGTNAFPbwskDYDPLZLuG2tmOJvJORiVJB00Ol/0aFCkt2iG0oyBCQ5VdnlcCkCyhPFgH8IF21O/9oceoYOnLcF1TQBL/Ng+lM8dNHwpCVHJ13K3l5spmBcmSo7Xx63OGVwXTXR23yH642I8rtT7+K0P8J5qyxYHwTDfkH2FKFjhzLQkJhNYb49JRDQggNiC3EMUFicAWT5X6cma5Q== 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=9LyD8TxeK9QC4uvDhMRO4bEj18VIqFR+zp5cNEbI+Q8=; b=Tz8jVGk9wMztuHjpvUfSSHG1gE6IjvWb/3wGKxU1kDY/N366gBzHavdWMS4HkHK+WcqDi5ESZJe1Z7N3OJMkJ+xfeLOHIInm3pCgIJCsribAiRJ6T50GtJKZoIMTgf1kuyNVONTLe+e/1kCcoLqHydhbrYs+U8BQ8hg+YR8mxX9qz/NuHwdGx4U1zhiEC/mYL8fgz5iocp/3W8//1caEkxI+FftnqntjFoNChLi5Jck27w2c4kxoadrHqu9Rkwck7im5aLeLB6p6GIN8lPJ8xBhdALQjyiqoT/3cugeXZ3kWHUZLQm6zPryNjq8TT373jjShD37GRBBwUAnKie1WPg== Received: from MA0P287MB0332.INDP287.PROD.OUTLOOK.COM (2603:1096:a01:ab::5) by PN3P287MB1847.INDP287.PROD.OUTLOOK.COM (2603:1096:c01:19d::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.34; Tue, 5 Dec 2023 05:35:54 +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.7046.034; Tue, 5 Dec 2023 05:35:54 +0000 Message-ID: Date: Tue, 5 Dec 2023 13:35:48 +0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 3/4] clk: sophgo: Add SG2042 clock generator driver To: Inochi Amaoto , Chen Wang Cc: 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, samuel.holland@sifive.com References: <50302e6035a9a83b002d51e21d39d3890d27290c.1701734442.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: [AI7Q7sUt81d4CL8FPu6XmIuNP8cthvfj] X-ClientProxiedBy: SGXP274CA0013.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::25) 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_|PN3P287MB1847:EE_ X-MS-Office365-Filtering-Correlation-Id: ab432cbb-313b-4065-198e-08dbf5540c61 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AkBQ9iaSb4asw3QX0eTWiv5i6QSIvwET5/1kDZTSPGrVZ1iagSZD7IvWy+5G4Dlum59bCA423GDmeonFao6jvT6eEGRE2bFuCxs74TK7BALW7zvGy2wPfDUHBPVvxI1NM8s3kx39hvIl6rON5RCf72ZPmX5y4l3UWfMqBfigG2Avq0k29/z1MQKFUNmRHqE7x/hgnNbRiVbAtiXBSy9cPf1XIuvJWJIC8Xy66EoCqoUbt73pdh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1eVVhM3dzUStaRytoZFVLb2hXZEZKTVRWOHV3T0gwcGlhNHF4b0ZtUThU?= =?utf-8?B?TDR0OWJ0cnVIVkJRVjNWY2xNcEdoVzNWbklUZHB1QU0vQ3Izbk94OUZtQ0ls?= =?utf-8?B?WGxBcStVYk54S2IzcG16UU52V0JJTjNhS01rYklWOVNjdFJ5dlpYQlJBR2Zw?= =?utf-8?Q?6Z1VmTdYoCjAIK3uhnSZMha7ZSuCgY9+Sg8XewSx+hC0=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ab432cbb-313b-4065-198e-08dbf5540c61 X-MS-Exchange-CrossTenant-AuthSource: MA0P287MB0332.INDP287.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Dec 2023 05:35:54.4483 (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: PN3P287MB1847 X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_MUA_MOZILLA, FREEMAIL_FROM,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Mon, 04 Dec 2023 21:36:10 -0800 (PST) On 2023/12/5 9:13, Inochi Amaoto wrote: >> From: Chen Wang >> >> Add a driver for the SOPHGO SG2042 clock generator. >> >> Signed-off-by: Chen Wang >> --- >> MAINTAINERS | 7 + >> 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 | 1371 ++++++++++++++++++++++++ >> drivers/clk/sophgo/clk-sophgo-sg2042.h | 226 ++++ >> 7 files changed, 1616 insertions(+) >> 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 >> >> diff --git a/MAINTAINERS b/MAINTAINERS >> index 97f51d5ec1cf..c9c75468f2cb 100644 >> --- a/MAINTAINERS >> +++ b/MAINTAINERS >> @@ -20269,6 +20269,13 @@ S: Maintained >> F: arch/riscv/boot/dts/sophgo/ >> F: Documentation/devicetree/bindings/riscv/sophgo.yaml >> >> +SOPHGO CLOCK DRIVER >> +M: Chen Wang >> +S: Maintained >> +F: Documentation/devicetree/bindings/clock/sophgo/ >> +F: drivers/clk/sophgo/ >> +F: include/dt-bindings/clock/sophgo,sg2042-clkgen.h >> + >> SOUND >> M: Jaroslav Kysela >> M: Takashi Iwai >> diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig >> index c30d0d396f7a..514343934fda 100644 >> --- a/drivers/clk/Kconfig >> +++ b/drivers/clk/Kconfig >> @@ -499,6 +499,7 @@ source "drivers/clk/rockchip/Kconfig" >> source "drivers/clk/samsung/Kconfig" >> source "drivers/clk/sifive/Kconfig" >> source "drivers/clk/socfpga/Kconfig" >> +source "drivers/clk/sophgo/Kconfig" >> source "drivers/clk/sprd/Kconfig" >> source "drivers/clk/starfive/Kconfig" >> source "drivers/clk/sunxi/Kconfig" >> diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile >> index ed71f2e0ee36..aa5d2cf0b6a6 100644 >> --- a/drivers/clk/Makefile >> +++ b/drivers/clk/Makefile >> @@ -119,6 +119,7 @@ obj-$(CONFIG_ARCH_ROCKCHIP) += rockchip/ >> obj-$(CONFIG_COMMON_CLK_SAMSUNG) += samsung/ >> obj-$(CONFIG_CLK_SIFIVE) += sifive/ >> obj-y += socfpga/ >> +obj-$(CONFIG_ARCH_SOPHGO) += sophgo/ >> obj-$(CONFIG_PLAT_SPEAR) += spear/ >> obj-y += sprd/ >> obj-$(CONFIG_ARCH_STI) += st/ >> diff --git a/drivers/clk/sophgo/Kconfig b/drivers/clk/sophgo/Kconfig >> new file mode 100644 >> index 000000000000..b0fbe4499870 >> --- /dev/null >> +++ b/drivers/clk/sophgo/Kconfig >> @@ -0,0 +1,8 @@ >> +# SPDX-License-Identifier: GPL-2.0 >> + >> +config CLK_SOPHGO_SG2042 >> + bool "Sophgo SG2042 clock support" >> + depends on ARCH_SOPHGO || COMPILE_TEST >> + default ARCH_SOPHGO >> + help >> + Say yes here to support the clock controller on the Sophgo SG2042 SoC. > Please add RISCV to its depends. Not all the sophgo SoCs are in the RISC-V > platform, Some are arm chips. It is not good to build this driver > in that arch. ARCH_SOPHGO is only defined in RISC-V arch, so I think RISCV should not be needed as depends. > > Also, the condition ARCH_SOPHGO is duplicate in the Makefile. Please > remove one of them. Don't undestand your question "the condition ARCH_SOPHGO is duplicate in the Makefile ",  I think you are talking about Kconifg, what Makefile are you talking about? >> diff --git a/drivers/clk/sophgo/Makefile b/drivers/clk/sophgo/Makefile >> new file mode 100644 >> index 000000000000..13834cce260c >> --- /dev/null >> +++ b/drivers/clk/sophgo/Makefile >> @@ -0,0 +1,2 @@ >> +# SPDX-License-Identifier: GPL-2.0 >> +obj-$(CONFIG_CLK_SOPHGO_SG2042) += clk-sophgo-sg2042.o >> diff --git a/drivers/clk/sophgo/clk-sophgo-sg2042.c b/drivers/clk/sophgo/clk-sophgo-sg2042.c >> new file mode 100644 >> index 000000000000..421ebcc7192b >> ...... >> + } >> + >> +#if defined(DEBUG) >> + pr_info("registered [%d : %s]\n", gate->id, gate->name); >> +#endif > Drop, no need for this. OK, this log should not be needed, I will remove it in next version.