Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7241970rwb; Wed, 23 Nov 2022 04:14:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf5F1mexn2zwfQx1gSsCx8slEvwc+D3DHscu+gVjfu6bC+ZvkF6wBhwWUm67unQ6E3dIpZTg X-Received: by 2002:aa7:8608:0:b0:52f:db84:81cf with SMTP id p8-20020aa78608000000b0052fdb8481cfmr9493804pfn.26.1669205648747; Wed, 23 Nov 2022 04:14:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669205648; cv=none; d=google.com; s=arc-20160816; b=Wg8CgCY5Yk0LWfBWsGDPOdzBIWUSAT36xnVNJ/tTvkJGBVlUDT9gTiSuvdiQfsPh7/ 0c4wSeKP4SUHrZCsumPmeBqcG3Jro3Sczgqv5fPJimh3KmxArciMoipTqmaZXn6Ti668 q5jLiRKNqJmHOQ8aJTKDrq5p+Z04Q/FAFZu4qJT1yr1Bm2NC5qDmkCyBePzA70/lXnWF mftDsD4Bxl3lZHPR69zNeKAHh8Dca1cFnzOrPW1jrEvMXWjdk4U/ZD6eOCHuXzk6B3rk q4daxkPfObUnCpLQ1z3JAZM6xa8IRPjfOHuFRmhsAZb3VoqYy661a7uzGnqMX4r1ggv9 SIww== 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:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=J85/l+MwCyUyjCM7tkA5LpPwP8fFVKc/HGLhUzNtSuY=; b=TcfrUwT164a/R5jKBUdisZxbXXaCW+WvZmFARlIWBsXbA1s6p7M6OScXgFCqvloZpu fKfbKY16XB+P0grW7jKGd43aipIKmqBiJZg6f1d6yAjNp9i95ypBUSWBR14ltkt5UvGj yn5R+3zvNQ7G6szT2ZotdD4k/NpM1P0F1XDOAYrtWO61C2jBt0A3VxV7OKCEy7lObhhY Z2r79OpDpFolT42pF69vj9ZtZEDvg03JGmX46nTamjmBo9tTlXu1f3olD+gWPiBxFXO/ sGND6SzTMvnRk7s0Nrer9eAgewkYaqwpjtKU7N77jGnZ+E+9ljRAhnDJdE5e0b5M5trb aiMg== 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 nn3-20020a17090b38c300b002188666feeasi1900674pjb.3.2022.11.23.04.13.56; Wed, 23 Nov 2022 04:14:08 -0800 (PST) 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 S236382AbiKWLRj (ORCPT + 89 others); Wed, 23 Nov 2022 06:17:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237620AbiKWLR0 (ORCPT ); Wed, 23 Nov 2022 06:17:26 -0500 Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CD5F6238C; Wed, 23 Nov 2022 03:16:09 -0800 (PST) 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.2507.13; Wed, 23 Nov 2022 19:16:06 +0800 Message-ID: <92b570ea-3ddc-8e91-5a7a-ed601bb7c02c@amlogic.com> Date: Wed, 23 Nov 2022 19:16:06 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.13.1 Subject: Re: [PATCH V5 1/4] clk: meson: S4: add support for Amlogic S4 SoC PLL clock driver and bindings Content-Language: en-US To: Krzysztof Kozlowski , , , , , , Rob Herring , Neil Armstrong , Jerome Brunet , Kevin Hilman , Michael Turquette , Stephen Boyd , Krzysztof Kozlowski , Martin Blumenstingl CC: References: <20221123021346.18136-1-yu.tu@amlogic.com> <20221123021346.18136-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 reply. On 2022/11/23 18:08, Krzysztof Kozlowski wrote: > [ EXTERNAL EMAIL ] > > On 23/11/2022 03:13, Yu Tu wrote: >> Add the S4 PLL clock controller found and bindings in the s4 SoC family. >> >> Signed-off-by: Yu Tu >> --- >> .../bindings/clock/amlogic,s4-pll-clkc.yaml | 51 + > > This is v5 and still bindings are here? Bindings are always separate > patches. Use subject prefixes matching the subsystem (git log --oneline > -- ...). > > And this was split, wasn't it? What happened here?!? Put bindings and clock driver patch together from Jerome. Maybe you can read this chat history. https://lore.kernel.or/all/1jy1v6z14n.fsf@starbuckisacylon.baylibre.com/ > > >> MAINTAINERS | 1 + >> drivers/clk/meson/Kconfig | 13 + >> drivers/clk/meson/Makefile | 1 + >> drivers/clk/meson/s4-pll.c | 875 ++++++++++++++++++ >> drivers/clk/meson/s4-pll.h | 88 ++ >> .../dt-bindings/clock/amlogic,s4-pll-clkc.h | 30 + >> 7 files changed, 1059 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/clock/amlogic,s4-pll-clkc.yaml >> create mode 100644 drivers/clk/meson/s4-pll.c >> create mode 100644 drivers/clk/meson/s4-pll.h >> create mode 100644 include/dt-bindings/clock/amlogic,s4-pll-clkc.h >> >> diff --git a/Documentation/devicetree/bindings/clock/amlogic,s4-pll-clkc.yaml b/Documentation/devicetree/bindings/clock/amlogic,s4-pll-clkc.yaml >> new file mode 100644 >> index 000000000000..fd517e8ef14f >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/clock/amlogic,s4-pll-clkc.yaml >> @@ -0,0 +1,51 @@ >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/clock/amlogic,s4-pll-clkc.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Amlogic Meson S serials PLL Clock Controller >> + >> +maintainers: >> + - Neil Armstrong >> + - Jerome Brunet >> + - Yu Tu >> + > One blank line. I will delete this, on next version patch. > >> + >> +properties: >> + compatible: >> + const: amlogic,s4-pll-clkc >> + >> + reg: >> + maxItems: 1 >> + >> + clocks: >> + maxItems: 1 >> + >> + clock-names: >> + items: >> + - const: xtal >> + >> + "#clock-cells": >> + const: 1 >> + >> +required: >> + - compatible >> + - reg >> + - clocks >> + - clock-names >> + - "#clock-cells" >> + >> +additionalProperties: false >> + >> +examples: >> + - | >> + clkc_pll: clock-controller@fe008000 { >> + compatible = "amlogic,s4-pll-clkc"; >> + reg = <0xfe008000 0x1e8>; >> + clocks = <&xtal>; >> + clock-names = "xtal"; >> + #clock-cells = <1>; >> + }; > > >> +#endif /* __MESON_S4_PLL_H__ */ >> diff --git a/include/dt-bindings/clock/amlogic,s4-pll-clkc.h b/include/dt-bindings/clock/amlogic,s4-pll-clkc.h >> new file mode 100644 >> index 000000000000..345f87023886 >> --- /dev/null >> +++ b/include/dt-bindings/clock/amlogic,s4-pll-clkc.h > > This belongs to bindings patch, not driver. > >> @@ -0,0 +1,30 @@ >> +/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ >> +/* >> + * Copyright (c) 2021 Amlogic, Inc. All rights reserved. >> + * Author: Yu Tu >> + */ >> + >> +#ifndef _DT_BINDINGS_CLOCK_AMLOGIC_S4_PLL_CLKC_H >> +#define _DT_BINDINGS_CLOCK_AMLOGIC_S4_PLL_CLKC_H >> + >> +/* >> + * CLKID index values >> + */ >> + >> +#define CLKID_FIXED_PLL 1 >> +#define CLKID_FCLK_DIV2 3 > > Indexes start from 0 and are incremented by 1. Not by 2. > > NAK. I remember Jerome discussing this with you.You can look at this submission history. https://lore.kernel.org/all/c088e01c-0714-82be-8347-6140daf56640@linaro.org/ > > Best regards, > Krzysztof > > .