Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4137831imw; Mon, 18 Jul 2022 23:50:47 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uj73jazI6XoL5AmNTSbgzBmhQkRWQEOiGv3DcfVnLv41yzsPOkT15o83a4isqdij0IU8q/ X-Received: by 2002:a17:907:7213:b0:72b:9ec4:9a63 with SMTP id dr19-20020a170907721300b0072b9ec49a63mr27823119ejc.399.1658213447091; Mon, 18 Jul 2022 23:50:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658213447; cv=none; d=google.com; s=arc-20160816; b=jKFHsAZh0YqR48aUfLK8Du+iGboSz2sbVS5F5QS6MhC0vBnal9JaTm96m3wRSBIDrn vGZIdyzaaeQaOzUYlurUMHMMdDKIHcPJQEODUJH6tVfoHuM/JN1+8lXxFOQyPE9DSG98 em+XchOw2OArPwmJQFmYqo5ODrjD28fL2SC4hZo8koGJLRPwwWMesgyWuvjOLICTQPPY H8piEXEhiEkzS6+MY6BVXPriJAPLiJnPYbkH3kXit9cwnJtzIOApO7D6sVYTX2LKWfDU Er4gcSHZQg/VDyOJlHk6GiHOjcVB8DUtL6UsU3/CyvtomxX01h205kKzvr88izAjd9FI bwhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id; bh=BQgLwc47GZpx15p2LfCe2qgpS7APxsNryx8eJGu8ffQ=; b=PRBa630fT8+C8JbTeEhPOWuZPTwY5+y/07wOgwreJcAqmoJ1zAHoTBz574Du6DJgby NrC6tX+97nv5Imv0gWp0a+k7A49jDFt+zJlmCYgwia9EkyIYJKsHgI+LoqKoTY8Vbh05 d/1tNbv2QruRyiAJUzBhfP04YWaSoGaaMraUnUUuMdeTDWBO5cU32ho8VYR8hyI4EBia Jhl2ZeZsnlLx9VWpDZKh8YNf/noXgld3Xg5bK6cdT1/cBC6SGCCNYrYRiZwzmNy1WdVD mEfNds/m1ojSjEFuUw/YtlpHLzEpZ1hbb3WtOiJgI4KDAIj4YJfx1xcoLKboFNVt0zDR TUDA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs23-20020a170906f19700b00726258680desi11092153ejb.418.2022.07.18.23.50.22; Mon, 18 Jul 2022 23:50:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233829AbiGSF4D (ORCPT + 99 others); Tue, 19 Jul 2022 01:56:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235873AbiGSFzx (ORCPT ); Tue, 19 Jul 2022 01:55:53 -0400 Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55C77BF64; Mon, 18 Jul 2022 22:55:50 -0700 (PDT) Received: from [10.18.29.47] (10.18.29.47) by mail-sh.amlogic.com (10.18.11.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Tue, 19 Jul 2022 13:55:47 +0800 Message-ID: <6daf3b5c-cdf9-d5d0-894c-774b80e866ff@amlogic.com> Date: Tue, 19 Jul 2022 13:55:47 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH 1/3] dt-bindings: clk: meson: add S4 SoC clock controller bindings Content-Language: en-US To: Krzysztof Kozlowski , , , , , , Rob Herring , Neil Armstrong , Jerome Brunet , Kevin Hilman , Michael Turquette , Stephen Boyd , Krzysztof Kozlowski , Martin Blumenstingl References: <20220708062757.3662-1-yu.tu@amlogic.com> <20220708062757.3662-2-yu.tu@amlogic.com> From: Yu Tu In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.18.29.47] X-ClientProxiedBy: mail-sh.amlogic.com (10.18.11.5) To mail-sh.amlogic.com (10.18.11.5) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Hi Krzysztof, Thank you for your advice. On 2022/7/12 17:40, Krzysztof Kozlowski wrote: > [ EXTERNAL EMAIL ] > > On 08/07/2022 08:27, Yu Tu wrote: >> Add new clock controller compatible and dt-bindings header for the >> Everything-Else domain of the S4 SoC. >> >> Signed-off-by: Yu Tu >> --- >> .../bindings/clock/amlogic,gxbb-clkc.txt | 1 + >> MAINTAINERS | 1 + >> include/dt-bindings/clock/s4-clkc.h | 354 ++++++++++++++++++ >> 3 files changed, 356 insertions(+) >> create mode 100644 include/dt-bindings/clock/s4-clkc.h >> >> diff --git a/Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt b/Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt >> index 7ccecd5c02c1..301b43dea912 100644 >> --- a/Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt >> +++ b/Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt >> @@ -12,6 +12,7 @@ Required Properties: >> "amlogic,g12a-clkc" for G12A SoC. >> "amlogic,g12b-clkc" for G12B SoC. >> "amlogic,sm1-clkc" for SM1 SoC. >> + "amlogic,s4-clkc" for S4 SoC. >> - clocks : list of clock phandle, one for each entry clock-names. >> - clock-names : should contain the following: >> * "xtal": the platform xtal >> diff --git a/MAINTAINERS b/MAINTAINERS >> index c1abc53f9e91..e4ca46c5c8a1 100644 >> --- a/MAINTAINERS >> +++ b/MAINTAINERS >> @@ -1775,6 +1775,7 @@ F: Documentation/devicetree/bindings/clock/amlogic* >> F: drivers/clk/meson/ >> F: include/dt-bindings/clock/gxbb* >> F: include/dt-bindings/clock/meson* >> +F: include/dt-bindings/clock/s* >> >> ARM/Amlogic Meson SoC Crypto Drivers >> M: Corentin Labbe >> diff --git a/include/dt-bindings/clock/s4-clkc.h b/include/dt-bindings/clock/s4-clkc.h >> new file mode 100644 >> index 000000000000..8b46d54d79fe >> --- /dev/null >> +++ b/include/dt-bindings/clock/s4-clkc.h >> @@ -0,0 +1,354 @@ >> +/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ >> +/* >> + * Copyright (c) 2021 Amlogic, Inc. All rights reserved. >> + * Author: Yu Tu >> + */ >> + >> +#ifndef __S4_CLKC_H >> +#define __S4_CLKC_H > > Use header guards mathcing paths. See other files for examples. I will correct it. > >> + >> +/* >> + * CLKID index values >> + */ >> + >> +#define CLKID_PLL_BASE 0 >> +#define CLKID_FIXED_PLL_DCO (CLKID_PLL_BASE + 0) > > Drop CLKID_PLL_BASE I will correct it. > >> +#define CLKID_FIXED_PLL (CLKID_PLL_BASE + 1) > > ditto... and so on. I will correct it. > > > Best regards, > Krzysztof > > .