Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7170689rwb; Wed, 23 Nov 2022 03:12:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf4xToExcIZgtvlbQNy38mUMrZKu+ApuJZUx/88J5IPhnAyGLGnNDjUn0khz/aleej+ZgerP X-Received: by 2002:a17:90a:ea05:b0:20a:a1a8:3719 with SMTP id w5-20020a17090aea0500b0020aa1a83719mr30139215pjy.225.1669201975171; Wed, 23 Nov 2022 03:12:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669201975; cv=none; d=google.com; s=arc-20160816; b=VJBt8ssZM9odlDA4x2DqqXRpfdyMOP46DRVfWymb0C2KPtaklSP1Qy47f5XGIHqIgt Tfu25Ma2Nr7TV6ntxf9MpaTLnTZgKTrIU53k1VQGvSWFJDUZbVVfV10mSkJaPU9Wx9Bj nuPVcB9s9wGbLWwIqRtvdOFKhsGGyDztzwYYWYO+plFQl2Iap6+NaLqgIEIlgWi0XKT6 AAXOzq4oVdR2J8GSzNyK15nhHeBlyMZUafZmUDv7lTUyW8Yq7AhT3ymba1TqMJB42T5t rmp0537ZHyDqhsxtqmb3hQqCcQbCIolhtae6QNwYXQw7kArwYw0RvWMGNUxS1uRj5nUa cbIw== 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:dkim-signature; bh=/6KnfI+9/uy7ITylHecTvTbunNR+ZrgdbZvYW8L95tE=; b=ZSjlh6jn6VsW9egGhWaaUScv59J8dXgBwRMEtenFEEY3E4+ZcJoxtHT5Q+K6+RRdXE TR27yiGTI9S2G7hQ6Od1UNwmcafanKLMq8zccxn3uH926OdkJ67keSY2VfWYI/Zo4S6m OEGVttzsktHKyAO1OC5Fmhh0vhqoYHEyIZuITNROfpXV6/K/1rtft0BDd4bNKk5G1Gna uaBrlbvsdmy/poxlbVZBRwKERocVzx0lzbMWID2OLGzp1zGZY2tZtcd4LCqhK3KctIn+ 83WvlncdRp/FW2+JPlAwy9K4W+IyG1ZsOWSFXjDOep86RWpY/83UNgCT5rBqypZcKGrV alBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Z3GYxeYt; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p12-20020a056a000b4c00b0056d7aaaf1eesi16267753pfo.122.2022.11.23.03.12.43; Wed, 23 Nov 2022 03:12:55 -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; dkim=pass header.i=@linaro.org header.s=google header.b=Z3GYxeYt; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236990AbiKWKXs (ORCPT + 88 others); Wed, 23 Nov 2022 05:23:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237482AbiKWKWH (ORCPT ); Wed, 23 Nov 2022 05:22:07 -0500 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94589DAB for ; Wed, 23 Nov 2022 02:08:32 -0800 (PST) Received: by mail-lf1-x131.google.com with SMTP id g12so27466373lfh.3 for ; Wed, 23 Nov 2022 02:08:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=/6KnfI+9/uy7ITylHecTvTbunNR+ZrgdbZvYW8L95tE=; b=Z3GYxeYtlrpUJfiFGwuiU+qI838C6YNMSXBcHWKBD3OeHCuCpAlyNpJ8dlXJnsreT2 ZHoxcAjO1+dtsBH+otG8+/Eio4ekhaqXw5Pf86DXPzHPYVI9FqurhcQ1tFCeKdeVHMeq HXZY1PF/BRopuElmeMKJ9v4BgMDgc7YOw3H/ofTFPFA9uadwEIdommTGe3+jGWihL9H6 TSRxyjHtgKYP1s8pNCrOLghvCh9R8k+MlrpX/HlNjPaspZBPXSG3oYzAGvkJ/tbUdjdK DviI9Rv/n0Mik+Af52qds+pdsGXkSOY4Hp2Abdhx7PiTfKrygUxb6coVInzQhVxBrBKz J6Cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/6KnfI+9/uy7ITylHecTvTbunNR+ZrgdbZvYW8L95tE=; b=lTOqYTMSPucps2hUFbAi9jJXgfc2gTsjFzyi5pIVCFhucq+ox77IXhAv+SjPNhqJ22 w8BgSzP9I51L5hD37Ie4ndH1T47aX/N2oqUo1FBa9s0y1rG1z2pmmpY2s1g0/cd9WQYe DY6EXg+W4fB/o7YHFPlt3vCp7Kci8Qh6qHxp//sQmcHF9NxGP1y350MK3Xo6wm671HsP 8j8EYA6FbcREnUTNij1aQgNRI6ykb+1wr7hqwQZuiAEzZrG+Nsz5dwY9IPHwrQbooqeG L1muOwHFbNNRuRCCsQlHnGLOAw7fISIgVz+76qsg5sGk/gWpaO9QsTS0lDp16M3cLrtm bA7w== X-Gm-Message-State: ANoB5pmOUtbFSw59rKDcl2uwoQoxceikuhiAc1YERxkrSeaKNFItWZzK fkXZzeaCbBrzYW43X09kwoADsQ== X-Received: by 2002:ac2:58d9:0:b0:4b3:ccea:9b2e with SMTP id u25-20020ac258d9000000b004b3ccea9b2emr10307267lfo.379.1669198110899; Wed, 23 Nov 2022 02:08:30 -0800 (PST) Received: from [192.168.0.20] (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id d18-20020a2e8912000000b002770eafaafbsm2199487lji.99.2022.11.23.02.08.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Nov 2022 02:08:30 -0800 (PST) Message-ID: Date: Wed, 23 Nov 2022 11:08:29 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 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: Yu Tu , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Rob Herring , Neil Armstrong , Jerome Brunet , Kevin Hilman , Michael Turquette , Stephen Boyd , Krzysztof Kozlowski , Martin Blumenstingl Cc: kelvin.zhang@amlogic.com References: <20221123021346.18136-1-yu.tu@amlogic.com> <20221123021346.18136-2-yu.tu@amlogic.com> From: Krzysztof Kozlowski In-Reply-To: <20221123021346.18136-2-yu.tu@amlogic.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 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?!? > 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. > + > +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. Best regards, Krzysztof