Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2130421rwb; Thu, 29 Sep 2022 06:39:16 -0700 (PDT) X-Google-Smtp-Source: AMsMyM60vsTj9TyPsj277IydEDQ4rlH4b66H6qu24Xz6CudklljaHgGILkWbDTuKR8BhJwhmTu70 X-Received: by 2002:a17:90b:1bc3:b0:203:84d:59b1 with SMTP id oa3-20020a17090b1bc300b00203084d59b1mr16562768pjb.37.1664458755837; Thu, 29 Sep 2022 06:39:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664458755; cv=none; d=google.com; s=arc-20160816; b=CvxrS4jW3YeWrgFBbvHU4LQRERiaYmeBCOMEj+eJ53ZH5EGohcYraclTMN5WIDWqQ+ UqcBs/x9C29VLWJoVOJeMPS1zeohFeemU/RD1sZSLZU4oVfBLW6H+hPUsfb6K7UOepqM qGoWTphh9xmc4QnsujEwp2NU2F2KqY9C2inSBFMSM6RcCZeypdiIcgRIYZSFkHbb8Rcw K4lkF0cCjWCv7169BScdIyu0S8fn424OvmfS+H4uXkJIM7XdZnoWAUeU2h+r7vlGjbqs j3pAsqsh2Z/XsecsDf5X/qhn1E1D+LRBu4RFwCCK974fzGP9UXW6Lwi+X7Ms+CcF7t+D 7WNw== 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=4z/HIchCQ+cdyYXxer4Zxv+4O41RgVW1hy3WlDTXls8=; b=daOPDTM+gdeFHZ8wQ8RE+DZ+cQgU2hpDmvXD5MKqLPs3zKshZzigNOGVaDR7v95aI1 G60t2uRDZDz9dDDgHaqYXGcaoxldhlkPKTpv3UAsow39PP2N9ngcjJf7JkEzoJsIxQ/i 77dYALZIrfP9FzbXVSzsurUNR44bDifCh6lGyfPocdnuM1bPElLaX7umCbxehzf/MUrv XXD31lCWLvZ19AGAtkRNu2pjl7TwXGAOkMUw2WifxE3hDNUKBCxRLzg33yuiSve52HO7 vR9jB/uTiu6EkUkWChed3DZ1X3U7jxhM8O6E0GOQ6mSJhEDWchWnn4gS0yxFDhJg2yBw k25Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Krydl2YZ; 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=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f4-20020a170902ce8400b0017870f47217si10078915plg.360.2022.09.29.06.39.04; Thu, 29 Sep 2022 06:39:15 -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; dkim=pass header.i=@collabora.com header.s=mail header.b=Krydl2YZ; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235129AbiI2NH6 (ORCPT + 99 others); Thu, 29 Sep 2022 09:07:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230341AbiI2NH4 (ORCPT ); Thu, 29 Sep 2022 09:07:56 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D937155647; Thu, 29 Sep 2022 06:07:54 -0700 (PDT) Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 0693866022AB; Thu, 29 Sep 2022 14:07:51 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1664456872; bh=YREI9mVEQTMfHoST6LFhc82ktAPMChQ/u5H+Y2sHoqk=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Krydl2YZIXBwOHY+gi+HZN0ErzQpjEZotHqLqaCI31iIavuxCNr8dMYFyXMJxZ2nY Fp5PokdBTTBtcfGLHhnH9Eo8MEnrbEHFEf7BZy7k7+8oFLjXYTb4hPMf+WsOewxlLs c56XFWbQmAHCU1SXxDBy3MjmwH5LOZ8D2wAT+cNpoTzq9RiG29hzv8zHLPdfWpBGxN 51VOstCMxji62VB9lhUFamo/KLlCP5ItIOoLeZ7u5l3/0Sj3sWgLvMxxiBDcnNkAu9 lStpuKyhdrSF4GlR/w7M8qfEUa3MzlbV5Zx8O8GdZGlO7/+EfVQ02uY2tgEQqfwWR2 etKjZ/8xpB68Q== Message-ID: Date: Thu, 29 Sep 2022 15:07:49 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.0 Subject: Re: [PATCH v3 2/4] dt-bindings: arm: mediatek: Add new bindings of MediaTek frequency hopping Content-Language: en-US To: Johnson Wang , robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, sboyd@kernel.org Cc: 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 References: <20220929114624.16809-1-johnson.wang@mediatek.com> <20220929114624.16809-3-johnson.wang@mediatek.com> From: AngeloGioacchino Del Regno In-Reply-To: <20220929114624.16809-3-johnson.wang@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 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: #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