Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4061235rwb; Fri, 30 Sep 2022 12:12:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6p9noh1IzUvTApXmyhArkCU3SHPG8unc5v4pj4wAK07znCe1KvfBFgpFydfn0RzGC6RH2A X-Received: by 2002:a17:906:eeca:b0:730:6880:c398 with SMTP id wu10-20020a170906eeca00b007306880c398mr7595636ejb.706.1664565174411; Fri, 30 Sep 2022 12:12:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664565174; cv=none; d=google.com; s=arc-20160816; b=v4c3/Pkky0rxhNICI4PidGxKHKlgWm9JxtTs5s/HLrN/Dh6flnoZpZLq2/nvSsHdYC Sx7Z9hj9gADJZjnCuKtn6LClEotccVoHfv41AC9PlAmC2uyupJ/R7ADFWaelq1WrKVYm OezUlJh4vOcjJPzxvq9A106makeperaHJjTDBc1UFOoRtfPAHTTitELeu4uKRBLd6pYR 6/Jd6yeUwKVt31CfmsYlDqituqvhyK+g6oAdwbf5dg5jltpzG6tGrF9vJL+pAKJXddmO KheflCjsWsRZxP626HMrkcyZg6o2pCTbk+9JvztAsNFVByttxh9pVoDj8qkmIjFRntSe t3ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=lbkbCBX5qiptsKPuD7ofnI+kwIIikXEjEFfIdyuhodk=; b=gQoAsp0qd5Rkqox7Gqp/Dzle8Jwz29JQDt4kpKn7daPV61Tzo6RldcuagKod8QhkGi yEN7GWTtN+Y4enNjRJeXPrlCrO7dpIEYNXs3x08zHiBKdxiMI1LTe0IBUVCD8sLzByoA KGfhSDTH0gmfkbhWFr07YOnlI+z7fv32z5DFruGWjLBhUg1aEyCxqJ5CA+TcL6fsId7z NwhXDeKND2APFSqVjF5xc1eht52ZKaUUVvLeJaf/5Jamh1sPJStLBSfWj1a6kJBcdTpP ORiYDJgVystwn+i9Hri3eK/dsUrIxk7JgwS6zAhmdetPzujem1Ois5KLMDBChIsq8cE+ 5Qag== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h19-20020a1709067cd300b0072ef52514f6si1998257ejp.629.2022.09.30.12.12.28; Fri, 30 Sep 2022 12:12:54 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231299AbiI3THI (ORCPT + 99 others); Fri, 30 Sep 2022 15:07:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229505AbiI3THH (ORCPT ); Fri, 30 Sep 2022 15:07:07 -0400 Received: from mail-oi1-f178.google.com (mail-oi1-f178.google.com [209.85.167.178]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9693430F40; Fri, 30 Sep 2022 12:07:05 -0700 (PDT) Received: by mail-oi1-f178.google.com with SMTP id l5so5659007oif.7; Fri, 30 Sep 2022 12:07:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=lbkbCBX5qiptsKPuD7ofnI+kwIIikXEjEFfIdyuhodk=; b=2unFTiPJ8npqOVyALh7pCtuZ2kh5rN9XqwcCcqn+b4DETKLdOavDwzGTy7t9iDKG8b EVgxAMvRSgOk/QMoLFuKw6acbBHbPKCWBNjBvb0PZuqzWidqkOt8j57M+U2wWYMHr7LD L7XnpMHvelZoMkWx8BJPnu2w1zFxfm8YHEIvgJqojxYf5ZdPGD0wObjDicfks329eayA 6J4tzR6gvJrUSYCqK3B2DVomIsccstK6U4isbBuwWzRSy+Ve8DVpgIGBt5U77fH+JW/f Io3ljGsdQ9qzIkQxzuD/VjBaNKgZnoqpR9QmHBVpzOZJIRsZ0aARE13oFMLLzwAX5hyj vMGA== X-Gm-Message-State: ACrzQf39DfuC2+vIWo7j/qzK+3jr3orPl3XOGo9BQuCtJpkUPWNHbfkX tq2JeMhuLnrwOtS0A/BB+w== X-Received: by 2002:aca:1912:0:b0:350:504b:ee13 with SMTP id l18-20020aca1912000000b00350504bee13mr9677907oii.256.1664564824871; Fri, 30 Sep 2022 12:07:04 -0700 (PDT) Received: from macbook.herring.priv (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id c130-20020aca3588000000b00344a22e71a9sm699006oia.9.2022.09.30.12.07.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Sep 2022 12:07:04 -0700 (PDT) Received: (nullmailer pid 688099 invoked by uid 1000); Fri, 30 Sep 2022 19:07:03 -0000 Date: Fri, 30 Sep 2022 14:07:03 -0500 From: Rob Herring To: AngeloGioacchino Del Regno Cc: Johnson Wang , krzysztof.kozlowski+dt@linaro.org, sboyd@kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Project_Global_Chrome_Upstream_Group@mediatek.com, kuan-hsin.lee@mediatek.com, yu-chang.wang@mediatek.com, Edward-JW Yang Subject: Re: [PATCH v3 2/4] dt-bindings: arm: mediatek: Add new bindings of MediaTek frequency hopping Message-ID: <20220930190703.GA657929-robh@kernel.org> References: <20220929114624.16809-1-johnson.wang@mediatek.com> <20220929114624.16809-3-johnson.wang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS autolearn=no 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 Thu, Sep 29, 2022 at 03:07:49PM +0200, AngeloGioacchino Del Regno wrote: > Il 29/09/22 13:46, Johnson Wang ha scritto: > > Add the new binding documentation for MediaTek frequency hopping > > and spread spectrum clocking control. > > > > Co-developed-by: Edward-JW Yang > > Signed-off-by: Edward-JW Yang > > Signed-off-by: Johnson Wang > > --- > > .../arm/mediatek/mediatek,mt8186-fhctl.yaml | 53 +++++++++++++++++++ > > 1 file changed, 53 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,mt8186-fhctl.yaml > > > > diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,mt8186-fhctl.yaml b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mt8186-fhctl.yaml > > new file mode 100644 > > index 000000000000..258dff7ce6bc > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mt8186-fhctl.yaml > > @@ -0,0 +1,53 @@ > > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/arm/mediatek/mediatek,mt8186-fhctl.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: MediaTek frequency hopping and spread spectrum clocking control > > + > > +maintainers: > > + - Edward-JW Yang > > + > > +description: | > > + Frequency hopping control (FHCTL) is a piece of hardware that control > > + some PLLs to adopt "hopping" mechanism to adjust their frequency. > > + Spread spectrum clocking (SSC) is another function provided by this hardware. > > + > > +properties: > > + compatible: > > + const: mediatek,mt8186-fhctl > > + > > + reg: > > + maxItems: 1 > > + > > + clocks: > > + description: Phandles of the PLL with FHCTL hardware capability. > > + minItems: 1 > > + maxItems: 30 > > + > > + mediatek,hopping-ssc-percent: > > + description: The percentage of spread spectrum clocking for one PLL. > > + minItems: 1 > > + maxItems: 30 > > + items: > > + default: 0 > > + minimum: 0 > > + maximum: 8 > > + > > +required: > > + - compatible > > + - reg > > + - clocks > > + > > +additionalProperties: false > > + > > +examples: > > + - | > > + #include > > + fhctl: fhctl@1000ce00 { > > + compatible = "mediatek,mt8186-fhctl"; > > + reg = <0x1000c000 0xe00>; > > + clocks = <&apmixedsys CLK_APMIXED_MSDCPLL>; > > + mediatek,hopping-ssc-percent = <3>; > > + }; > > > .... a more realistic example: One or 2 cells is really outside the scope of the binding as either is valid. If the parent bus only has 32-bits of address space, there's little reason to use 2 cells. > > #include > > soc { > #address-cells = <2>; > #size-cells = <2>; > > fhctl: fhctl@1000ce00 { > compatible = "mediatek,mt8186-fhctl"; > reg = <0 0x1000c000 0 0xe00>; > clocks = <&apmixedsys CLK_APMIXED_MSDCPLL>; > mediatek,hopping-ssc-percent = <3>; > }; > }; > > After which... > > Reviewed-by: AngeloGioacchino Del Regno >