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

dt-bindings: clock: combine qcom,sdm845-gpucc and qcom,sc7180-gpucc

These two bindings are almost identical, so combine them into one. This
will make it easier to add the sm8150 and sm8250 gpucc bindings.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Tested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20200709135251.643-7-jonathan@marek.ca
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Jonathan Marek and committed by
Stephen Boyd
23e2653e 3f6b2506

+9 -79
-74
Documentation/devicetree/bindings/clock/qcom,sc7180-gpucc.yaml
··· 1 - # SPDX-License-Identifier: GPL-2.0-only 2 - %YAML 1.2 3 - --- 4 - $id: http://devicetree.org/schemas/clock/qcom,sc7180-gpucc.yaml# 5 - $schema: http://devicetree.org/meta-schemas/core.yaml# 6 - 7 - title: Qualcomm Graphics Clock & Reset Controller Binding for SC7180 8 - 9 - maintainers: 10 - - Taniya Das <tdas@codeaurora.org> 11 - 12 - description: | 13 - Qualcomm graphics clock control module which supports the clocks, resets and 14 - power domains on SC7180. 15 - 16 - See also dt-bindings/clock/qcom,gpucc-sc7180.h. 17 - 18 - properties: 19 - compatible: 20 - const: qcom,sc7180-gpucc 21 - 22 - clocks: 23 - items: 24 - - description: Board XO source 25 - - description: GPLL0 main branch source 26 - - description: GPLL0 div branch source 27 - 28 - clock-names: 29 - items: 30 - - const: bi_tcxo 31 - - const: gcc_gpu_gpll0_clk_src 32 - - const: gcc_gpu_gpll0_div_clk_src 33 - 34 - '#clock-cells': 35 - const: 1 36 - 37 - '#reset-cells': 38 - const: 1 39 - 40 - '#power-domain-cells': 41 - const: 1 42 - 43 - reg: 44 - maxItems: 1 45 - 46 - required: 47 - - compatible 48 - - reg 49 - - clocks 50 - - clock-names 51 - - '#clock-cells' 52 - - '#reset-cells' 53 - - '#power-domain-cells' 54 - 55 - additionalProperties: false 56 - 57 - examples: 58 - - | 59 - #include <dt-bindings/clock/qcom,gcc-sc7180.h> 60 - #include <dt-bindings/clock/qcom,rpmh.h> 61 - clock-controller@5090000 { 62 - compatible = "qcom,sc7180-gpucc"; 63 - reg = <0x05090000 0x9000>; 64 - clocks = <&rpmhcc RPMH_CXO_CLK>, 65 - <&gcc GCC_GPU_GPLL0_CLK_SRC>, 66 - <&gcc GCC_GPU_GPLL0_DIV_CLK_SRC>; 67 - clock-names = "bi_tcxo", 68 - "gcc_gpu_gpll0_clk_src", 69 - "gcc_gpu_gpll0_div_clk_src"; 70 - #clock-cells = <1>; 71 - #reset-cells = <1>; 72 - #power-domain-cells = <1>; 73 - }; 74 - ...
+9 -5
Documentation/devicetree/bindings/clock/qcom,sdm845-gpucc.yaml Documentation/devicetree/bindings/clock/qcom,gpucc.yaml
··· 1 1 # SPDX-License-Identifier: GPL-2.0-only 2 2 %YAML 1.2 3 3 --- 4 - $id: http://devicetree.org/schemas/clock/qcom,sdm845-gpucc.yaml# 4 + $id: http://devicetree.org/schemas/clock/qcom,gpucc.yaml# 5 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 - title: Qualcomm Graphics Clock & Reset Controller Binding for SDM845 7 + title: Qualcomm Graphics Clock & Reset Controller Binding 8 8 9 9 maintainers: 10 10 - Taniya Das <tdas@codeaurora.org> 11 11 12 12 description: | 13 13 Qualcomm graphics clock control module which supports the clocks, resets and 14 - power domains on SDM845. 14 + power domains on SDM845/SC7180. 15 15 16 - See also dt-bindings/clock/qcom,gpucc-sdm845.h. 16 + See also: 17 + dt-bindings/clock/qcom,gpucc-sdm845.h 18 + dt-bindings/clock/qcom,gpucc-sc7180.h 17 19 18 20 properties: 19 21 compatible: 20 - const: qcom,sdm845-gpucc 22 + enum: 23 + - qcom,sdm845-gpucc 24 + - qcom,sc7180-gpucc 21 25 22 26 clocks: 23 27 items: