Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp133374pxb; Wed, 11 Nov 2020 22:46:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJygkMG8SanNlbNsxEc2IPmwnyzpp61fS4wvaYALLjat69wEdVIpifiUi6GqU19zWO6BndLV X-Received: by 2002:a05:6402:94f:: with SMTP id h15mr3475957edz.177.1605163584762; Wed, 11 Nov 2020 22:46:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605163584; cv=none; d=google.com; s=arc-20160816; b=XAdGGZ8gk9x4PB7U47H56/bGGDhk4moqVLdIx8QeVnnBwgNcAeEqtyPn6Omq3Tlgvl 2YsuNQSlzHgSvsM3QZpigHyvwLv2yU3hZt1jMKRNitUKhUwzP/IoEjTZRSZMskXt9sI3 5NrBU9GxVmwTnD9KUqlgaz015IcniRNHMbKVcQW31EE9dEEyUjCMM3Vv/+sQ3mvGolz5 qGG2l+5XH+5HmGO1wvaejUiBVsMARCJz26JjOvNFsrtguuc+wxDB4RKnJFQWnDXwWtY4 yHml3n4S0sCas3UZXZFWkCVpVN8oWiStcN9is6tcISSIkM5v+Sesh0loluSUYFkKCO8I 1rmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=uwDTN8oodpqyePPTNRR9OdUekLBoiZrPuPVs5p/TRkk=; b=JGwCVKe2d+dbK7ocd+iRKKUiJf7j4SScuLhn8gd/E4kQdOM0KrhJKjeHrZdtsukGCT lW7M/EL1cVCBYQVAdMXyLCGK02yLF7bUE4Z7Gx4BJoDtizXTpcimbjMa8PbZjEPYRaPZ y/7LB1lgxhhrXxNP2eqKnaEJ8tZKNZFLDJmKwb+DGi/YBOAs/zcF8W2cSR+ahb1xy7BM VUCPIgJu3ER/iLvskvm5/XbEtm+ZTWAMU8qD3ohI5oC9Aeko7Isp2O7hmKaMBE8kvvV+ mHkEqY/n+G/isvmVVf61QdABDZGt5noEdh14Xy1FitAcItfbO5yW749txc4azzVkyblu mx9g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q25si3391432edr.215.2020.11.11.22.46.00; Wed, 11 Nov 2020 22:46:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726612AbgKLGlK (ORCPT + 99 others); Thu, 12 Nov 2020 01:41:10 -0500 Received: from szxga02-in.huawei.com ([45.249.212.188]:2430 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725981AbgKLGlJ (ORCPT ); Thu, 12 Nov 2020 01:41:09 -0500 Received: from dggeme755-chm.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4CWsS82f9sz54B9; Thu, 12 Nov 2020 14:40:56 +0800 (CST) Received: from [10.140.157.68] (10.140.157.68) by dggeme755-chm.china.huawei.com (10.3.19.101) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1913.5; Thu, 12 Nov 2020 14:41:05 +0800 Subject: Re: [PATCH] clk: hisilicon: Add clock driver for hi3559A SoC To: Rob Herring CC: , , , , References: <20201109202838.43105-1-gengdongjiu@huawei.com> <20201111222340.GA2143735@bogus> From: Dongjiu Geng Message-ID: <69f78676-6e5e-867a-5b14-cb9af84a32ba@huawei.com> Date: Thu, 12 Nov 2020 14:41:04 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20201111222340.GA2143735@bogus> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.140.157.68] X-ClientProxiedBy: dggeme706-chm.china.huawei.com (10.1.199.102) To dggeme755-chm.china.huawei.com (10.3.19.101) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/11/12 6:23, Rob Herring wrote: > On Mon, Nov 09, 2020 at 08:28:38PM +0000, Dongjiu Geng wrote: >> Add clock drivers for hi3559A SoC, this driver controls the SoC >> registers to supply different clocks to different IPs in the SoC. >> >> Signed-off-by: Dongjiu Geng >> --- >> drivers/clk/hisilicon/Kconfig | 7 + >> drivers/clk/hisilicon/Makefile | 1 + >> drivers/clk/hisilicon/clk-hi3559a.c | 873 ++++++++++++++++++ >> include/dt-bindings/clock/hi3559av100-clock.h | 173 ++++ > > Is there a binding for this? The header should be part of it. yes, I will add it. Thanks for the pointing out. > >> 4 files changed, 1054 insertions(+) >> create mode 100644 drivers/clk/hisilicon/clk-hi3559a.c >> create mode 100644 include/dt-bindings/clock/hi3559av100-clock.h >> >> diff --git a/drivers/clk/hisilicon/Kconfig b/drivers/clk/hisilicon/Kconfig >> index 6a9e93a0bb95..5ecc37aaa118 100644 >> --- a/drivers/clk/hisilicon/Kconfig >> +++ b/drivers/clk/hisilicon/Kconfig >> @@ -15,6 +15,13 @@ config COMMON_CLK_HI3519 >> help >> Build the clock driver for hi3519. >> >> +config COMMON_CLK_HI3559A >> + bool "Hi3559A Clock Driver" >> + depends on ARCH_HISI || COMPILE_TEST >> + default ARCH_HISI >> + help >> + Build the clock driver for hi3559a. >> + >> config COMMON_CLK_HI3660 >> bool "Hi3660 Clock Driver" >> depends on ARCH_HISI || COMPILE_TEST >> diff --git a/drivers/clk/hisilicon/Makefile b/drivers/clk/hisilicon/Makefile >> index b2441b99f3d5..bc101833b35e 100644 >> --- a/drivers/clk/hisilicon/Makefile >> +++ b/drivers/clk/hisilicon/Makefile >> @@ -17,3 +17,4 @@ obj-$(CONFIG_COMMON_CLK_HI6220) += clk-hi6220.o >> obj-$(CONFIG_RESET_HISI) += reset.o >> obj-$(CONFIG_STUB_CLK_HI6220) += clk-hi6220-stub.o >> obj-$(CONFIG_STUB_CLK_HI3660) += clk-hi3660-stub.o >> +obj-$(CONFIG_COMMON_CLK_HI3559A) += clk-hi3559a.o >> diff --git a/drivers/clk/hisilicon/clk-hi3559a.c b/drivers/clk/hisilicon/clk-hi3559a.c >> new file mode 100644 >> index 000000000000..bd3921fc8c8e >> --- /dev/null >> +++ b/drivers/clk/hisilicon/clk-hi3559a.c >> @@ -0,0 +1,873 @@ >> +// SPDX-License-Identifier: GPL-2.0-or-later >> +/* >> + * Hisilicon Hi3559A clock driver >> + * >> + * Copyright (c) 2019-2020 HiSilicon Technologies Co., Ltd. >> + * >> + * This program is free software; you can redistribute it and/or modify >> + * it under the terms of the GNU General Public License as published by >> + * the Free Software Foundation; either version 2 of the License, or >> + * (at your option) any later version. > > Don't need both this and SPDX tag. Kernel code should be GPL-2.0 (-only) > generally. Ok, I will remove one. thanks. > >> + * >> + * Author: Dongjiu Geng > > git will tell us this. > > Same comments apply to the header. Though DT headers should be dual > licensed. > > Rob > . >