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

dt-bindings: clock: qcom,qcs404-turingcc: convert to dtschema

Convert the bindings for the Turing Clock Controller on QCS404 from
the old text format to yaml.

Signed-off-by: Rayyan Ansari <rayyan.ansari@linaro.org>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240716085622.12182-2-rayyan.ansari@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Rayyan Ansari and committed by
Bjorn Andersson
d0c2eccf 386e0ac9

+47 -19
+47
Documentation/devicetree/bindings/clock/qcom,qcs404-turingcc.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,qcs404-turingcc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Qualcomm Turing Clock & Reset Controller on QCS404 8 + 9 + maintainers: 10 + - Bjorn Andersson <andersson@kernel.org> 11 + 12 + properties: 13 + compatible: 14 + const: qcom,qcs404-turingcc 15 + 16 + reg: 17 + maxItems: 1 18 + 19 + clocks: 20 + maxItems: 1 21 + 22 + '#clock-cells': 23 + const: 1 24 + 25 + '#reset-cells': 26 + const: 1 27 + 28 + required: 29 + - compatible 30 + - reg 31 + - clocks 32 + - '#clock-cells' 33 + - '#reset-cells' 34 + 35 + additionalProperties: false 36 + 37 + examples: 38 + - | 39 + #include <dt-bindings/clock/qcom,gcc-qcs404.h> 40 + clock-controller@800000 { 41 + compatible = "qcom,qcs404-turingcc"; 42 + reg = <0x00800000 0x30000>; 43 + clocks = <&gcc GCC_CDSP_CFG_AHB_CLK>; 44 + 45 + #clock-cells = <1>; 46 + #reset-cells = <1>; 47 + };
-19
Documentation/devicetree/bindings/clock/qcom,turingcc.txt
··· 1 - Qualcomm Turing Clock & Reset Controller Binding 2 - ------------------------------------------------ 3 - 4 - Required properties : 5 - - compatible: shall contain "qcom,qcs404-turingcc". 6 - - reg: shall contain base register location and length. 7 - - clocks: ahb clock for the TuringCC 8 - - #clock-cells: from common clock binding, shall contain 1. 9 - - #reset-cells: from common reset binding, shall contain 1. 10 - 11 - Example: 12 - turingcc: clock-controller@800000 { 13 - compatible = "qcom,qcs404-turingcc"; 14 - reg = <0x00800000 0x30000>; 15 - clocks = <&gcc GCC_CDSP_CFG_AHB_CLK>; 16 - 17 - #clock-cells = <1>; 18 - #reset-cells = <1>; 19 - };