Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4172562rwb; Mon, 21 Nov 2022 04:45:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf6QIui5GI+a+JoROaBvohT8ptlNLD2iYO07noppOI83eLhFUIWzhC3Pu+0hD+nfcS4X8uIj X-Received: by 2002:a17:906:480b:b0:78d:9f25:6103 with SMTP id w11-20020a170906480b00b0078d9f256103mr15400863ejq.168.1669034740673; Mon, 21 Nov 2022 04:45:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669034740; cv=none; d=google.com; s=arc-20160816; b=BlZ+Llj7bZmDdXw9r9nS/5XcMm/HaPsaihdYk8TU4a0hriKmoQlAea2WqyCcEVdB8L nnAGOjRQj7uDFGZmzkKn9Cem91oK8B9j6rysRiWzE9sG9QWjGUqZSPu5M6oK4sbjHFJe 2xYSP6zd+YEKERCNAxzjYVERyugfxO2cW2PDD4+RyIJOW1gdaxi38kBYH8HdYMIdtKds aFGQQaXcvKr0HmJhJfeshNfmXBlznNifZ3flp8LaPs4q/G/Zinm3801OZR7Ytl2PXpEw WfEGmvw8K/iqdvMzRqRVMDHYbfsZTpuHIARpn/Qo4b+DNZ9+OKtu208KnJ7ZAgsX/2d9 mxQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=chwOzhzqZetC3MhgqfNY3NF6RywTjwGetB7f0sa8uTc=; b=lu8I9GftdaiaxDIIJKsa6Kk7YGiC3AsRjS6awtXuZvnN7CM8sO62UKuuAp+O+7FQjv 7oH6gEc6zOERqDui6MmwXQ8vxyOV5a9sxqf+36troxZMD/G6OPduHM09CmByYunbKEHX tqXVzprCouzuU3+a5rfKcLx6xg6Scwcfd8+UK/fP3sxMgDOZSTpL4Iv/VVK6mUUhn23q QIgmIL1tQPsE8FSQ5sFOQr25z6huMIgzyc9rmB+VXtl4ls9ZwyXejXolCOCV7rjlh3Ie HGb4QsBIUp3uI0Krw52sO6rOj1s+eu4GLOsRbyofrxerFkXMxUbDo/wllNAIGrLeGePQ O5fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=lLYZivN2; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id er16-20020a056402449000b0045d8bff7b1asi8758168edb.403.2022.11.21.04.45.16; Mon, 21 Nov 2022 04:45:40 -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=@mediatek.com header.s=dk header.b=lLYZivN2; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231470AbiKUMa7 (ORCPT + 92 others); Mon, 21 Nov 2022 07:30:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229922AbiKUMad (ORCPT ); Mon, 21 Nov 2022 07:30:33 -0500 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C816121264; Mon, 21 Nov 2022 04:30:08 -0800 (PST) X-UUID: 561be8b00c1947edad2e3c687d520082-20221121 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=chwOzhzqZetC3MhgqfNY3NF6RywTjwGetB7f0sa8uTc=; b=lLYZivN2/S1nwx6oLSNyIpCcHWdfX8tjwWhMlfJNySMOA/FgVxDqznoVDSFFTm7qgKQjZzU23gn1yoUDtSnpb2XznPH4lo+fI5T+BU+Qhx5s+QxuTj/dezU2+GzMJzzHeIN2GK8fk8ftt9KrrV5ARYb0P3vsLVy4AWq9sczM2GI=; X-CID-P-RULE: Spam_GS6885AD X-CID-O-INFO: VERSION:1.1.13,REQID:418dd751-eaec-42b1-a089-306f342d4e48,IP:0,U RL:25,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS6885AD,ACT ION:quarantine,TS:120 X-CID-INFO: VERSION:1.1.13,REQID:418dd751-eaec-42b1-a089-306f342d4e48,IP:0,URL :25,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTIO N:quarantine,TS:120 X-CID-META: VersionHash:d12e911,CLOUDID:c01f622f-2938-482e-aafd-98d66723b8a9,B ulkID:221121203003XVC9FD9T,BulkQuantity:0,Recheck:0,SF:38|28|17|19|48,TC:n il,Content:0,EDM:-3,IP:nil,URL:11|1,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: 561be8b00c1947edad2e3c687d520082-20221121 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1580543132; Mon, 21 Nov 2022 20:30:00 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by mtkmbs13n2.mediatek.inc (172.21.101.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Mon, 21 Nov 2022 20:29:59 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Mon, 21 Nov 2022 20:29:59 +0800 From: Johnson Wang To: , , , CC: , , , , , , Johnson Wang , Edward-JW Yang Subject: [PATCH v5 2/4] dt-bindings: clock: mediatek: Add new bindings of MediaTek frequency hopping Date: Mon, 21 Nov 2022 20:29:55 +0800 Message-ID: <20221121122957.21611-3-johnson.wang@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20221121122957.21611-1-johnson.wang@mediatek.com> References: <20221121122957.21611-1-johnson.wang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY 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 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 Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Rob Herring --- .../bindings/clock/mediatek,mt8186-fhctl.yaml | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/mediatek,mt8186-fhctl.yaml diff --git a/Documentation/devicetree/bindings/clock/mediatek,mt8186-fhctl.yaml b/Documentation/devicetree/bindings/clock/mediatek,mt8186-fhctl.yaml new file mode 100644 index 000000000000..cfd042ac1e14 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/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/clock/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 = <0x1000ce00 0x200>; + clocks = <&apmixedsys CLK_APMIXED_MSDCPLL>; + mediatek,hopping-ssc-percent = <3>; + }; -- 2.18.0