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

dt-bindings: clock: qcom,hfpll: Convert to YAML

Convert the .txt documentation to .yaml with some adjustments.

* APQ8064/IPQ8064/MSM8960 compatibles are dropped since their HFPLLs are
a part of GCC so there is no need for a separate compat entry.
* Change the MSM8974 compatible to follow the updated naming schema.
Theis compatible is not used upstream yet.
* Add qcs404-hfpll. QCS404 currently uses qcom,hfpll. Mark that as
deprecated since every SoC appears to need different driver data so
"qcom,hfpll" makes no sense to keep

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240218-hfpll-yaml-v2-1-31543e0d6261@z3ntu.xyz
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Luca Weiss and committed by
Bjorn Andersson
849ed9d4 3b985489

+69 -63
-63
Documentation/devicetree/bindings/clock/qcom,hfpll.txt
··· 1 - High-Frequency PLL (HFPLL) 2 - 3 - PROPERTIES 4 - 5 - - compatible: 6 - Usage: required 7 - Value type: <string>: 8 - shall contain only one of the following. The generic 9 - compatible "qcom,hfpll" should be also included. 10 - 11 - "qcom,hfpll-ipq8064", "qcom,hfpll" 12 - "qcom,hfpll-apq8064", "qcom,hfpll" 13 - "qcom,hfpll-msm8974", "qcom,hfpll" 14 - "qcom,hfpll-msm8960", "qcom,hfpll" 15 - "qcom,msm8976-hfpll-a53", "qcom,hfpll" 16 - "qcom,msm8976-hfpll-a72", "qcom,hfpll" 17 - "qcom,msm8976-hfpll-cci", "qcom,hfpll" 18 - 19 - - reg: 20 - Usage: required 21 - Value type: <prop-encoded-array> 22 - Definition: address and size of HPLL registers. An optional second 23 - element specifies the address and size of the alias 24 - register region. 25 - 26 - - clocks: 27 - Usage: required 28 - Value type: <prop-encoded-array> 29 - Definition: reference to the xo clock. 30 - 31 - - clock-names: 32 - Usage: required 33 - Value type: <stringlist> 34 - Definition: must be "xo". 35 - 36 - - clock-output-names: 37 - Usage: required 38 - Value type: <string> 39 - Definition: Name of the PLL. Typically hfpllX where X is a CPU number 40 - starting at 0. Otherwise hfpll_Y where Y is more specific 41 - such as "l2". 42 - 43 - Example: 44 - 45 - 1) An HFPLL for the L2 cache. 46 - 47 - clock-controller@f9016000 { 48 - compatible = "qcom,hfpll-ipq8064", "qcom,hfpll"; 49 - reg = <0xf9016000 0x30>; 50 - clocks = <&xo_board>; 51 - clock-names = "xo"; 52 - clock-output-names = "hfpll_l2"; 53 - }; 54 - 55 - 2) An HFPLL for CPU0. This HFPLL has the alias register region. 56 - 57 - clock-controller@f908a000 { 58 - compatible = "qcom,hfpll-ipq8064", "qcom,hfpll"; 59 - reg = <0xf908a000 0x30>, <0xf900a000 0x30>; 60 - clocks = <&xo_board>; 61 - clock-names = "xo"; 62 - clock-output-names = "hfpll0"; 63 - };
+69
Documentation/devicetree/bindings/clock/qcom,hfpll.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/clock/qcom,hfpll.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Qualcomm High-Frequency PLL 8 + 9 + maintainers: 10 + - Bjorn Andersson <andersson@kernel.org> 11 + 12 + description: 13 + The HFPLL is used as CPU PLL on various Qualcomm SoCs. 14 + 15 + properties: 16 + compatible: 17 + oneOf: 18 + - enum: 19 + - qcom,msm8974-hfpll 20 + - qcom,msm8976-hfpll-a53 21 + - qcom,msm8976-hfpll-a72 22 + - qcom,msm8976-hfpll-cci 23 + - qcom,qcs404-hfpll 24 + - const: qcom,hfpll 25 + deprecated: true 26 + 27 + reg: 28 + items: 29 + - description: HFPLL registers 30 + - description: Alias register region 31 + minItems: 1 32 + 33 + '#clock-cells': 34 + const: 0 35 + 36 + clocks: 37 + items: 38 + - description: board XO clock 39 + 40 + clock-names: 41 + items: 42 + - const: xo 43 + 44 + clock-output-names: 45 + description: 46 + Name of the PLL. Typically hfpllX where X is a CPU number starting at 0. 47 + Otherwise hfpll_Y where Y is more specific such as "l2". 48 + maxItems: 1 49 + 50 + required: 51 + - compatible 52 + - reg 53 + - '#clock-cells' 54 + - clocks 55 + - clock-names 56 + - clock-output-names 57 + 58 + additionalProperties: false 59 + 60 + examples: 61 + - | 62 + clock-controller@f908a000 { 63 + compatible = "qcom,msm8974-hfpll"; 64 + reg = <0xf908a000 0x30>, <0xf900a000 0x30>; 65 + #clock-cells = <0>; 66 + clock-output-names = "hfpll0"; 67 + clocks = <&xo_board>; 68 + clock-names = "xo"; 69 + };