Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: clock: mediatek: Add new bindings of MediaTek frequency hopping

Add the new binding documentation for MediaTek frequency hopping
and spread spectrum clocking control.

Co-developed-by: Edward-JW Yang <edward-jw.yang@mediatek.com>
Signed-off-by: Edward-JW Yang <edward-jw.yang@mediatek.com>
Signed-off-by: Johnson Wang <johnson.wang@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20221121122957.21611-3-johnson.wang@mediatek.com
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>

authored by

Johnson Wang and committed by
Chen-Yu Tsai
cfcefe36 029c936a

+53
+53
Documentation/devicetree/bindings/clock/mediatek,mt8186-fhctl.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/clock/mediatek,mt8186-fhctl.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: MediaTek frequency hopping and spread spectrum clocking control 8 + 9 + maintainers: 10 + - Edward-JW Yang <edward-jw.yang@mediatek.com> 11 + 12 + description: | 13 + Frequency hopping control (FHCTL) is a piece of hardware that control 14 + some PLLs to adopt "hopping" mechanism to adjust their frequency. 15 + Spread spectrum clocking (SSC) is another function provided by this hardware. 16 + 17 + properties: 18 + compatible: 19 + const: mediatek,mt8186-fhctl 20 + 21 + reg: 22 + maxItems: 1 23 + 24 + clocks: 25 + description: Phandles of the PLL with FHCTL hardware capability. 26 + minItems: 1 27 + maxItems: 30 28 + 29 + mediatek,hopping-ssc-percent: 30 + description: The percentage of spread spectrum clocking for one PLL. 31 + minItems: 1 32 + maxItems: 30 33 + items: 34 + default: 0 35 + minimum: 0 36 + maximum: 8 37 + 38 + required: 39 + - compatible 40 + - reg 41 + - clocks 42 + 43 + additionalProperties: false 44 + 45 + examples: 46 + - | 47 + #include <dt-bindings/clock/mt8186-clk.h> 48 + fhctl: fhctl@1000ce00 { 49 + compatible = "mediatek,mt8186-fhctl"; 50 + reg = <0x1000ce00 0x200>; 51 + clocks = <&apmixedsys CLK_APMIXED_MSDCPLL>; 52 + mediatek,hopping-ssc-percent = <3>; 53 + };