Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp875817rdb; Wed, 6 Dec 2023 02:25:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IHr22BC7PwCgATyuZTOm1q9k7BNG/1U95Y/o/qHO2maYnjQnSPzzhbQiHy/Mx+x3IJnufMN X-Received: by 2002:a05:6830:210b:b0:6d9:a69f:b8ae with SMTP id dy11-20020a056830210b00b006d9a69fb8aemr860535otb.27.1701858311644; Wed, 06 Dec 2023 02:25:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701858311; cv=none; d=google.com; s=arc-20160816; b=DghR9euvP9qYkZMxBT7TAmJ8txSEivvE3Z/547fSIf+FslgxWvB84aNn2iBaZTabRF HD9jSctnQMpTpDT3cJaF5Psc29Vew3uVlH5bMQZKXyTv20CGGGZQxhmEuHOS1snQlhtU 6hemEllowGyS9vv8bUuM31XTuYhCf+VNGmQz4XnmrhFRyQnMKmdeB/8qyuS1mXI/Ei79 o6jUOdyvqcDZ1H79+SPnyHPQ4LA6GZdC3LvJKv7rZMlbQlvI26zupdHOnZgLebVn3t/t dXUcHxHY9YFmhLbz6UhdRpy8u1C2zWKGhrQANBvNZFyPJKIBv4A14gaJM4ypbVsiVTDU Qe9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:mime-version :references:in-reply-to:from:dkim-signature; bh=LIKhW4ss/YSZZ/5dNTu3+bUFxFWLLuAd/satadt/iyM=; fh=bnOQ7AgBcNMVA8OFK+1d2WIBArC2ujlYaDDun43NuU8=; b=UZ/wSdqPKnuWq511A66UL3CP2KzclhQ0AmGbTfMwaBDqnhRivBuM38RW9x/DHoZL6g 8eysIkglVNj2H2i4fmuUEqWqebTRC78xe5q4IpsAUCa79ez3kw/TlP7EWutRGM0hI6s1 6IP0GAMVYUyhlu3Vt98r1BWI6G4wl47TqqTbHJyQVmo197xa1fOWgoW4++VM0gJKEF06 HGWHQFc32nOM5B6FBxj5yiwbIHaQ2LFPb+SkbxpMwHK1Wy9ocgimyVHA6zLUS59Fks2i CEyXZ7KR/a/09Fea+gYN1Np0STLw36BEML+F/XpOxolFIo8xziAir/eL0VzSDcuzGK0t lxVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=s1dyQfez; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id m22-20020a056a00081600b006ce600709c0si3979826pfk.8.2023.12.06.02.25.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 02:25:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=s1dyQfez; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id CA8FA819D9FE; Wed, 6 Dec 2023 02:25:08 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377413AbjLFKYr (ORCPT + 99 others); Wed, 6 Dec 2023 05:24:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377339AbjLFKYq (ORCPT ); Wed, 6 Dec 2023 05:24:46 -0500 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E800E1B5 for ; Wed, 6 Dec 2023 02:24:51 -0800 (PST) Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 203BD44450 for ; Wed, 6 Dec 2023 10:24:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1701858289; bh=LIKhW4ss/YSZZ/5dNTu3+bUFxFWLLuAd/satadt/iyM=; h=From:In-Reply-To:References:Mime-Version:Date:Message-ID:Subject: To:Cc:Content-Type; b=s1dyQfezQGuGylOz1IYl0UfRkJNWl9DlxWq7y4/AMY2L/isWTrach9vlBK+S2Uo0A ZfHog0B2+kVmtEstUTeMgQmbhrJqfOdmGmyrK/jEgd11Kzo2s20n5YyEei6gPZ6Yat Yk99rAN6kcuDVQDJrrSwHWU20qYScJp/za5Kk+CpQtlyNKDY9q431i1tlhptPvmZK1 fku2DE9N0+WDHHWsDXCKU9IJsp08zjKIUPGI0L+Fjm9fMzM0P52704FKdG3ut2d0m8 VTmaDij1VUsNLbsd9fa8f5KIBr7nZhhEiglViuVB0x9F27LKsqMDmiYqiiOiyaczaJ IXdI+K7y/xIZg== Received: by mail-lj1-f197.google.com with SMTP id 38308e7fff4ca-2ca06829ad2so4384651fa.0 for ; Wed, 06 Dec 2023 02:24:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701858288; x=1702463088; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=LIKhW4ss/YSZZ/5dNTu3+bUFxFWLLuAd/satadt/iyM=; b=kgUaTibIMhrcKdlrvyMBU5M5nmUQR0a+Nzy7jFzMFATC+3UNgjr0MPlNIWlviIJTBB l8FogxNF8SinSkMUgB1woJy3+mkoLHfZ6dYfNNf5NqyTZjTpBWQ0DGhfDbvNuY23jNmw qTRu5GQfdhxqC3Rf9mLsyGSMCTSEWH4U3H36/zQaiUPySaCNyWbskCfOc4mEuw+SApvP Dl8tWea9SRLQiJsBNjCAJuDO9oGRHdT3G/nswefnQg1OgZCVWqsZubDCNNPqkZAuM9oy FPp599EWKo7BrxGaEN4kPpTb3qtOExPh7Qds2yajmFKQ3bjPu42ZUqyddJnJ2HhMg+zg NVAQ== X-Gm-Message-State: AOJu0YzOMQZbAyeP+F/xHtjlN7B94Tcj9IO4mXH5xRpoXvixBfvDl5ig g08i4JnfhJs00v7Md+Z9lhNwq2Rz7cOC+ZEo5LW/1gQL8hOJZ4iIjuJ1d/abo2dyuWyXmrIj03w MzsSvPCeSUHwktA8A/0ZXOiHF8gN74l4I6tbd1ygPQ0u9JTbLxz2c/lAEqQ== X-Received: by 2002:a2e:a30d:0:b0:2c9:f59d:36b8 with SMTP id l13-20020a2ea30d000000b002c9f59d36b8mr512524lje.8.1701858287655; Wed, 06 Dec 2023 02:24:47 -0800 (PST) X-Received: by 2002:a2e:a30d:0:b0:2c9:f59d:36b8 with SMTP id l13-20020a2ea30d000000b002c9f59d36b8mr512512lje.8.1701858287360; Wed, 06 Dec 2023 02:24:47 -0800 (PST) Received: from 348282803490 named unknown by gmailapi.google.com with HTTPREST; Wed, 6 Dec 2023 04:24:46 -0600 From: Emil Renner Berthing In-Reply-To: References: Mime-Version: 1.0 Date: Wed, 6 Dec 2023 04:24:46 -0600 Message-ID: Subject: Re: [PATCH v2 2/4] clk: sophgo: Add CV1800 series clock controller driver To: Inochi Amaoto , Chen Wang , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chao Wei , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Jisheng Zhang , qiujingbao.dlmu@gmail.com, dlan@gentoo.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 pete.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 (pete.vger.email [0.0.0.0]); Wed, 06 Dec 2023 02:25:09 -0800 (PST) Inochi Amaoto wrote: > > > >On 2023/12/5 19:55, Inochi Amaoto wrote: > >> Add driver for CV1800 series clock controller. > >Add more clarification on your changes. Seems you add several files with different names for different products, what's your design idea, please add some brief introduction. > > In fact, it just adds the driver for the whole CV18XX series. I do not > think its clock controller has something different for different product. > The CV181X does have more clock, but it shares the same driver code of > CV180X. All the things just follow the manual and are for the hardware > design. Anyway, I will have a try. > > >> > >> Signed-off-by: Inochi Amaoto > >> Link: https://github.com/milkv-duo/duo-files/blob/main/hardware/CV1800B/CV180X-Clock-v1.xlsx > >> Link: https://github.com/milkv-duo/duo-files/blob/main/hardware/CV1800B/CV1800B-CV1801B-Preliminary-Datasheet-full-en.pdf > >> --- > >> ...... > >> diff --git a/drivers/clk/sophgo/Kconfig b/drivers/clk/sophgo/Kconfig > >> new file mode 100644 > >> index 000000000000..243d58a30117 > >> --- /dev/null > >> +++ b/drivers/clk/sophgo/Kconfig > >> @@ -0,0 +1,7 @@ > >> +# SPDX-License-Identifier: GPL-2.0 > >> +# common clock support for SOPHGO SoC family. > >Drop this comment line, moving forward, this Kconfig file will be re-used for more different sophgo products. > > Why? I do not think this have some impact on reuse. > > >> + > >> +config CLK_SOPHGO_CV1800 > >> + tristate "Support for the Sophgo CV1800 series SoCs clock controller" > >> + default y > >> + depends on ARCH_SOPHGO || COMPILE_TEST > >Suggest to add some help words for this config item. > > > > There is no extra information other than this title. > In fact, I think the description title is enough to describe this. Add > a duplicate help is useless. I'd also like to see some more information here. Eg. what are examples of SoC's in the CV1800 series. checkpatch also complains: WARNING: please write a help paragraph that fully describes the config symbol #337: FILE: drivers/clk/sophgo/Kconfig:4: +config CLK_SOPHGO_CV1800 + tristate "Support for the Sophgo CV1800 series SoCs clock controller" + default y + depends on ARCH_SOPHGO || COMPILE_TEST Also the driver says "tristate" here, but defaults to built-in. If it works as a module it should be default m to not waste memory on systems not needing this. If it can't work properly as a module then tristate should be bool and the driver should be updated for that. /Emil